Jump to content

button controller/amazon echo device contrl vs program control


n8huntsman

Recommended Posts

Posted (edited)

I have a device (responder) and a KPL button.
I have two scenes, one uses the button as a controller to turn on the device.  The other has the button as a responder for when the Echo turns the device on.  This causes the button to update.
I have a schedule program that takes the device through a cycle of varying levels throughout the night.
 
I also have a program to update the status of the device:

Bar Status - [ID 0006][Parent 0007]

If
        Control 'Kitchen - B' is switched On
    And Control 'Kitchen - B' is not switched Off
 
Then
   - No Actions - (To add one, press 'Action')
 
Else
   - No Actions - (To add one, press 'Action')

the above was intended to know whether the device had been manually turned on to prevent the schedule program from running.  The problem is that when I turn the device on using the Echo, the device is not considered switched on, and the schedule still runs.

This one is killing me.  No matter what I come up with, I run into a roadblock of some sort.

Any ideas?

Thanks

Edited by n8huntsman
Posted

That's because the Echo does not manually turn on the button. If you want the condition to respond to the state of the button, then use Status instead of Control.

Posted

Correct, but if I use status, the second schedule program never runs.  The first schedule program changes the status so the second one thinks I have manually turned it on.

Posted

I guess I could dedicate another button as a hold.  And have the program check the status of the hold button... Just don't like the idea of sacrificing a button and I couldn't figure out a way to use a variable in this situation.  

Posted

The Control (device) trigger only operates if you tap the button on the module itself.

 

The If Status (device) trigger detects an adjustment to the device via any method (including the module's buttons, remotely via another switch in a three-way setup, via a phone app, using a program, using the Administrative Console, via Echo, etc.).

 

So long as your Echo scene turns on a keypad button, it sounds like you only need to use the status of that button as a secondary condition. And Status (button) is off, otherwise don't run the program.

Posted

I added this to each of my program steps.

Sunset Bar Lights 3 - [ID 0015][Parent 0012]

If
        Time is Sunset  +  1 hour 
    And Status  'Outdoor Bar Lights' is 40%
 
Then
        In Scene 'Outdoor Bar Lights' Set 'Outdoor Bar Lights' 30.0 Sec (Ramp Rate)
        In Scene 'Outdoor Bar Lights' Set 'Outdoor Bar Lights' 50% (On Level)
        Set Scene 'Outdoor Bar Lights' On
 
Else
   - No Actions - (To add one, press 'Action')
 


40% is the value from the previous program.  This should work I think but it's a little clunky.  The only problem I can see is if I manually turn it on to exactly 40% the program will continue but I think this will probably be unlikely.

Guest
This topic is now closed to further replies.

×
×
  • Create New...