Hmmm setting the switches state to ‘off’ does not stop the container running. I’ve tried setting the state under Developer Tools > States and tried via a script called by a button:
in my scripts.yaml:
stop_zwave2mqtt:
sequence:
- condition: state
entity_id: switch.docker_zwave2mqtt
state: 'off'
However neither works.
Any ideas?