Switch state priority over automation