Shelly H&T on Power Supply doesn't work on HA Docker

Hi all,

new here and my first project was to integrate Shelly H&T into HA that I host on Docker.

I configured everything as per documentation using the coap port 5683.

My Shelly H&T runs on 192.168.0.181
My HA runs on 192.168.0.92.

The Shelly checks in regularly when it wakes up, but my HA dashboard still says, that Humidity and Temperature is not available.

I started digging into the logs and saw that the periodic checkin from my Shelly H&T comes from 172.17.0.1 which is the internal docker host ip. (see log line below)

2022-07-15 07:49:09 DEBUG (MainThread) [aioshelly.coap] CoapMessage: ip=172.17.0.1, type=periodic(30), payload={'G': [[0, 9103, 0], [0, 3101, 23.38], [0, 3102, 74.08], [0, 3103, 60.0], [0, 3115, 0], [0, 3111, 100], [0, 9102, ['periodic']]]}

I suspect that HA doesn’t recognize this coap message as a periodic check-in from 192.168.0.181 and just ignores it…

Can someone assist me analyzing and fixing this?