jimpastos/wink-relay-manager ? reverse-engineered prompt
Reverse engineered prompt
Build me a small native app for a rooted Wink Relay that replaces the stock control software and turns the device into an MQTT driven sensor and relay manager.
It should read a simple ini config from the SD card, connect to my MQTT broker, publish relay button presses, temperature, humidity, screen state, and proximity events, and also listen for MQTT commands to turn relays on and off, control the screen, reboot, or exit. I want support for both relay buttons, with options to toggle relays, send click, held, and release events, and optionally block touch input when a button is double clicked.
Please include basic startup settings like initial relay state, screen timeout, hiding the status bar, and sensor thresholds. Use logcat by default, with an option to write logs to a file when I set it in the config. Keep it practical and ready to build for Android with the NDK, and if you need anything unclear, look up the current docs online first.
Are you gonna build this?
make sure you review the code using coderabbit