2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-09 20:57:11 +00:00

msgSchema.pm: add support for LaMetric screen messages

git-svn-id: https://svn.fhem.de/fhem/trunk@17851 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
jpawlowski 2018-11-27 12:41:24 +00:00
parent a7b680c80c
commit c0ae0d59c7
2 changed files with 43 additions and 20 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- feature: msgSchema: add support for LaMetric screen messages
- bugfix: 70_BRAVIA: removed unnecessary internals name, generation, model
- bugfix: 74_XiaomiBTLESens: fix humidity bug
- bugfix: 88_HMCCU: Some minor bugs fixed

View File

@ -377,37 +377,59 @@ my $db = {
},
},
'XBMC' => {
'LaMatric' => {
'Normal' =>
'{ my $d=\'%DEVICE%\'; my $msg=\'%MSG%\'; my $title=\'%TITLE%\'; my $timeout=%TIMEOUT%*1000; fhem "set $d msg \'$title\' \'$msg\' $timeout %XBMC_ICON%"; }',
'set %DEVICE% msg \'%LaMatric_ICON%\' \'%MSG%\' \'%LaMetric_SOUND%\'',
'High' =>
'{ my $d=\'%DEVICE%\'; my $msg=\'%MSG%\'; my $title=\'%TITLE%\'; my $timeout=%TIMEOUT%*1000; fhem "set $d msg \'$title\' \'$msg\' $timeout %XBMC_ICON%"; }',
'set %DEVICE% msg \'%LaMatric_ICON%\' \'%MSG%\' \'%LaMetric_SOUND%\'',
'Low' =>
'{ my $d=\'%DEVICE%\'; my $msg=\'%MSG%\'; my $title=\'%TITLE%\'; my $timeout=%TIMEOUT%*1000; fhem "set $d msg \'$title\' \'$msg\' $timeout %XBMC_ICON%"; }',
'set %DEVICE% msg \'%LaMatric_ICON%\' \'%MSG%\' \'%LaMetric_SOUND%\'',
'defaultValues' => {
'Normal' => {
'TIMEOUT' => 8,
'TITLE' => 'Info',
'XBMC_ICON' => 'info',
'LaMatric_ICON' => 'a21844',
'LaMetric_SOUND' => 'notifications:notification',
},
'High' => {
'TIMEOUT' => 12,
'TITLE' => 'Warning',
'XBMC_ICON' => 'warning',
'LaMatric_ICON' => 'a4787',
'LaMetric_SOUND' => 'alarms:alarm13',
},
'Low' => {
'TIMEOUT' => 8,
'TITLE' => 'Notice',
'XBMC_ICON' => '',
'LaMatric_ICON' => 'a22098',
'LaMetric_SOUND' => 'notifications:positive5',
},
},
'XBMC' => {
'Normal' =>
'{ my $d=\'%DEVICE%\'; my $msg=\'%MSG%\'; my $title=\'%TITLE%\'; my $timeout=%TIMEOUT%*1000; fhem "set $d msg \'$title\' \'$msg\' $timeout %XBMC_ICON%"; }',
'High' =>
'{ my $d=\'%DEVICE%\'; my $msg=\'%MSG%\'; my $title=\'%TITLE%\'; my $timeout=%TIMEOUT%*1000; fhem "set $d msg \'$title\' \'$msg\' $timeout %XBMC_ICON%"; }',
'Low' =>
'{ my $d=\'%DEVICE%\'; my $msg=\'%MSG%\'; my $title=\'%TITLE%\'; my $timeout=%TIMEOUT%*1000; fhem "set $d msg \'$title\' \'$msg\' $timeout %XBMC_ICON%"; }',
'defaultValues' => {
'Normal' => {
'TIMEOUT' => 8,
'TITLE' => 'Info',
'XBMC_ICON' => 'info',
},
'High' => {
'TIMEOUT' => 12,
'TITLE' => 'Warning',
'XBMC_ICON' => 'warning',
},
'Low' => {
'TIMEOUT' => 8,
'TITLE' => 'Notice',
'XBMC_ICON' => '',
},
},
},
},
};
},
};
sub get {
return $db;
}
sub get {
return $db;
}
1;
1;