This doesn't seem to work since the term is not in dict...
- Code: Select all
time= sensor.states["timeOfLastChange"]
time= sensor.states["timeOfLastChange"]
time = indigo.devices[12345678].lastChanged
# or
time = indigo.devices[12345678].lastSuccessfulComm
indigo.server.log(u'RFXCOM Device: {}'.format(indigo.devices[12345678]))
dev =indigo.devices[719674580]
indigo.server.log(unicode(dev.lastChanged))
davinci wrote:Unfortunately it doesn't work either:
AttributeError: 'Dict' object has no attribute 'lastSuccessfulComm'
AttributeError: 'Dict' object has no attribute 'lastChanged'
dev =indigo.devices[719674580]
indigo.server.log(unicode(dev.lastChanged))
Users browsing this forum: No registered users and 2 guests