I am trying to recall the historic state of a dimmer at a point in time
I log the time I want to recall by:
var time_play_started = now
I then (after another event has occurred) want to check the dimmer historic state back at the time captured by:
if(Lounge_Dimmer.historicState(time_play_started) == 100) {
sendCommand(Lounge_Dimmer,ON)
}
I keep getting nulls in the error log
yet I know that the item is correct because
sendCommand(Lounge_Dimmer, ON) - on its own works
Persistence is also working an I can see values in habmin
can anyone help me?
Do I need to import some other libraries?
Does there need to be a value that matches exactly to the time_play_started variable in the persistence data, or does it find the closest one?