Writing this to document the solution i found to missing coiot events on port 5683 from my shelly i3.
I followed the instructions, and setup unicast coiot messages to my hass_ip:5683 in the shelly config.
I have my shellies on a 10.0.1.x/24 subnet, and my home assistant install on 10.0.0.x/24
My hass install straddles both subnets / vlans, but since the shellies were getting a subnet mask of 255.255.255.0 (ie, on a /24), the CoIOT messages intended for hass were being routed via my default gateway.
I think this was why home assistant didn’t see any shelly.click
events.
I enabled logging like so:
logger:
default: info
logs:
aioshelly: debug
aioshelly.coap: debug
homeassistant.components.shelly: debug
and noticed in the logs that the CoapMessage had a source ip of the router, instead of the shelly’s ip:
DEBUG (MainThread) [aioshelly.coap] CoapMessage: ip=10.0.0.1 ... <--- the router
Anyway, solved for now by giving the shellies a /16, ie a subnet mask of 255.255.0.0 so they can directly send to the home assistant IP without routing via the gateway.
Another possibly better option is to give the hass box a second IP on the shelly subnet and vlan and have coiot hit that directly.
Hope this helps someone, it annoyed me all morning.