Comments (7)
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.
It should be in pysma, as it converts the text to a number...
from pysma.
@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.
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.
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.
You probably got the example.py
error since you are trying to log in twice with the same user
from pysma.
Your voltage and frequency is correct with the latest version
from pysma.
Related Issues (20)
- Support for SMA Data Manager M / Lite HOT 2
- Add Insulation Resistance Sensor HOT 13
- New "Sunny Tripower Smart Energy" HOT 25
- Include Current Power HOT 6
- Energy meter (Home manager 2.0) is not detected anymore HOT 10
- New Inverter Generation "Tripower X (STP XX-50)" not working HOT 29
- Feature request: control active power HOT 6
- Howto use the energy dashboard in HA with SUNNY TRIPOWER 10.0 SE HOT 1
- Pv_isolation_resistance Unavailable HOT 10
- Detect backup power grid (Ersatzstromnetz) HOT 1
- Tigo optimizers still need the custom sensor HOT 11
- Error fetching SMA data HOT 10
- Fetching data from 2 (or more) devices with overlapping sensor-ids? HOT 20
- Support for inverters with 3 PV inputs
- Statistic entities home assistant HOT 11
- Sunny Tripower 10 HOT 2
- Example for one key [solved] HOT 7
- total_yield returns 0 during the night HOT 10
- Suddenly SMA response None HOT 3
- Suddenly I get Timeout. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pysma.