nathanmarlor / foxess_modbus

FoxESS inverter integration. Connect directly to your FoxESS inverter (no cloud!) for real-time status and control.
MIT License
115 stars 18 forks source link

Simple application that returns json #199

Closed kalwinskidawid closed 1 year ago

kalwinskidawid commented 1 year ago

Hi, are you planning or do you have somewhere a working version that would allow you to read data from Foxess, but bypassing HA. So that it could be fired straight from the python interpreter?

canton7 commented 1 year ago

No, no plans and there likely won't be any I'm afraid.

We're very tightly integrated with HA: we read register values over modbus and turn them into human units, then send that to HA which handles all of the formatting and display; all of the setup and configuration is handled by HA; the integration sensors (total PV1, etc) are implemented in HA; the storage we use for the charge period sensors is handled by HA; etc etc. See e.g. here.

You might be able to create a tool which uses the entity definitions to parse the registers it reads, but that will depend on HA.

You can read registers directly from the command-line using e.g. modpoll or pymodbus, but then you'll need to do your own parsing.

kalwinskidawid commented 1 year ago

It's a pity , I'm just trying to decode it to a simpler form. Unfortunately, not knowing the HA operating scheme is quite problematic at this point. Anyway, I'm mega grateful for running this project, at least I know it's possible.