Replies: 1 comment
|
Hi @dequinho, |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi,
Would it be possible to expose the actual OCPP connection state, or add a heartbeat watchdog / connectivity binary sensor?
At the moment, the charger status entity can remain
Availableeven when the THOR is completely offline.I tested this with a Growatt THOR 07AS-PC:
Available.Available.last_reportedtimestamp remained frozen.So automatic reconnection works correctly, but there is currently no reliable indication in Home Assistant that the OCPP connection has been lost.
This is particularly important when using
G_MaxCurrentfrom Home Assistant for dynamic load management.If the OCPP connection is lost while a vehicle is charging, Home Assistant may still show
Charging, but it can no longer reduce the charger's current if the household load increases.Since the integration already handles OCPP Heartbeat messages, could it expose a
binary_sensorwith device classconnectivityrepresenting the live OCPP connection?For example:
on→ OCPP/WebSocket connection is alive and heartbeats are being receivedoff→ connection has been lost or heartbeats have timed outAlternatively, exposing a
last_heartbeatsensor, or marking the charger asUnavailableafter a configurable number of missed heartbeats / connection timeout, would also solve the problem.Ideally, the connectivity state should be based on the actual OCPP heartbeat/WebSocket connection, rather than regular entity updates or
MeterValues, so it also works while the charger is idle.This would allow Home Assistant automations to implement a safety check such as:
Charging+OCPP Connectivity = off→ notify that dynamic load management is no longer available.Thanks for maintaining this integration.
All reactions