Welcome to Smart Home Forum by FIBARO
as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.
As a member you can:
- Start new topics and reply to others
- Follow topics and users to get email updates
- Get your own profile page and make new friends
- Send personal messages
- ... and learn a lot about our system!
Smart Home Forum by FIBARO Team
I found some LUA code for VERA that would run a scene only if the light level is below a user set threshold :
local LOW_LEVEL = 20 -- the light level threshold for night
local DEVICE_NO = 33 -- the light sensor device number
local LS_SID = "urn:micasaverde-com:serviceId:LightSensor1" -- the LightSensor service ID
local currentLevel = luup.variable_get (LS_SID, "CurrentLevel", DEVICE_NO) or 0
currentLevel = tonumber(currentLevel)
if currentLevel <= LOW_LEVEL then
Can someone tell me how can I implement this function for HC2?
Link to comment
Share on other sites
10 answers to this question
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.