Thermostat card and shelly devices

I’ve got a number of shelly 1 pro (that switch on/off a boiler) and shelly ht devices integrated with home assistant, and I’ve written some basic automations. It works great.

I’m looking to implement a Thermostat Card, but it appears to require a climate configuration, and it’s not clear to me how this works. All I want to do is use visualise a thermostat, which renders the current temperature (as per a shelly ht), and allows a target temperature to be set through toggling the shelly 1 device.

Is this use-case supported? Everything has been so easy with the cards but this feature escapes me!

read this

here is mine

- platform: generic_thermostat
  name: "Gas Heater"
  heater: switch.gas_heater
  target_sensor: sensor.bt_lounge_temperature
  min_temp: 15
  max_temp: 30
  ac_mode: False
  target_temp: 20.8
  initial_hvac_mode: "off"
  cold_tolerance: 0.2
  hot_tolerance: 0.2
  away_temp: 16
3 Likes

I will. I was also looking at:

but I’d still like to understand how a climate is created.

I use this one

image

type: custom:thermostat-card
entity: climate.gas_heater
title: Gas Heater

And where do you set up the climate, and link to a shelly?

In your config file add this

climate: !include climate.yaml

then in the climate.yaml file put this

- platform: generic_thermostat
  name: "just the name of it"
  heater: switch. this would be your shelly switch
  target_sensor: sensor. this would be a thermostat in your house
  min_temp: 15
  max_temp: 30
  ac_mode: False
  target_temp: 20.8
  initial_hvac_mode: "off"
  cold_tolerance: 0.2
  hot_tolerance: 0.2
  away_temp: 16

then do a yaml check configuration check if passes do a restart

4 Likes

This is perfect. It ties the shelly 1 with the shelly h&t, and allows me to use the thermostats. I hope this is of use to someone else.

(Perhaps Shelly can build this out of the box!)

1 Like

Thank you all!
Had the same problem und the solution is unbelievable easy.

But I have one little problem with that. My other climate cards has the option for heating, off and automatic mode. With this card, i only get the options heating and off. How can I use the automatic function, to give a degree and it automatically activates or deactivates the shelly?

1 Like