Skip to content

Commit 24a7d3b

Browse files
tomer-wgithub-actions[bot]
authored andcommitted
Update victron_mqtt to 2026.6.7
## Changes - Add timestamp metric type ## Contributors @tomer-w
1 parent 56b41e8 commit 24a7d3b

5 files changed

Lines changed: 15 additions & 11 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.6"
3+
VICTRON_MQTT_VERSION = "2026.6.7"

custom_components/victron_mqtt/_vendor/victron_mqtt/_victron_topics.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@
10361036
message_type=MetricKind.SENSOR,
10371037
short_id="ev_charging_started",
10381038
name="Charging started",
1039-
value_type=ValueType.EPOCH,
1039+
metric_type=MetricType.TIMESTAMP,
10401040
),
10411041
TopicDescriptor(
10421042
topic="N/{installation_id}/ev/{device_id}/ChargingState",
@@ -1072,7 +1072,7 @@
10721072
message_type=MetricKind.SENSOR,
10731073
short_id="ev_last_ev_contact",
10741074
name="Last EV contact",
1075-
value_type=ValueType.EPOCH,
1075+
metric_type=MetricType.TIMESTAMP,
10761076
),
10771077
TopicDescriptor(
10781078
topic="N/{installation_id}/ev/{device_id}/Odometer",
@@ -1306,7 +1306,7 @@
13061306
message_type=MetricKind.SENSOR,
13071307
short_id="generator_next_test_run",
13081308
name="Next test run",
1309-
value_type=ValueType.EPOCH,
1309+
metric_type=MetricType.TIMESTAMP,
13101310
),
13111311
TopicDescriptor(
13121312
topic="N/{installation_id}/generator/{device_id}/RunningByConditionCode",
@@ -3301,14 +3301,14 @@
33013301
message_type=MetricKind.SENSOR,
33023302
short_id="system_dynamicess_last_scheduled_end",
33033303
name="Dynamic ESS last scheduled end",
3304-
value_type=ValueType.EPOCH,
3304+
metric_type=MetricType.TIMESTAMP,
33053305
),
33063306
TopicDescriptor(
33073307
topic="N/{installation_id}/system/{device_id}/DynamicEss/LastScheduledStart",
33083308
message_type=MetricKind.SENSOR,
33093309
short_id="system_dynamicess_last_scheduled_start",
33103310
name="Dynamic ESS last scheduled start",
3311-
value_type=ValueType.EPOCH,
3311+
metric_type=MetricType.TIMESTAMP,
33123312
),
33133313
TopicDescriptor(
33143314
topic="N/{installation_id}/system/{device_id}/DynamicEss/MinimumSoc",

custom_components/victron_mqtt/_vendor/victron_mqtt/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class MetricType(Enum):
4949
FREQUENCY = "frequency"
5050
POWER_FACTOR = "power_factor"
5151
TIME = "time"
52+
TIMESTAMP = "timestamp"
5253
DURATION = "duration"
5354
PERCENTAGE = "percentage"
5455
ELECTRIC_STORAGE_CAPACITY = "electric_storage_capacity"

custom_components/victron_mqtt/_vendor/victron_mqtt/data_classes.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ def __post_init__(self):
111111
)
112112
if self.value_type == ValueType.ENUM:
113113
self.metric_type = MetricType.ENUM
114+
# Timestamp defaults
115+
if self.metric_type == MetricType.TIMESTAMP and self.value_type is None:
116+
self.value_type = ValueType.EPOCH
114117
# Voltage default
115118
if self.metric_type == MetricType.VOLTAGE:
116119
if self.unit_of_measurement is None:

victron_mqtt.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3171,7 +3171,7 @@
31713171
"short_id": "ev_charging_started",
31723172
"name": "Charging started",
31733173
"unit_of_measurement": null,
3174-
"metric_type": "MetricType.NONE",
3174+
"metric_type": "MetricType.TIMESTAMP",
31753175
"metric_nature": "MetricNature.NONE",
31763176
"value_type": "ValueType.EPOCH",
31773177
"precision": null,
@@ -3306,7 +3306,7 @@
33063306
"short_id": "ev_last_ev_contact",
33073307
"name": "Last EV contact",
33083308
"unit_of_measurement": null,
3309-
"metric_type": "MetricType.NONE",
3309+
"metric_type": "MetricType.TIMESTAMP",
33103310
"metric_nature": "MetricNature.NONE",
33113311
"value_type": "ValueType.EPOCH",
33123312
"precision": null,
@@ -4065,7 +4065,7 @@
40654065
"short_id": "generator_next_test_run",
40664066
"name": "Next test run",
40674067
"unit_of_measurement": null,
4068-
"metric_type": "MetricType.NONE",
4068+
"metric_type": "MetricType.TIMESTAMP",
40694069
"metric_nature": "MetricNature.NONE",
40704070
"value_type": "ValueType.EPOCH",
40714071
"precision": null,
@@ -10658,7 +10658,7 @@
1065810658
"short_id": "system_dynamicess_last_scheduled_end",
1065910659
"name": "Dynamic ESS last scheduled end",
1066010660
"unit_of_measurement": null,
10661-
"metric_type": "MetricType.NONE",
10661+
"metric_type": "MetricType.TIMESTAMP",
1066210662
"metric_nature": "MetricNature.NONE",
1066310663
"value_type": "ValueType.EPOCH",
1066410664
"precision": null,
@@ -10685,7 +10685,7 @@
1068510685
"short_id": "system_dynamicess_last_scheduled_start",
1068610686
"name": "Dynamic ESS last scheduled start",
1068710687
"unit_of_measurement": null,
10688-
"metric_type": "MetricType.NONE",
10688+
"metric_type": "MetricType.TIMESTAMP",
1068910689
"metric_nature": "MetricNature.NONE",
1069010690
"value_type": "ValueType.EPOCH",
1069110691
"precision": null,

0 commit comments

Comments
 (0)