FHEM Forum

FHEM => Automatisierung => DOIF => Thema gestartet von: Paul Guijt am 08 März 2022, 10:32:55

Titel: DOIF Watchdog
Beitrag von: Paul Guijt am 08 März 2022, 10:32:55
Hi everyone,

In my DOIF I have
DOELSEIF ( [KaKuTuinkamer] eq "off"
        && [PCPaul.WOL:isRunning]  eq "false"
        && [Surface.WOL:isRunning] eq "false"
        && [PCSonja.WOL:isRunning] eq "false" ) ( set BkTkPlafond off )


These computers tend to fire up occasionally and briefly, triggering the DOELSEIF.
How would you filter out these short episodes? I am thinking about some kind of watchdog construction, but can't get how.

Sorry, I have difficulty understanding the German documentation.

Paul
Titel: Antw:DOIF Watchdog
Beitrag von: Otto123 am 08 März 2022, 11:29:24
Hi Paul,

what should be the primary trigger of the DOIF? The KaKuTuinkamer ?
Then try it in this way
DOELSEIF ( [KaKuTuinkamer] eq "off"
        && [?PCPaul.WOL:isRunning]  eq "false"
        && [?Surface.WOL:isRunning] eq "false"
        && [?PCSonja.WOL:isRunning] eq "false" ) ( set BkTkPlafond off )


The ? prevent from triggering the DOIF, only the value of the Reading is evaluated if someone else is triggering the DOIF

Otto
Titel: Antw:DOIF Watchdog
Beitrag von: Paul Guijt am 06 April 2022, 09:22:51
Thanks!