Can I set the thermostat Heater or Cooler as an Action like a script?
I have a Google / Alexa connected Aprilaire thermostat and it can take commands to set certain Temp value or Mode through Alexa / Google assistant SDK.
Or have a custom Slider UI which will pass the slider value to the script in order to trigger Hey Google, set the thermostat to {$value_passed}
& subsequently create 3 - 4 buttons in order to trigger Fan
, Heat
Cool
and Humidifier
, Air Cleaning
modes?
I’m getting the home temperature using Alexa Echos placed in different rooms for an average house temperature.
Currently set this in my Configuration.yaml
# Generic Thermostat
climate:
- platform: generic_thermostat
name: Aprilaire Custom Kenscape Tom
heater: script.custom_home_thermostat
target_sensor: sensor.kenscape_temperature
min_temp: 14
max_temp: 25
ac_mode: false
target_temp: 19
cold_tolerance: 0.3
hot_tolerance: 0
min_cycle_duration:
seconds: 5
keep_alive:
minutes: 3
initial_hvac_mode: "off"
away_temp: 14
precision: 0.1
# end Generic Thermostat
Script for increasing or decreasing values of Temperature
alias: Increase thermostat by one
sequence:
- service: google_assistant_sdk.send_text_command
data:
command: increase thermostat by one
mode: single
icon: mdi:thermometer-chevron-up
Script for Thermostat modes like Heat / Cool / Off
alias: "Heat Home Thermostat "
sequence:
- service: input_boolean.toggle
data: {}
target:
entity_id: input_boolean.thermostat_heat_power
- if:
- condition: state
entity_id: input_boolean.thermostat_heat_power
state: "on"
then:
- service: google_assistant_sdk.send_text_command
data:
command: turn thermostat mode to heat
else:
- service: google_assistant_sdk.send_text_command
data:
command: turn OFF thermostat
mode: restart
icon: mdi:heat-pump
I did watch some youtube videos and read up on better thermostat but couldn’t fully understand the concept since they had switches
for heater or cooler. Which I don’t have. I don’t have option to just turn on heating or cooling. Aprilaire Thermostat 8940 (without the automation option in contractor settings) needs to set a temperature value and can’t just act as a switch. After it reaches that temperature it automatically sets ON or OFF.
Any help is appreciated. Kinda new to Home Assistant 3 - 4 months but mobile engineer by profession. Just wanted to know if someone has done it rather than me starting with something when there could be a better solution all along.
Currently on iPad but I want to change the Thermostat
Card to have individual addressable buttons and slider value sent into the appropriate scripts which will trigger my Alexa | Google Thermostat.