custom-components / zaptec

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

Sensor and switch doesn't update (regression) #50

Closed sveinse closed 1 year ago

sveinse commented 1 year ago

The zaptec_charger_* sensor and the zaptec_*_switch are extremely slow to update its state, maybe not at all. I waited over 2 hours and the field doesn't update without restarting. The previous version was immediate.

Technically they use the attribute operating_mode, which comes from the (static?) attrs read from the API at build. The previous implementation used charger_operation_mode, which is read from state (stateID 710) and thus updated. Might the problem here be that the latter is updated on the event notifications, while the former is not?

Hellowlol commented 1 year ago

That might be the case. Can you a dump from using the API to show what attributes you have available for your charger?

sveinse commented 1 year ago

You can find a redacted data dump from the API here: https://gist.github.com/sveinse/6b59a2b4236cd2ccf561646e889465d6 - each redaction are numbered, so you can cross correlate them

sveinse commented 1 year ago

Will be fixed by PR #56

sveinse commented 1 year ago

This is fixed in v0.7.0. Closing issue