I’ve creaeted an automation for my bed lights it’s as follows:
- alias: 20a - Bed Lights
id: Bed Lights On
initial_state: true
trigger:
- platform: sun
event: sunset
action:
service: switch.turn_on
entity_id: switch.bed_lights_2
- alias: 20b - Bed Lights Off
trigger:
- platform: state
entity_id: binary_sensor.bed_sensor_contact_2
from: "off"
to: "on"
action:
- service: timer.start
target:
entity_id: timer.out_of_bed
- alias: "Timer Reset for Bed"
id: "Bed Reset Timer"
trigger:
- platform: state
entity_id: binary_sensor.bed_sensor_contact_2
from: "on"
to: "off"
action:
- service: timer.cancelled
target:
entity_id: timer.out_of_bed
- alias: "Timerstop"
id: "Timerstop"
trigger:
- platform: event
event_type: timer.finished
event_data:
entity_id: timer.out_of_bed
action:
- service: switch.turn_off
entity_id: switch.bed_lights_2
I’m getting an errror on the timer.cancelled portion…
Timer Reset for Bed uses an unknown service
The automation “Timer Reset for Bed” (automation.timer_reset_for_bed) has an action that calls an unknown service: timer.cancelled.
This error prevents the automation from running correctly. Maybe this service is no longer available, or perhaps a typo caused it.
To fix this error, [edit the automation](/config/automation/edit/Bed Reset Timer) and remove the action that calls this service.
Click on SUBMIT below to confirm you have fixed this automation.
I’m glad that HA gives me the info but perhaps I used the timer.cancelled command incorrecdtly? If so how should I use it or is tiimer.cancelled no longer working?