walli545 / ioBroker.time-switch

Time based switching adapter for ioBroker.
MIT License
17 stars 8 forks source link

time.switch does not switch at all #155

Open ch90045 opened 2 years ago

ch90045 commented 2 years ago

Time-switch was working for quite a while and without obvious reason that changed. I got e.g. following defined:

switch on at 6:45

looking at the logs for that day:

2022-04-26 06:43:51.976 - ESC[32minfoESC[39m: fhem.0 (7535) event FHEM: BWM Erdgeschoss Homematic | CUL_HM Bewegungsmelder motion | value > fhem.0.Bewegungsmelder.state_value 2 2022-04-26 06:43:51.999 - ESC[32minfoESC[39m: javascript.0 (24696) script.js.BWMs.Bewegung_melden.Bewegungen: Bewegung im Flur, Helligkeit 9543 2022-04-26 06:43:56.615 - ESC[32minfoESC[39m: javascript.0 (24696) script.js.BWMs.BWM_Küche_2: true 2022-04-26 06:43:56.616 - ESC[32minfoESC[39m: javascript.0 (24696) script.js.BWMs.BWM_Küche_2: 10001 2022-04-26 06:43:56.617 - ESC[32minfoESC[39m: javascript.0 (24696) script.js.BWMs.Bewegung_melden.Bewegungen: Bewegung im Küche, Helligkeit 10001 2022-04-26 06:44:08.890 - ESC[32minfoESC[39m: fhem.0 (7535) event FHEM: BWM Erdgeschoss Homematic | CUL_HM Bewegungsmelder noMotion | state > fhem.0.Bewegungsmelder.state noMotion 2022-04-26 06:44:08.891 - ESC[32minfoESC[39m: fhem.0 (7535) event FHEM: BWM Erdgeschoss Homematic | CUL_HM Bewegungsmelder noMotion | boolean > fhem.0.Bewegungsmelder.state_boolean false 2022-04-26 06:44:08.891 - ESC[32minfoESC[39m: fhem.0 (7535) event FHEM: BWM Erdgeschoss Homematic | CUL_HM Bewegungsmelder noMotion | value > fhem.0.Bewegungsmelder.state_value 0 2022-04-26 06:44:08.956 - ESC[32minfoESC[39m: javascript.0 (24696) script.js.BWMs.Bewegung_melden.Bewegungen: Keine Bewegung im Flur, Helligkeit 9543 2022-04-26 06:44:13.824 - ESC[32minfoESC[39m: fhem.0 (7535) event FHEM: Patricia.Wandthermostat | CUL_HM Patricia.Wandthermostat T: 22.0 desired: 5.0 | state > fhem.0.Patricia_Wandthermostat.state T: 22.0 desired: 5.0 2022-04-26 06:44:34.898 - ESC[32minfoESC[39m: fhem.0 (7535) event FHEM: Bad_Oben.Wandthermostat | CUL_HM Bad_Oben.Wandthermostat T: 22.7 desired: 5.0 | state > fhem.0.Bad_Oben_Wandthermostat.state T: 22.7 desired: 5.0 2022-04-26 06:44:52.703 - ESC[32minfoESC[39m: fhem.0 (7535) event FHEM: Bad_Unten.Wandthermostat | CUL_HM Bad_Unten.Wandthermostat T: 23.2 desired: 5.0 | state > fhem.0.Bad_Unten_Wandthermostat.state T: 23.2 desired: 5.0 2022-04-26 06:44:56.708 - ESC[32minfoESC[39m: javascript.0 (24696) script.js.BWMs.Bewegung_melden.Bewegungen: Keine Bewegung im Küche, Helligkeit 10001 2022-04-26 06:45:00.132 - ESC[32minfoESC[39m: host.pibroker instance system.adapter.daswetter.0 started with pid 1637 2022-04-26 06:45:02.605 - ESC[32minfoESC[39m: daswetter.0 (1637) starting. Version 3.0.9 in /opt/iobroker/node_modules/iobroker.daswetter, node: v14.19.1, js-controller: 4.0.21 2022-04-26 06:45:02.713 - ESC[32minfoESC[39m: fhem.0 (7535) event FHEM: Bad_Unten.Wandthermostat | CUL_HM Bad_Unten.Wandthermostat T: 23.2 desired: 5.0 | state > fhem.0.Bad_Unten_Wandthermostat.state T: 23.2 desired: 5.0 2022-04-26 06:45:03.817 - ESC[32minfoESC[39m: daswetter.0 (1637) Terminated (ADAPTER_REQUESTED_TERMINATION): All data handled, adapter stopped until next scheduled moment 2022-04-26 06:45:04.338 - ESC[32minfoESC[39m: daswetter.0 (1637) cleaned everything up... 2022-04-26 06:45:04.354 - ESC[32minfoESC[39m: host.pibroker instance system.adapter.daswetter.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION) 2022-04-26 06:45:31.168 - ESC[32minfoESC[39m: fhem.0 (7535) event FHEM: Galerie.Wandthermostat | CUL_HM Galerie.Wandthermostat T: 22.0 desired: 5.0 | state > fhem.0.Galerie_Wandthermostat.state T: 22.0 desired: 5.0 2022-04-26 06:45:36.059 - ESC[32minfoESC[39m: javascript.0 (24696) script.js.BWMs.BWM_Küche_2: true 2022-04-26 06:45:36.060 - ESC[32minfoESC[39m: javascript.0 (24696) script.js.BWMs.BWM_Küche_2: 7782 2022-04-26 06:45:36.060 - ESC[32minfoESC[39m: javascript.0 (24696) script.js.BWMs.Bewegung_melden.Bewegungen: Bewegung im Küche, Helligkeit 7782 2022-04-26 06:45:38.885 - ESC[32minfoESC[39m: javascript.0 (24696) script.js.Notification.Sonos_Patricia: telegram: Sonos bei Patrica startet 2022-04-26 06:45:41.261 - ESC[32minfoESC[39m: fhem.0 (7535) event FHEM: Rebecca.Wandthermostat | CUL_HM Rebecca.Wandthermostat T: 22.7 desired: 5.0 | state > fhem.0.Rebecca_Wandthermostat.state T: 22.7 desired: 5.0 2022-04-26 06:45:52.330 - ESC[32minfoESC[39m: fhem.0 (7535) event FHEM: Wohnzimmer.Wandthermostat | CUL_HM Wohnzimmer.Wandthermostat T: 21.5 desired: 5.0 | state > fhem.0.Wohnzimmer_Wandthermostat.state T: 21.5 desired: 5.0 2022-04-26 06:45:52.393 - ESC[32minfoESC[39m: fhem.0 (7535) event FHEM: Schlafzimmer.Wandthermostat | CUL_HM Schlafzimmer.Wandthermostat T: 21.7 desired: 12.0 | state > fhem.0.Schlafzimmer_Wandthermostat.state T: 21.7 desired: 12.0

There is no entry for time-switch at all.

Looking at the entire log - time-switch kicks in for the first time at 16:00

2022-04-26 15:58:33.887 - info: host.pibroker stopInstance system.adapter.time-switch.0 (force=false, process=false) 2022-04-26 16:00:47.368 - info: host.pibroker instance system.adapter.time-switch.0 started with pid 2333 2022-04-26 16:00:51.125 - debug: time-switch.0 (2333) Redis Objects: Use Redis connection: 127.0.0.1:9001 2022-04-26 16:00:51.378 - debug: time-switch.0 (2333) Objects client ready ... initialize now 2022-04-26 16:00:51.448 - debug: time-switch.0 (2333) Objects create System PubSub Client 2022-04-26 16:00:51.450 - debug: time-switch.0 (2333) Objects create User PubSub Client 2022-04-26 16:00:51.651 - debug: time-switch.0 (2333) Objects client initialize lua scripts 2022-04-26 16:00:51.685 - debug: time-switch.0 (2333) Objects connected to redis: 127.0.0.1:9001 2022-04-26 16:00:51.691 - silly: time-switch.0 (2333) redis psubscribe cfg.o.system.user. 2022-04-26 16:00:51.787 - silly: time-switch.0 (2333) redis psubscribe cfg.o.enum. 2022-04-26 16:00:51.808 - silly: time-switch.0 (2333) objectDB connected 2022-04-26 16:00:51.815 - debug: time-switch.0 (2333) Redis States: Use Redis connection: 127.0.0.1:9000 2022-04-26 16:00:51.868 - debug: time-switch.0 (2333) States create System PubSub Client

how can i fix this? What else is needed. IOB is up-to-date in all respects.

walli545 commented 2 years ago

Hi, can you enable debug logging for the time-switch adapter? I have to say that I didn't really have time for development during the last months, but I intend to do something during the next weeks. Maybe there were changes in ioBroker that broke some functionality, I am not sure… Will come back to you!