I had the same issue earlier. You can have multiple functions... that's
not your problem. The problem is your indentations don't take into
account for multiple functions. You have to tab indent your action block
of code (actions, type, devices, on) o...