I am trying to build a custom hot tub controller using the generic thermostat card to control the temp but need some help with controlling the temperature setting up or down with a physical button. I had it working then had some problems with my tasmota D1 mini and now it doesn’t work. I found this online and adapted it but now it is not working. Not sure what happened but if you have any help I would greatly appreciate it. I have double checked everything but cant figure out what is wrong. I am not very good with this and have had a lot of problems trying to figure out indentions and format in general.
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
# Text to speech
tts:
- platform: google_translate
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
climate:
platform: generic_thermostat
name: spa_heater
heater: switch.spa2 # MY SMART PLUG
target_sensor: sensor.spa2_ds18b20_1_temperature # MY TEMPERATURE SENSOR
min_temp: 70
max_temp: 120
ac_mode: false
#target_temp: 30
cold_tolerance: 2
hot_tolerance: 2
script:
heat_up:
alias: heat_up
sequence:
- service: climate.set_temperature
data_template:
entity_id: climate.spa_heater
temperature: "{{(state_attr('climate.spa_heater' , 'temperature')|round(0)) + 1 }}"
heat_down:
alias: heat_down
sequence:
- service: climate.set_temperature
data_template:
entity_id: climate.spa_heater
temperature: "{{(state_attr('climate.spa_heater' , 'temperature')|round(0)) - 1 }}"