rospogrigio/airbnk_cloud — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a Home Assistant custom integration that lets me control Airbnk, now WeHere, smart locks through the cloud. It should work with locks that use the W100 gateway, especially the M300, M500, and M510.

I want setup to happen from the Home Assistant Integrations screen, not YAML. The user should add the integration, enter the email they use for Airbnk or WeHere, then enter the verification code they receive by email. After that, Home Assistant should find the locks on that cloud account and add them automatically.

For each lock, create something I can use to send both lock and unlock commands whenever I want, even if Home Assistant does not know the real physical state. Also create a simple status sensor that shows the result of the last command, including if it timed out.

Please make it installable as a normal custom component, and structure it so it can also be added through HACS as a custom integration.

Want more depth? Deep Reverse