nervetattoo / simple-thermostat

A different take on the thermostat card for Home Assistant ♨️

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow selection of icon data source

SEKCobra opened this issue · comments

Right now hvac_mode is the preferred source of truth for the header icon. Personally, I would rather have the icon follow the state attribute. (Which it already does as a fallback).

Why do I want this? I am using a mock dual-smart-thermostat with my automation to basically switch between heating and cooling and enter a target temperature, using the great interface provided by simple-thermostat. I can not actually want the underlying two thermostat objects to be controlled directly (since they are for heating or cooling only), because I apply some logic to them beforehand and automatically switch between them. For this reason, I am only using the state and temperature properties of the thermostat object. The thermostat still reports data to simple-thermostat, which I don't want to output. I have disabled the state element and replaced it with a sensor, but I can't change the hvac_action that is reported back. Having the icon use the set mode would suffice for my application.

Something like this would totally suffice my needs:
header:
icon:
use_state: true

Hi, I would also be very interested in this possibility.
I use different types of thermostats. One thermostat type returns "attributes.hvac_action" the other one unfortunately does not. With this configuration option both types could show identically the state/hvac_modes on the header of thermostat-card.

Therefore +1 for this extension.
That would be great!