-
Hi, curious if you can change the refresh rate from sensor.solis_ac_output_total_power as it is around five minutes right now. My other electrical components that report to HA have a refresh rate of around 10 seconds and when I run these against each other (as template sensors for example) it sometimes display wrong info due to the lack of updates from the solis inverter. or is this locked in solis api? Ex: sensor.solis_ac_output_total_power (producing right now, 5min refresh rate, from solis integration) Producing could be 1000w for 5 min. Selling-sensor could go from 1000w to 5000w during these 5min, if the clouds suddenly disapper... :-) Therefore my "using" template sensor suddenly drops below 0 until producing is updated again. Is this possible to change somehow? Of course I could ad a simple if-statement when it goes below 0 but the question remains. The house never uses 0w. Always something. Best regards. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Hi @bckmrk , You can play with the update frequency by tweaking the SCHEDULE_OK constant in service.py, but it will probably not help much other than removing some jitter. The integration scans for new values every 2 minutes, or even after a minute again if the previous read failed. |
Beta Was this translation helpful? Give feedback.
-
@hultenvp Hi, I have 1 min sync intervals with my Solis Data logger, and whilst having tested in the past, 1 min intervals don't always work that well with the integration, but I was looking at the above, thinking I could change it to seconds and set it to 90 seconds instead of 5 mins which is now the default in service.py. The code has changed quite a bit since you posted the above, so would you be able to advise what now needs to change to alter it to seconds? Thank you in advance! |
Beta Was this translation helpful? Give feedback.
-
Well, I sniffed at the RS485 port while the WiFi dongle is attached. (in hope to get a better update frequency) I got 3 ideas: I got a RS485 + ESP hooked up in parallel to the RS486 in read only mode but as of now, I can't make heads of tails out of the data. Found actually 2 projects at GitHub about that topic. https://github.com/grob6000/esphome-externalcomponents ... well this was a no-go (see my post @ issues tab) On that on I understand the code actually, and want to give it a go. But well - If the stick sends out some data only every 5 mins ... it still sucks- (found also https://github.com/PhillyGilly/SolarisS6ArduinoMqtt ... but I got a S5 .. so this would be a backup) BTW: I asked SolisService if they can increase the update-rate of the API (which I'm using right now... Short answere: No :( ) |
Beta Was this translation helpful? Give feedback.
Hi @bckmrk ,
You can play with the update frequency by tweaking the SCHEDULE_OK constant in service.py, but it will probably not help much other than removing some jitter.
The integration scans for new values every 2 minutes, or even after a minute again if the previous read failed.
The actual refresh rate depends on the WiFi dongle on your inverter. I've read somewhere it indeed sends updates to the portal every 5 minutes.
Since the ginlong portal also supports other brands (Solarman, Sofar) and different firmware versions of the dongle are circulating I put the update frequency on the safe side.