Closed UrsusS closed 11 months ago
Could you try getting the items with get_item
(as described in the docs)?
winter_sleep_item = SwitchItem.get_item("swi_Mower_Wintersleep")
Thanks a lot for your sharp eyes. That was the point, now the consequences in the processes, which seemed to be so illogical, should be gone. Unfortunately, it is valid code, but not working. Sorry for having disturbed you.
I have at least one switch item where the state in HABApp is deviating from the one in OH after system start.
The startlevel of OH is 100. Several restarts of HABApp won't help.
The item is not found in the HABApp_events.log but in events.log (after restart of OH).
2023-07-18 18:02:22.511 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'swi_Mower_Wintersleep' changed from NULL to OFF
results in
2023-07-18 18:17:40.030 [INFO ] [Rule.TestEnv ] - TestRuleContent: None