Right now i have 2 buttons that is presented as S_SCENE_CONTROLLER
Code: Select all
present(CHILD_ID_3, S_SCENE_CONTROLLER); // Present button
present(CHILD_ID_4, S_SCENE_CONTROLLER); // Present button
At first i tried to use this:
Code: Select all
MyMessage msg1(CHILD_ID_3,V_SCENE_ON); // Added message for buttons
MyMessage msg2(CHILD_ID_4,V_SCENE_ON); // Added message for buttons
The problem is that i can only activate a scene once, so i edited my sketch to use these messages:
Code: Select all
MyMessage msg1(CHILD_ID_3,V_SCENE_ON); // Added message for buttons
MyMessage msg2(CHILD_ID_4,V_SCENE_OFF); // Added message for buttons
In domoticz its no need to deactivate scenes since turning a scene off does nothing (groups can be tuned on and off).
How do i add a V_SCENE_OFF to the same button that sends V_SCENE_ON?