CJNE / ha-myenergi

Home Assistant integration for MyEnergi devices
MIT License
136 stars 30 forks source link

Zappi Charger Plug status, can it just show "EV Connected" or EV Disconnected" #364

Open DaveTiff opened 1 year ago

DaveTiff commented 1 year ago

Is your feature request related to a problem? Please describe. At the moment the sensor.myenergi_zappi_charger_plug_status shows various conditions:- EV Disconnected Charging EV Connected Waiting For EV

Describe the solution you'd like As its the Plug Status I would like to just show "EV Connected" or EV Disconnected" as we have a charge status which this seems to duplicate

Describe alternatives you've considered None

Additional context No

gdotp01 commented 1 year ago

Hi. Awesome work on this plugin. I’d like to second the above request if I could. I’d like to use sensor.myenergi_zappi_charger_plug_status but as it’s currently implemented I can’t get it working. The sensor does not seem to be available for automations and in reality a simple binary sensor would probably suffice.

LeiChat commented 1 year ago

This is somewhat related to my post https://github.com/CJNE/ha-myenergi/issues/355

The myenergi API returns a property named 'pst' and I'm not sure where the friendly names for each value is defined.

Is there any official documentation for the myenergi API? If not, is 'plug_status' the presumed descriptive name for 'pst' ?

[API - pst] [HA entity - myenergi_zappi_XXXXXXXX_plug_status] : A = EV Disconnected B1 = EV Connected B2 = Waiting for EV C1 = EV ready to charge C2 = Charging F = Fault

Might it be worth including entities for the actual API properties? e.g. myenergi_zappi_XXXX_pst And have them return the myenergi API value (A, B1, B2, etc.) and users of the HA integration can use a template/helper to map them to whichever friendly names they would prefer to show on their dashboards.

Or can we reach out to myenergi for clarification about what each 'pst' and 'sta' value mean?

jaket91-1 commented 10 months ago

Thanks for opening this issue. I too would love to see the plug status values available to use with automations but can’t seem to at the minute. Despite the plug status entity showing correctly, the only values I can select from as a trigger are ‘Any State’, ‘Unavailable’ or ‘Unknown’

LeeUKM commented 2 months ago

love this add on.. bit heavy getting going as in the learning curve, but left info here on Automation..

https://community.home-assistant.io/t/trigger-home-assistant-actionable-notifications-by-connecting-ev-myenergi-zappi/623967

hope it helps