Jump to content

Stupid programming problem...


Bmwsyc

Recommended Posts

I dont understandsome work that I am doing with my sprinkler system. I wrote 2 different programs for turning on two different zones, based on rainfall over 24 hours and time of day scheduling. those programs work fine. I also wrote 2 programs to turn on the zones if you press a button on my KPL.

 

basically

 

if:  control for a button is on,

then: set irrigation 3 on

wait 20 minutes

set irrigation 3 off

 

I can't get either "button" programs to work...simple, but no life from the program.

 

I've tried both with the KPL and a 8 button wireless remote...nothing.

 

what am I missing?

 

I've also tried both "control" and "status", made sure to save changes...

 

I can create a scene to turn the sprinkler zones on by a KPL or mini remote button, and they work fine, but I can't control the duration of the valve open times with a scene.

 

thanks.

Link to comment

I looked through the PLM link table and there are a bunch of A2 links for that device. I did manage to get the program to work, but I had to create a scene that had the KPL button as both the controller and responder, nothing more. I did not wait to see if the program ran completely, but I could look at all of my programs and the two I created for the KPL buttons for the 2 zones did run.

 

Why can the program not see the activation of a KPL button? I did have to change the program from "if control" to "if status" to get it to work. I'm okay with how it works, it just seems like it is counterproductive to have to create a scene to get a program to work.

Link to comment

There was likely a link record(s) missing in the KPL or the PLM.  Insteon must find a Controller link (E2 xx aa.bb.cc ........) in the KPL for the specific button (xx) and with the PLM Insteon address (aa.bb.cc) for it to send a message to the PLM.  The PLM must have a matching Responder link (A2 xx dd.ee.ff .......) that matches where (xx) is the KPL button number and dd.ee.ff is the KPL Insteon address.

 

When "If Status" will trigger a Program then "If Control" should also unless there are other If statements that would be False when the On message is received.

 

This combination does not work with "If Control" as the On message is not being received at exactly 7AM

 

If Control 'kplbutton' is switched 100%

And Time is 7:00:00AM 

 

That is why posting the real Program statements that have been Copy to Clipboard is so important.

Link to comment

Archived

This topic is now archived and is closed to further replies.


  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

    • There are no registered users currently online
  • Forum Statistics

    • Total Topics
      36.9k
    • Total Posts
      370.2k
×
×
  • Create New...