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
xantony 0
Hello everyone,
I am trying to build a remote controller for my HC2, a simple one using simple api commands into irule. My goal is to, simply, switch light on and off and run and sto scenes. I am not into coding at all and i am just learning what i need to get where i want to. The question is simple ( I guess) : up to now i succeded in making my button to turn on my lights (callAction/api/?deviceID=55&name=turnOn), at the same time i realized i have to make a second button to turn them off !!! Simple question fo the experts : what command line should i use to make a toggle command on my buttons to ON/OFF a device or a scene each time button is pressed???
thanks for your help.
Antonio
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.