Does anyone have a code snippet I could have that will turn on lights based on the light level from the sensor? I have looked thru the wiki and w/o something I can use, I am having trouble figuring out the coding.
Thanks
Bill
Does anyone have a code snippet I could have that will turn on lights based on the light level from the sensor? I have looked thru the wiki and w/o something I can use, I am having trouble figuring out the coding.
Thanks
Bill
The current light level for the device with the device number devnum is:
luup.variable_get(“urn:micasaverde-com:serviceId:LightSensor1”,“CurrentLevel”,devnum)
Please note that devnum must be the device number of the light sensor, not the
device number of the parent device.
Best Home Automation shopping experience. Shop at Ezlo!
© 2024 Ezlo Innovation, All Rights Reserved. Terms of Use | Privacy Policy | Forum Rules