From 5aee91bfbf28c3ea9fbad5fcc55096d4194f28ca Mon Sep 17 00:00:00 2001 From: jpawlowski Date: Fri, 7 Dec 2018 12:53:22 +0000 Subject: [PATCH] msgSchema: add support for 70_LaMetric2 git-svn-id: https://svn.fhem.de/fhem/trunk@17912 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/msgSchema.pm | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/fhem/FHEM/msgSchema.pm b/fhem/FHEM/msgSchema.pm index 51d7a909b..9beaa6a42 100755 --- a/fhem/FHEM/msgSchema.pm +++ b/fhem/FHEM/msgSchema.pm @@ -377,25 +377,34 @@ my $db = { }, }, - 'LaMetric' => { + 'LaMetric2' => { 'Normal' => -'set %DEVICE% msg \'%LaMatric_ICON%\' \'%MSG%\' \'%LaMetric_SOUND%\'', +'set %DEVICE% title=\'%TITLE%\' lifetime=%EXPIRE% priority=%LaMetric_PRIORITY% sound=%LaMetric_SOUND% repeat=%LaMetric_REPEAT% cycles=%LaMetric_CYCLES% message=\'%MSG%\'', 'High' => -'set %DEVICE% msg \'%LaMatric_ICON%\' \'%MSG%\' \'%LaMetric_SOUND%\'', +'set %DEVICE% title=\'%TITLE%\' lifetime=%EXPIRE% priority=%LaMetric_PRIORITY% sound=%LaMetric_SOUND% repeat=%LaMetric_REPEAT% cycles=%LaMetric_CYCLES% message=\'%MSG%\'', 'Low' => -'set %DEVICE% msg \'%LaMatric_ICON%\' \'%MSG%\' \'%LaMetric_SOUND%\'', +'set %DEVICE% title=\'%TITLE%\' lifetime=%EXPIRE% priority=%LaMetric_PRIORITY% sound=%LaMetric_SOUND% repeat=%LaMetric_REPEAT% cycles=%LaMetric_CYCLES% message=\'%MSG%\'', 'defaultValues' => { 'Normal' => { - 'LaMatric_ICON' => 'a21844', - 'LaMetric_SOUND' => 'notifications:notification', + 'EXPIRE' => '120', + 'LaMetric_PRIORITY' => 'warning', + 'LaMetric_SOUND' => 'notification', + 'LaMetric_REPEAT' => '1', + 'LaMetric_CYCLES' => '1', }, 'High' => { - 'LaMatric_ICON' => 'a4787', - 'LaMetric_SOUND' => 'alarms:alarm13', + 'EXPIRE' => '120', + 'LaMetric_PRIORITY' => 'critical', + 'LaMetric_SOUND' => 'alarm13', + 'LaMetric_REPEAT' => '3', + 'LaMetric_CYCLES' => '2', }, 'Low' => { - 'LaMatric_ICON' => 'a22098', - 'LaMetric_SOUND' => 'notifications:positive5', + 'EXPIRE' => '120', + 'LaMetric_PRIORITY' => 'info', + 'LaMetric_SOUND' => 'positive5', + 'LaMetric_REPEAT' => '1', + 'LaMetric_CYCLES' => '1', }, }, },