Since im new yo photon I want to make this kind off script to reset a variable.
1. when the wave interface have not received any command from device in x sec then reset variable x
this is the command I want to check for.
- Code: Select all
0x01 0x0C 0x00 0x04 0x00 0x19 0x06 0x60 0x06 0x01 0x30 0x03 0xFF 0x43
I found this script in the wiki but how do I put it together to the z wave command instead. it is important that it is the code form above since the
z-wave device is not updating its status like normal in the UI
scipt from wiki:
- Code: Select all
Turn on a light only if it's been off for longer than 1 minute:
from datetime import datetime
lamp = indigo.devices[91776575] # "Hallway light"
timeDelta = datetime.now() - lamp.lastChanged
if not lamp.onState and timeDelta.seconds > 60:
indigo.device.turnOn(91776575)