volkszaehler / mbmd

ModBus Measurement Daemon - simple reading of data from ModBus meters and grid inverters
BSD 3-Clause "New" or "Revised" License
224 stars 81 forks source link

Polling interval of the Meter customizable #309

Open iz8mbw opened 1 year ago

iz8mbw commented 1 year ago

Hello. I'm using mbmd since few days so I'm not expert on this. My goal is to use mbmd with Home Assistant and may be in future publish the data of my SDM120 meter to MQTT.

I see mbmd publish data via a Web interface and for now it's OK for me since I can interrogate the Web interface via various way (curl/REST are examples),

My question for now is: is it possible to customize in mbmd via a parameter the polling interval of the Energy Meter (SDM120 in my case)?

Thanks.

grmat commented 1 year ago

To poll every 30 seconds for example, use the cli parameter "rate " (e.g. --rate 30s) or add rate: 30s" at the top level in your yaml config.