Shelly H&T

The Shelly H&T is a WiFi enabled humidity and temperature sensor. The device looks a little like a golf ball and is available in black or white.

I don’t want to use the Cloud. Thus, I needed to enable the MQTT support. The Shelly H&T features a Soft-AP which allows one to setup everything that is needed through a web interface on the device.

After enabling the MQTT support you will be able to enter the details of your broker.

Unfortunately, there is no support for Home Assistant‘s MQTT discovery feature. Doesn’t matter as the integration is still quite easy.

There are various topics present which are also properly documented in Shelly API documentation.

$ mosquitto_sub -h 192.168.0.30 -v -t "#" 
shellies/shellyht-1AE412/online true
shellies/announce {"id":"shellyht-1AE412","mac":"A43B32B1AE412","ip":"192.168.0.31","new_fw":false, "fw_ver":"20190214-074729/1.4.7-revertwifi@0f3372b3"}
shellies/shellyht-1AE412/sensor/temperature 22.38
shellies/shellyht-1AE412/sensor/humidity 61.5
shellies/shellyht-1AE412/sensor/battery 100

As we know the topics the configuration for Home Assistant could look like this pretty minimal sample:

binary_sensor:
- platform: mqtt
state_topic: "shellies/shellyht-1AE412/online"
name: Shelly State
payload_on: "true"
payload_off: "false"

sensor:
- platform: mqtt
name: Shelly Humidity
state_topic: "shellies/shellyht-1AE412/sensor/humidity"
unit_of_measurement: "%"
- platform: mqtt
name: Shelly Temperature
state_topic: "shellies/shellyht-1AE412/sensor/temperature"
unit_of_measurement: "°C"
- platform: mqtt
name: Shelly Battery
state_topic: "shellies/shellyht-1AE412/sensor/battery"
unit_of_measurement: "%"

Thanks Bastelgarage for sending me this device to play around with.

This entry was posted in General. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.