Problem with Shelly new ht plus sensor

I was puzzled by this as well. Problem was that the firmware the Shelly was shipped with didn’t have the “Outbound websocket” option. After updating to the latest firmware the option still didn’t show up. A simple refresh of the “Network settings” page did the trick.

I also had the problem with the “outbound websocket” option not appearing - it sorted itself out eventually though and I got it set up. All working very well now with standard firmware and the Shelly integration - It’s updating every 5 minutes or so, with none of the issues the OP had.

Offtopic… how much does the battery last?

@gaRFio01 I guess nobody can really tell, since this is a fairly new product. All I can tell you that within the 10 days I have this device, battery went down from 100% to 98%. When I get bored I’m gonna measure power consumption over a day or so.

Can someone do a writeup exactly how to get this working? What ssl connectivity settings in the Shelly websocket settings, Is the url to the websocket ws or wss if you have DuckDNS/https enabled in HA? Is there a way to verify that HA is listening on ws://192.168.xxx.zzz:8123/api/shelly/ws ? In the Shelly device i cannot “light” up" the websocket connection icon.

2 Likes

Just got it working, here is a small write up:

  1. Go to your Shelly app and select your Shelly H&T Plus device > Settings > Networks > Outbound websocket ? select ca.pem. And write below it ws://192.168.1.xxx:8123/api/shelly/ws
    Offcourse replace the xxx with your own numbers. Then press save. Now reboot the shelly device
  2. Go to your home assistent app. Delete the old integration of Shelly H&T Plus if you have any
  3. Now press the button on the Shelly H&T plus device (the small black button on the back next to the batteries. Now the device will go to “Set” on display.
  4. Now wait untill the Home Assistant app sees the shelly H&T plus integration. Add it.
  5. It can take some time untill you see the sensors there.

This worked for me, hope it helps.

8 Likes

Nice. For me, it is not working. The WebSocket is connected, but the device doesn’t appear in the list of devices, nor the entities, even if it says that the device is already configured. Where should I find the entities and how can I use the device? Thanks for any ideas.
Selection_043

Selection_045

Did you miss 2 above?

Exactly what i did. Cannot get the websocket to connect though. Is there anyway to check that the shelly api is working in HA? I got 20+ Gen1 devices that are working without problems. The Shelly Integration has been installed since it was first released and iäm running a standard HA on RPi.

You should stick to the documentation:

Use the a local IP address instead of a FQDN for your web socket. Also “wss://” might not be working, use “ws://” instead.

Then you should be golden.

Nope, when documentation and examples doesn’t help you have to ask right! There’s not so many things to tweak other then ws\wss and ssl settings. Punched a hole in the firewall and successfully connected via wss to the service from online tester at Online Websockets Tester - Debug Client Tool so i think i can rule out the Shelly integration.
Gonna try a factory reset of the device next time i’m on location.

After some time to dig into my new Shelly Plus HT, I finally got it to work with HA 2022.11.4.
The main challenge is related to the Outbound websocket.
1st - if you dont see that option under “networks”, install the lasted firmware update
2nd - depending on how you have setup the access to HA you have to use ws:// or wss://.

Option 1 - if you dont have SSL / https access to your HA, then use ws://192.168.x.xxx:8123
Option 2 - if you have SSL / HTTPS access to your HA, then use wss://192.168.x.xxx:8123
Option 2.1 - if you want to connect your Shelly to your external FQDN, then select under SSL Connectivity “ca.pem”
Option 2.2 - if you want to connect your Shelly to your internal IP, then select under SSL Connectivity “*”

4 Likes

I actually successully connected to the websocket with wss and external url NAT-ing port 443 to 8123.
But still no entities. Tried numerous times to add the device when it was woken up with the button and also during the normal 10 seconds wake up period. Also did multiple HA restarts.

2 Likes

Are the issues with not reporting temps allready fixed with this thing?

im planning on using mqtt but i read about problems with updating temps. Does this device report temps faster now when connected to the mains power

Yes it updates faster ( every 5 minutes ) when power is connected.

For me , it doesn’t work . I followed the instructions that were described :slight_smile:
1)On the Shelly H&T Plus device :
ws://192.168.1.XXX:8123/api/shelly/ws
2). Go to your home assistant app. Delete the old integration of Shelly H&T Plus if you have any
3) Now press the button on the Shelly H&T plus device (the small black button on the back next to the batteries. Now the device will go to “Set” on display.
4) Now wait untill the Home Assistant app sees the shelly H&T plus integration. Add it.
HA

So Home Assistant seems to have discover the device but no device or entities
What can I do ?
Home assistant : 2022.11.4
Shelly : 0.11.4

1 Like

Does the Outbound websocket shows connectés?

Shelly H&T Plus
It is disconnected however, Home Assistant detects it. What do you think is the problem?
Many thanks for your reply

Your websocket should be connectée. As long as it’s not, it will not work.