@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