JGLI Posted February 20, 2017 Share Posted February 20, 2017 So I have a keypad with six buttons that don't directly control lights, they are used to trigger macros/events for Sabbath light and house programming. They are Shabbat 10:30 11:00 11:30 12:30 Guest If you press Shabbat all sorts of variables/macros run, and the LED for Shabbat goes to "On" (and the default of 11:00 is chosen - this is for when lights start going off). What I can't figure out is how to have a second press of the button run Macros to take the home out of "Shabbat" mode. Here is a screen shot of how the "on" code works. I want to be able to just press Shabbat again to turn it off rather than use a button for "Off". SecondTapOff.tiff Link to comment Share on other sites More sharing options...
JGLI Posted February 20, 2017 Author Share Posted February 20, 2017 BTW, I already fixed the "execute shabbat" twice issue in the screen shot. Link to comment Share on other sites More sharing options...
msgreenf Posted February 20, 2017 Share Posted February 20, 2017 You should be using the single and double tap to do this. Single tap = on, double tap = off. Or you can add some boolean code to the tap if shabbat = true turn off Link to comment Share on other sites More sharing options...
knowitall Posted February 20, 2017 Share Posted February 20, 2017 @alanchow didn't you make a driver exactly for this? Link to comment Share on other sites More sharing options...
eddy.trochez Posted February 20, 2017 Share Posted February 20, 2017 Create a variable, "Shabbat" In programming select the variable "Shabbat": When variable Shabbat changes If variable Shabbat is true Copy and paste the commands that you currently have on the press of the button If variable Shabbat is false Create the commands that you want when turning Shabbat off At the button When Mud Room-Pantry Left Shabbat button is pressed Toggle variable Shabbat Link to comment Share on other sites More sharing options...
msgreenf Posted February 20, 2017 Share Posted February 20, 2017 @alanchow didn't you make a driver exactly for this? He is using it Sent from my STV100-1 using Tapatalk Link to comment Share on other sites More sharing options...
knowitall Posted February 20, 2017 Share Posted February 20, 2017 22 minutes ago, msgreenf said: He is using it Sent from my STV100-1 using Tapatalk Oh did not realize. Link to comment Share on other sites More sharing options...
JGLI Posted February 20, 2017 Author Share Posted February 20, 2017 My installer hasn't yet installed the driver that Alan wrote. Also, there are times (particularly in the summer) when you "bring in Shabbat" early. Thanks for the tips, I'll write the boolean code. I was hoping it was built in somewhere. Link to comment Share on other sites More sharing options...
JGLI Posted February 20, 2017 Author Share Posted February 20, 2017 Guys, is there a way to cut and paste a group of code (i.e., you have a chunk of code linked to a button like that in the screenshot in the original post, but you want to move it into a macro). Link to comment Share on other sites More sharing options...
msgreenf Posted February 20, 2017 Share Posted February 20, 2017 right click and copy Link to comment Share on other sites More sharing options...
JGLI Posted February 20, 2017 Author Share Posted February 20, 2017 5 minutes ago, msgreenf said: right click and copy But how do you select more than one line of code to copy? Link to comment Share on other sites More sharing options...
Thatguy230 Posted February 20, 2017 Share Posted February 20, 2017 1 hour ago, JGLI said: But how do you select more than one line of code to copy? It will copy all. Link to comment Share on other sites More sharing options...
Matt Lowe Posted February 20, 2017 Share Posted February 20, 2017 if you just want it in a single button toggle press format. you need to add another variable. press program should look like this if variable is true do x if variable is false do y toggle variable Link to comment Share on other sites More sharing options...
alanchow Posted February 20, 2017 Share Posted February 20, 2017 Our Shabbat driver inputs your latitude, longitude and country code into the hebcal webservice. this returns when candle lighting and havdalah occurs exactly for that period (it shifts at different times of the year eg over here it's after 8). it does the same for Jewish holidays that have similar requirements. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.