KinDR007 / VictronMPPT-ESPHOME

Victron Mppt charger ve.direct to esphome node
MIT License
290 stars 64 forks source link

how to slow the polling of the sensor? #18

Closed gazzaman2k closed 3 years ago

gazzaman2k commented 3 years ago

is there any way to stop it updating every 2 seconds and set it to scan like once every 10seconds? its too frequent and will soon fill up my databases

but great work got it running on a victron mppt 250/70 and esp32-s

KinDR007 commented 3 years ago

is there any way to stop it updating every 2 seconds and set it to scan like once every 10seconds? its too frequent and will soon fill up my databases

but great work got it running on a victron mppt 250/70 and esp32-s

Hi , use function of esphome !! Add

udate_interval: 10s

to sensor 😉

syssi commented 3 years ago

This isn't correct. The component doesn't use the pollig_component_schema / isn't polling the device. The victron device pushs a new message every two seconds. You should use a filter to throttle the publishing of the measurements. You could also use a filter to calculate a median: https://esphome.io/components/sensor/index.html

syssi commented 3 years ago

@gazzaman2k Off-topic: Do you own the smart version (bluetooth) or the standard version of the mppt 250/70?

gazzaman2k commented 3 years ago

its the smart version with bluetooth

KinDR007 commented 3 years ago

This isn't correct. The component doesn't use the pollig_component_schema / isn't polling the device. The victron device pushs a new message every two seconds. You should use a filter to throttle the publishing of the measurements. You could also use a filter to calculate a median: https://esphome.io/components/sensor/index.html

Hi, all data counts/calculate victron, median is in my opinion useless, or am I wrong?

KinDR007 commented 3 years ago

@syssi ,Hi is it possible to contact you outside of github? discord or telegram for example?

gazzaman2k commented 3 years ago

i used

filters:
  - median:
      send_every: 10

Working great thanks, having it update every 2 seconds you could see the mppt calculating its maximum tracking points and causes it to spike on the graph as its doing its adjustment

thanks for the help guys and great work :) i might try the bmv version out too to take it off the solpiplog raspberry pi

KinDR007 commented 3 years ago

bmv and smartshunt is supported https://github.com/KinDR007/VictronSmartShunt-ESPHOME

image

syssi commented 3 years ago

all data counts/calculate victron, median is in my opinion useless, or am I wrong?

The median should be used for selected entities only. Most of the time throttling should be the way to go.