Switch-Bot API integration

Wonderfull to integrate the switchbot curtains via API. There a two things i could not solve:

  1. Anyone succeeded in creating an automation with de switchbot? Is it done by Service? Entity’s are not possible with automation (i would like to use the Sun Trigger!)
  2. I have two differtent windows with two bots. How to aggregate them in code?