Does anyone knows what this error is saying. The script used to work prior to the 2021.12 update.
Error:
wakeup light bedroom: Error executing script. Unexpected error for call_service at pos 1: 400, message='Bad Request', url=URL('https://192.168.1.80/clip/v2/resource/light/146a43a2-39a0-445b-8474-4f9285b1d28b')
6:00:00 AM – (ERROR) Automation - message first occurred at 6:00:00 AM and shows up 2 times
Wakeup lighting, smooth transition: Error executing script. Unexpected error for call_service at pos 1: 400, message='Bad Request', url=URL('https://192.168.1.80/clip/v2/resource/light/146a43a2-39a0-445b-8474-4f9285b1d28b')
6:00:00 AM – (ERROR) Script
automation:
- alias: 'wakeup light bedroom'
trigger:
platform: template
value_template: '{{ states.sensor.time.state == states.sensor.wakeup_start_time_lights.state }}'
condition:
- condition: state
entity_id: input_boolean.wakeup
state: 'on'
- condition: template
value_template: "{{ states.sensor.holiday.state | trim == '' }}"
- condition: or
conditions:
- condition: state
entity_id: input_boolean.wakeup_weekends
state: 'on'
- condition: template # Is weekday
value_template: "{{ is_state('sensor.date_weekday', 'on') }}"
action:
service: script.wakeup_bedroom
script:
wakeup_bedroom:
alias: 'Wakeup lighting, smooth transition'
sequence:
- service: light.turn_on
data_template:
entity_id: '{{ states("sensor.wakeup_map") }}'
brightness: 1
kelvin: 1000
- delay:
seconds: 1
- service: light.turn_on
data_template:
entity_id: '{{ states("sensor.wakeup_map") }}'
brightness: 64
kelvin: 2000
transition: '{{ (( states.input_number.wakeup_duration.state | float * 60 / 4 )| round ) | int }}'
- delay: '00:00:{{ (( states.input_number.wakeup_duration.state | float * 60 / 4 )| round ) | int }}'
- service: light.turn_on
data_template:
entity_id: '{{ states("sensor.wakeup_map") }}'
brightness: 128
kelvin: 3000
transition: '{{ (( states.input_number.wakeup_duration.state | float * 60 / 4 )| round ) | int }}'
- delay: '00:00:{{ (( states.input_number.wakeup_duration.state | float * 60 / 4 )| round ) | int }}'
- service: light.turn_on
data_template:
entity_id: '{{ states("sensor.wakeup_map") }}'
brightness: 191
kelvin: 4000
transition: '{{ (( states.input_number.wakeup_duration.state | float * 60 / 4 )| round ) | int }}'
- delay: '00:00:{{ (( states.input_number.wakeup_duration.state | float * 60 / 4 )| round ) | int }}'
- service: light.turn_on
data_template:
entity_id: '{{ states("sensor.wakeup_map") }}'
brightness: 254
kelvin: 5000
transition: '{{ (( states.input_number.wakeup_duration.state | float * 60 / 4 )| round ) | int }}'