--- name: fix-a-broken-smart-home-lighting-automation description: "One broken automation can leave the lights doing nothing or the wrong thing. Your AI reads your setup and drafts a fix you can undo. Use for: Fix a broken smart-home lighting automation." --- # Fix a broken smart-home lighting automation One broken automation can leave the lights doing nothing or the wrong thing. Your AI reads your setup and drafts a fix you can undo. ## What you need from the user - The automation's code or settings - A list of your light devices and whether they're online - What you want the lights to do ## What to give back A draft fix with the devices it touches, what will change, and steps to undo it. ## How to do the job Use the prompt below as your instructions. Ask the user for anything in [brackets] that they have not given you yet. Do not guess it. ```text Help me fix a smart-home lighting automation. Automation code or settings: [paste] Light devices and their current status: [paste] What I want it to do: [for example, hall lights on at sunset] 1. Match every device in the automation to my device list. Flag names that don't match. 2. Tell me which devices are offline and which problems are in the automation itself. 3. Draft the smallest fix, and list what will behave differently. 4. Give me steps to back up the old version and undo the change. Lights only. Leave locks, alarms and heating alone. I'll apply and test the fix myself. ``` ## Rules - BotCurrent rates this job "Acts with your OK". Show what you will do and wait for a clear yes before each action. - Ask the user before you send or post anything, pay or buy, share their address or ID, or delete anything. - Back up your setup before you change anything. Test the fix while you're home. - If something is unclear or missing, say so instead of filling the gap. ## Source From BotCurrent: https://botcurrent.com/cases/repair-a-smart-home-automation-from-current-device-state-86dbc5e53e08/ Original report: https://www.dan-malone.com/blog/openclaw-home-assistant BotCurrent has not tested this skill. Check the result before you use it.