Climate toggle switch - possible?


#1

Hi everyone,

I’m trying to create a switch I can use to toggle Eco mode on my Nest thermostat. I can then expose that switch to Alexa via emulated_hue and have Alexa toggle eco mode that way.

I’ve looked into template switches but I can’t get it to work. I’d really appreciate any input anyone has on this.

  - platform: template
switches:
  nest_eco_on:
    value_template: "{{ true }}"
    turn_on:
      service: climate.set_operation_mode
      data:
        entity_id: climate.thermostat
        operation_mode: eco
    turn_off:
      service: climate.set_operation_mode
      data:
        entity_id: climate.thermostat
        operation_mode: heat