Can anyone suggest a way to prevent modbus entities writing back a changed value?
Ideally I would like a toggle switch that if set to off prevents any modbus values being written and they only switch into write mode if I switch the switch.
My use case is my inverter which through scrolling on my phone I have accidentally slid a number slider and set the max charge current to a new value. I do not know what the old value was.
Remove the modbus.write_register from the slider’s tap action and place a button next to it which does write when being tapped.
Had a similar problem and now it looks like this

If the slider being moved the value does change and the button next to slider does change it’s icon color, being an indicator that if I want to set the new value I must press the button.
And don’t argue about the ‘old’ value in the button is sort of mixed up, that’s a bug, better said I was in need of the wattage once and missed to revert it back so it still displays the chargerate. In the end these 2 values shown in the button aren’t required since if you revert the slider position back to it’s old position the button will turn green without being pressed.