Skip to content

Commit

Permalink
fix SDM return type
Browse files Browse the repository at this point in the history
  • Loading branch information
pszafer committed Jan 22, 2025
1 parent 46d256c commit bb06812
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 51 deletions.
26 changes: 13 additions & 13 deletions boneio/modbus/sdm120.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,44 +12,44 @@
"unit_of_measurement": "V",
"state_class": "measurement",
"device_class": "voltage",
"return_type": "FP32"
"value_type": "FP32"
},
{
"name": "Current",
"address": 6,
"unit_of_measurement": "A",
"state_class": "measurement",
"device_class": "current",
"return_type": "FP32"
"value_type": "FP32"
},
{
"name": "Power",
"address": 12,
"unit_of_measurement": "W",
"state_class": "measurement",
"device_class": "power",
"return_type": "FP32"
"value_type": "FP32"
},
{
"name": "Power_VA",
"address": 18,
"unit_of_measurement": "VA",
"state_class": "measurement",
"return_type": "FP32"
"value_type": "FP32"
},
{
"name": "Power_VAr",
"address": 24,
"unit_of_measurement": "var",
"state_class": "measurement",
"return_type": "FP32"
"value_type": "FP32"
},
{
"name": "Power_Factor",
"address": 30,
"unit_of_measurement": "%",
"state_class": "measurement",
"return_type": "FP32"
"value_type": "FP32"
}
]

Expand All @@ -64,37 +64,37 @@
"address": 70,
"unit_of_measurement": "Hz",
"state_class": "measurement",
"return_type": "FP32"
"value_type": "FP32"
},
{
"name": "Import_Energy_kWh_Total",
"address": 72,
"unit_of_measurement": "kWh",
"state_class": "total_increasing",
"device_class": "energy",
"return_type": "FP32"
"value_type": "FP32"
},
{
"name": "Export_Energy_kWh_Total",
"address": 74,
"unit_of_measurement": "kWh",
"state_class": "total_increasing",
"device_class": "energy",
"return_type": "FP32"
"value_type": "FP32"
},
{
"name": "Import_Energy_kVArh_Total",
"address": 76,
"unit_of_measurement": "kvArh",
"state_class": "total_increasing",
"return_type": "FP32"
"value_type": "FP32"
},
{
"name": "Export_Energy_kVArh_Total",
"address": 78,
"unit_of_measurement": "kvArh",
"state_class": "total_increasing",
"return_type": "FP32"
"value_type": "FP32"
}
]
},
Expand All @@ -109,15 +109,15 @@
"unit_of_measurement": "kWh",
"state_class": "total_increasing",
"device_class": "energy",
"return_type": "FP32"
"value_type": "FP32"
},
{
"name": "kvarh_Total",
"address": 344,
"unit_of_measurement": "kWh",
"state_class": "total_increasing",
"device_class": "energy",
"return_type": "FP32"
"value_type": "FP32"
}
]
}
Expand Down
Loading

0 comments on commit bb06812

Please sign in to comment.