I’m trying to store&manipulate SiteSensor’s results in Reactor expressions/variables and essentially trying the following code:
local result = getstate( 310,"urn:toggledbits-com:serviceId:SiteSensor1", "FailedSince" )
if (result == nil) then
-- nothing
else
strftime("%X %x", result)
end
I might be obvious why this fails, but what would be the best way to achieve this in Reactor?