Hello,
When I try to create a scene on the fly for my climate entity that is my Ecobee thermostat and then later restore it (scene activate), my climate entity then shows a preset of temp instead of what it was to begin with…
Creating a scene
alias: Living Room Fire Mode Fan Medium
sequence:
- service: light.turn_on
data: {}
target:
entity_id: light.fireplace_2
- service: fan.set_percentage
data:
percentage: 60
target:
entity_id: fan.ceiling_fan
- condition: not
conditions:
- condition: state
entity_id: climate.my_ecobee
attribute: preset_mode
state: Fireplace 70
- service: climate.set_preset_mode
target:
entity_id: climate.my_ecobee
data:
preset_mode: Fireplace 70
- service: scene.create
data:
scene_id: scene.living_room_pre_fireplace
snapshot_entities:
- climate.my_ecobee
mode: queued
max: 3
icon: mdi:fireplace-off
Restoring the scene:
alias: Living Room Fire Mode Off
sequence:
- service: light.turn_off
data: {}
target:
entity_id: light.fireplace_2
- condition: state
entity_id: climate.my_ecobee
attribute: preset_mode
state: Fireplace 70
- service: scene.turn_on
target:
entity_id: scene.living_room_pre_fireplace
data: {}
mode: queued
max: 3
icon: mdi:fireplace-off
I start with preset_mode to be “Home”, I run the first script and it goes to “Fireplace 70” as it should. I then run the second script and the preset_mode then becomes not Home, but “temp”. What gives?