@Schimmelreiter To resolve this specific error you mention, you should update the firmware on the device’s own direct webpage in your browser. In the Shelly app (browser or mobile up shelly will tell you that there is no update available!, but there is!)
Update is a necessay step, but after updating the problem will not be solved. See here : websocket will not connect.
@cipo Congrats! However I do not consider this as a Royal solution. The ‘normal’ HT and the Motion 2 sensors do not need workarounds. They work conform specifications. So should the Plus HT.
I would like to urge everyone to file a ticket at Shelly, so the issue can be properly fixed.
Just to make sure it’s clear what problem I was having that could be worked around with Dnsmasq, here’s a summary of how I understand it:
I am using DuckDNS.org to access my HA instance on the road.
This means that not only the “http:” traffic, but also the “ws:” traffic is switched to secure, i.e. to “https:” or “wss:”.
If the server URL is now specified using FQDN in the Shelly device, HA will receive the public IP, which is different from the internal IP specified in the payload, and thus HA currently will not be able to process the information. (State: connected, no data).
If the server URL is specified on the Shelly Plus H&T using the internal IP address, a certificate error occurs. (state: not connected)
Disabling certificate checking is not possible with the current FW of Shelly Plus H&T. (Supposedly this was possible with earlier versions).
Hence the approach with Dnsmasq as a quickfix, simply to deliver HA as expected with data packets with the internal IP.
How other Shelly Gen.2 devices behave, I don’t know, because I don’t have another Shelly Gen.2 device (yet).
In any case, from the user’s point of view, this is anything but pleasant. Just thinking about how much time passed until I understood the cause of the problem. (Sorry guys, didn’t get it sooner. )
I agree that in terms of frustration reduction, a fundamental solution is needed. However, I am not sure conceptually if this is to be provided by either Shelly or HA. Or perhaps by both together?
Thank you! That helped. I thought I already had that set up (using a pi-hole with dns masking and resolving) but apparently it didn’t pick it up correctly. I’ve reconfigured the HTPlus to use the pihole dns server statically and it pops up.
Thank to all your input I was able to integrate my Shelly H&T Plus into Home Assistant. I have a device now and also the sensors. But I cant assign the device to any room? What am I missing? How can I add the H&T Plus to the room where it physically is?
Hi Cipo,
Could you pls explain how to disable DNS on the router?
My setup is as follows:
The router (a German FRITZ!Box) has a port forwarding for port 80 and 443 to the HA server. There I have an NGINX reverse proxy mapping the duckdns server to the HA server with port 8123.
I now have configured the HT+ Shelly as you described, set up the masq dns server, but still no clue how to get it showing the entities…
Any help would be greatly appreciated.
Cheers,
Hauke
Hi guys. Quite new into this HA world…
For these Shelly HT Plus, I am suffering a bit…tried all the above, but could not have it to work. Would you have any further suggestions or debug ideias?
I have the same issues and was not able to solve it with the points above. I have no vlans or tls aktivated. I did not get any entities. Is this a bug in the shelly integration? i have a lot of shelly devices, the normal h&t (not the plus) work without any problems and it was not necessary to configure anything like a websocket on the device.