Skip to content

Need to be able to change shelly polling frequency #96010

Description

@se4n01

The problem

The momentary mode on shelly switches does not work with the integration. The actuation is too short for homeassistant polling to detect unless you set the auto off value to something extremely long (30+s). This is totally impractical for certain types of switches.

What version of Home Assistant Core has the issue?

2023-7.0

What was the last working version of Home Assistant Core?

N/A

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Shelly

Link to integration documentation on our website

https://www.home-assistant.io/integrations/shelly/

Diagnostics information

N/A

Example YAML snippet

N/A

Anything in the logs that might be useful for us?

OK so to fix this is very easy, you just need to modify the `/homeassistant/components/shelly/const.py` file and decrease the polling multiplier. I found a value of 0.15 is working well (default is 2.2) this makes the polling around 15x faster and the auto-off time in shelly can be set to 2s and homeassistant will detect the momentary switch after this change.

Ideally, a setting could be added into the shelly integration config to set the multiplier in the GUI. 

Big thanks to this thread which helped me identify the problem without too much pain:
https://community.home-assistant.io/t/shelly-official-integration-update-interval/281001/4

Additional information

No response

Metadata

Metadata

Type

No type

Fields

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions