Open marcolivierarsenault opened 1 year ago
hey @marcolivierarsenault got any timeline for this
no, tbh, no bandwidth has not progressed in months.
I have created a template switch that makes respectively an output pin from the board up or down; then, using value_template for a relevant numeric sensor I get from the board to refresh the state of the switch (this is for driving a fan)
Having 30 seconds makes the switch to temporarly revert to the older state when commuting.
Hardcoding 2 seconds solved the issue brillantly, nonetheless having this pull-based looks definitively much more elegant :)
Why not simply change/update the interval when the printer becomes active?
yeah that makes sense. with the delay to the push mode, I will likely add a parameter to pull at a higher frequence
@jamincollins I have added an option to set a different timer.
details here: https://moonraker-home-assistant.readthedocs.io/en/latest/connection.html#polling-rate-configuration
make sure to download latest (main
) version of the code: https://moonraker-home-assistant.readthedocs.io/en/latest/support/latest.html
Thank you
where is that optin for change pooling rate?
Under configure tab in moonraker integrations on HA
where is that optin for change pooling rate?
Right now the integration refresh every 30 sec, which is too slow for many people.
We will be pivoting this integration in pull mode instead of push.
Temporary solution you can lower the refresh rate https://github.com/marcolivierarsenault/moonraker-home-assistant/blob/ca5c81fcf24264f6bf3a7910cbb274829c15e9be/custom_components/moonraker/__init__.py#L29