christianh17 / ioBroker.bydhvs

BYD HVS Battery Adapter for ioBroker
MIT License
19 stars 11 forks source link

Lower poll interval limit below 60 seconds? #277

Open protree opened 7 months ago

protree commented 7 months ago

Is there a reason why the poll interval is limited to 60 seconds? I manually decreased it down to 15 seconds and it seems to run stable despite some random connection errors (Error connecting to 192.168.XXX.XXX) that occur every few minutes. The only downside of those connection errors that I can see is that some polls are missed but this is better than having an update only every 60 seconds. The adapter seems to runs stable even though.

Is there any known risk to damage/overload the battery when decreasing the poll interval?

relevant code: https://github.com/christianh17/ioBroker.bydhvs/blob/55d06a849a015b35995e8e3fdc3c35f57fdd9c0d/main.js#L1174-L1177

EDIT: 15 seconds, not 5...