Skip to content

Commit 91beeb9

Browse files
Update victron_mqtt to 2026.6.6 (#441)
## Changes - Add battery AllowToCharge/AllowToDischarge binary sensors (#99) ## Contributors @github-actions[bot], @tomer-w Co-authored-by: tomer-w <57483589+tomer-w@users.noreply.github.com>
1 parent b36636e commit 91beeb9

4 files changed

Lines changed: 85 additions & 1 deletion

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.5"
3+
VICTRON_MQTT_VERSION = "2026.6.6"

custom_components/victron_mqtt/_vendor/victron_mqtt/_victron_topics.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,22 @@
608608
name="Installed capacity",
609609
metric_type=MetricType.ELECTRIC_STORAGE_CAPACITY,
610610
),
611+
TopicDescriptor(
612+
topic="N/{installation_id}/battery/{device_id}/Io/AllowToCharge",
613+
message_type=MetricKind.BINARY_SENSOR,
614+
short_id="battery_allow_to_charge",
615+
name="Allow to charge",
616+
value_type=ValueType.ENUM,
617+
enum=GenericOnOff,
618+
),
619+
TopicDescriptor(
620+
topic="N/{installation_id}/battery/{device_id}/Io/AllowToDischarge",
621+
message_type=MetricKind.BINARY_SENSOR,
622+
short_id="battery_allow_to_discharge",
623+
name="Allow to discharge",
624+
value_type=ValueType.ENUM,
625+
enum=GenericOnOff,
626+
),
611627
TopicDescriptor(
612628
topic="N/{installation_id}/battery/{device_id}/Soc",
613629
message_type=MetricKind.SENSOR,

custom_components/victron_mqtt/translations/en.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,20 @@
4444
"on": "On"
4545
}
4646
},
47+
"battery_allow_to_charge": {
48+
"name": "Allow to charge",
49+
"state": {
50+
"off": "Off",
51+
"on": "On"
52+
}
53+
},
54+
"battery_allow_to_discharge": {
55+
"name": "Allow to discharge",
56+
"state": {
57+
"off": "Off",
58+
"on": "On"
59+
}
60+
},
4761
"dcdc_mode": {
4862
"state": {
4963
"off": "Off",

victron_mqtt.json

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1653,6 +1653,60 @@
16531653
"hidden": false,
16541654
"sub_device_key": null
16551655
},
1656+
{
1657+
"topic": "N/{installation_id}/battery/{device_id}/Io/AllowToCharge",
1658+
"message_type": "MetricKind.BINARY_SENSOR",
1659+
"short_id": "battery_allow_to_charge",
1660+
"name": "Allow to charge",
1661+
"unit_of_measurement": null,
1662+
"metric_type": "MetricType.ENUM",
1663+
"metric_nature": "MetricNature.NONE",
1664+
"value_type": "ValueType.ENUM",
1665+
"precision": null,
1666+
"enum": "GenericOnOff",
1667+
"min_max_range": "RangeType.STATIC",
1668+
"min": null,
1669+
"max": null,
1670+
"step": null,
1671+
"is_adjustable_suffix": null,
1672+
"output_type": null,
1673+
"labels": null,
1674+
"key_values": {},
1675+
"experimental": false,
1676+
"depends_on": [],
1677+
"generic_name": "Allow to charge",
1678+
"is_formula": false,
1679+
"main_topic": false,
1680+
"hidden": false,
1681+
"sub_device_key": null
1682+
},
1683+
{
1684+
"topic": "N/{installation_id}/battery/{device_id}/Io/AllowToDischarge",
1685+
"message_type": "MetricKind.BINARY_SENSOR",
1686+
"short_id": "battery_allow_to_discharge",
1687+
"name": "Allow to discharge",
1688+
"unit_of_measurement": null,
1689+
"metric_type": "MetricType.ENUM",
1690+
"metric_nature": "MetricNature.NONE",
1691+
"value_type": "ValueType.ENUM",
1692+
"precision": null,
1693+
"enum": "GenericOnOff",
1694+
"min_max_range": "RangeType.STATIC",
1695+
"min": null,
1696+
"max": null,
1697+
"step": null,
1698+
"is_adjustable_suffix": null,
1699+
"output_type": null,
1700+
"labels": null,
1701+
"key_values": {},
1702+
"experimental": false,
1703+
"depends_on": [],
1704+
"generic_name": "Allow to discharge",
1705+
"is_formula": false,
1706+
"main_topic": false,
1707+
"hidden": false,
1708+
"sub_device_key": null
1709+
},
16561710
{
16571711
"topic": "N/{installation_id}/battery/{device_id}/Soc",
16581712
"message_type": "MetricKind.SENSOR",

0 commit comments

Comments
 (0)