Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tasmota: Voltage/Current measurands are swapped #18879

Closed
2 tasks done
homber opened this issue Feb 16, 2025 · 4 comments · Fixed by #18883
Closed
2 tasks done

Tasmota: Voltage/Current measurands are swapped #18879

homber opened this issue Feb 16, 2025 · 4 comments · Fixed by #18883
Assignees
Labels
devices Specific device support

Comments

@homber
Copy link

homber commented Feb 16, 2025

Describe the bug

Beim Auslesen der Daten von einem Tasmota HW-655 PZEM mit 3 Phasen als meter, werden die Daten Strom und Spannung (Current Voltage ) vertauscht.

Steps to reproduce

1.evcc -c evcc.yaml -l trace meter

...

Configuration details

- type: template
  template: tasmota-3p
  usage: charge
  host: 192.168.XXX.XX
  name: pv3

Log details

[tasmota] TRACE 2025/02/16 20:28:28 GET http://192.168.XXX.XX/cm?cmnd=Status+8&password=&user=
[tasmota] TRACE 2025/02/16 20:28:28 {"StatusSNS":{"Time":"2025-02-16T21:28:28","ENERGY":{"TotalStartTime":"2024-08-14T20:17:44","Total":0.000,"Yesterday":0.000,"Today":0.000,"Power":[1,0,0],"ApparentPower":[5,0,0],"ReactivePower":[5,0,0],"Factor":[0.16,0.00,0.00],"Frequency":[50,50,50],"Voltage":[230,230,230],"Current":[0.022,0.000,0.000]}}}
Power:          1W
Energy:         0.0kWh
Current L1..L3: 230A 230A 230A
Voltage L1..L3: 0.022V 0V 0V

What type of operating system or environment does evcc run on?

Linux

External automation

  • I have made sure that no external automation like HomeAssistant or Node-RED is active or accessing any of the mentioned devices when this issue occurs.

Nightly build

  • I have verified that the issue is reproducible with the latest nightly build

Version

evcc version 0.200.1

@andig
Copy link
Member

andig commented Feb 16, 2025

/cc @thierolm

@andig andig added the devices Specific device support label Feb 16, 2025
@andig
Copy link
Member

andig commented Feb 16, 2025

Please add a trace log. Imho this looks like a device error.

@homber
Copy link
Author

homber commented Feb 16, 2025

hom@evcc:~$ evcc -c evcc.yaml -l trace  meter
[main  ] INFO 2025/02/16 20:37:42 evcc 0.200.1
[main  ] INFO 2025/02/16 20:37:42 using config file: evcc.yaml

pv3
---
[tasmota] TRACE 2025/02/16 20:37:42 GET http://192.168.xxx.xx/cm?cmnd=Status+8&password=&user=
[tasmota] TRACE 2025/02/16 20:37:42 {"StatusSNS":{"Time":"2025-02-16T21:37:42","ENERGY":{"TotalStartTime":"2024-08-14T20:17:44","Total":0.000,"Yesterday":0.000,"Today":0.000,"Power":[1,0,0],"ApparentPower":[5,0,0],"ReactivePower":[5,0,0],"Factor":[0.16,0.00,0.00],"Frequency":[50,50,50],"Voltage":[228,229,229],"Current":[0.022,0.000,0.000]}}}
Power:          1W
Energy:         0.0kWh
Current L1..L3: 228A 229A 229A
Voltage L1..L3: 0.022V 0V 0V

grid1
-----
[grid1 ] TRACE 2025/02/16 20:37:42 GET http://192.168.xxx.xxx/solar_api/v1/GetPowerFlowRealtimeData.fcgi
[grid1 ] TRACE 2025/02/16 20:37:42 {
   "Body" : {
      "Data" : {
         "Inverters" : {
            "1" : {
               "DT" : 46,
               "E_Day" : 23244,
               "E_Total" : 13577280,
               "E_Year" : 653443.3125,
               "P" : 0
            }
         },
         "Site" : {
            "E_Day" : 23244,
            "E_Total" : 13577280,
            "E_Year" : 653443.3125,
            "Meter_Location" : "grid",
            "Mode" : "meter",
            "P_Akku" : null,
            "P_Grid" : 4845.8999999999996,
            "P_Load" : -4845.8999999999996,
            "P_PV" : null,
            "rel_Autonomy" : 0,
            "rel_SelfConsumption" : null
         },
         "Version" : "12"
      }
   },
   "Head" : {
      "RequestArguments" : {},
      "Status" : {
         "Code" : 0,
         "Reason" : "",
         "UserMessage" : ""
      },
      "Timestamp" : "2025-02-16T21:37:42+01:00"
   }
}
Power: 4846W

pv2
---
[pv2   ] TRACE 2025/02/16 20:37:42 GET http://192.168.xxx.xxx/solar_api/v1/GetPowerFlowRealtimeData.fcgi
[pv2   ] TRACE 2025/02/16 20:37:42 {
   "Body" : {
      "Data" : {
         "Inverters" : {
            "1" : {
               "DT" : 46,
               "E_Day" : 23244,
               "E_Total" : 13577280,
               "E_Year" : 653443.3125,
               "P" : 0
            }
         },
         "Site" : {
            "E_Day" : 23244,
            "E_Total" : 13577280,
            "E_Year" : 653443.3125,
            "Meter_Location" : "grid",
            "Mode" : "meter",
            "P_Akku" : null,
            "P_Grid" : 4845.8999999999996,
            "P_Load" : -4845.8999999999996,
            "P_PV" : null,
            "rel_Autonomy" : 0,
            "rel_SelfConsumption" : null
         },
         "Version" : "12"
      }
   },
   "Head" : {
      "RequestArguments" : {},
      "Status" : {
         "Code" : 0,
         "Reason" : "",
         "UserMessage" : ""
      },
      "Timestamp" : "2025-02-16T21:37:42+01:00"
   }
}
Power: 0W

@premultiply
Copy link
Member

{
  "StatusSNS": {
    "Time": "2025-02-16T21:28:28",
    "ENERGY": {
      "TotalStartTime": "2024-08-14T20:17:44",
      "Total": 0,
      "Yesterday": 0,
      "Today": 0,
      "Power": [
        1,
        0,
        0
      ],
      "ApparentPower": [
        5,
        0,
        0
      ],
      "ReactivePower": [
        5,
        0,
        0
      ],
      "Factor": [
        0.16,
        0,
        0
      ],
      "Frequency": [
        50,
        50,
        50
      ],
      "Voltage": [
        230,
        230,
        230
      ],
      "Current": [
        0.022,
        0,
        0
      ]
    }
  }
}

@premultiply premultiply self-assigned this Feb 16, 2025
@premultiply premultiply changed the title Tasmota-3p Tasmota: Voltage/Current measurands are swapped Feb 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devices Specific device support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants