Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 24 additions & 24 deletions plugins/sources/SHM2/shm2.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def execute(config, add_data, dostop):
'enabled': "true",
'name': "Reactive power consumption",
'device_class': "reactive_power",
'unit_of_measurement': "W",
'unit_of_measurement': "var",
'state_class': "measurement",
'suggested_display_precision': 2,
'icon': "mdi:home-lightning-bolt-outline",
Expand All @@ -214,8 +214,8 @@ def execute(config, add_data, dostop):
'key': "q.qconsumecounter",
'enabled': "true",
'name': "Reactive power consumption counter",
'device_class': "energy",
'unit_of_measurement': "kWh",
'device_class': "reactive_energy",
'unit_of_measurement': "kvarh",
'suggested_display_precision': 2,
'icon': "mdi:counter",
},
Expand All @@ -224,7 +224,7 @@ def execute(config, add_data, dostop):
'enabled': "true",
'name': "Reactive power supply",
'device_class': "reactive_power",
'unit_of_measurement': "W",
'unit_of_measurement': "var",
'state_class': "measurement",
'suggested_display_precision': 2,
'icon': "mdi:home-lightning-bolt-outline",
Expand All @@ -233,8 +233,8 @@ def execute(config, add_data, dostop):
'key': "q.qsupplycounter",
'enabled': "true",
'name': "Reactive power supply counter",
'device_class': "energy",
'unit_of_measurement': "kWh",
'device_class': "reactive_energy",
'unit_of_measurement': "kvarh",
'state_class': "total_increasing",
'suggested_display_precision': 2,
'icon': "mdi:counter",
Expand Down Expand Up @@ -344,7 +344,7 @@ def execute(config, add_data, dostop):
'enabled': "false",
'name': "Phase 1 reactive power consumption",
'device_class': "reactive_power",
'unit_of_measurement': "W",
'unit_of_measurement': "var",
'state_class': "measurement",
'suggested_display_precision': 2,
'icon': "mdi:home-lightning-bolt-outline",
Expand All @@ -353,8 +353,8 @@ def execute(config, add_data, dostop):
'key': "q.1.q1consumecounter",
'enabled': "false",
'name': "Phase 1 reactive power consumption counter",
'device_class': "energy",
'unit_of_measurement': "kWh",
'device_class': "reactive_energy",
'unit_of_measurement': "kvarh",
'state_class': "total_increasing",
'suggested_display_precision': 2,
'icon': "mdi:counter",
Expand All @@ -364,7 +364,7 @@ def execute(config, add_data, dostop):
'enabled': "false",
'name': "Phase 1 reactive power supply",
'device_class': "reactive_power",
'unit_of_measurement': "W",
'unit_of_measurement': "var",
'state_class': "measurement",
'suggested_display_precision': 2,
'icon': "mdi:home-lightning-bolt-outline",
Expand All @@ -373,8 +373,8 @@ def execute(config, add_data, dostop):
'key': "q.1.q1supplycounter",
'enabled': "false",
'name': "Phase 1 reactive power supply counter",
'device_class': "energy",
'unit_of_measurement': "kWh",
'device_class': "reactive_energy",
'unit_of_measurement': "kvarh",
'state_class': "total_increasing",
'suggested_display_precision': 2,
'icon': "mdi:counter",
Expand Down Expand Up @@ -494,7 +494,7 @@ def execute(config, add_data, dostop):
'enabled': "false",
'name': "Phase 2 reactive power consumption",
'device_class': "reactive_power",
'unit_of_measurement': "W",
'unit_of_measurement': "var",
'state_class': "measurement",
'suggested_display_precision': 2,
'icon': "mdi:home-lightning-bolt-outline",
Expand All @@ -503,8 +503,8 @@ def execute(config, add_data, dostop):
'key': "q.2.q2consumecounter",
'enabled': "false",
'name': "Phase 2 reactive power consumption counter",
'device_class': "energy",
'unit_of_measurement': "kWh",
'device_class': "reactive_energy",
'unit_of_measurement': "kvarh",
'state_class': "total_increasing",
'suggested_display_precision': 2,
'icon': "mdi:counter",
Expand All @@ -514,7 +514,7 @@ def execute(config, add_data, dostop):
'enabled': "false",
'name': "Phase 2 reactive power supply",
'device_class': "reactive_power",
'unit_of_measurement': "W",
'unit_of_measurement': "var",
'state_class': "measurement",
'suggested_display_precision': 2,
'icon': "mdi:home-lightning-bolt-outline",
Expand All @@ -523,8 +523,8 @@ def execute(config, add_data, dostop):
'key': "q.2.q2supplycounter",
'enabled': "false",
'name': "Phase 2 reactive power supply counter",
'device_class': "energy",
'unit_of_measurement': "kWh",
'device_class': "reactive_energy",
'unit_of_measurement': "kvarh",
'state_class': "total_increasing",
'suggested_display_precision': 2,
'icon': "mdi:counter",
Expand Down Expand Up @@ -644,7 +644,7 @@ def execute(config, add_data, dostop):
'enabled': "false",
'name': "Phase 3 reactive power consumption",
'device_class': "reactive_power",
'unit_of_measurement': "W",
'unit_of_measurement': "var",
'state_class': "measurement",
'suggested_display_precision': 2,
'icon': "mdi:home-lightning-bolt-outline",
Expand All @@ -653,8 +653,8 @@ def execute(config, add_data, dostop):
'key': "q.3.q3consumecounter",
'enabled': "false",
'name': "Phase 3 reactive power consumption counter",
'device_class': "energy",
'unit_of_measurement': "kWh",
'device_class': "reactive_energy",
'unit_of_measurement': "kvarh",
'state_class': "total_increasing",
'suggested_display_precision': 2,
'icon': "mdi:counter",
Expand All @@ -664,7 +664,7 @@ def execute(config, add_data, dostop):
'enabled': "false",
'name': "Phase 3 reactive power supply",
'device_class': "reactive_power",
'unit_of_measurement': "W",
'unit_of_measurement': "var",
'state_class': "measurement",
'suggested_display_precision': 2,
'icon': "mdi:home-lightning-bolt-outline",
Expand All @@ -673,8 +673,8 @@ def execute(config, add_data, dostop):
'key': "q.3.q3supplycounter",
'enabled': "false",
'name': "Phase 3 reactive power supply counter",
'device_class': "energy",
'unit_of_measurement': "kWh",
'device_class': "reactive_energy",
'unit_of_measurement': "kvarh",
'state_class': "total_increasing",
'suggested_display_precision': 2,
'icon': "mdi:counter",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]

[project]
name = "smahub"
version = "1.7.2"
version = "1.7.3"
authors = [{ name = "Daniel Krippner", email = "dk.mailbox@gmx.net" }]
description = "Little daemon that runs plugins for collecting data from SMA PV products, and publishes to eg MQTT via other plugins."
readme = "README.md"
Expand Down