[easee] Migrate charger state API endpoint, add channels (#14614)

* reworked the way to retrieve Charger state as API endpoint is now deprecated.
* fixed result processing: removed default handling by bridge handler which caused everything to go offline if a single charger had faulty config.
* additional channels / removed obsolete firmware channel

Signed-off-by: Alexander Friese <af944580@googlemail.com>
This commit is contained in:
Alexander Friese
2023-08-18 13:33:19 +02:00
committed by GitHub
parent 79ecb2e4d0
commit a435ed2cd0
30 changed files with 675 additions and 201 deletions

View File

@@ -63,23 +63,42 @@ The settings that start with "dynamic" can be changed frequently, the others are
| state#chargerOpMode | Number | no | 0=Offline, 1=Disconnected, 2=AwaitingStart, 3=Charging, 4=Completed, 5=Error, 6=ReadyToCharge, 7=AwaitingAuthentication, 8=Deauthenticating | |
| state#totalPower | Number:Power | no | current session total power (all phases) | |
| state#sessionEnergy | Number:Energy | no | current session | |
| state#energyPerHour | Number:Energy | no | energy per hour | |
| state#wiFiRSSI | Number:Power | no | | |
| state#cellRSSI | Number:Power | no | | |
| state#dynamicCircuitCurrentP1 | Number:ElectricCurrent | no | | |
| state#dynamicCircuitCurrentP2 | Number:ElectricCurrent | no | | |
| state#dynamicCircuitCurrentP3 | Number:ElectricCurrent | no | | |
| state#latestPulse | DateTime | no | | |
| state#chargerFirmware | Number | no | | |
| state#latestFirmware | Number | no | | |
| state#voltage | Number:ElectricPotential | no | | |
| state#inCurrentT2 | Number:ElectricCurrent | no | | |
| state#inCurrentT3 | Number:ElectricCurrent | no | | |
| state#inCurrentT4 | Number:ElectricCurrent | no | | |
| state#inCurrentT5 | Number:ElectricCurrent | no | | |
| state#outputCurrent | Number:ElectricCurrent | no | | |
| state#inVoltageT1T2 | Number:ElectricPotential | no | | |
| state#inVoltageT1T3 | Number:ElectricPotential | no | | |
| state#inVoltageT1T4 | Number:ElectricPotential | no | | |
| state#inVoltageT1T5 | Number:ElectricPotential | no | | |
| state#inVoltageT2T3 | Number:ElectricPotential | no | | |
| state#inVoltageT2T4 | Number:ElectricPotential | no | | |
| state#inVoltageT2T5 | Number:ElectricPotential | no | | |
| state#inVoltageT3T4 | Number:ElectricPotential | no | | |
| state#inVoltageT3T5 | Number:ElectricPotential | no | | |
| state#inVoltageT4T5 | Number:ElectricPotential | no | | |
| state#ledMode | Number | no | | |
| state#cableRating | Number:ElectricCurrent | no | | |
| state#isOnline | Switch | no | | |
| state#dynamicChargerCurrent | Number:ElectricCurrent | yes | | 0, 6-32 |
| state#reasonForNoCurrent | Number | no | 0=OK, 2=DynamicCircuitCurrentLimitTooLow, 27=DynamicCircuitCurrentCharging, 52=DynamicChargerCurrentLimitTooLow, 55=NotAuthorized, 79=CarLimit, 81=CarLimitedCharging | |
| state#lifetimeEnergy | Number:Energy | no | | |
| state#errorCode | Number | no | | |
| state#fatalErrorCode | Number | no | | |
| config#lockCablePermanently | Switch | yes | | ON/OFF |
| config#authorizationRequired | Switch | yes | | ON/OFF |
| config#limitToSinglePhaseCharging | Switch | yes | | ON/OFF |
| state#connectedToCloud | Switch | no | | |
| config#lockCablePermanently | Switch | yes | | true/false |
| config#authorizationRequired | Switch | yes | | true/false |
| config#limitToSinglePhaseCharging | Switch | yes | | true/false |
| config#phaseMode | Number | yes | 1=1phase, 2=auto, 3=3phase | 1-3 |
| config#maxChargerCurrent | Number:ElectricCurrent | no | write access not yet implemented | |
| commands#genericCommand | String | yes | Generic Endpoint to send commands | reboot, update_firmware, poll_all, smart_charging, start_charging, stop_charging, pause_charging, resume_charging, toggle_charging, override_schedule |