Please help me with this automation- why this is not working?
I’m trying to make an automation that when my computer is off for more then 2 minutes then turn off monitor power outlet.
- id: '1599715929990'
alias: Turn off monitor when computer is off
description: ''
trigger:
- entity_id: sensor.k3komp_online
for: 'minutes: 2'
from: 'true'
platform: state
to: 'false'
condition: []
action:
- device_id: 169179bc26e14e13a5daaaff1e4a9333
domain: switch
entity_id: switch.greenwave_reality_inc_powernode_6_port_switch
type: turn_off
mode: single
Because you don’t have the same format. You put minutes: 2 in quotes but instead this should be on a new line intended without quotes, as in the example from the docs.
Mike ( in joke ),
I would agree, it allows you to use exactly the same format all over your system and its easy to see where you change for hours:minutes:seconds
I don’t like to be forced to think very much before my 3rd cup of coffee