Hi
What do you mean by hardware/code.? I am using Sonoff Basic with Tasmota, and a rasperry pi3b+.
My configuration.yaml file has the following to control it. Both the switch and the climate parts are working, I just dont get the current temperature showing on the Home Assistant overview screen.
switch:
platform: mqtt
name: “Back_Room_Rad_1”
command_topic: “cmnd/Back_Room_Rad_1/power”
state_topic: “stat/Back_Room_Rad_1/POWER”
qos: 1
payload_on: “ON”
payload_off: “OFF”
retain: true
sensor:
* platform: mqtt
name: “Back_Room_Rad_1_Temperature”
state_topic: “tele/Back_Room_Rad_1/SENSOR”
value_template: “{{ value_json[‘DHT11’].Temperature }}”
unit_of_measurement: “°C”
* platform: mqtt
name: “Tele Humidity”
state_topic: “tele/Back_Room_Rad_1/SENSOR”
value_template: “{{ value_json[‘DHT11’].Humidity }}”
unit_of_measurement: “%”
climate:
* platform: generic_thermostat
name: “Back Room Rad1”
heater: switch.Back_Room_Rad_1
target_sensor: sensor.Back_Room_Rad_1_Temperature
min_temp: 18
max_temp: 23
target_temp: 22
Tolerance : 0