Replies: 4 comments 4 replies
-
@marq24 this new feature is amazing, works brilliant as well as the whole integration! Thanks for this and your integration at all! 👍 💯 |
Beta Was this translation helpful? Give feedback.
-
I activated this now also. |
Beta Was this translation helpful? Give feedback.
-
Hi @marq24 would this be helpfull for you: https://developers.home-assistant.io/docs/add-ons/communication/#home-assistant-core ? |
Beta Was this translation helpful? Give feedback.
-
and just as heads-up... Here is how all this is working now... The Integration will start with the configured update-interval and start to "poll" the initial data from evcc - when websocket option enabled (in the config), then shortly after the start of the integration, HA connect to the websocket of evcc and start to receive/listen to new data... As soon as new data arrives, the integration let HA know, that new values have arrived and that entity states/attributes should be updated. Typically evcc is publishing the data-updates in 'waves' - sending multiple websocket messages in a short period of time. In order to deal with this waves the integration will hold back the update-notification for 0.3 seconds. If in this time frame another websocket message was received, the (outdated) update notification will be canceled and a new update-notification (that wait again for 0.3) will be generated. So in theory, when evcc will constantly publish new data in less then 0.3 seconds all update notifications will be canceled... But I don't expect that we will ever run in such a situation. I have implemented this notification delay in order to reduce the system load in HA. Every time the code execute such an HA-update you will see in the debug log a default HA message: Additionally the integration will start a watchdog - every 60 seconds this job is checking, if the websocket is still available (e.g. evcc might be restarted)... You see in the log's a message: If the websocket is not available any longer, the websocket connection will be reestablished... This check will also/additionally check, if some static data (like tariffs) needs to be updated ( |
Beta Was this translation helpful? Give feedback.
-
I just upgraded to 2025.3.1, checked the "use Websocket" box and restarted the integration. I see immediate reaction on the other side if I e.g. change the charge limit either in the evcc UI or in home assistant. Long story short: Works for me. Thank you! Good work.
Beta Was this translation helpful? Give feedback.
All reactions