Hue motion sensor detect occupancy instead of on/of


Today I linked a Hue lamp and motion sensor to HA via Zigbee HA integration. Connecting the devices was easy. But what I’m running into is the configuration of the motion sensor. When the sensor detects movement, this is displayed at Occupancy and not the ON/OFF.

I am also unable to get an automation to work. The code can be found below. What am I doing wrong?

alias: Hallamp aan (avond)
description: ''
  - type: occupied
    platform: device
    device_id: 331db5a16a9c5a6851a6065987a9dc58
    entity_id: binary_sensor.hal_sensor_occupancy
    domain: binary_sensor
  - type: is_illuminance
    condition: device
    device_id: 21bfe0a4a5d503a7aefcdbe5fc3f62fb
    entity_id: sensor.hal_sensor_light_level
    domain: sensor
    below: 100
  - type: turn_on
    device_id: 3ab52c382c128bcf72be3af933d2ceba
    entity_id: light.signify_netherlands_b_v_lta001_level_light_color_on_off
    domain: light
    brightness_pct: 100
mode: single

I use occupancy like this:

  alias: Licht aan op aanwezigheid CTD
  description: ''
  - platform: state
    entity_id: binary_sensor.ctd_aanwezigheid
    from: 'off'
    to: 'on'
  condition: []
  - service: light.turn_on
      entity_id: light.ctd_totaal
  mode: single

works fine for me…

But why is the sensor detecting occupancy and not on/off? And why is my automation not working?

Ask Philips? I don’t know. Everything, I got in my hands made by Philips uses occupancy…
Nothing wrong with it, different name, same result.

Also do not know, why your code do not work. I’m not that experienced. I just try to show you a way, which does work :wink:

Oke, thanks