Never mind, I got this working. One of my Sensibo devices was new and I hadn’t yet configured any Climate React settings on it. This makes the switch throw an error.
Original problem
I have six ACs controlled by Sensibo. I’m trying to write a script to turn off three of them when I go to bed. For each, this is a two stage process: turn off the Climate React and then change the AC’s HVAC mode to off.
It seems that no matter how I try this, the script aborts with an error:
Use Sensibo Enable Climate React Service once to enable switch or the Sensibo app
Here’s one attempt to perform each step individually. You can see I’ve tried to add 5 second gaps to rate-limit. Increasing to 10 seconds doesn’t help.
- type: turn_off
device_id: ed06ea6c877d450a393e35a5a4050073
entity_id: 1ca48c525e84d39e9aa3e436713edefd
domain: switch
enabled: true
- device_id: ed06ea6c877d450a393e35a5a4050073
domain: climate
entity_id: 05b305cd3baf2f90fdf9c39f73a31575
type: set_hvac_mode
hvac_mode: "off"
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
enabled: true
- type: turn_off
device_id: f63e7364b0520df27b10498ac197b879
entity_id: 0b201815968c07ac9820569b83cedf07
domain: switch
enabled: true
- device_id: f63e7364b0520df27b10498ac197b879
domain: climate
entity_id: 7aea86453675dc93e07e9a96e75193d6
type: set_hvac_mode
hvac_mode: "off"
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
enabled: true
- type: turn_off
device_id: 878c85d19bb55f07620d8dfebcff09fc
entity_id: 4fa94a527a5e4502da5fe7de592b9140
domain: switch
enabled: true
- device_id: 878c85d19bb55f07620d8dfebcff09fc
domain: climate
entity_id: e247919d97de18da9f65e97d78bbad37
type: set_hvac_mode
hvac_mode: "off"
Here’s an attempt to do it in batch:
- service: switch.turn_off
metadata: {}
data: {}
target:
entity_id:
- switch.lounge_room_climate_react
- switch.family_room_climate_react
- switch.study_climate_react
enabled: false
- service: climate.set_hvac_mode
metadata: {}
data:
hvac_mode: "off"
target:
entity_id:
- climate.lounge_room
- climate.family_room
- climate.study
enabled: false