Hallo zusammen,
bei einer meiner DOIF's sehe ich als Status neuerdings ein Icon mit Lampe, anstatt den Status aus...
Internals:
DEF ## Entfeuchtersteuerung
## Fall 1 - Wenn Keller >= 65 % ==> Entfeuchten
([KE.th:Humidity] >= 65 )
(set KE.sw on)
## Fall 2 - Wenn Holzraum >= 65 % und Holzraumtüre offen ==> Entfeuchten
DOELSEIF
([HR.th:Humidity] >= 65 and [HR.tk] eq "open")
(set KE.sw on)
## Fall 3 - Wenn Holzraum >= 65 % und Holzraumtüre closed ==> Mail - Alamierung
DOELSEIF
([HR.th:Humidity] >= 65 and [HR.tk] eq "closed")
(({ DebianMail(xxxxxxt@yyyyy.de', 'FHEM Holzraum Luftfeuchte zu hoch !!',' Luftfeuchte Holzraum: '.ReadingsVal('HR.th','Humidity','').' % \n Luftfeuchte Keller: '.ReadingsVal('KE.th','Humidity','').' % \n\n Bitte Türe zum Holzkeller öffnen')}))
## Off 1 - Wenn beide Räume <= 60 %
DOELSEIF
([KE.th:Humidity] <= 60 and [HR.th:Humidity] <= 60 )
(set KE.sw off)
## Off 2 - Wenn Keller <= 60 % und Holzraumtüre closed
DOELSEIF
([KE.th:Humidity] <= 60 and [HR.tk] eq "closed")
(set KE.sw off)
NAME KE.hm_sw
NR 525
NTFY_ORDER 50-KE.hm_sw
STATE Aus
TYPE DOIF
READINGS:
2017-07-06 21:31:56 Device HR.th
2017-07-06 20:04:21 cmd 4
2017-07-06 20:04:21 cmd_event HR.th
2017-07-06 20:04:21 cmd_nr 4
2017-07-06 21:31:56 e_HR.th_Humidity 62.30
2017-06-21 18:50:52 e_HR.tk_STATE open
2017-07-06 21:22:58 e_KE.th_Humidity 61.80
2017-07-04 15:45:08 mode enable
2017-07-06 20:04:21 state Aus
2017-07-06 21:38:45 wait_timer no timer
condition:
0 ReadingValDoIf($hash,'KE.th','Humidity') >= 65
1 ReadingValDoIf($hash,'HR.th','Humidity') >= 65 and InternalDoIf($hash,'HR.tk','STATE') eq "open"
2 ReadingValDoIf($hash,'HR.th','Humidity') >= 65 and InternalDoIf($hash,'HR.tk','STATE') eq "closed"
3 ReadingValDoIf($hash,'KE.th','Humidity') <= 60 and ReadingValDoIf($hash,'HR.th','Humidity') <= 60
4 ReadingValDoIf($hash,'KE.th','Humidity') <= 60 and InternalDoIf($hash,'HR.tk','STATE') eq "closed"
devices:
0 KE.th
1 HR.th HR.tk
2 HR.th HR.tk
3 KE.th HR.th
4 KE.th HR.tk
all KE.th HR.th HR.tk
do:
0:
0 set KE.sw on
1:
0 set KE.sw on
2:
0 ({ DebianMail('Klaus.Voigt@Online.de', 'FHEM Holzraum Luftfeuchte zu hoch !!',' Luftfeuchte Holzraum: '.ReadingsVal('HR.th','Humidity','').' % \n Luftfeuchte Keller: '.ReadingsVal('KE.th','Humidity','').' % \n\n Bitte Türe zum Holzkeller öffnen')})
3:
0 set KE.sw off
4:
0 set KE.sw off
5:
helper:
globalinit 1
last_timer 0
sleeptimer -1
internals:
1 HR.tk:STATE
2 HR.tk:STATE
4 HR.tk:STATE
all HR.tk:STATE
itimer:
readings:
0 KE.th:Humidity
1 HR.th:Humidity
2 HR.th:Humidity
3 KE.th:Humidity HR.th:Humidity
4 KE.th:Humidity
all KE.th:Humidity HR.th:Humidity
regexp:
all:
state:
STATE:
Attributes:
alias Entfeuchter Steuerung Keller
cmdState Keller > 65% ==> An | Holzraum > 65 % + Türe offen ==> An | Holzraum > 65 % + Türe zu ==> Alamierung | Aus | Aus
event-on-change-reading no
icon message_attention
repeatcmd 0:0:43200:0:0
room Keller
wait 0:300:300:0:0
Habe ich da was verpasst ?
Ich füge mal ein Bild mit ein ...
Wenn das DOIF das erste Mal nach FHEM restart den Status ändert, passt der ausgegebene Status wieder (lt. cmdState)
Wenn ich über das Icon drüber ziehe, zeigt er mir auch "Aus" an ....
bis dann
Klaus
Dieses Verhalten wird durch FHEMWEB erzeugt, die Zustände on,off,An,Aus werden automatisch mit entsprechenden Icons versehen.
Zitat von: Ellert am 07 Juli 2017, 07:42:42
Dieses Verhalten wird durch FHEMWEB erzeugt, die Zustände on,off,An,Aus werden automatisch mit entsprechenden Icons versehen.
Danke erstmal, kann ich das steuern ? War vor ein paar Wochen jedenfalls noch nicht so ...
Ja, nimm AN,AUS.
was angezeigt wird steuerst du über das devStateIcon attribut.