Simple on/off switch for light

I have a light which is controlled by a zwave dual nano switch. I use a toggle switch on a button card to switch it on or off. For some reason it requires two clicks to switch it on or off.
The code I’ve used in the button card configuration is:-

entity: switch.aeon_labs_zw132_dual_nano_switch_switch
name: Lounge back light
show_icon: true
show_name: true
tap_action:
action: toggle
type: button

This is the code the app created when I added the button. As I said, it switches the light on or off but requires two clicks each time. Not a major disaster but annoying.

Any ideas appreciated.

That is weird. I would check the zwave configuration options for the Nano switch. Is there an option to disable the double tap?

A workaround would be a template switch, that you configure to send the command twice.

Thanks very much, I’ll work on that.