Hello!
I have got a problem with the generic thermostat, he doesn’t switch my aircon on.
When i use the switch entitiy manual, it switch my aircon on and off but when i select cooling in my thermostat is doesn’t do anything.
- platform: command_line
switches:
aircon_woonkamer:
command_on: 'bash /config/scripts/airco-script.sh set power on'
command_off: 'bash /config/scripts/airco-script.sh set power off'
Life could be easy haha! Thx a lot!! When i set the target temp to 20 degrees it switch on!
I feel stupid
I have another question, when i check the webinterface off my aircon it shows target temp of 23 degrees (it was set a couple of days a go set by remote control , how can i push the set temp of HA to my aircon?
I have got a script who can push a temp to the aircon.
Write an automation to change it whenever the target temperature is adjusted in HA.
automation:
trigger:
platform: template
value_template: "{{ state_attr('climate.aircon_woonkamer', 'target_temp') }}"
action:
service: script.your_script
data_template: "{{ trigger.to_state.state }}" ### passes the current value of target_temp to your script.
Your script will of course have to be capable of accepting this value.
Invalid config for [automation]: expected a dictionary for dictionary value @ data[‘action’][0][‘data_template’]. Got None. (See /config/configuration.yaml, line 145). Please check the docs at Automation - Home Assistant