Jump to content

Replaced a switch - programmed stopped working


PAstrachan

Recommended Posts

Posted

I get this message in the program in the if statement. 

I can't remember what I was looking at.  I think it was the status of the switch.

How can I tell what condition this was looking for?  

 

Warning:  Unrecognized Condition (program may not run)
<status OP="IS" NODE="7 E5 1C 3" ID="ST">
    <val UOM="51" PREC="0">0</val>
</status>

Posted

looks like it was the status of a switch.  What is the program supposed to do.  Copy and paste the full program.  Right click the program name, the last option on the context menu is Copy to Clipboard, paste it into a forum message.

Posted

What the program did was when there was motion from the Ring, it would turn the front lights on for a couple minutes and toggle them off, but if the light was already on, it would stay on. 

I used a couple programs to get this to work.  I'll post later tonight the actual programs.  

I think I was directly controlling the switch to turn it on, but looking at the scene to see if it was already on.  

 

Posted
18 hours ago, PAstrachan said:

 

What the program did was when there was motion from the Ring,

 

How was the Ring information being passed to the ISY? The Ring cloud node server has been offline a long time so hasn’t been working. If using other methods then please post whole program as @MrBill suggested in first reply.  
 

On 6/29/2022 at 8:57 AM, MrBill said:

Right click the program name, the last option on the context menu is Copy to Clipboard, paste it into a forum message.

 

Posted (edited)

I did get this working.  Documenting what I have in case it helps anyone.

I'm using a routine in alexa to run entrymonvar program on ISY

Anytime the front door sees motion, alexa turns on the entrymonvar program

When motion is not seen for 10 minutes  alexa turns off the entrymonvar program

The entrymonvar program

entrymonitorvar - [ID 0010][Parent 0001]

If
   - No Conditions - (To add one, press 'Schedule' or 'Condition')
 
Then
        $motion  = 1
        Run Program 'axexamontionprog' (If)
 
Else
        $motion  = 0
        Run Program 'motionmain' (If)
 

The axexamontionprog

axexamontionprog - [ID 0011][Parent 0001]

If
        From    Sunset 
        To      Sunrise (next day)
    And $motion is 1
 
Then
        Run Program 'motionmain' (If)
 
Else
   - No Actions - (To add one, press 'Action')
 

The motionmain program

motionmain - [ID 0013][Parent 0001]

If
        $entry_var is 1
     Or $motion is 1
 
Then
        Set 'Front Entry' On
 
Else
        Set 'Front Entry' Off
 

And finally the entryvar program

entryvar - [ID 0012][Parent 0001]

If
        'breakkey_a' Status is Off    #####(this was the one that was missing)########
 
Then
        $entry_var  = 0
        Run Program 'motionmain' (If)
 
Else
        $entry_var  = 1
        Run Program 'motionmain' (If)
 

This seems like overkill to use 4 programs and 2 variables but it does work.

The idea here was that the light would stay on if it was turned on by a scene.  If motion turned it on, then only the switch was turned on, so I could use the status of another switch in the scene to see that it was motion that turned in on or the switch directly.  

 

 

Edited by PAstrachan
Guest
This topic is now closed to further replies.

×
×
  • Create New...