Conditional triggers

Hi @vegetish. Thanks for the thorough explanation on your use case(s). Seriously, this helps our design team a lot and makes sure we know how to meet the needs of our Community…Many times we will gather as much information in the topic posts and use it as a spec when designing features.

Hmmm. So it sounds like what would work is the ability to represent a given trigger with a widget. Let me explain through an example and you can tell me if we are on same page.


Let’s define Trigger A as:
“If temp. above 80 F, then turn on Air Conditioner.”

You’d like to turn this trigger ON/OFF without having to go to your Triggers & Alerts section of dashboard and enable/disable the trigger from there. Furthermore, you’d like to turn trigger ON/OFF based on external factors, such as time, location.

To meet your needs, you create a button widget that is tied to Trigger A. You call this button “Trigger A Button”. Trigger A Button is placed on the dashboard interface just like any other button widget on the dashboard.

  • When Trigger A Button is ON, then Trigger A is enabled.

  • When Trigger A Button is OFF, then Trigger A is disabled.


Since there is now a button on the dashboard representing your trigger,

  • You can manually turn Trigger A Button ON / OFF.

  • You can use the Cayenne Scheduling feature to turn Trigger A Button ON / OFF at specific times during the day (thus enabling / disabling Trigger A).

  • You can even use Trigger A Button in the Cayenne Triggers & Alerts feature (A trigger within a trigger!).
    Example: When location is within 5 miles of ‘House’, then turn ON Trigger A Button. *

*This is assuming the location widget (we are working on this!) is already implemented.

**To your point, it would be great to be able to also tie the Trigger A Button to a physical button in the real world. That way, you can flip a switch and turn ON/OFF the trigger. (Of course, a potential issue could be if you turn ON/OFF the button widget on the dashboard but the physical switch doesn’t change so now it’s contradicting the actual status of the trigger…but let’s not worry about this just yet).

Thanks again for your time here!

-B