cmcgerty / Sofar2mqtt

A smart home interface for Sofar solar and battery inverters.
GNU General Public License v3.0
80 stars 48 forks source link

Add systemIO_power and update MQTT syntax #44

Closed MartinJSa closed 1 year ago

MartinJSa commented 1 year ago

Added the new systemIO_power register and also updated the MQTT syntax as the old one stops working in the 2022.12 HA release.

cmcgerty commented 1 year ago

@MartinJSa Did you realise that the polarity of systemIO_power is opposite to battery_power? In the Node-Red flow I switched it so that the new value is a drop-in replacement for the old.

systemIO_power

MartinJSa commented 1 year ago

Good point, I was a bit lazy and dealt with that in the HA UI, I'll update config.yaml now

MartinJSa commented 1 year ago

I think I've updated the PR but I'm a bit clueless on github, can you see the change?

cmcgerty commented 1 year ago

I know what you mean, GitHub is a bit opaque. I never feel totally confident that I know what I'm doing. It looks fine, I'll merge it now.