docker-voltronic-homeassistant icon indicating copy to clipboard operation
docker-voltronic-homeassistant copied to clipboard

'run_interval' does not change polling interval

Open SuperMaximus1984 opened this issue 2 years ago • 2 comments

Changing 'run_interval=120' to any other figure does not impact polling interval. It remains at default figure 30 seconds. I need to make it 10 seconds. How? Should I recreate containers, simple restart doesn't apply the new parameter.

SuperMaximus1984 avatar Dec 08 '22 07:12 SuperMaximus1984

@ned-kelly , please help to sort this out. Thank you in advance!

SuperMaximus1984 avatar Jan 14 '23 15:01 SuperMaximus1984

Hello! You can edit the last line in the file /opt/inverter-mqtt/entrypoint.sh inside the docker container.

watch -n 30 /opt/inverter-mqtt/mqtt-push.sh > /dev/null 2>&1

the lowest that works is 2 seconds

watch -n 2 /opt/inverter-mqtt/mqtt-push.sh > /dev/null 2>&1

With this I get updates around every 10s in Home Assistant - have to find out where the delay comes from. It is probably my mosquitto mqtt ...

dev-null2019 avatar Jul 06 '23 10:07 dev-null2019