Page 1 of 1

Request: Automation Events: AND conditions?

Posted: Tue Apr 11, 2023 12:01 am
by hasan_
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!

Re: Request: Automation Events: AND conditions?

Posted: Thu Apr 13, 2023 5:13 pm
by ESP_Piyush
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.