The Need for "When-If-Then" Automation Logic

Currently, automation in the Aqara Home App only supports the “If-Then” structure, with conditions limited to “AND” and “OR” logic. Crucially, it struggles to clearly differentiate between Triggers and Conditions.

This is why I strongly hope Aqara Home will adopt a “When-If-Then” logic structure:

  • When: Defines the Triggers. The automation process starts when any one of these conditions is met.
  • If: Defines the Conditions. These are additional checks performed after the automation is triggered to determine whether the actions should actually execute.

This structure would allow me to create the automations I need much more clearly. Does anyone else share this need or find the current setup confusing?

4 Likes

@Sonja Your thoughts on the current automation setup in the Aqara Home App are quite insightful, and you’re certainly not alone in wanting more flexibility. As of now, the app indeed supports an “If-Then” structure using “AND” and “OR” logic. This setup can sometimes make it challenging to clearly distinguish between triggers and conditions, which might limit the complexity of automations you can create.

The “When-If-Then” logic you propose would indeed add a valuable layer of nuance, enabling more precise and conditional automation. This approach, where “When” specifies the triggers and “If” adds additional conditions post-triggering, could greatly enhance the clarity and efficiency of automation setups.

While the current system is designed to validate the rationality of automation settings and prevent conflicts, as mentioned in the reference information, there’s always room for improvement based on user feedback. Sharing your needs and experiences helps the community and developers understand where enhancements are necessary.

Let’s keep the conversation going! Who else thinks a “When-If-Then” structure could make a difference in their smart home setup?

Could you please give me a practical example? Personally, I find it difficult to recognize the benefits.

Me. Some times we need to create up to 4 automatisations to get the idea work. Would be great if that could me more granular (Like HA).

I have mentioned this here as well If Trigger and Conditions then Actions

It makes for much more efficient automations. Apple Home supports this and Aqara should too.

1 Like

Sorry, I still miss a real live example to wrap my head arround this.

Edit: because I don’t use any kind of Apple devices I have no possibility to have a closer look into5his kind of automation.