How to run a flow, based on a status

Hi

I have a Maria DB that have an home alarm status (ZigBee)
image
Working fine..

Then I have a trigger flow, that send a Telegram message, if a window is opened:
image
It's also working fine...

Now I need it to work together... the last Switch must only work, is the status switch is "Armed".

Can someone help/guide me, about based on the status "Armed" then the trigger flow is activated.

Use a Change node to set a context variable flow.alarmstatus using the output from mariadb.
Use a Switch node in your flow that sends a Telegram to only pass messages if flow.alarmstatus is "armed"

Note, if these are actually different flows either use global.alarmstatus or Link nodes so that flow.alarmstatus is both set and used in the same flow

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.