Listen to input on dashboard 2 ui-template

The multistate switch prototype is built with input listened by watch msg. See the code to figure out your solution. Dashboard 2 - Multi-state switch - #24 by hotNipi