ESPHome on lamps with YLKG12YL Flex (SlisaOn) switch


How does original firmware handle Flex (SlisaOn) switch?
Is it exposed in any GPIO pin?

It looks like lamps are not powered down for <2 seconds while the button is pressed so lamp toggle is handled in the firmware - I want to reproduce this in ESPHome.

FTR: at least on YLXD62YI it’s GPIO32