I have several remote switches that I want to use to toggle lights on and off. The only way to do that with HomeKit is with "Convert to ShortCut," but I do not seem to be able to insert an action after the If statement.
In the configuration for a button press I select "Add or Remove Accessories...