Minims
1
Hello,
I have setup a Generic Thermostat, and it works really good.
I want to add a feature in order to select a specific Temperature Sensor in Haas interface for my thermostat without reloading.
The goal is the use the bedroom sensor instead of the livingroom sensor when i use my wood stove.
Does anyone have an idea of how to make such a thing. If not possible I will add a 2nd Generic Thermostat, but I would prefer keep only one.
Thanks 
Minims
3
Hi,
@milanvo
Many thanks, exactly what I want, and it works. 
I’ve not think to make it this way
Can you give an example of the code you used? I think I am having a similar problem and I don’t understand what is meant by creating a template_sensor
Here is what I use :
- platform: template
sensors:
target_temp_sensors:
friendly_name: "Target Temperature"
unit_of_measurement: "°C"
value_template: >-
{% if is_state('input_select.target_temperature', 'Salon') %}
{{ states.sensor.temperature_salon.state | float }}
{% elif is_state('input_select.target_temperature', 'Cuisine') %}
{{ states.sensor.temperature_cuisine.state | float }}
{% elif is_state('input_select.target_temperature', 'Chambre') %}
{{ states.sensor.temperature_chambre.state | float }}
{% elif is_state('input_select.target_temperature', 'Chambre Enfant') %}
{{ states.sensor.temperature_chambre_enfant.state | float }}
{% elif is_state('input_select.target_temperature', 'Chambre Amis') %}
{{ states.sensor.temperature_chambre_ami.state | float }}
{% elif is_state('input_select.target_temperature', 'Salle de Bain') %}
{{ states.sensor.temperature_salle_de_bain.state | float }}
{% endif %}
1 Like