Hi!
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: ''
trigger:
- type: occupied
platform: device
device_id: 331db5a16a9c5a6851a6065987a9dc58
entity_id: binary_sensor.hal_sensor_occupancy
domain: binary_sensor
condition:
- type: is_illuminance
condition: device
device_id: 21bfe0a4a5d503a7aefcdbe5fc3f62fb
entity_id: sensor.hal_sensor_light_level
domain: sensor
below: 100
action:
- 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