Shelly H&T Plus -> push sensor updates to Home Assistant

Hi, I would like my Shelly H&T Plus to trigger automations on Home Assistant when it reaches various thresholds of temperature and humidity. Unfortunately because it is a battery operated device it isn’t designed to make proactive data pushes to Home Assistant and even more problematic is that it shuts it self down in between rare and periodic refreshes such that it doesn’t even respond to network requests from HA.

I gather that using websockets I can achieve what I want but I have followed the setup guides and still it doesn’t update HA.

Would anyone be able to help me out?

Cheers.

I am having the same problem , the shelly app updates nicely.

I’ve managed to solve this one, however the H&T Plus still only updates at most once every 5 minutes and it seems there isn’t a way to reduce that.

Solution:
The WebSockets are used to stream sensor data to HA but for triggering automations WebHooks need to be used.
Keep the WebSockets set up.
Configure a webhook in the Shelly H&T Plus and then reference it from a Home Assistant automation like this:

When: When a web hook payload has been received
Webhook ID: id
Settings: GET; Only accessible from the local network

Better solution:
Use the Shelly Plus Add-on with a DHT22 peripheral, all attached to a Shellt Plus 1 (or 1PM) instead. This measures temperature and humidity, updates about once a second, and can be used in the normal way to trigger automations.

1 Like

Hi @ozpac, Thanks so much for your post. You solved my problem. The Shelly HT Plus was driving me mad. LOL. I have it reporting it’s values in my Home Assistant dashboard (that’s a whole other story). But I was unable to base any Home Assistant automations on the temperature and humidity readings from it. The automations never “fired”. So I used your webhook method to make them fire. I created the Home Assistant automation with my Webhook ID as shellyplusht-99946fc9da7c (this is my Shelly device name). I added the “And If” where the Entity is my Shelly temperature, Above mode = Fixed number, Above =10. Then I went to “https://control.shelly.cloud/#/home/devices/-1”, clicked on MyHome then click on All Devices then click on my Shelly TempHumidy device. The menu appears on the right, and I clicked on the chain links icon. I add an Action with Set Active Time unchecked, Temperature Change selected, Condition = Any, RepeatWhen = 0, URL = http://192.168.1.99:8123/api/webhook/shellyplusht-99946fc9da7c Note: my HomeAssistant is at 192.168.1.99 When I hit Save it tells me the action will be installed on the Shelly unit on the next restart. My Shelly HT Plus has no batteries installed but it is powered by a USB-C power supply. So I unplug the power supply from the Shelly and plug it back in and the Shelly restarts and the Action is “loaded”. I still have some refining to do but I feel like I might be able to reach a working solution from here. I hope someone will find this additional info useful. Sorry if this misleads anyone. Total newbie here. I would never have got this far without ozpac. But I had no idea how to do the other half of the setup.

2 Likes