user2684/imou_life — reverse-engineered prompt
Reverse engineered prompt
Build me a Home Assistant custom integration for Imou Life cameras and devices.
I want to add it through the Home Assistant UI using an Imou App Id and App Secret, then have it discover the devices on my Imou Life account or let me enter a device ID manually. Once a camera is added, it should create the useful Home Assistant entities for that device, like switches for supported features, motion alarm, online status, SD card storage, night vision mode, restart and refresh buttons, snapshots, video streaming, PTZ controls, and push notification support if possible.
Please make it suitable for HACS and manual install as a custom component. Keep in mind this is an unofficial integration using the Imou open API, so don’t promise support for every new model. Add sensible UI options like polling interval, API URL, timeout, and callback URL. Also include basic tests and clear README instructions for setup, motion detection behavior, and Home Assistant automations.
Want more depth? Deep Reverse