Sonof TH16 with ESP Easy Mega, can't get temp value to Home Assistant

Hello !

I’m a little bit new to Home Assistant. I have a domoticz setup with a few TH16 temp sensor (Pool, office, kitchen, etc), Z-wave and dince I wanted to add a Broadlink RM4 pro, which doesn’t seems to work well on that platform, I want to switch to Home Assistant.

I’m trying without needing to reflash all my Sonoff, using MQTT.

MQTT Mosquitto is configured, I am gettign a message that the device is “Connected”, Great!!! Now, ESP easy says:

3135739005: EVENT: MQTT#Temperature=22.60
3135739011: EVENT: MQTT#Humidity=59.90

So, I’m trying to get these message to Home Assistant, but doesn’t seems to work. Like I said, I’m new to this platform and using MQTT, but I’m learning quite fast :slight_smile:

here’s my config yaml:

sensor:

  • platform: mqtt
    name: “Sous-Sol_Temperature”
    state_topic: “home/Sous-Sol_Temperature/MQTT/temperature”
    unit_of_measurement: “°C”

  • platform: mqtt
    name: “Sous-Sol_Humidity”
    state_topic: “home/Sous-Sol_Temperature/MQTT/Humidity”
    unit_of_measurement: “%”

Feel free to tell me that I am doing it wrong, I want to learn about this, so I can migrate to HA :smiley:

Thanks in advance!

Well, I’ve finally found why this wasn’t working. learning more . I had to check MQTT Retain Msg: in ESP Easy Mega.

Just got all my sensor working.