Hi.
I made an automation (noob here) that would turn on my lights (light.zigbee_controller_staanlamp_zolder) if my PC is turned on after 8pm30. Once the PC is turned off, lights should turn off after about a minute.
I'm using Ping and made a ping to my PC ip.
This is the automation:
description: ""
triggers:
- trigger: state
entity_id:
- binary_sensor.pc_vinnie_ping
conditions:
- condition: time
after: "20:30:00"
actions:
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.pc_vinnie_ping
state: "on"
sequence:
- action: light.turn_on
metadata: {}
data: {}
target:
entity_id: light.zigbee_controller_staanlamp_zolder
- conditions:
- condition: state
entity_id: binary_sensor.pc_vinnie_ping
state: "off"
sequence:
- delay:
hours: 0
minutes: 1
seconds: 0
milliseconds: 0
- action: light.turn_off
metadata: {}
data: {}
target:
entity_id: light.zigbee_controller_staanlamp_zolder
mode: single
What am I doing wrong here?