ned-kelly / docker-voltronic-homeassistant

Programmatically read data from your Voltronic, Axpert, Mppsolar PIP, Voltacon, Effekta etc Inverter and send it to Home Assistant via MQTT - Works with RS232 & USB!
GNU General Public License v3.0
257 stars 140 forks source link

'run_interval' does not change polling interval #96

Open SuperMaximus1984 opened 1 year ago

SuperMaximus1984 commented 1 year ago

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 commented 1 year ago

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

dev-null2019 commented 1 year ago

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 ...