Hello together,
i am new to the home assistant community. I just moved from Homebridge to Home Assistant, and i am quite happy.
All my standard sensors and devices are working really fine.
Last week i bought the Xiamo Mi Light Detector to get a better solution for automatically switching some lights on, insted of the sun down trigger.
But i do not get it to work.
I read some articles here about how to configure it, but i don’t get it. Perhaps i am to much a newbie or my english is to bad
alias: Wenn es dunkel wird
description: ""
trigger:
- platform: numeric_state
entity_id: sensor.xiaomi_lumi_sen_ill_mgl01_illuminance
for:
hours: 0
minutes: 0
seconds: 45
below: 65
above: 65
condition:
- condition: and
conditions:
- condition: time
after: "09:00:00"
before: "22:00:00"
- condition: device
device_id: 41ec38f2e33e403d8cdb740e47446975
domain: device_tracker
entity_id: device_tracker.jamin_phone
type: is_home
action:
- type: turn_on
device_id: 40b97c2669f27a9584d2cf6393dfe373
entity_id: light.bar
domain: light
brightness_pct: 100
- type: turn_on
device_id: c6ef565d7a70a065db5780c5c9222304
entity_id: light.lowboard
domain: light
brightness_pct: 70
- type: turn_on
device_id: 5bc0c96b03071779f89a15b17ea6471c
entity_id: light.stehlampe
domain: light
brightness_pct: 20
mode: single
I tested the condition and they work fine. I just want to let the automation do his job, when i am at home (Jamin-Phone) and it is between 9:00 and 22:00 a clock.
The Light detector was often below 65 lfx, but the automation does not trigger. After reading here, i added the 65 although to the above value, but this does not change anything.
Perhaps someone here can help me and solve my beginner problem.
Best,
Benjamin