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
johnd 0
Hi all!
I am a bit of a newbee to LUA so have been reading/stealing a lot of good things from this Forum. Thanks to all contributors for that!
I have just installed my garage door to be controlled by a Fibaro switch. It works great but as I have no sight in HC2 to whether the garage door is open or closed (it is a simple trigger open/trigger close door) I would like to disable the device with the start of the virtual device Away/Holiday (that also sets a predefined variable.). By disabling the garage door device I won't have to worry about accidentally opening the garage door when away.
On the developer forum I did find some code that should be able to this but can't seem to get it to work:
function Device:setEnabled(true)
For one, I don't know what to fill in for Device. ID does not seem to work.
The system also accepts the code below but I does not seem to do anything.
fibaro:call(67, 'setEnabled','False')
Can someone tell me what I am doing wrong? Thanks!
2 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.