Support minor devices within a device
Switch now has more flexible triggers

Support on, off and switch triggers. Triggers can also be more
specific, but default to “update.on” events.