Hank four-key scene controller hkzn-scn04

Hello!

I am very new to HA, but have come a bit on the road in my set.

Now I have encountered problems with my hank button.

I wonder if I need to do an automation according to the enclosed code from HA website?
And I have tried to do this, but it complains about “switch:” in the code?

" Invalid config for [automation]: [switch] is an invalid option for [automation]. Check: automation->switch. (See /config/configuration.yaml, line 38). Please check the docs at https://home-assistant.io/components/automation/"

Hope someone can solve my problem.

Here at the bottom is the code: https://www.home-assistant.io/docs/z-wave/device-specific/#hank-one-key-scene-controller-hkzn-scn01