Everything posted by johnjces
-
Simple logic not working. Keypad and X10
SOLVED! It appears that sending direct X-10 commands, i.e., Send X10 'A2/On (3)' doesn't work too well. What works great is the A10-X10 module and assigning A1 to the X10 module you want to control. So now, my X10 device A2 has a name of BelowCabs. So, doing: If Status 'Kitchen Switch / Under Cabinets - X10' is On Then Set 'BelowCabs' On Else Set 'BelowCabs' Off ... works perfectly and as it should. Setting all devices in this way allows everything to work great! Easy peasy! Simple logic. Just don't use Send X10 'A2/On (3)' John
-
Simple logic not working. Keypad and X10
@Oberkc, you are correct. Simple on/off of a couple lights controlled by X10 hardware. There are no known X10 codes assigned to the Swithclinc keypad. The events (programs) in HouseLinc work as expected. Remember, the Houselinc software is not running when this occurs so cannot interfere. I have watched the variables and they are changing as expected. I have not looked for weird X10 housecodes so will check that out as I forgot about the logs the ISY produces. I also haven't thought about the little bit of extra code in checking the button status that you provided. As I stated, this should be really simple. I will take the time and dig into this more. You sir have helped a bunch! Thank-you! I will report back if I find something. John
-
Simple logic not working. Keypad and X10
@ Techman, Again, thanks for the replies and I guess I am not clear on what's happening or what's disabled/enabled. I know this that X10 doesn't talk back to ISY for state and I am not controlling these devices from Houselinc or any other devices when trying to control it from the ISY using the Insteon keypad. All other controllers are disabled only the ISY is controlling them. The state of the lamps is reflected in the state of the Insteon Keypad Button being On or Off. I am not certain how I can explain this better, but understand, nothing else is controlling the X10 modules when I am attempting to control them using the ISY and the keypad. Again, with HouseLinc enabled and the ISY disabled, even unplugged/off, it works just great! When the ISY programs are enabled and the Houselinc is disabled/not running, it just works wrong and makes no sense. Understand again, I can run the ISY programs from the ISY Admin Console without issue. John
-
Simple logic not working. Keypad and X10
Thanks for the replies.... In my original post I mention that the devices I am controlling are X10 plug in dimmer modules. The Insteon controller is a switchlinc pad, On-Off and four keys, A, B, C, D. All I want is for A, (the above sink button) to turn on and off the light above the sink and nothing else. As for B, all I want for it is to turn on and off the under cabinet lights. I have disabled them so they won't interfere with my houselinc program which operates the lights perfectly from the Insteon keypad. Just copied and pasted them after I disabled them. Pretend they are enabled. And yes, this logic should work just fine. Something weird is happening. ALSO, I have simplified them way down when I first started this. No matter what I do, things just don't turn on or off as expected. I'll take and hopefully post some short videos. John
-
Simple logic not working. Keypad and X10
I have a lot of X10 devices which I will slowly replace as money allows. I have four (4) X10 plug in dimmer modules in my kitchen for under/above counter lights. I also have an Insteon keypad with the main switch/relay connected to the main kitchen lights and the four keypad buttons set to toggle on/off with a key press. Currently the cabinet lights work great with Houselinc and the Keypad Linc with events, i.e. when button ON is pressed it sends X10-On. The inverse works just as well (off). Again, on-off for all four of these X10 dimmers work just fine when using HouseLinc. I have been slowly reprogramming my home with a refurbished ISY and what should be simple logic for turning these X10 units on and off is all messed up! When I press the button for the Above Sink light, it may turn on or it and the Below Cabinet lights may turn on. Or when I go to turn on the Below Cabinet lights, the Above sink light turns on and the Below Cabinet lights turn off. There almost always seems to be one on one off and sometimes both on and when you turn the one on that is on and turn it may turn off but leave what it turned on and wasn't supposed to turn on - on. I hope this makes sense in writing. I can post a video that would more clearly show this messed up state. Currently I am using State Variables to check when the button is either on or off. I tried not using variables and had the exact same weird results. The variables change as they should! Everytime! Note too that I can run the IF portion and things run correctly when the keypad is either on or off. Runs right every time. I can run the THEN portion and again things run fine as does the ELSE which I have used off and on. Here is what I have so far only trying to get two of the lights to work; Set Above Sink On - [ID 000E][Parent 0009] If Status 'Kitchen Switch / Above Sink - X10' is On Then $AboveSinkOn = 1 Else $AboveSinkOn = 0 And we have... Set Below Cabinets On - [ID 0011][Parent 0009] If Status 'Kitchen Switch / Under Cabinets - X10' is On Then $BelowCabsOn = 1 Else $BelowCabsOn = 0 Now here are the programs that are supposed to turn on and off only themselves. Above Sink On - [ID 0012][Parent 000D][Not Enabled] If $AboveSinkOn is 1 And Status 'Kitchen Switch / Above Sink - X10' is On Then Repeat 2 times Send X10 'A1/On (3)' Else - No Actions - (To add one, press 'Action') I have also tried the Else by sending X10 A1 / Off same results so I separated it into two programs. Above Sink Off - [ID 0014][Parent 000D][Not Enabled] If $AboveSinkOn is 0 And Status 'Kitchen Switch / Above Sink - X10' is Off Then Repeat 2 times Send X10 'A1/Off (11)' Else - No Actions - (To add one, press 'Action') And for the Below Cabinet lights: Under Cabinets On - [ID 0013][Parent 000D][Not Enabled] If $BelowCabsOn is 1 And Status 'Kitchen Switch / Under Cabinets - X10' is On Then Repeat 2 times Send X10 'A2/On (3)' Else - No Actions - (To add one, press 'Action') and Under Cabinets Off - [ID 0015][Parent 000D][Not Enabled] If $BelowCabsOn is 0 And Status 'Kitchen Switch / Under Cabinets - X10' is Off Then Repeat 2 times Send X10 'A2/Off (11)' Else - No Actions - (To add one, press 'Action') Remember, it may or may not turn on/off the other X10 Device and sometimes it doesn't turn on/off itself. Remember again that I can right click and run these perfectly without any other lights turning on or off. Thanks for thoughts/help I am starting to think there is a bug in this refurbished unit in the manner it evaluates or sends stuff... but again, works when I right click and run just fine. John PS. The repeats are to ensure that the X10 gets down the lines. It makes no difference whether I repeat the command or not.
-
Program a random day within a random time frame
Thanks for the comments and thoughts! The random hour brought about by apostolakisl was something that I had played with as it was simple, but putting a random time within constraints, like between sunset and 2330 same day. I can see that a couple programs linked might be the answer. Once I get my random day start and get a random time between my parameters. ... and yes, once a week for a random day then my time. You guys have given me some direction and I will play with it! John
-
Program a random day within a random time frame
Thanks for the reply! I am using the current stable version firmware 4.5.4. I never thought about doing such with a variable for the month / day and hour / minute. I would love to see an example to help me understand this if possible. Should I look at one of the Beta/Alpha versions? In looking at the beta forum area, where I guess one would find urls for beta firmware, I see nothing for anything above 4.5.4. Thanks! John
-
Program a random day within a random time frame
In searching the forum, Googling and reading up on ISY programming, I don't see a way to program a random day of the week with an event firing within a random time frame on this random day. Is there a way? Thanks! John