Input slider for generic thermostat

Hello,

I have configured a generic thermostat, it it working perfectly as I want it to.
Now I have set up some input sliders (one for daytime and one for nighttime). Can someone show me how I can get those to adjust the thermostat?
I have been looking at the forum and on google for a long time, but I cannot find what I am looking for.

climate:

  • platform: generic_thermostat
    name: Termostat Stue
    heater: switch.fibaro_system_fgwpef_wall_plug_gen5_switch_2_0
    target_sensor: sensor.inside_temperature
    min_temp: 15
    max_temp: 30
    target_temp: 20
    tolerance: 0.1

temp_natt:
name: Temperatur Natt
min: 15
max: 25
initial: 20
step: 0.5
icon: mdi:fire
unit_of_measurement: ‘°C’
temp_dag:
name: Temperatur Dag
min: 15
max: 25
initial: 22
step: 0.5
icon: mdi:fire
unit_of_measurement: ‘°C’

You can look at my config:
https://github.com/LaStrada/Home-AssistantConfig/blob/master/automation/heat_office.yaml
This is for my office (“kontor” in Norwegian) / guest room. I have used input sliders to set the temperature and hard coded the time this will be triggered. Also have a “guest mode”, so if I’m having guest spending the night the temperature will not be changed by the automation scripts.

Also have this for other rooms, just look at the heat_* files:
https://github.com/LaStrada/Home-AssistantConfig/tree/master/automation

This works for me, but it requires some configuration.

If you don’t want to hard code the time, you can look at this thread:

Here is how I do it : https://github.com/Danielhiversen/home-assistant_config/blob/master/automation/heating.yaml#L129