Closed pannal closed 2 years ago
These are just the logs of the start of the Simulation. If all your lights were off 7 days ago at the same time, it will be off after simulation starts.
I can see in your log that your light light.lichtbuero1
is supposed to be turned on at 2021-09-28T16:48:43.360041+00:00`.
Did it?
OK, the off states seem right. I'm guessing when those trigger, the next ones will get queued.
The one I'm curious about is the "unavailable" state, though. Should this be a state a lamp/switch uses in this presence simulation?
The simulator won't actually do anything on this 'unavailable' state.
In the method update_entity
(in __init__.py
), you see that the call to the service light.turn_on
or off
will be done only if the state of the entity to replicate is on of off. If it is neither on nor off, a debug message will be written in the log and the simulator will wait the next event.
Hey,
Thank you for this great idea. I've been trying the script and I've noticed that it only or mostly seems to honor "off" states; it also seems to honor "unavailable" states, which I wouldn't expect:
Did I just not wait long enough for it to show scheduled "on" states?