Skip to content

Commit c6fe0c3

Browse files
Update victron_mqtt to 2026.6.5 (#436)
## Changes - Remove hardcoded dollar sign from session cost (#173718) - Fix grid power factor not graphable in HA (#435) ## Contributors @tomer-w Co-authored-by: tomer-w <57483589+tomer-w@users.noreply.github.com>
1 parent 4dda7f5 commit c6fe0c3

5 files changed

Lines changed: 14 additions & 13 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Vendored third-party packages."""
22

3-
VICTRON_MQTT_VERSION = "2026.6.4"
3+
VICTRON_MQTT_VERSION = "2026.6.5"

custom_components/victron_mqtt/_vendor/victron_mqtt/_victron_topics.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,7 +1213,6 @@
12131213
short_id="evcharger_session_cost",
12141214
name="Last session cost",
12151215
metric_type=MetricType.COST,
1216-
unit_of_measurement="$",
12171216
),
12181217
TopicDescriptor(
12191218
topic="N/{installation_id}/evcharger/{device_id}/Session/Energy",
@@ -1476,8 +1475,6 @@
14761475
short_id="grid_power_factor",
14771476
name="Power factor",
14781477
metric_type=MetricType.POWER_FACTOR,
1479-
value_type=ValueType.FLOAT,
1480-
precision=3,
14811478
),
14821479
TopicDescriptor(
14831480
topic="N/{installation_id}/grid/{device_id}/Ac/Voltage",
@@ -1520,8 +1517,6 @@
15201517
short_id="grid_power_factor_{phase}",
15211518
name="Power factor on {phase}",
15221519
metric_type=MetricType.POWER_FACTOR,
1523-
value_type=ValueType.FLOAT,
1524-
precision=3,
15251520
),
15261521
TopicDescriptor(
15271522
topic="N/{installation_id}/grid/{device_id}/Ac/{phase}/Voltage",

custom_components/victron_mqtt/_vendor/victron_mqtt/data_classes.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,14 @@ def __post_init__(self):
161161
self.precision = 2
162162
if self.metric_nature == MetricNature.NONE:
163163
self.metric_nature = MetricNature.MEASUREMENT
164+
# Power factor default
165+
if self.metric_type == MetricType.POWER_FACTOR:
166+
if self.value_type is None:
167+
self.value_type = ValueType.FLOAT
168+
if self.precision is None:
169+
self.precision = 3
170+
if self.metric_nature == MetricNature.NONE:
171+
self.metric_nature = MetricNature.MEASUREMENT
164172
# Temperature default
165173
if self.metric_type == MetricType.TEMPERATURE:
166174
if self.unit_of_measurement is None:

custom_components/victron_mqtt/translations/en.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1170,8 +1170,7 @@
11701170
}
11711171
},
11721172
"ev_battery_capacity": {
1173-
"name": "Battery capacity",
1174-
"unit_of_measurement": "Ah"
1173+
"name": "Battery capacity"
11751174
},
11761175
"ev_battery_temperature": {
11771176
"name": "Battery temperature"
@@ -1251,8 +1250,7 @@
12511250
"name": "Power {phase}"
12521251
},
12531252
"evcharger_session_cost": {
1254-
"name": "Last session cost",
1255-
"unit_of_measurement": "$"
1253+
"name": "Last session cost"
12561254
},
12571255
"evcharger_session_energy": {
12581256
"name": "Last session energy"

victron_mqtt.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3767,7 +3767,7 @@
37673767
"message_type": "MetricKind.SENSOR",
37683768
"short_id": "evcharger_session_cost",
37693769
"name": "Last session cost",
3770-
"unit_of_measurement": "$",
3770+
"unit_of_measurement": null,
37713771
"metric_type": "MetricType.COST",
37723772
"metric_nature": "MetricNature.MEASUREMENT",
37733773
"value_type": "ValueType.FLOAT",
@@ -4568,7 +4568,7 @@
45684568
"name": "Power factor",
45694569
"unit_of_measurement": null,
45704570
"metric_type": "MetricType.POWER_FACTOR",
4571-
"metric_nature": "MetricNature.NONE",
4571+
"metric_nature": "MetricNature.MEASUREMENT",
45724572
"value_type": "ValueType.FLOAT",
45734573
"precision": 3,
45744574
"enum": null,
@@ -4730,7 +4730,7 @@
47304730
"name": "Power factor on {phase}",
47314731
"unit_of_measurement": null,
47324732
"metric_type": "MetricType.POWER_FACTOR",
4733-
"metric_nature": "MetricNature.NONE",
4733+
"metric_nature": "MetricNature.MEASUREMENT",
47344734
"value_type": "ValueType.FLOAT",
47354735
"precision": 3,
47364736
"enum": null,

0 commit comments

Comments
 (0)