Kubiac / homebridge-solaredge-realtime

Apache License 2.0
5 stars 3 forks source link

Cannot get real time data being always zero despite good communication according debug logs #4

Closed matbe81 closed 2 years ago

matbe81 commented 2 years ago

Describe The Bug: Real time value is always 0 lux

To Reproduce: Nothing special.

Expected behavior: Having the real time data correct as it look to be a calculation issue.

Logs:

[4/13/2022, 5:21:32 PM] [SolaredgeRealTime] Connecting to Inverter real-time at 192.168.0.17
[4/13/2022, 5:21:32 PM] [SolaredgeRealTime] Connected
[4/13/2022, 5:21:32 PM] [SolaredgeRealTime] Received Power:  [ 10198 ]
[4/13/2022, 5:21:32 PM] [SolaredgeRealTime] Interpreted power value:  -55338
[4/13/2022, 5:21:32 PM] [SolaredgeRealTime] Received SF:  [ 65535 ]
[4/13/2022, 5:21:32 PM] [SolaredgeRealTime] Computed: -5533.8
[4/13/2022, 5:21:32 PM] [SolaredgeRealTime] Updating Ambient Light Level:  0.0001
[4/13/2022, 5:21:32 PM] [SolaredgeRealTime] closed connection to 192.168.0.17

Plugin Config:

{
    "name": "SolaredgeRealTime",
    "inverter": [
        {
            "id": "Inverter-realtime",
            "displayName": "Inverter real-time",
            "ip": "192.168.0.17",
            "port": 1502,
            "updateInterval": 5,
            "powerAddress": 40083,
            "powerSfAddress": 40084,
            "powerUnsignedValue": false
        }
    ],
    "platform": "SolaredgeRealTime"
}

Screenshots: image

Environment:

Kalie15 commented 2 years ago

Same with me, but my "computed" value is 0. You should try to set "PowerUnsignedValue" to TRUE.

Our problem seems to be issued and/or fixed at https://github.com/Kubiac/homebridge-solaredge-realtime/issues/5#issue-1242087636

Connecting to Wechselrichter at xx.xx.xx.xx [6/6/2022, 4:43:36 PM] [SolaredgeRealTime] Connected [6/6/2022, 4:43:36 PM] [SolaredgeRealTime] Received Power: [ 3094 ] [6/6/2022, 4:43:36 PM] [SolaredgeRealTime] Interpreted power value: 3094 [6/6/2022, 4:43:36 PM] [SolaredgeRealTime] Received SF: [ 0 ] [6/6/2022, 4:43:36 PM] [SolaredgeRealTime] Computed: 0 [6/6/2022, 4:43:36 PM] [SolaredgeRealTime] Updating Ambient Light Level: 0.0001 [6/6/2022, 4:43:36 PM] [SolaredgeRealTime] closed connection to xx.xx.xx.xx

matbe81 commented 2 years ago

You are right. It works. But instructions seems not correct and confusing so: image What does checked means? Signed or unsigned. I assume unsigned according your answer?

Kalie15 commented 2 years ago

in your json.config it's now

"powerUnsignedValue": true

and that is the truth ;-)

matbe81 commented 2 years ago

Correct. Updating the GUI for clarity can be appreciated.

Kubiac commented 2 years ago

Starting with version 0.11 the plugin can display two light meters when values are signed (can be negative). So you can now monitor import and export. I will adapt the UI for more clarity.

Thanks for the feedback

Kubiac commented 2 years ago

Check out version 0.13