Does any of you have an example of a automation that turns off a switch, when the same switch’s power consumption has been low for a period of time?
I am quite lazy, when it comes to turning of my monitors, speakers etc. for my desk, so I want to have a automation that turns of a switch the switch, when the power consumption is below 40w for 1 hour.
I’ve tried creating one, but it doesn’t seem to trigger.
description: ""
mode: single
trigger:
- type: power
platform: device
device_id: 7318b0612c6efe8bf81e8a8698dd1697
entity_id: 5842615a704a9611ef26d1ad46ea213f
domain: sensor
for:
hours: 1
minutes: 0
seconds: 0
below: 40
condition: []
action:
- type: turn_off
device_id: 7318b0612c6efe8bf81e8a8698dd1697
entity_id: 7e5d81fcb8bcaee7d8ae22e7c9597932
domain: switch