How to set Automation/Device linkage?