@magnus-0 In order to toggle HomeKit devices you need to have a HomeKit hub (Apple TV, iPad or HomePod) and be running iOS 13 on your phone or iPad to set it up. But as long as you do then all you need to to is have the flic button run a HomeKit shortcut (If X is 'on' then do scene A, Otherwise do scene B). I use such shortcuts for my lights and plugs so that a single click toggles between them. Here's a link to a detailed walkthrough link text. Hope that helps.