Making functions with flows?

Checkout the “Advanced triggers” app.
I use it for checking temperature.

I have created a text variable holding a JSON string: {“devivice1”:“state1”,“device2”:“state2”…}.
The flow is triggered by a “Advanced trigger” card, with the device name and the state (normal/high/low).
Then I use “JSON handler” app to find (or create) the device and take action depending on state.

I could have sent the current temperature, min-temp, max-temp and normal-temp but as I uses “becomes greater/less” I already new if it was too low/high.