thomluther / ha-anker-solix

Home Assistant integration for Anker Solix Power devices
MIT License
290 stars 4 forks source link

Support for Shelly 3EM Smart Meter #152

Closed koehntopp closed 3 weeks ago

koehntopp commented 3 weeks ago

Checklist

Is your feature request related to a problem? Please describe.

I'd like to be able to switch between charging and discharging modes, with the Shely 3EM Smart Meter. API logs attached

Describe the solution you'd like

Allow usage_mode to be available with a Shelly as smart meter

Describe alternatives you've considered

none

Additional context

fraxx_2024-10-30_1756.zip

thomluther commented 3 weeks ago

Thanks for the export. I used the export data to check whether the smart meter is recognized and it should already work in your version. When you have the select entity for the usage mode, you can check in the developer tools which options are available for the entity. Then you can use a service to change the option of the entity in an automation.

action: select.select_option
target:
  entity_id: select.solarbank_2_e1600_pro_benutzermodus
data:
  option: smartmeter

In your Solarbank device, you should find the changable entity when using the main account. The manual mode and smartmeter mode are showing up for me with your data: image

thomluther commented 3 weeks ago

This is what I get for the device itself in my latest version (The shelly picture will be available with the next integration release) image

koehntopp commented 3 weeks ago

Works like a charm, thank you!