File tree Expand file tree Collapse file tree
custom_components/victron_mqtt Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 {
You can’t perform that action at this time.
0 commit comments