mink Posted February 12, 2011 Posted February 12, 2011 Hi All, The programming bellow seems to be working for now well enough. This snippet is to avoid swinging the outdoor lighting transformer excessively as the motion sensor trips the porch/yardlights on and off during the night, especially rush hours (best aiming of MS I could get, wife is happy). The first bit just delays turning off the Transformer for 30 minutes and actually it is OK if the condition checks keep resetting it for a few hours. The second bit slow flashes a kpl button so I can test how this is working by knowing when the transformer is on in the wait state. I do plan to move the programming to a state machine approach as outlined by the very kind poster in the last month but am working on the flow and, as I said for now this is good enough. My concern is the short duration repeat looping a problem for the ISY-99i. I would think it should be OK, I could see that status checks of devices could delay the loops, so eventually avoiding device status checks and using the machine state programs to do most of the validating would likely load the system less. I did not find anything searching on 'flash button blink' etc. I plan to implement the flash on the kpl at the entry to indicate several different states of the lighting on one button as I'm limited by button numbers for that area. For example: short flash (normal motion sensing light control), medium length flash (lights on until 1 or 2 am for guests/part), constant (lights on all night for late arrival, off at dawn). Program"YardLightTransformerPower" if Status 'YardLightsFrontRelay' is On And Status 'YardLightTransformerRelay' is Off Then Set Scene 'YardLightTransformerOn' On Set Scene 'Kpl-C' On Else Run Program 'FlashKpl-C' (Then Path) Wait 30 minutes Set Scene 'YardLightTransformerOn' off Stop program 'FlashKpl-C' Set Scene 'Kpl-C' Off ... Program "FlashKpl-C" if -No Conditions Then Repeat Every 5 seconds Set Scene 'Kpl-C' On Wait 2 seconds Set Scene 'Kpl-C' Off Else -No Actions Cheers all and many TIA, PS could someone tell me how to be able to cut a paste a program from the admin console for pasting in here instead of manually typing the whole thing .
fitzpatri8 Posted February 13, 2011 Posted February 13, 2011 To post a program here: Go to the Administrative Console, Program Details tabLeft-click the program in question from the programs list to selectRight-click the program to open the menuSelect Copy to Clipboard (the bottom choice on the menu)Switch windows to your browser tab and Control-V to paste. The cost of flashing a light on and off like that is that you are adding quite a bit of signal activity by transmitting a signal every 2-3 seconds. If another device is trying to send a message at the same time its message will be delayed and retried; if another device is having trouble communicating, your automated message will cause the other controller's cleanup message to be aborted.
mink Posted February 13, 2011 Author Posted February 13, 2011 Thank you kindly, I will cogitate on the signal issues. I've seen some traces of signal traces of insteon bursts to see if this seems too much,
Recommended Posts