{"skill":{"slug":"smart-home-assistant","displayName":"Smart Home Assistant","summary":"Monitor and analyze Home Assistant energy consumption. Use when the user asks about power usage, energy monitoring, consumption by room/area, or wants to gen...","tags":{"latest":"1.0.0"},"stats":{"comments":0,"downloads":77,"installsAllTime":0,"installsCurrent":0,"stars":1,"versions":1},"createdAt":1775553924767,"updatedAt":1775554314095},"latestVersion":{"version":"1.0.0","createdAt":1775553924767,"changelog":"Smart Home & Automation\nAn OpenClaw skill for real-time energy monitoring and automation generation with Home Assistant.\n\nFetches live power data, analyzes consumption by room, identifies your highest energy consumers, and generates ready-to-use Home Assistant automations.\n\nWhat It Does\nFetches live entity states from your Home Assistant REST API\nAnalyzes per-area and per-device power consumption\nOutputs three selectable formats:\nSummary — a concise text insight (2-3 sentences)\nTable — a markdown comparison of Area | Device | Consumption\nAutomation — a JSON payload for HA's automation.create service\n\nxample Output\nSummary\nLaundry is drawing 2,200W — 57% of your total 3,842W. The Dryer is the single highest consumer at 2,200W. No anomalies detected.\n\nTable\nArea\tDevice\tConsumption (W)\nLaundry\tDryer\t2,200.0\nKitchen\tFridge\t180.5\nUnassigned\tSmart Plug 3\t45.0\nAutomation JSON\n[\n  {\n    \"alias\": \"High Power Alert - Laundry\",\n    \"trigger\": {\n      \"platform\": \"numeric_state\",\n      \"entity_id\": \"sensor.dryer_power\",\n      \"above\": 2000\n    },\n    \"condition\": [\n      { \"condition\": \"time\", \"after\": \"06:00:00\", \"before\": \"22:00:00\" },\n      { \"condition\": \"state\", \"entity_id\": \"binary_sensor.laundry_occupancy\", \"state\": \"off\" }\n    ],\n    \"action\": {\n      \"service\": \"switch.turn_off\",\n      \"target\": { \"entity_id\": \"switch.dryer\" }\n    }\n  }\n]\nConfiguration\nAll settings live in smart_home/skill.yaml:\n\nhome_assistant:\n  url: \"http://homeassistant.local:8123\"\n  token: \"${HA_TOKEN}\"               # Resolved from environment variable\n\nunits:\n  power: [\"W\", \"kW\"]\n  energy: [\"Wh\", \"kWh\"]\n\nrules:\n  - name: \"High Power Shutoff\"\n    threshold_watts: 2000             # Devices above this trigger automations\n    time_window:\n      after: \"06:00\"                  # Active window start\n      before: \"22:00\"                 # Active window end\n    require_occupancy: \"off\"          # Trigger when room is unoccupied\n    action: \"turn_off\"                # turn_off | turn_on | notify\n\noutputs:\n  default: [\"summary\", \"table\"]      # Formats produced when none specified\nHow Automation Rules Work\nThe automation output generates HA automations only for devices exceeding threshold_watts. Each automation includes:\n\nPower trigger — numeric_state above the configured threshold\nTime condition — only active during the configured time_window\nOccupancy condition — auto-detected: if binary_sensor.<area>_occupancy exists in your entities, the condition is added. If no occupancy sensor is found for that area, the condition is omitted.\nSwitch entity IDs are derived from the sensor entity by convention: sensor.dryer_power becomes switch.dryer.","license":"MIT-0"},"metadata":{"os":null,"systems":null},"owner":{"handle":"liverock","userId":"s175ewnhnmrjf1y1sxk9d8r89s83wbxr","displayName":"Peter Lum","image":"https://avatars.githubusercontent.com/u/211891?v=4"},"moderation":{"isSuspicious":true,"isMalwareBlocked":false,"verdict":"suspicious","reasonCodes":["suspicious.llm_suspicious"],"summary":"Detected: suspicious.llm_suspicious","engineVersion":"v2.2.0","updatedAt":1775554314095}}