Request: Automation Events: AND conditions?

hasan_
Posts: 20
Joined: Wed Apr 05, 2023 9:03 am

Request: Automation Events: AND conditions?

Postby hasan_ » Tue Apr 11, 2023 12:01 am

Hi, I assume this may have been requested before.. but honestly, it would literally 'complete' the Automations feature of Rainmaker if we can have an option to have multiple events (like an AND operator) to execute action(s).

For example: Events: [ Temperature > 24 ] AND [ Humidity > 30 ] ---> Action: Fan ON

Is this feature being considered?
Thanks!

ESP_Piyush
Posts: 287
Joined: Wed Feb 20, 2019 7:02 am

Re: Request: Automation Events: AND conditions?

Postby ESP_Piyush » Thu Apr 13, 2023 5:13 pm

This is actually supported by the backend APIs, but not added in the phone apps just to keep the UI and workflow simple to begin with. Moreover, even on the firmware side, minor changes would be required to ensure that both params are reported simultaneously in a single message, for such automation to work. The firmware side logic is possible by first calling `esp_rmaker_param_update()` with value of one param and then calling `esp_rmaker_param_update_and_report()` with value for the second param. However, the phone app support would be slightly tricky. We would indeed consider it near future though, as we have received similar request from some other users too.

Who is online

Users browsing this forum: No registered users and 72 guests