suaveolent / hoymiles-wifi

Library to communicate with Hoymiles DTUs and HMS-XXXXW-2T microinverters via protobuf.
MIT License
30 stars 6 forks source link

Error output as json with commands identify-dtu and identify-inverters #19

Open pipp37 opened 5 days ago

pipp37 commented 5 days ago

Thanks First thanks for great tool. I made a docker container and found a issue on 2 commands with json output.

Describe the bug Output as json generates some errors with hms800w-2t and DTUL. Normal output runs fine with Response:

Coommands:

To Reproduce Steps to reproduce the behavior:

  1. RUN: hoymiles-wifi --host 192.168.28.193 identify-inverters - OK
  2. RUN: hoymiles-wifi --host 192.168.28.193 identify-inverters --as-json - ERROR
  3. See error

Expected behavior Output should generate json string

Screenshots look at attached logfile.

Linux :

bash-shell-log-error.txt

pipp37 commented 5 days ago

Docker python container: python:3.12.4-slim-bullseye