Turn on Lights based on Xiaomi illumination sensor

Hi Guys,

Need help with with the following, i want the lights to turn on only if the sensor state is below 60.
How do i write it in the condition?

This is mine

> - alias: Accendi luce al tramonto
>   initial_state: true
>   trigger:
>   - below: '200'
>     entity_id: sensor.illumination_286c0xxxxxde
>     platform: numeric_state
>   condition:
>   - after: '15:00'
>     before: '22:00'
>     condition: time
>   action:
>   - data:
>       entity_id: light.yeelight_mono1_34cexxxxx102
>     service: light.turn_on

Look at my automation, still not working, the lights turn on even though the illumination state is 53
any idea?

  • id: ‘1556963515126’
    alias: 'Turn on bedroom Storage Room lights motion detection ’
    trigger:
    • entity_id: binary_sensor.motion_sensor_158d0003051953
      from: ‘off’
      platform: state
      to: ‘on’
      condition:
    • below: ‘50’
      condition: numeric_state
      entity_id: sensor.illumination_158d0003051953
      action:
    • data:
      entity_id: light.storage_room_lights
      service: homeassistant.turn_on

solved!, thanks for the help!

How was it solved?

I have the Xiaomi motion sensor and the temp sensor aswell and I would like it to turn of when above a certain amount of LUX or / with motion

look at my example above