nordicopen / easee_hass

Custom component for Easee EV charger integration with Home Assistant
209 stars 34 forks source link

Implement all Equalizer states into the integration #136

Closed gulli1986 closed 3 years ago

gulli1986 commented 3 years ago

Hello,

It looks like some of the states from the Equalizer are missing in the integration. Here is what I have in Home Assistant through a binary sensor:

name: Easee Equalizer Home
id: 
state_latestPulse: 
state_clockAndDateMeter:
state_rcpi: 
state_localRSSI: 
state_softwareRelease: 
state_latestFirmware: 
friendly_name: Easee Equalizer Home Online
device_class: 

And here is what the API documentation is showing regarding the Equalizer states:

{
  "currentL1": 0,
  "currentL2": 0,
  "currentL3": 0,
  "voltageNL1": 0,
  "voltageNL2": 0,
  "voltageNL3": 0,
  "voltageL1L2": 0,
  "voltageL1L3": 0,
  "voltageL2L3": 0,
  "activePowerImport": 0,
  "activePowerExport": 0,
  "reactivePowerImport": 0,
  "reactivePowerExport": 0,
  "cumulativeActivePowerImport": 0,
  "cumulativeActivePowerExport": 0,
  "cumulativeReactivePowerImport": 0,
  "cumulativeReactivePowerExport": 0,
  "clockAndDateMeter": "string",
  "rcpi": 0,
  "maxPowerImport": 0,
  "localRSSI": 0,
  "softwareRelease": 0,
  "latestFirmware": 0,
  "isOnline": true,
  "latestPulse": "2021-08-18T12:07:37.204Z",
  "ledMode": 0,
  "equalizedChargeCurrent_L1": 0,
  "equalizedChargeCurrent_L2": 0,
  "equalizedChargeCurrent_L3": 0
}

Could it be implemented in a future update so that we can retrieve the values presented in the Easee app for the Equalizer?

olalid commented 3 years ago

I am guessing that you probably did not enable all the sensors in the integration configuration dialog?

olalid commented 3 years ago

There are in total 7 sensors for the equalizer: online, import_power, export_power, import_energy, export_energy, voltage and current. They do not provide the last 4 in your list since they where not available when the code was written, but the rest are included I think. I will look in to adding those last 4 (if they provide any useful data, not sure what they are for at the moment).

gulli1986 commented 3 years ago

Hello @olalid and thanks for your comment. You are totally right, I enabled all sensors for both my chargers but didn't see there was a dedicated list of sensors to be enabled for the Equalizer.

Everything is fine now, thanks!

PS: not sure what the last 4 values are neither, closing the issue for the time being.