githubDante
githubDante
All registers are accessible as class properties and are listed even in the REPL on Tab+Tab ``` >>> from deye_controller.modbus.protocol import HoldingRegisters, WritableRegisters >>> HoldingRegisters.BMS HoldingRegisters.BMSBatteryAlarm HoldingRegisters.BMSBatterySOH HoldingRegisters.BMSChargedVoltage HoldingRegisters.BMSMaxChargingCurrent HoldingRegisters.BMSBatteryCapacity...
How ... A call to a DB stored procedure (via asyncpg) with the collected data. The data is stored in the following format: ` | | | | ...` Each...
Not currently, but could be added easily (assuming we are talking about `deye-read`). Any suggestions about the JSON structure ?
JSON output is supported in version 0.1.3. The output is available in the [examples dir ](https://github.com/githubDante/deye-controller/blob/master/examples/all.json)
Current implementation allows you to read the output like this: ``` for item in output['data']: for k,v in item.items(): if v['addr'] in [145, 214]: do_something_with(v['value']) ``` or if filtering by...
Currently the output is written directly to `stdout`. On Linux it's easy to write it wherever you want by using `> /` but probably we are talking for universal method...
Do you know how to update from git in order to test this [d91f755](https://github.com/githubDante/deye-controller/commit/d91f75571434d249a56d1e5bd71b02fc3f0ce981) :) Just in case: `pip install --upgrade git+https://github.com/githubDante/deye-controller.git`
Sorry. Apparently update directly from git does not update the console scripts. Version 0.1.4 is already on pypi.org `pip install --upgrade deye-controller` and should be OK. The syntax is `deye-read...
Yes, all generator related registers are missing (saves time when there so many others). I'll try to add them in the next few days.
Generator registers have been added. The documentation is little fishy about these. Let me know if there are any problems with them.