Replies: 10 comments 25 replies
-
@tmenguy Someone (you) mentioned getting 15 seconds previously, I'd be happy with that.... and remember on the flip side the HA Recorder is going to be saying all that data away and the Db is going to get big and slow. |
Beta Was this translation helpful? Give feedback.
-
Hi, (first did I say that I love your avatar?) I would like to implement a kind of EVCC like stuff directly as a custom component to handle my car smart charging ... AND my soon to come battery + some of my loads like pools, etc ( I have a Wallbox with a meter and ecosmart but it probably won't work well with the Huawei optimisation algorithms) I have 40 optimizers , meter and one inverter (and soon a battery), so not so far from your setup. By putting directly 5s in the const.py of the integration, I'm now down to 6 or 7 seconds ... but I still don't understand why it is faster this way than using the automations with trigger, @wlcrs if you have an idea? I may go down a bit to in the code to see if I can squeeze a bit more calls, but I don't know what is the theoretical Modbus limits I may hit (and the real update period of the meter itself). |
Beta Was this translation helpful? Give feedback.
-
yes, thx a lot, I'll fiddle a bit and do a fork to see if we can have something of a higher frequency "for free" (like the Shelly interaction that is more around the second for their refresh) |
Beta Was this translation helpful? Give feedback.
-
interesting findings, here: When I set the update to 1s as polling interval I have a result of around a data point every 3s, probably meaning it takes for me around 2s to gather the data from the SDongle ... which seems a lot to me to be honest (it is a bit less to be honest here from my tests more between 1 and 2s, still not insignificant) All in all I have a solution here :) 3 to 4s of update is plenty fast for what I need @wlcrs : would it be worthwhile to you if I open a PR to add an option config flow to your component to select a polling interval in the UI configuration, or you think it is too dangerous for general use? (and if so I'll just hardcode stuff for my personal use) |
Beta Was this translation helpful? Give feedback.
-
I found this : https://solaranzeige.de/phpBB3/viewtopic.php?t=4400 |
Beta Was this translation helpful? Give feedback.
-
Polling via automation as proposed by @wlcrs is also not working fine for me. To archive small update frequcencies without any HA error logs, I had to switch my network connection directly to the inverter WLAN (not to the dongle) => this helps a lot!!! BUT after the switch to from To make this story short:
Negative House Load (for my setup NOT possible) - potentially due to Poll/Timing mismatch between NOT recognized in versions 1.3.x. My proposal:
Any ideas or proposals for the power sensors??? For the energy and all other sensor's it's not an issue. |
Beta Was this translation helpful? Give feedback.
-
I've managed stable refresh rate of 3 seconds for EMMA 02 + inverter. I don't have the battery at the moment. I suggest to increase Modbus RTU baudrate from 9600 to 19200, maybe that improves the pooling rate over Modbus TCP a bit. It has to be done on all your devices in order to work. |
Beta Was this translation helpful? Give feedback.
-
I submitted a PR for this (#828 ) for those who wants to test something, you can test with my repo (see the PR), it is based on the latest (as of today) code, so far so good for me on my install. |
Beta Was this translation helpful? Give feedback.
-
I think with the new firmware 121 for the sDongle, no adjustment is necessary anymore. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately the PR has been rejected by @wlcrs As already stated above:
My recommendation:
|
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm on the latest 1.4 beta, SDongle via wired ethernet for connection. I use an automation to update the power meter and inverter active power sensor:
trigger:
hours: ""
minutes: ""
seconds: "/4"
action:
target:
entity_id:
- sensor.power_meter_active_power
- sensor.inverter_active_power
and it seems I can't go really beyond 12s (looking at the update graphs and the concrete state update of the sensors) Is there someone that can go below? should I change the polling frequencies directly in the const.py ? I would like to get closer to 5s to implement some control algorithms.
Thanks!
BR
Thomas
Beta Was this translation helpful? Give feedback.
All reactions