Hallo Zusammen,
ich stehe gerade etwas am Schlauch.
Ich habe einige RGs, die top funktionieren. Nun habe ich heute die Ansicht meiner Heizpläne angepasst und dafür RG benutzt. Die Pläne selber laufen über den WeekdayTimer.
Mir gelinkt es nun nicht, das valueIcon einzurichten.
Hier mal das List einer readingGroup:
Internals:
CFGFN
DEF <>,<aktuelle Temperatur>,<nächster Update>,<neue Temperatur>,<deaktivieren>
HCB_Urlaub:state,nextUpdate,nextValue,?!disable
HCO_Urlaub:state,nextUpdate,nextValue,?!disable
HCC_Urlaub:state,nextUpdate,nextValue,?!disable
HCD_Urlaub:state,nextUpdate,nextValue,?!disable
HCF_Urlaub:state,nextUpdate,nextValue,?!disable
HCH_Urlaub:state,nextUpdate,nextValue,?!disable
HCKF_Urlaub:state,nextUpdate,nextValue,?!disable
HCK_Urlaub:state,nextUpdate,nextValue,?!disable
HCL_Urlaub:state,nextUpdate,nextValue,?!disable
HCS_Urlaub:state,nextUpdate,nextValue,?!disable
HCWK_Urlaub:state,nextUpdate,nextValue,?!disable
HCW_Urlaub:state,nextUpdate,nextValue,?!disable
FUUID 6001a9b1-f33f-5738-07f8-c5d34c7a758607f5
NAME rgHeizplan_Urlaub
NR 58733
NTFY_ORDER 50-rgHeizplan_Urlaub
STATE Initialized
TYPE readingsGroup
changed 0
mayBeVisible 1
CONTENT:
HCB_Urlaub 1
HCC_Urlaub 1
HCD_Urlaub 1
HCF_Urlaub 1
HCH_Urlaub 1
HCKF_Urlaub 1
HCL_Urlaub 1
HCO_Urlaub 1
HCS_Urlaub 1
HCWK_Urlaub 1
HCW_Urlaub 1
CONTENT2:
DEVICES:
ARRAY(0x5651de603520)
ARRAY(0x5651dd36ace0)
ARRAY(0x5651dec5fda8)
ARRAY(0x5651dd8a0730)
ARRAY(0x5651de3107d0)
ARRAY(0x5651e02b2808)
ARRAY(0x5651dd127640)
ARRAY(0x5651dd6c8fe0)
ARRAY(0x5651dd4d5678)
ARRAY(0x5651de2557b0)
ARRAY(0x5651dd80f0e8)
ARRAY(0x5651de246808)
fhem:
lastDefChange 217
last_update 1610727714.85128
helper:
DEF
cellStyle:
r:1 style="font-weight:bold"
commands:
disable disable:
positions:
HCB_Urlaub.disable 2:4
HCB_Urlaub.nextUpdate 2:2
HCB_Urlaub.nextValue 2:3
HCB_Urlaub.state 2:1
HCC_Urlaub.disable 4:4
HCC_Urlaub.nextUpdate 4:2
HCC_Urlaub.nextValue 4:3
HCC_Urlaub.state 4:1
HCD_Urlaub.disable 5:4
HCD_Urlaub.nextUpdate 5:2
HCD_Urlaub.nextValue 5:3
HCD_Urlaub.state 5:1
HCF_Urlaub.disable 6:4
HCF_Urlaub.nextUpdate 6:2
HCF_Urlaub.nextValue 6:3
HCF_Urlaub.state 6:1
HCH_Urlaub.disable 7:4
HCH_Urlaub.nextUpdate 7:2
HCH_Urlaub.nextValue 7:3
HCH_Urlaub.state 7:1
HCKF_Urlaub.disable 8:4
HCKF_Urlaub.nextUpdate 8:2
HCKF_Urlaub.nextValue 8:3
HCKF_Urlaub.state 8:1
HCL_Urlaub.disable 9:4
HCL_Urlaub.nextUpdate 9:2
HCL_Urlaub.nextValue 9:3
HCL_Urlaub.state 9:1
HCO_Urlaub.disable 3:4
HCO_Urlaub.nextUpdate 3:2
HCO_Urlaub.nextValue 3:3
HCO_Urlaub.state 3:1
HCS_Urlaub.disable 10:4
HCS_Urlaub.nextUpdate 10:2
HCS_Urlaub.nextValue 10:3
HCS_Urlaub.state 10:1
HCWK_Urlaub.disable 11:4
HCWK_Urlaub.nextUpdate 11:2
HCWK_Urlaub.nextValue 11:3
HCWK_Urlaub.state 11:1
HCW_Urlaub.disable 12:4
HCW_Urlaub.nextUpdate 12:2
HCW_Urlaub.nextValue 12:3
HCW_Urlaub.state 12:1
valueIcon:
inactive general_aus
open.window fts_window_2w_open_lr
values:
formated:
undef
ARRAY(0x5651dd718b78)
ARRAY(0x5651dd6fbe68)
ARRAY(0x5651dd92e738)
ARRAY(0x5651ddb36040)
orig:
undef
ARRAY(0x5651dd5e5ed0)
ARRAY(0x5651de655630)
ARRAY(0x5651dd8b6868)
ARRAY(0x5651dec5d010)
prefixsuffix:
undef
ARRAY(0x5651dcbc5d18)
ARRAY(0x5651de3f8210)
ARRAY(0x5651ddb38010)
ARRAY(0x5651dd5b8fd0)
Attributes:
alias Urlaub
cellStyle { "r:1" => 'style="font-weight:bold"' }
commands { disable => 'disable:' }
group Heizplan
room Heizung
valueIcon { 'open.window' => 'fts_window_2w_open_lr', 'inactive' => 'general_aus' }
Demnach sollte bei state open window auch ein Fensterbild (fts_window_2w_open_lr) kommen und bei state inactive ein Aus-Bild.
Kommt aber nicht?
Zur Sicherheit und exemplarisch hier noch ein WeekdayTimer:
Internals:
COMMAND
CONDITION (ReadingsVal("Urlaubsmodus", "state", "off") eq "on" && ReadingsVal("HCAutomatik", "state", "off") eq "on")
DEF HZ_Bad_WT_Climate 12345|07:30|22 60|09:00|22 12345|09:00|20.5 60|10:00|20.5 20:30|21.5 22:00|18 (ReadingsVal("Urlaubsmodus", "state", "off") eq "on" && ReadingsVal("HCAutomatik", "state", "off") eq "on")
DEVICE HZ_Bad_WT_Climate
FUUID 5de2616b-f33f-5738-17d5-2b63767e4fafbf3d
FVERSION 98_WeekdayTimer.pm:0.235160/2021-01-13
GlobalDaylistSpec
LANGUAGE de
NAME HCB_Urlaub
NR 554
Profil 0: Sonntag 09:00:00 22, 10:00:00 20.5, 20:30:00 21.5, 22:00:00 18,
Profil 1: Montag 07:30:00 22, 09:00:00 20.5, 20:30:00 21.5, 22:00:00 18,
Profil 2: Dienstag 07:30:00 22, 09:00:00 20.5, 20:30:00 21.5, 22:00:00 18,
Profil 3: Mittwoch 07:30:00 22, 09:00:00 20.5, 20:30:00 21.5, 22:00:00 18,
Profil 4: Donnerstag 07:30:00 22, 09:00:00 20.5, 20:30:00 21.5, 22:00:00 18,
Profil 5: Freitag 07:30:00 22, 09:00:00 20.5, 20:30:00 21.5, 22:00:00 18,
Profil 6: Samstag 09:00:00 22, 10:00:00 20.5, 20:30:00 21.5, 22:00:00 18,
SETTIMERATMIDNIGHT 1
STATE inactive
STILLDONETIME 0
TYPE WeekdayTimer
setModifier desired-temp
READINGS:
2021-01-14 11:59:17 currValue 20.5
2021-01-14 11:59:17 nextUpdate 2021-01-14 20:30:00
2021-01-14 11:59:17 nextValue 21.5
2021-01-14 11:59:12 state inactive
SWITCHINGTIMES:
12345|07:30|22
06|09:00|22
12345|09:00|20.5
06|10:00|20.5
20:30|21.5
22:00|18
TIMER:
helper:
daysRegExp (so|mo|di|mi|do|fr|sa|\$we|\!\$we)
daysRegExpMessage (so|mo|di|mi|do|fr|sa|$we|!$we)
SWITCHINGTIME:
0:
09:00:00 22
10:00:00 20.5
20:30:00 21.5
22:00:00 18
1:
07:30:00 22
09:00:00 20.5
20:30:00 21.5
22:00:00 18
2:
07:30:00 22
09:00:00 20.5
20:30:00 21.5
22:00:00 18
3:
07:30:00 22
09:00:00 20.5
20:30:00 21.5
22:00:00 18
4:
07:30:00 22
09:00:00 20.5
20:30:00 21.5
22:00:00 18
5:
07:30:00 22
09:00:00 20.5
20:30:00 21.5
22:00:00 18
6:
09:00:00 22
10:00:00 20.5
20:30:00 21.5
22:00:00 18
WEDAYS:
1 1
2 1
profil:
1:
EPOCH 1610692200
PARA 22
TIME 07:30
WE_Override 0
TAGE:
1
2
3
4
5
2:
EPOCH 1610697600
PARA 22
TIME 09:00
WE_Override 0
TAGE:
0
6
3:
EPOCH 1610697600
PARA 20.5
TIME 09:00
WE_Override 0
TAGE:
1
2
3
4
5
4:
EPOCH 1610701200
PARA 20.5
TIME 10:00
WE_Override 0
TAGE:
0
6
5:
EPOCH 1610739000
PARA 21.5
TIME 20:30
WE_Override 0
TAGE:
0
1
2
3
4
5
6
6:
EPOCH 1610744400
PARA 18
TIME 22:00
WE_Override 0
TAGE:
0
1
2
3
4
5
6
profile_IDX:
0:
09:00:00 2
10:00:00 4
20:30:00 5
22:00:00 6
1:
07:30:00 1
09:00:00 3
20:30:00 5
22:00:00 6
2:
07:30:00 1
09:00:00 3
20:30:00 5
22:00:00 6
3:
07:30:00 1
09:00:00 3
20:30:00 5
22:00:00 6
4:
07:30:00 1
09:00:00 3
20:30:00 5
22:00:00 6
5:
07:30:00 1
09:00:00 3
20:30:00 5
22:00:00 6
6:
09:00:00 2
10:00:00 4
20:30:00 5
22:00:00 6
Attributes:
DbLogExclude .*
WDT_Group former_HC
WDT_delayedExecutionDevices Fenster_Bad d_ECOMode
alias Bad
commandTemplate set $NAME desired-temp $EVENT
devStateIcon open.window:fts_window_2w_open_lr
event-on-change-reading .*
group Heizplan Urlaub
verbose 0
Und ein Screenshot angehängt.
Es fehlt das Reading selbst in deinem Hash:
state.open.window
state.inactive
Danke, probier ich morgen aus
Wenn das nicht so funktioniert, dann in Perl:
'state' => {if ($VALUE eq "inactive"){...
Ein Punkt war falsch, aber so funktioniert es: { 'state.open window' => 'fts_window_2w_open_lr', 'state.inactive' => 'general_aus' }