An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Hi Jean-Pierre.
"actions": { "toggle": { "description" : "Turn the lamp on or off" } }, You can type ON or OFF in the input gap of your action and press the run button. You will see that the action appears in the Call History section with the status pending.
"actions": { "toggle": { "description" : "Turn the lamp on or off" } },
The last thing you need to do is define the logic behind that action. In this example, the function code will manage that every time the run button in the action is pressed, based on the input data (ON or OFF) a request to the light needs to be made to actually turn it ON/OFF.
In the end, the actions interface will allow you to have a log history of the actions performed as well as an easy way to trigger the actions.
I hope you find this information useful, and thanks for your feedback
Thank you very much Paloma for these explanations, I made a conclusive test.