Problems with Automations 2.0

I just changed to Automations 2.0 and I have found some issues regarding programming logic. Scenario: due to the shape of our kitchen, I have 4 sensors in it. 2 FP1s Occupancy sensor and 2 P1 motion sensors.

Previously under 1.0 had the following Logic programmed to turn off the lights:

IF:

  1. No motion has been detected for 1 min (Sensor 1)
  2. When no motion has been detected for 1 (Sensor 2)
  3. No motion has been detected for 1 min (Sensor 3)
  4. When no motion has been detected for 1 min (Sensor 4)

Then: Turn off the lights.

So basically very simple: all 4 sensors need should have not detected motion for at least 1 min and then the lights go out.

When I upgraded to A2.0 this was automatically changed to:

When:

  1. No motion has been detected for 1 min (Sensor 1)
  2. No motion has been detected for 1 min (Sensor 2)
  3. No motion has been detected for 1 min (Sensor 3)
  4. No motion has been detected for 1 min (Sensor 4)

If:

  1. No Motion has been detected for 1 min (Sensor 1)
  2. No motion has been detected for 1 min (Sensor 2)
  3. No motion has been detected for 1 min (Sensor 3)
  4. No motion has been detected for 1 min (Sensor 4)

Then:

Turn off Lights.

Seems all straight forward. Problem is: it doesn’t work. After 1 min of no motion on all of the sensors, the lights are still on.

Again, it was working fine under 1.0 and the above logic was automatically created by the app after enabling 2.0

Any comments or help?

3 Likes

Hello @decker_oliver

Welcome to the Aqara forum
It’s possible that an error occurred during the conversion from 1.0 to 2.0 and the algorithm was not formed correctly. Delete this automation and create it again in version 2.0; this should help.

Hello, this problem was during testing. I fixed it by adding a 5 second delay to each sensor in the WHEN “…” condition. Explanation, if the sensor works, it gives a timeout for the sensor that in the IF condition to change the state, then the automation will work. I gave a description of the 2.0 algorithms in my lesson 2. Automation 2.0. Lesson2. Advanced settings "..." (Execution time, delay of conditions, reversal of conditions) is

3 Likes

Thank you Raman. I had another automation which I set up following the A2.0 logic and it also didn’t work. So I think something else is wrong. I will try gafich’s hack and see if this will solve the issue…

Thank you Gafich! I will change the automations and will add the duration and see if this solve the problem. Maybe a firmware update of the hubs could be beneficial as well.

1 Like