Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95372

Toggling Between HVAC_MODE in the Floorplan.yaml

$
0
0

@Geffrey wrote:

I’ve been trying to figure out how to switch between hvac modes when pressing one icon on the floorplan. ‘Heat’ and ‘off’. I’ve been Googling and trying solution for several hours now.

This is what I have so far:

in floorplan.yaml

  - name: Heating
          entities:
             -  climate.living_room
          text_template: '${entity.attributes.current_temperature ? Math.round(entity.attributes.current_temperature) : "99"}°'
          states:
            - state: 'heat'
              class: 'heating-on'
            - state: 'off'
              class: 'heating-off'
          action:
            domain: climate
            service: set_hvac_mode
            data_template:
              hvac_mode: "
              {% if is_state('entity.hvac_mode'), 'off' %}
                  heat
                {% else %} 
                  off
                {%endif %}"

I have no clue what I am actually doing. Could somebody guide me in the right direction? I just need to be able to toggle between two states. Heating and not.

This is what the floorplan section of HASSIO said when I click the heating icon, by the way:

Thank you in advance!
Geffrey

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95372

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>