Light in office is controlled by a motion sensor. Problem is (not big), light is turning off after 10 minutes if no motion detected. That’s ok, but the problem is when im focus on computere work, its not always my motion is enough to catch by sensor.
I have therefor installed Iotlink and that’s working fine ok, but not optimal. The computer is only off during windows update, or else its turned on. After some time, computer goes to screen off/hybrid and Iotlink lost track/connection.
The sensor «sensor.desktop_h3v97gj_system_idle_time» goes to «unviable» status. Problem is, im not able to get my automation to work…
I have tried a lot, but it would not work when sensor is unviable.
I need this to work, because its not always im working with the computer in office, and the lights doesn’t turn off after I leave.
alias: 'Lys-styring: Bevegelsesensor: Kontor (Lys av)'
description: ''
trigger:
- type: no_motion
platform: device
device_id: f0b9383251f13d5c263730195d14e80e
entity_id: binary_sensor.multisensor_kontor_home_security_motion_detection
domain: binary_sensor
for:
hours: 0
minutes: 10
seconds: 0
condition:
- type: is_value
condition: device
device_id: eb65b9108c04354101578334d31a40a9
entity_id: sensor.desktop_h3v97gj_system_idle_time
domain: sensor
above: 300
- condition: or
conditions:
- condition: state
entity_id: sensor.desktop_h3v97gj_system_idle_time
state: unviable
action:
- type: turn_off
device_id: 83334bd4746a681d57c2ac939f5bbf4f
entity_id: light.takspot_kontor
domain: light
mode: single