how to attribute bind with switch and bulb on home app

  1. I can bind the light bulb to the light switch through chip-tool software
  2. But when I added the light bulb to the apple home app, I noticed two problems

(1) The light switch is displayed as an unsupported accessory, note that it is an unsupported accessory, not an uncertified device, because the light bulb can be normally added to the home app and is only displayed as an uncertified device (2) If the light switch can be added to the home app, then I do not know how to bind the light bulb to the light switch

Replies

I suppose the problem maybe whether the light bulb is certified, I mean otherwise it may have compatibility issues. Add the light switch to the Home app - ensure it supports HomeKit. Anyway try creating a scene or automation in the Home app to bind the light switch and bulb together, and set the trigger as the light switch being turned on or off. Then just set the action as controlling the state of the light bulb.