New recommended connection option: direct serial RS485
This release features adds support for direct serial connection via the `RS485A1` and `RS485B1` pins of the COM-port of the SUN2000-inverter. This is the new preferred method of connecting to the inverter, as it is not susceptible to network connectivity issues, and has elevated permissions by default (necessary for retrieving optimizer data and setting battery configuration parameters).
New feature: reading optimizer data
This data is refreshed every 5 minutes, as the inverter does not offer more granular updates.
Exposed entities:
- Input Current
- Input Voltage
- Output Current
- Output Voltage
- Output Power
- Temperature
- Accumulated Energy Yield
- Voltage to Ground (disabled by default)
- Running Status (online/offline/disconnected)
![optimizer-ha-screenshot](https://user-images.githubusercontent.com/2150060/170875633-c5139027-cd4e-4d36-8b82-25dcbafbeb7b.png)
The option "Advanced: elevate permissions" needs to be checked for this to work: the inverter requires elevated permissions to request the optimizer data.
---
**Tip**: the easiest way to find the Optimizer "devices" in Home Assistant is via:
- Go to Settings > "Devices & Services"
- click on "X devices" in the "Huawei Solar" tile
![image](https://user-images.githubusercontent.com/2150060/170879944-97b25c0e-d261-4d76-b494-4dd603f4b5b1.png)
You will now see a list of all devices associated with this integration, including one per optimizer:
![image](https://user-images.githubusercontent.com/2150060/170880084-dcc7243e-5823-4a5b-b256-ef509f877c87.png)
Clicking on a specific optimizer will show you the entities associated with that specific optimizer. You can now rename them to something more clear for your setup.
![image](https://user-images.githubusercontent.com/2150060/170880171-853ee7af-c9f2-45c0-b17c-fbcf3a7de5e0.png)