DanteWinters / lux-power-distribution-card

Lovelace card for Home Assistant to replicate the power flow on the LuxpowerTek App and website.
MIT License
25 stars 6 forks source link

AC coupling icon request #62

Open Rumast22 opened 3 weeks ago

Rumast22 commented 3 weeks ago

First off, great work!

Would it be possible to add an AC coupling/generator icon for - sensor.lux_generator_power_live? I have a microinverter feeding into my aux input that I like to see, which I can in the Luxpower/EG4 app.

I'm checking using the allocated power to do that but it feeds into home rather than the inverter.

DanteWinters commented 3 weeks ago

Hi @Rumast22 I added the image that you see on the website for generator to the card on the last update. When I updated the logic behind the card, I made it so that the generator icon will show when there is a positive value on sensor.lux_generator_power_live, but no flow of grid. I don't fully think this is the right logic. I saw that the integration makes no distinction between Grid A (Primary) and Grid B (Generator). So If you are using Grid B, Grid A still gives value. Which I think is a mistake. I haven't spent time on the integration with the generator values (I don't have one but a friend does so I saw some of the values) so I decided to wait a little before updating the card. I'll see if I have time before the end of the month to try something there, otherwise I'll update the cards logic so that you can use it.