lastupdate and sunset
Posted: Sunday 03 December 2017 16:27
I want to check if a device was updated before today's sunset, tried:
domoticz.devices('Motion sensor living room').lastUpdate.matchesRule('before sunset')
But to no avail..
another option I came up with is to compare the lastUpdate dateTime of the device with the dateTime of sunset, but how can I check today's sunset dateTime?
Tried:
domoticz.time.sunset.raw
domoticz.sunset.raw
But they all give errors.. any thoughts?
domoticz.devices('Motion sensor living room').lastUpdate.matchesRule('before sunset')
But to no avail..
another option I came up with is to compare the lastUpdate dateTime of the device with the dateTime of sunset, but how can I check today's sunset dateTime?
Tried:
domoticz.time.sunset.raw
domoticz.sunset.raw
But they all give errors.. any thoughts?