Skip to content

Commit 3b88457

Browse files
Update victron_mqtt to 2025.8.1 and merge topics (#54)
Co-authored-by: tomer-w <57483589+tomer-w@users.noreply.github.com>
1 parent f7eee23 commit 3b88457

3 files changed

Lines changed: 227 additions & 12 deletions

File tree

custom_components/victron_mqtt/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
"iot_class": "local_push",
1212
"issue_tracker": "https://github.com/tomer-w/ha-victron-mqtt/issues",
1313
"requirements": [
14-
"victron_mqtt==2025.8.0"
14+
"victron_mqtt==2025.8.1"
1515
],
1616
"ssdp": [
1717
{
1818
"manufacturer": "Victron Energy",
1919
"X_MqttOnLan": "1"
2020
}
2121
],
22-
"version": "2025.8.0"
22+
"version": "2025.8.1"
2323
}

custom_components/victron_mqtt/translations/en.json

Lines changed: 39 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -318,10 +318,30 @@
318318
"name": "DC load power"
319319
}
320320
},
321-
"switch": {
321+
"binary_sensor": {
322322
"solarcharger_load_state": {
323323
"name": "Solar Charger Load State"
324324
},
325+
"inverter_connected": {
326+
"name": "Inverter connected"
327+
},
328+
"evcharger_connected": {
329+
"name": "EV charger connected"
330+
},
331+
"gps_connected": {
332+
"name": "GPS Connected"
333+
},
334+
"gps_fix": {
335+
"name": "GPS Fix"
336+
}
337+
},
338+
"switch": {
339+
"solarcharger_mode": {
340+
"name": "Solar Charger Mode"
341+
},
342+
"solarcharger_relay_state": {
343+
"name": "Solar Charger Relay State"
344+
},
325345
"system_relay_relay": {
326346
"name": "Relay {relay} state"
327347
},
@@ -340,14 +360,6 @@
340360
"name": "EV charger mode"
341361
}
342362
},
343-
"binary_sensor": {
344-
"inverter_connected": {
345-
"name": "Inverter connected"
346-
},
347-
"evcharger_connected": {
348-
"name": "EV charger connected"
349-
}
350-
},
351363
"number": {
352364
"inverter_current_limit": {
353365
"name": "Inverter current limit"
@@ -366,6 +378,24 @@
366378
},
367379
"switch_output_dimming": {
368380
"name": "Switch {output} Dimming"
381+
},
382+
"gps_altitude": {
383+
"name": "GPS Altitude"
384+
},
385+
"gps_course": {
386+
"name": "GPS Course"
387+
},
388+
"gps_speed": {
389+
"name": "GPS Speed"
390+
},
391+
"gps_nrofsatellites": {
392+
"name": "GPS Nr Of Satellites"
393+
},
394+
"gps_latitude": {
395+
"name": "GPS Latitude"
396+
},
397+
"gps_longitude": {
398+
"name": "GPS Longitude"
369399
}
370400
}
371401
}

victron_mqtt.json

Lines changed: 186 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@
512512
},
513513
{
514514
"topic": "N/+/solarcharger/+/Load/State",
515-
"message_type": "MetricKind.SWITCH",
515+
"message_type": "MetricKind.BINARY_SENSOR",
516516
"short_id": "solarcharger_load_state",
517517
"name": "Solar Charger Load State",
518518
"unit_of_measurement": null,
@@ -528,6 +528,42 @@
528528
"is_adjustable_suffix": null,
529529
"key_values": {}
530530
},
531+
{
532+
"topic": "N/+/solarcharger/+/Mode",
533+
"message_type": "MetricKind.SWITCH",
534+
"short_id": "solarcharger_mode",
535+
"name": "Solar Charger Mode",
536+
"unit_of_measurement": null,
537+
"metric_type": "MetricType.NONE",
538+
"metric_nature": "MetricNature.NONE",
539+
"device_type": "Solar Charger",
540+
"value_type": "ValueType.ENUM",
541+
"precision": null,
542+
"enum": "GenericOnOff",
543+
"min_max_range": "RangeType.STATIC",
544+
"min": null,
545+
"max": null,
546+
"is_adjustable_suffix": null,
547+
"key_values": {}
548+
},
549+
{
550+
"topic": "N/+/solarcharger/+/Relay/0/State",
551+
"message_type": "MetricKind.SWITCH",
552+
"short_id": "solarcharger_relay_state",
553+
"name": "Solar Charger Relay State",
554+
"unit_of_measurement": null,
555+
"metric_type": "MetricType.NONE",
556+
"metric_nature": "MetricNature.NONE",
557+
"device_type": "Solar Charger",
558+
"value_type": "ValueType.ENUM",
559+
"precision": null,
560+
"enum": "GenericOnOff",
561+
"min_max_range": "RangeType.STATIC",
562+
"min": null,
563+
"max": null,
564+
"is_adjustable_suffix": null,
565+
"key_values": {}
566+
},
531567
{
532568
"topic": "N/+/battery/+/Dc/0/Voltage",
533569
"message_type": "MetricKind.SENSOR",
@@ -1949,6 +1985,150 @@
19491985
"max": 100,
19501986
"is_adjustable_suffix": null,
19511987
"key_values": {}
1988+
},
1989+
{
1990+
"topic": "N/+/gps/+/Altitude",
1991+
"message_type": "MetricKind.NUMBER",
1992+
"short_id": "gps_altitude",
1993+
"name": "GPS Altitude",
1994+
"unit_of_measurement": null,
1995+
"metric_type": "MetricType.NONE",
1996+
"metric_nature": "MetricNature.INSTANTANEOUS",
1997+
"device_type": "Gps",
1998+
"value_type": "ValueType.FLOAT",
1999+
"precision": 2,
2000+
"enum": null,
2001+
"min_max_range": "RangeType.STATIC",
2002+
"min": null,
2003+
"max": null,
2004+
"is_adjustable_suffix": null,
2005+
"key_values": {}
2006+
},
2007+
{
2008+
"topic": "N/+/gps/+/Connected",
2009+
"message_type": "MetricKind.BINARY_SENSOR",
2010+
"short_id": "gps_connected",
2011+
"name": "GPS Connected",
2012+
"unit_of_measurement": null,
2013+
"metric_type": "MetricType.NONE",
2014+
"metric_nature": "MetricNature.NONE",
2015+
"device_type": "Gps",
2016+
"value_type": "ValueType.ENUM",
2017+
"precision": null,
2018+
"enum": "GenericOnOff",
2019+
"min_max_range": "RangeType.STATIC",
2020+
"min": null,
2021+
"max": null,
2022+
"is_adjustable_suffix": null,
2023+
"key_values": {}
2024+
},
2025+
{
2026+
"topic": "N/+/gps/+/Course",
2027+
"message_type": "MetricKind.NUMBER",
2028+
"short_id": "gps_course",
2029+
"name": "GPS Course",
2030+
"unit_of_measurement": null,
2031+
"metric_type": "MetricType.HEADING",
2032+
"metric_nature": "MetricNature.INSTANTANEOUS",
2033+
"device_type": "Gps",
2034+
"value_type": "ValueType.FLOAT",
2035+
"precision": 2,
2036+
"enum": null,
2037+
"min_max_range": "RangeType.STATIC",
2038+
"min": null,
2039+
"max": null,
2040+
"is_adjustable_suffix": null,
2041+
"key_values": {}
2042+
},
2043+
{
2044+
"topic": "N/+/gps/+/Fix",
2045+
"message_type": "MetricKind.BINARY_SENSOR",
2046+
"short_id": "gps_fix",
2047+
"name": "GPS Fix",
2048+
"unit_of_measurement": null,
2049+
"metric_type": "MetricType.NONE",
2050+
"metric_nature": "MetricNature.NONE",
2051+
"device_type": "Gps",
2052+
"value_type": "ValueType.ENUM",
2053+
"precision": null,
2054+
"enum": "GenericOnOff",
2055+
"min_max_range": "RangeType.STATIC",
2056+
"min": null,
2057+
"max": null,
2058+
"is_adjustable_suffix": null,
2059+
"key_values": {}
2060+
},
2061+
{
2062+
"topic": "N/+/gps/+/Speed",
2063+
"message_type": "MetricKind.NUMBER",
2064+
"short_id": "gps_speed",
2065+
"name": "GPS Speed",
2066+
"unit_of_measurement": null,
2067+
"metric_type": "MetricType.SPEED",
2068+
"metric_nature": "MetricNature.INSTANTANEOUS",
2069+
"device_type": "Gps",
2070+
"value_type": "ValueType.FLOAT",
2071+
"precision": 2,
2072+
"enum": null,
2073+
"min_max_range": "RangeType.STATIC",
2074+
"min": null,
2075+
"max": null,
2076+
"is_adjustable_suffix": null,
2077+
"key_values": {}
2078+
},
2079+
{
2080+
"topic": "N/+/gps/+/NrOfSatellites",
2081+
"message_type": "MetricKind.NUMBER",
2082+
"short_id": "gps_nrofsatellites",
2083+
"name": "GPS Nr Of Satellites",
2084+
"unit_of_measurement": null,
2085+
"metric_type": "MetricType.NONE",
2086+
"metric_nature": "MetricNature.INSTANTANEOUS",
2087+
"device_type": "Gps",
2088+
"value_type": "ValueType.INT",
2089+
"precision": null,
2090+
"enum": null,
2091+
"min_max_range": "RangeType.STATIC",
2092+
"min": null,
2093+
"max": null,
2094+
"is_adjustable_suffix": null,
2095+
"key_values": {}
2096+
},
2097+
{
2098+
"topic": "N/+/gps/+/Position/Latitude",
2099+
"message_type": "MetricKind.NUMBER",
2100+
"short_id": "gps_latitude",
2101+
"name": "GPS Latitude",
2102+
"unit_of_measurement": null,
2103+
"metric_type": "MetricType.LOCATION",
2104+
"metric_nature": "MetricNature.INSTANTANEOUS",
2105+
"device_type": "Gps",
2106+
"value_type": "ValueType.FLOAT",
2107+
"precision": 2,
2108+
"enum": null,
2109+
"min_max_range": "RangeType.STATIC",
2110+
"min": null,
2111+
"max": null,
2112+
"is_adjustable_suffix": null,
2113+
"key_values": {}
2114+
},
2115+
{
2116+
"topic": "N/+/gps/+/Position/Longitude",
2117+
"message_type": "MetricKind.NUMBER",
2118+
"short_id": "gps_longitude",
2119+
"name": "GPS Longitude",
2120+
"unit_of_measurement": null,
2121+
"metric_type": "MetricType.LOCATION",
2122+
"metric_nature": "MetricNature.INSTANTANEOUS",
2123+
"device_type": "Gps",
2124+
"value_type": "ValueType.FLOAT",
2125+
"precision": 2,
2126+
"enum": null,
2127+
"min_max_range": "RangeType.STATIC",
2128+
"min": null,
2129+
"max": null,
2130+
"is_adjustable_suffix": null,
2131+
"key_values": {}
19522132
}
19532133
],
19542134
"enums": [
@@ -2039,6 +2219,11 @@
20392219
"id": "SWITCH",
20402220
"name": "Switch",
20412221
"value": "switch"
2222+
},
2223+
{
2224+
"id": "GPS",
2225+
"name": "Gps",
2226+
"value": "gps"
20422227
}
20432228
]
20442229
},

0 commit comments

Comments
 (0)