MHudo
Published © GPL3+

Smart radiator thermostat

Do you want to control your radiator thermostats with Home Assistant trough MQTT? Look no further, this project has you covered.

IntermediateFull instructions provided2 hours420
Smart radiator thermostat

Things used in this project

Hardware components

Infineon CY8CPROTO-062-4343W
×1
Old electronic thermostat
×1
Raspberry Pi 4 Model B
Raspberry Pi 4 Model B
×1

Software apps and online services

ModusToolbox™ Software
Infineon ModusToolbox™ Software
Home Assistant
Home Assistant
MQTT
MQTT
Raspbian
Raspberry Pi Raspbian
Docker

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)

Story

Read more

Schematics

Thermostat DC motor driver

H-bridge DC motor driver circuit with stall detection resistor divider.

Code

mosquitto.conf

YAML
Mosquitto MQTT broker config file
listener 1883
persistence true
persistence_location /mosquitto/data/
log_dest file /mosquitto/log/mosquitto.log
allow_anonymous true

docker-compose.yaml

Dockerfile
Docker compose with MQTT and Home Assistant
version: "3"
services:
  # mqtt5 eclipse-mosquitto
  mqtt5:
    image: eclipse-mosquitto
    container_name: mqtt5
    ports:
      - "1883:1883" #default mqtt port
    volumes:
      - ./mqtt5/config:/mosquitto/config:ro
      - ./mqtt5/data:/mosquitto/data:rw
      - ./mqtt5/log:/mosquitto/log:rw
    restart: unless-stopped

  # home assistant
  homeassistant:
    image: homeassistant/home-assistant:stable
    container_name: homeassistant
    ports:
      - "8123:8123"
    volumes:
      - ./homeassistant/config:/config
      - /etc/localtime:/etc/localtime:ro
    restart: unless-stopped

Smart Radiator Thermostat

FW code repository

Credits

MHudo

MHudo

2 projects • 0 followers

Comments