Coder Social home page Coder Social logo

Comments (7)

DavidMenting avatar DavidMenting commented on May 29, 2024 1

You're right, that was the case (my Home Assistant was polling the inverter at the same time).

It is probably of no use any more, but I'm posting the output of example.py nonetheless.

DEBUG:pysma:{"result": {"0156-76BC9163": {"6100_0046C200": {"1": [{"val": 18}]}, "6400_00543A00": {"1": [{"val": 0}]}, "6180_08214800": {"1": [{"val": [{"tag": 307}]}]}, "6100_00543100": {"1": [{"val": null}]}, "6100_40463600": {"1": [{"val": null}]}, "6400_00260100": {"1": [{"val": 149471}]}, "6100_40463700": {"1": [{"val": null}]}, "6400_00462400": {"1": [{"val": null}]}, "6100_00464900": {"1": [{"val": null}]}, "6100_00464A00": {"1": [{"val": null}]}, "6100_40263F00": {"1": [{"val": 18}]}, "6400_00262200": {"1": [{"val": 4}]}, "6400_00462500": {"1": [{"val": null}]}, "6100_00465700": {"1": [{"val": 4999}]}, "6400_0046C300": {"1": [{"val": 149471}]}, "6100_00464800": {"1": [{"val": 23645}]}}}}
DEBUG:pysma:voltage_l1	= 236.45 V
DEBUG:pysma:Sensor voltage_l2: No successful value decoded yet: {'1': [{'val': None}]}
DEBUG:pysma:Sensor voltage_l3: No successful value decoded yet: {'1': [{'val': None}]}
DEBUG:pysma:Sensor grid_power_supplied: No successful value decoded yet: {'1': [{'val': None}]}
DEBUG:pysma:Sensor grid_power_absorbed: No successful value decoded yet: {'1': [{'val': None}]}
DEBUG:pysma:Sensor grid_total_yield: No successful value decoded yet: {'1': [{'val': None}]}
DEBUG:pysma:Sensor grid_total_absorbed: No successful value decoded yet: {'1': [{'val': None}]}
DEBUG:pysma:Sensor current_consumption: No successful value decoded yet: {'1': [{'val': None}]}
               grid_power             18 W
                frequency          49.99 Hz
               voltage_l1         236.45 V
               voltage_l2
               voltage_l3
                 pv_power             18 W
             pv_gen_meter        149.471 kWh
              total_yield        149.471 kWh
              daily_yield              4 Wh
      grid_power_supplied
      grid_power_absorbed
         grid_total_yield
      grid_total_absorbed
      current_consumption
        total_consumption            0.0 kWh
                   status            307 

from pysma.

kellerza avatar kellerza commented on May 29, 2024

It should be in pysma, as it converts the text to a number...

from pysma.

kellerza avatar kellerza commented on May 29, 2024

@DavidMenting can you post the output of example.py or give the specific key that gives this incorrect value?

I added some unit tests and would like to include your case, but the examples I have from my the inverter does not send a decimal separator

from pysma.

DavidMenting avatar DavidMenting commented on May 29, 2024

I'd like to have responded earlier, but the dark winter days haven't been the best for solar inverter tinkering. Today I had a go as the winter sun is shining. I couldn't get example.py to run, as it can't get a session ID.
ERROR:pysma:Could not start session, Session ID expected [result.sid], got {'result': {'sid': None}}

Any value that has a comma as decimal separator shows up in Home Assistant incorrectly, for example key 6380_40451F00_0 (String A voltage). A value of 304,00 V is converted to 30400 and then displayed as 30400.00 V in Home Assistant.

On the login page I'm greeted with a language selection box. Could it be possible for pysma to force that to English and then retrieve the values? In that case the decimal format should always be correct.

from pysma.

kellerza avatar kellerza commented on May 29, 2024

No worries. If it's just voltage the new release should have you covered here. It seems like some sensors have other "multipliers" and it'snot really a regional setting.

Feel free to open again if not solved in the next release of HASS (likely 0.86)

from pysma.

kellerza avatar kellerza commented on May 29, 2024

You probably got the example.py error since you are trying to log in twice with the same user

from pysma.

kellerza avatar kellerza commented on May 29, 2024

Your voltage and frequency is correct with the latest version

from pysma.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.