2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

22_HOMEMODE: v1.5.9 - fixed devStateIcon new line issue

git-svn-id: https://svn.fhem.de/fhem/trunk@27310 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
deespe 2023-03-07 09:49:05 +00:00
parent e8631e9ce4
commit 14bb8290dd

View File

@ -15,7 +15,7 @@ use Time::HiRes qw(gettimeofday);
use HttpUtils;
use vars qw{%attr %defs %modules $FW_CSRF};
my $HOMEMODE_version = '1.5.8';
my $HOMEMODE_version = '1.5.9';
my $HOMEMODE_Daytimes = '05:00|morning 10:00|day 14:00|afternoon 18:00|evening 23:00|night';
my $HOMEMODE_Seasons = '03.01|spring 06.01|summer 09.01|autumn 12.01|winter';
my $HOMEMODE_UserModes = 'gotosleep,awoken,asleep';
@ -89,17 +89,17 @@ sub HOMEMODE_Define($$)
$hash->{NOTIFYDEV} = 'global';
if ($init_done && !defined $hash->{OLDDEF})
{
$attr{$name}{devStateIcon} = 'absent:user_away:dnd+on\n'.
'gone:user_ext_away:dnd+on\n'.
'dnd:audio_volume_mute:dnd+off\n'.
'gotosleep:scene_sleeping:dnd+on\n'.
'asleep:scene_sleeping_alternat:dnd+on\n'.
'awoken:weather_sunrise:dnd+on\n'.
'home:status_available:dnd+on\n'.
'morning:weather_sunrise:dnd+on\n'.
'day:weather_sun:dnd+on\n'.
'afternoon:weather_summer:dnd+on\n'.
'evening:weather_sunset:dnd+on\n'.
$attr{$name}{devStateIcon} = "absent:user_away:dnd+on\n".
"gone:user_ext_away:dnd+on\n".
"dnd:audio_volume_mute:dnd+off\n".
"gotosleep:scene_sleeping:dnd+on\n".
"asleep:scene_sleeping_alternat:dnd+on\n".
"awoken:weather_sunrise:dnd+on\n".
"home:status_available:dnd+on\n".
"morning:weather_sunrise:dnd+on\n".
"day:weather_sun:dnd+on\n".
"afternoon:weather_summer:dnd+on\n".
"evening:weather_sunset:dnd+on\n".
'night:weather_moon_phases_2:dnd+on';
$attr{$name}{icon} = 'floor';
$attr{$name}{room} = 'HOMEMODE';