Set the room thermostat to switch the boiler on if temperature is less than the target temperature via another device

Hi,
I am a very new novice to home assistant and probably trying to do something too complicated for me!

I want the room thermostat to turn the boiler on at 7am if the temperature is below the target temperture that is set in the schedule. When the target temperature has been reached to trun off the boiler but when/if the temperature drops below the target to turn on again etc.

Have you looked at the generic thermostat integration?

Wow, that looks exactly what i require. Being thick! How do I go about adding this to my Home Assistant?

Any advice is greatly appreciated.

Well… first thing to check is that there isn’t an integration for your existing thermostat. If there is, use that! :grinning_face_with_smiling_eyes: There’s a list of integrations here:

I really appreciate your time and patience.
There does not appear to be an integration. I have a Moes BHT-006 Zigbee thermostat that I have in my Dashboard along with a Tuya Smart switch Relay module with dry contacts, also in my dashboard that I want to use to turn the boiler on and off.

Well… to make basic use of the generic thermostat you need two things:

  • A switch to turn the boiler on and off
  • A sensor to monitor the temperature in the room

Sounds as if you have the first. You may be able to get the current room temperature from your Zigbee thermostat, but if not another device may do it - motion sensors, for example, often include a temperature monitor.

Then you would need something like this in your configuration.yaml (this is the example from the docs):

climate:
  - platform: generic_thermostat
    name: Study
    heater: switch.study_heater
    target_sensor: sensor.study_temperature
    target_temp: 18

Name can be anything you like. switch.study_heater should be replaced by the entity_id of your Tuya switch, and sensor.study_temperature should be replaced by the entity_id of your temperature sensor.

I would suggest that you experiment with this, then if it works take a look at ways of changing target_temp dynamically at different times. There is a thermostat card for the dashboard that would allow you to adjust the temperature manually.

The trouble with this approach is that it bypasses your existing thermostat - at best you’re just using it to monitor room temperature. I know nothing about Zigbee, but there may be a way to control it directly. Perhaps someone else can jump in.

Thank you very much I will experiment with the above code and enter it into the configuration.yaml.

Fingers crossed!