alandtse / tesla

Tesla custom integration for Home Assistant. This requires a refresh token be generated by third-party apps to login.
Apache License 2.0
597 stars 99 forks source link

Energy exports control unavailable #339

Open purcell-lab opened 2 years ago

purcell-lab commented 2 years ago

Version of the custom_component

V3.0.2

Describe the bug

The Energy Export Control seems to drop into an unknown state regularly. This doesn't seem to effect functionality and the control can still be set correctly by this integration.

Screenshot_20221110-173043

Screenshot_20221110-173103

Other controls seem to be reporting correctly.

Screenshot_20221110-173202

purcell-lab commented 7 months ago

It would appear this endpoint actually has three states;

https://developer.tesla.com/docs/fleet-api#grid_import_export

image

This integration only implements the first options two _batteryok and _pvonly.

It would be useful to include the never option as well.