if I call a script to set the temperature of a water kettle (effectivly a thermostat) from another script, i get a strange error (attached). Error running action Provided temperature 90.55555555555556 is not valid. Accepted range is 7 to 35 If I run the kettle script directly it works fine.
kettle script:
sequence:
- metadata: {}
data: {}
target:
entity_id: climate.kettle
action: climate.toggle
- metadata: {}
data:
temperature: 195
target:
entity_id: climate.kettle
action: climate.set_temperature
description: ""
icon: mdi:kettle
good morning script:
sequence:
- parallel:
- alias: lights and Open covers in parallel
parallel:
- if:
- condition: state
entity_id: sun.sun
state: above_horizon
then:
- data: {}
target:
entity_id: cover.bedroom_shades
action: cover.open_cover
alias: Open Bedroom Curtains if sun is up
- metadata: {}
data: {}
action: script.covers_open_all_blinds
- metadata: {}
data: {}
action: script.normal_lights
- data:
brightness: 170
transition: 600
target:
device_id:
- b32593577db93a8379d06de33d958185
- 40c84506044f11ebb7807b58d20e7a8a
entity_id: scene.bedroom_dimmed
action: hue.activate_scene
- data:
transition: 63
target:
entity_id: light.elements_35f6
action: light.turn_on
- metadata: {}
data: {}
action: script.kettle_turn_on_to_195f
- alias: Winter / Summer options
choose:
- conditions:
- condition: state
entity_id: input_boolean.winter_summer
state: "on"
sequence:
- metadata: {}
data:
temperature: 75
target:
entity_id: climate.garage_thermostat
action: climate.set_temperature
alias: "Winter "
- conditions:
- condition: state
entity_id: input_boolean.winter_summer
state: "off"
sequence:
- if:
- condition: template
value_template: >-
{{ state_attr('climate.first_floor',
'current_temperature') | float < 60 }}
then:
- data:
temperature: 72
target:
entity_id: climate.fireplace
action: climate.set_temperature
alias: Turn on fireplace if open space is below 60
alias: Summer
- sequence:
- metadata: {}
data: {}
action: script.tts_test
- metadata: {}
data: {}
action: script.tts_calendar_briefing
alias: TTS Briefings in sequence
mode: restart
icon: mdi:weather-sunset-up
description: replaced with summer version in July 2024 - need to update for winter