Not exactly what you were asking but I solved the same diifferently.
The list-item becomes visible when its error status is on and to acknowledge the message I use the swipeout action.
Otherwise use a list-item
action: command
actionCommand: OFF
This way you can only set it to OFF only, but not to ON
You can also use the boolean property disabled on the toggle item. In this case you always want the toggle to be disabled except when the power_use_warning item is on so you would just need: