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
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
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/AAnything in the logs that might be useful for us?
Additional information
No response