Hallo zusammen,
ich bin noch recht neu was Fhem angeht.
Im log habe ich alle paar Minuten diesen Eintrag:
2017.11.18 07:02:25 3: CUL_HM set Schalter_Funksteckdose_A off
2017.11.18 07:02:25 3: CUL_HM set Schalter_Funksteckdose_C off
2017.11.18 07:07:25 3: CUL_HM set Schalter_Funksteckdose_A off
2017.11.18 07:07:25 3: CUL_HM set Schalter_Funksteckdose_C off
2017.11.18 07:12:25 3: CUL_HM set Schalter_Funksteckdose_A off
2017.11.18 07:12:25 3: CUL_HM set Schalter_Funksteckdose_C off
2017.11.18 07:15:24 3: CUL_HM set Schalter_Funksteckdose_A off
2017.11.18 07:15:24 3: CUL_HM set Schalter_Funksteckdose_C off
2017.11.18 07:17:25 3: CUL_HM set Schalter_Funksteckdose_A off
2017.11.18 07:17:25 3: CUL_HM set Schalter_Funksteckdose_C off
2017.11.18 07:22:25 3: CUL_HM set Schalter_Funksteckdose_A off
2017.11.18 07:22:25 3: CUL_HM set Schalter_Funksteckdose_C off
2017.11.18 07:27:19 3: CUL_HM set Schalter_Funksteckdose_A off
2017.11.18 07:27:19 3: CUL_HM set Schalter_Funksteckdose_C off
2017.11.18 07:27:25 3: CUL_HM set Schalter_Funksteckdose_A off
2017.11.18 07:27:25 3: CUL_HM set Schalter_Funksteckdose_C off
2017.11.18 07:32:25 3: CUL_HM set Schalter_Funksteckdose_A off
2017.11.18 07:32:25 3: CUL_HM set Schalter_Funksteckdose_C off
Kann der Befehl hinter DOELSEIF nicht erst ausgeführt werden wenn LichtWetter:twilight] > 40 erfüllt ist ?
Gruß
Internals:
DEF ([LichtWetter:twilight] < 50 and [?alarm_scharf] eq "on") (set Schalter_Funksteckdose_A on,set Schalter_Funksteckdose_C on) DOELSEIF ([LichtWetter:twilight] > 40 or [?alarm_scharf] eq "off" and [?dimmer_wohnzimmer] eq "off" ) (set Schalter_Funksteckdose_A off,set Schalter_Funksteckdose_C off)
NAME TV_simulation
NR 188
NTFY_ORDER 50-TV_simulation
STATE cmd_2
TYPE DOIF
READINGS:
2017-11-18 10:37:25 Device LichtWetter
2017-11-18 10:37:25 cmd 2
2017-11-18 10:37:25 cmd_event LichtWetter
2017-11-18 10:37:25 cmd_nr 2
2017-11-18 10:37:25 e_LichtWetter_twilight 100
2017-11-18 10:37:25 state cmd_2
2017-11-18 09:27:45 wait_timer no timer
condition:
0 ReadingValDoIf($hash,'LichtWetter','twilight') < 50 and InternalDoIf($hash,'alarm_scharf','STATE') eq "on"
1 ReadingValDoIf($hash,'LichtWetter','twilight') > 40 or InternalDoIf($hash,'alarm_scharf','STATE') eq "off" and InternalDoIf($hash,'dimmer_wohnzimmer','STATE') eq "off"
devices:
0 LichtWetter
1 LichtWetter
all LichtWetter
do:
0:
0 set Schalter_Funksteckdose_A on,set Schalter_Funksteckdose_C on
1:
0 set Schalter_Funksteckdose_A off,set Schalter_Funksteckdose_C off
2:
helper:
event azimuth: 156.13,elevation: 15.42,twilight: 100,twilight_weather: 100,compasspoint: southeast
globalinit 1
last_timer 0
sleeptimer -1
timerdev LichtWetter
timerevent azimuth: 156.13,elevation: 15.42,twilight: 100,twilight_weather: 100,compasspoint: southeast
triggerDev LichtWetter
timerevents:
azimuth: 156.13
elevation: 15.42
twilight: 100
twilight_weather: 100
compasspoint: southeast
timereventsState:
azimuth: 156.13
elevation: 15.42
twilight: 100
twilight_weather: 100
compasspoint: southeast
triggerEvents:
azimuth: 156.13
elevation: 15.42
twilight: 100
twilight_weather: 100
compasspoint: southeast
triggerEventsState:
azimuth: 156.13
elevation: 15.42
twilight: 100
twilight_weather: 100
compasspoint: southeast
internals:
0 alarm_scharf:STATE
1 alarm_scharf:STATE dimmer_wohnzimmer:STATE
all alarm_scharf:STATE dimmer_wohnzimmer:STATE
itimer:
readings:
0 LichtWetter:twilight
1 LichtWetter:twilight
all LichtWetter:twilight
regexp:
0:
1:
all:
state:
STATE:
trigger:
Attributes:
do always
room Alarmanlage
Zitat von: achim60 am 18 November 2017, 10:52:19
Kann der Befehl hinter DOELSEIF nicht erst ausgeführt werden wenn LichtWetter:twilight] > 40 erfüllt ist ?
....
2017-11-18 10:37:25 e_LichtWetter_twilight 100
....
twilight: 100
....
100 ist > 40
also ist die Bedingung erfüllt...
stimmt, somit löst er dann immer aus.
jetzt sollte es klappen ;D
([LichtWetter:twilight] < 50 and [?alarm_scharf] eq "on") (set Schalter_Funksteckdose_A on,set Schalter_Funksteckdose_C on) DOELSEIF ([LichtWetter:twilight] > 50 and [?alarm_scharf] eq "on" and [?dimmer_wohnzimmer] eq "off" ) (set Schalter_Funksteckdose_A off,set Schalter_Funksteckdose_C off)