custom-components / zaptec

zaptec charger custom component for home assistant
MIT License
64 stars 20 forks source link

Add connection online status sensor #114

Closed Ghannes closed 1 month ago

Ghannes commented 1 month ago

Hi,

I am using the integration and works good! However I miss the functionality to check if my Zaptec is connected to the internet. Yesterday it went offline and I would like to create an automation to check for this, and send a notification to my phone.

thanks, Hans

sveinse commented 1 month ago

The Zaptec integration have three entities named " Installation", " Circuit" and "* Charger". They have the state "Connected", "Not connected". They should give the status of the charger. Please check your history to check if they did change state when the charger was offline.

Ghannes commented 1 month ago

They all say it is connected sand charging. That’s incorrect since I removed power due to maintenance

Op za 7 sep 2024 om 09:39 schreef Svein Seldal @.***>

The Zaptec integration have three entities named " Installation", " Circuit" and " Charger". They have the state "Connected", "Not connected". They should give the status of the charger. Please check your history to check if they did change state when the charger was offline.

— Reply to this email directly, view it on GitHub https://github.com/custom-components/zaptec/issues/114#issuecomment-2335105679, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVH7FZ5VCPSDXQHUZQ6GQDZVKUTHAVCNFSM6AAAAABNZV4KSGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZVGEYDKNRXHE . You are receiving this because you authored the thread.Message ID: @.***>

sveinse commented 1 month ago

There is a an attribute named "is online" that could be added as a entity in the integration. However, this integration relies on cloud poll so it can only reflect the data that Zaptec cloud provides. It does not communicate directly with the charger.

I have removed the AC power to my Zaptec Go, but I see no change in "is online" value after 15 minutes. Even Zaptec portal is reporting charger to be online. I'll keep the test running to see how long time it takes until the cloud detects that the charger is offline.

@Ghannes Does Online Details show your charger offline for the period which the charger was offline? Go to https://portal.zaptec.com -> Chargers -> Select your charger -> Status -> Online? -> Details

EDIT: It updated the online status after 25 minutes.

sveinse commented 1 week ago

A fix for the issue have been pushed to master. Please install the "master" version and test if this fixes the observed problems. @Ghannes

Ghannes commented 1 week ago

Thanks for your efforts!

Op di 22 okt 2024 om 20:55 schreef Svein Seldal @.***>

A fix for the issue have been pushed to master. Please install the "master" version and test if this fixes the observed problems. @Ghannes https://github.com/Ghannes

— Reply to this email directly, view it on GitHub https://github.com/custom-components/zaptec/issues/114#issuecomment-2430015870, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVH7F5BXAEBA3QSQNTSGVDZ42NR5AVCNFSM6AAAAABNZV4KSGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZQGAYTKOBXGA . You are receiving this because you were mentioned.Message ID: @.***>

sveinse commented 1 week ago

It seems HACS have removed the option of downloading "master", so I've created a beta/pre-release "0.7.2b1" available for download and test.