@jarlesb wrote:
Hi,
I am trying to automate the thermostats in my house and would like to easily set temperature schedule for a week.
I found a very good custom component called Programmable_thermostat for this use, and it works like a charm for my electrical heaters which are connected to a power plug and room sensor.
For these I create a Programmable thermostat in configuration.yaml, and use the file_restore component as input with a set temperature every hour throughout the week.
However I also have a couple of HeatIt floor thermostats and a Mitsubishi Heat pump. These are already set up as climate entities, so I not possible to use the Programmable Thermostat component. Instead I wanted to use the file_restore as input to set temperature throughout the day with an automation that is triggered every 5 minutes. The file_restore component has an array with temperatures, and state gives the one for the current hour. However I am not able to get this value and use it for automation. I am not so experience with templates and home assistant programming, so may be an obvious fix…
My automation code:
automation: - alias: Sette temperatur på gulvvarme kjøkken trigger: - platform: time_pattern minutes: "/5" action: - service: climate.set_temperature entity_id: climate.kjokken_gulvvarme_heating data_template: temperature: {{ states.sensor.set_temperature_gang_1_etg.state }}
I have tried the template in the template editor, and it gives me the temperature, but does not work to set temperature. I have also tried to add “| float” to fix type.
I get this error when trying to start HA with the script:
ERROR (SyncWorker_0) [homeassistant.util.yaml.loader] invalid key: “OrderedDict([(‘states.sensor.set_temperature_gang_1_etg.state’, None)])”
in “/config/automations.yaml”, line 130, column 0Any suggestions to get a “programmable thermostat” using HeatIt floor heating?
Posts: 4
Participants: 4