Welcome to Smart Home Forum by FIBARO
Dear Guest,
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!
Regards,
Smart Home Forum by FIBARO Team
Question
Lockzi 1
Hi,
I got tired of having to add devices to a block scene to turn off...
Therefore I am trying to loop through all devices with LUA and send them turnOff.
The loop works fine, I get all ID: s, but the command "turnOff" is not working as they are still lit.
Please login or register to see this code.
Debug output:
Please login or register to see this code.
Any help to why "fibaro:call(i, "turnOff");" does not work is appreciated!
Regards,
Lockzi
[ Added: 2014-02-02, 17:24 ]
So, it actually worked. But only for dimmers. Relays are not even identified even though they have the Controlled Device: Lightning under advanced settings.
The reason is that for relays the ControlledTypeID is 2, and not 23 (as for dimmers...)
[ Added: 2014-02-02, 17:33 ]
Allright,
so final code that's working!
Please login or register to see this code.
You could easily reverse it by changing turnOff to turnOn.
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.