Acara motion sensor, not triggering light automation

Tags: #<Tag:0x00007f738e0c87e0> #<Tag:0x00007f738e0c8628> #<Tag:0x00007f738e0c82e0>

Hi, I am trying to setup a simple home automation in my bathroom, that when motion is detected, it will turn on the lights. And another that turns off the lights, if no motion is detected for 10 minutes.

I am using the ZHA integration, and an Aqara motion sensor, and a hue light.

Should be simple right?

The issue I am having, is that I can’t get the sensor to trigger the automation. Even though state change is registrered by the sensor.

I am sure I just have to change a bit in the yaml below, but do you know what?

- id: '1595045344214'
  alias: Bathroom Motion Trigger On - Day
  description: ''
  trigger:
  - entity_id: binary_sensor.lumi_lumi_sensor_motion_aq2_cb8e0304_ias_zone
    platform: state
    to: 'On'
  condition:
  - after: '08:00:00'
    before: '22:00:00'
    condition: time
  action:
  - brightness_pct: 100
    device_id: 3974ff4862ec42ed8fdb23cdc38edaeb
    domain: light
    entity_id: light.bathroom_panel_level_light_color_on_off
    type: turn_on

I think you have an issue with your trigger. It is case sensitive. ‘On’ isn’t the same as ‘on’. Use lowercase for the “to” field in the trigger.

  trigger:
  - entity_id: binary_sensor.lumi_lumi_sensor_motion_aq2_cb8e0304_ias_zone
    platform: state
    to: 'on'
1 Like

That did the trick, thank you so much!