Adding Shelly H&T via MQTT

So I’m trying to add some Shelly H&T via MQTT and it’s sort of working. Below is my section from configuration.yaml. I have one sensor and the only thing that shows as an entity is ShellyHT-temperature and then it’s showing up like a battery with the numbers being in %. Not sure what is wrong. I’m not an expert on HA. Just started with having to edit config files. Any help or pointer would be greatly appreciated. Thanks

mqtt:
  sensor:
     name: "ShellyHT-temperature"
     unique_id: "shellyht-78F843"
     unit_of_measurement: '°F'
     expire_after: 86400
     device_class: temperature
     icon: mdi:home-thermometer-outline
     qos: 1
     state_topic: "shellies/shellyht-78F843/sensor/temperature"
     json_attributes_topic: "shellies/shellyht-78F843/announce"
  sensor:
     name: "ShellyHT-humidity"
     unique_id: "shellyht-78F843"
     unit_of_measurement: '%'
     expire_after: 86400
     device_class: humidity
     icon: mdi:water-percent
     qos: 1
     state_topic: "shellies/shellyht-78F843/sensor/humidity"
  sensor:
     name: "ShellyHT-battery"
     unique_id: "shellyht-78F843"
     unit_of_measurement: '%'
     expire_after: 86400
     device_class: battery
     icon: mdi:battery
     qos: 1
     state_topic: "shellies/shellyht-78F843/sensor/battery"

Your YAML seems incorrect, here’s mine for reference:

mqtt:
    sensor:
      - name: Theater Room Temp
        state_topic: "shellies/shellyht-E01531/sensor/temperature"
        device_class: temperature
        unit_of_measurement: "°F"
      - name: Theater Room Humidity 
        state_topic: "shellies/shellyht-E01531/sensor/humidity"
        device_class: humidity
        unit_of_measurement: "%"
      - name: Theater Room H&T Battery
        state_topic: "shellies/shellyht-E01531/sensor/battery"
        device_class: battery

That did it. Thanks!

On yours how often do you see temperature/humidity updates? I see hours go by without anything being reported. Thanks in advance.

Ah - I just found this on mine:
image

You can’t go below a 0.5 degrees C delta, but the RH can be set to a delta of 1% RH. So set that and see if you get better behaviour in HA.

Oddly enough I’ve just updated to beta firmware 0.13.0-beta1 - it offered it to me for some reason and now it’s offering me 0.12.0 again.


So some oddness going on there too. I don’t see many changes anyway in 0.13.0.

Thanks for the screenshots. I’ll take a look at that.

What do you see for battery percentage? Mine are constantly saying 100% which is great if really uses that little but wanted to verify what other people are seeing. Also sometimes the batteries randomly say unavailable. Is anyone seeing the same? Thanks

My yaml entry did not work until I changed it to:-

mqtt:
  sensor:
    - unique_id: ensuite_temp
      name: Ensuite Temperature
      state_topic: "shellies/shellyht-6A5761/sensor/temperature"
      device_class: temperature
      unit_of_measurement: "°C"

    - unique_id: ensuite_humid
      name: Ensuite Humidity 
      state_topic: "shellies/shellyht-6A5761/sensor/humidity"
      device_class: humidity
      unit_of_measurement: "%"

    - unique_id: ensuite_batt
      name: Ensuite H&T Battery
      state_topic: "shellies/shellyht-6A5761/sensor/battery"
      device_class: battery

Hi all! im new to home assistant and im tring to configure a shelly h&t. But the only thing im able to do is find it as a device: