- Created boolean button with helper.
- Added the button to a dashboard which basically does:
entity: input_boolean.toggle_ecobee_from_home_to_away
when pressed. - Created an automation to turn both thermostats to away mode when toggled. I’ve tried using
climate.set_away_mode
andclimate.set_preset_mode
. Both give errors:
alias: Ecobee AC Away Mode - Turn On
description: Ecobee AC Away Mode - Turn On with button
trigger:
- platform: state
entity_id: input_boolean.toggle_ecobee_from_home_to_away
to: "on"
action:
- service: climate.set_preset_mode
data:
entity_id: climate.upstairs
away_mode: "on"
- service: climate.set_preset_mode
data:
entity_id: climate.main_floor
away_mode: "on"
But when I press the toggle, the mode shown on the Ecobee card does not change. In fact, it throws the error:
The automation “Ecobee AC Away Mode - Turn On” (
automation.ecobee_from_home_to_away_mode
) has an action that calls an unknown service:climate.set_away_mode
Does anyone have any suggestions as to why this might not be working?
Also, there must be a more elegant way than writing a second automation to turn it off when switch moved to off postion.