tims Posted December 20, 2016 Share Posted December 20, 2016 Hi guys, I am struggling to figure something out. So normal switches can be programmed to toggle under the connections tab for custom light scenes but I don't see how this can be done with custom buttons but I heard it can be done. If u look for custom buttons under connections there is no option to connect a custom button to toggle a scene. Anyone got any ideas here? Thanks! Link to comment Share on other sites More sharing options...
msgreenf Posted December 20, 2016 Share Posted December 20, 2016 you experience buttons instead Link to comment Share on other sites More sharing options...
Cyknight Posted December 20, 2016 Share Posted December 20, 2016 I'd go with experience buttons these days too, but for custom buttons you would simply program it to send a toggle command - as you mentioned, there's no connection option, but basic programming for it is certainly available. Link to comment Share on other sites More sharing options...
tims Posted December 20, 2016 Author Share Posted December 20, 2016 I will try experience buttons. I did actually custom program for the buttons but with the custome buttons u can either activate or deactivate a scene not toggle. This makes me have to create an off function for each custom button group like music, room Etc So is there a sepecific experience button group recommended or is there just one thanks guys! Link to comment Share on other sites More sharing options...
msgreenf Posted December 20, 2016 Share Posted December 20, 2016 32 minutes ago, tims said: I will try experience buttons. I did actually custom program for the buttons but with the custome buttons u can either activate or deactivate a scene not toggle. This makes me have to create an off function for each custom button group like music, room Etc So is there a sepecific experience button group recommended or is there just one thanks guys! there are a bunch - all work the same just different graphics. Just pick the one with the most fitting graphics for your use case Link to comment Share on other sites More sharing options...
Cyknight Posted December 20, 2016 Share Posted December 20, 2016 Welll...some have extra option. I'd use the RGB bulb one and only use white and off. As for programming a toggle, there is no direct 'toggle' programming option, but you use a variable and/or if statements to accomplish it. WHEN custom button is pressed IF 'lighting scene' is active deactivate 'lighting scene' stop IF 'lighting scene' is inactive activate 'lighting scene' Is my preferred one as it directly depends on the state of the scene (in essence using it's tracking to act accordingly) Link to comment Share on other sites More sharing options...
tims Posted December 20, 2016 Author Share Posted December 20, 2016 Great suggestion. I had not thought about that. Thanks! Link to comment Share on other sites More sharing options...
tims Posted January 21, 2017 Author Share Posted January 21, 2017 What section do I write the code in? sorry, still new at this part Link to comment Share on other sites More sharing options...
VINCELdUB Posted January 21, 2017 Share Posted January 21, 2017 Wow typed 3,000 words on an iPhone. I am impressed..... Hope these point you in the right direction tims! Happy Automating! Link to comment Share on other sites More sharing options...
tims Posted January 21, 2017 Author Share Posted January 21, 2017 Awesome! Thanks. Tim Link to comment Share on other sites More sharing options...
SMHarman Posted January 21, 2017 Share Posted January 21, 2017 Put it in a macro and have the button run the macro Link to comment Share on other sites More sharing options...
eddy.trochez Posted January 21, 2017 Share Posted January 21, 2017 9 hours ago, VINCELdUB said: Wow typed 3,000 words on an iPhone. I am impressed..... Hope these point you in the right direction tims! Happy Automating! Yep, this is how you do it. You can also toggle between two scenes, with the scene listed at the bottom being the main scene. For example, TV Scene and TV Pause Scene. When none is selected, pressing the button will activate the TV Scene. Pressing it again will activate TV Pause. Link to comment Share on other sites More sharing options...
tims Posted January 21, 2017 Author Share Posted January 21, 2017 So just curious. The stop command stops the 2nd command from activating actually. What I want is toggle the the light scene but it stop regardless on that command? here is what I have now Link to comment Share on other sites More sharing options...
msgreenf Posted January 21, 2017 Share Posted January 21, 2017 You don't have your if Commands indented properly so everything happens regardless if the clause is met or. Not. Drag the lines below on top of the question mark to properly nest the ifs Sent from my Nexus 6P using Tapatalk Link to comment Share on other sites More sharing options...
tims Posted January 21, 2017 Author Share Posted January 21, 2017 ah...... Awesome... I did not think abut that. Thanks! Link to comment Share on other sites More sharing options...
VINCELdUB Posted January 21, 2017 Share Posted January 21, 2017 So just curious. The stop command stops the 2nd command from activating actually. What I want is toggle the the light scene but it stop regardless on that command? here is what I have now Take a closer look at the picture I sent you. Your alignment of the items is correct. However you need to nest the green arrows under the if statements. Drag the top green arrow into the top ? And hen drag the stop arrow into it next. Then drag the bottom green arrow into the bottom ? And that is how an if statement or "conditional" work. Now it will ask if the first statement is true. If it is it will read the items inside that statement. If it is not true it will skip to the next if statement. So the stop command will only activate if the top statement is true Happy Automating! Link to comment Share on other sites More sharing options...
VINCELdUB Posted January 21, 2017 Share Posted January 21, 2017 Well, this almost feels like a chat room. Replying instantaneouslyand on top of each other. Have a great day guys! Happy Automating! Link to comment Share on other sites More sharing options...
tims Posted January 22, 2017 Author Share Posted January 22, 2017 You guys are great. That little suggestion was all that was missing and helped me. Just for the future and anyone else reading this just drag and drop the arrow onto the question mark or the line to see the arrow change to indent or not. thanks again guys! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.