Event Triggering RM from an app?

I'm developing an app that depends on a 3rd party API. Sometimes, the API is down and I'd like to manage these failures with Rule Machine. What's the best way to wire an app to trigger RM?

I'm assuming you're writing an app, can detect this state, and want to trigger a rule when you know it's the case. If not but it's similar, the following options will probably still work. :slight_smile:

I see two possibilities. You said "easy," and in that case, a switch device that your app turns on or off or maybe a presence device you set present/not present (or really any stock or custom attribute with the appropriate rule trigger) would probably be easiest. But for a more sophisticated approach, you could instead invoke the Rule Machine API.

1 Like