StyraHem / ShellyForHASS

Shelly smart home platform for Home Assistant
MIT License
616 stars 111 forks source link

[FR] Allow disabling polling #726

Open LordMike opened 1 year ago

LordMike commented 1 year ago

Is your feature request related to a problem? Please describe.

I'm currently trying out S4H and I want to be very sure that polling is not used, like at all. I want to know if polling is used, becuase if it is, then something else is wrong (CoAP has been blocked, or MQTT stopped working, or ..)..

Describe the solution you'd like

I can disable mDns for discovery and stuff like that, but I can't enable/disable just CoAP, or just Polling etc. Ideally, in the settings page, I'd have a "Use polling" and "Use CoAP", which I could then disable.

If CoAP then doesn't work - the entities should perhaps become unavailable, or maybe just not update (Again, so that I can realize that it doesn't work as expected).

Describe alternatives you've considered

I'm currently trying to ensure that CoAP is working as it should, but when I use tcpdump, I can see that HTTP is used - even though CoAP messages arrive. I've considered making a firewall rule to stop the HTTP to/from my lights, but I'm thinking this is better.. :)

Additional context