Skip to content

Commit b501bc2

Browse files
committed
Add a bit of more tracing
1 parent 456d43a commit b501bc2

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

custom_components/victron_mqtt/hub.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,14 @@ async def _on_update_task(self, metric: VictronVenusMetric):
173173
async def async_turn_on(self, **kwargs: Any) -> None:
174174
"""Turn the switch on."""
175175
assert isinstance(self._metric, VictronVenusSwitch)
176+
_LOGGER.info("Turning on switch: %s", self._attr_unique_id)
176177
self._metric.set(GenericOnOff.On)
177178
self.async_write_ha_state()
178179

179180
async def async_turn_off(self, **kwargs: Any) -> None:
180181
"""Turn the switch off."""
181182
assert isinstance(self._metric, VictronVenusSwitch)
183+
_LOGGER.info("Turning off switch: %s", self._attr_unique_id)
182184
self._metric.set(GenericOnOff.Off)
183185
self.async_write_ha_state()
184186

@@ -216,6 +218,7 @@ def native_value(self):
216218
async def async_set_native_value(self, value: float) -> None:
217219
"""Set a new value."""
218220
assert isinstance(self._metric, VictronVenusSwitch)
221+
_LOGGER.info("Setting number %s on switch: %s", value, self._attr_unique_id)
219222
self._metric.set(value)
220223
self.async_write_ha_state()
221224

custom_components/victron_mqtt/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"iot_class": "local_push",
1212
"issue_tracker": "https://github.com/tomer-w/ha-victron-mqtt/issues",
1313
"requirements": [
14-
"victron_mqtt==2025.7.24"
14+
"victron_mqtt==2025.7.26"
1515
],
1616
"ssdp": [
1717
{

0 commit comments

Comments
 (0)