{
  "id": "ha-scene-runner",
  "name": "Scene Runner",
  "category": "smart-home",
  "tags": ["scene", "lighting", "automation", "mood"],
  "description": "Buttons to run Home Assistant scenes with visual feedback.",
  "triggers": ["scene runner", "run scene", "home scene", "lighting scene", "mood scene"],
  "defaultSize": { "w": 4, "h": 4 },
  "source": "function SceneRunner() {\n  const [active, setActive] = React.useState(null);\n  const [running, setRunning] = React.useState(null);\n\n  const scenes = [\n    { id: 'morning', name: 'Morning', icon: '☀️', color: '#f59e0b' },\n    { id: 'evening', name: 'Evening', icon: '🌙', color: '#8b5cf6' },\n    { id: 'movie', name: 'Movie', icon: '🎬', color: '#ef4444' },\n    { id: 'sleep', name: 'Sleep', icon: '💤', color: '#3b82f6' },\n    { id: 'away', name: 'Away', icon: '🚪', color: '#10b981' }\n  ];\n\n  const runScene = (id) => {\n    setRunning(id);\n    setTimeout(() => { setActive(id); setRunning(null); }, 1500);\n  };\n\n  return (\n    <div style={{ fontFamily: 'system-ui', background: '#111827', color: '#f3f4f6', width: '100%', height: '100%', padding: 16, borderRadius: 8, boxSizing: 'border-box', display: 'flex', flexDirection: 'column', gap: 10 }}>\n      <div style={{ fontSize: 14, fontWeight: 600, color: '#9ca3af' }}>Scenes</div>\n      {scenes.map(s => (\n        <button key={s.id} onClick={() => runScene(s.id)} style={{ display: 'flex', alignItems: 'center', gap: 12, padding: '12px 14px', borderRadius: 8, border: 'none', background: active === s.id ? s.color + '22' : '#1f2937', boxShadow: active === s.id ? 'inset 0 0 0 2px ' + s.color : 'none', cursor: 'pointer', transition: 'all 0.2s' }}>\n          <span style={{ fontSize: 20 }}>{s.icon}</span>\n          <span style={{ flex: 1, textAlign: 'left', color: '#f3f4f6', fontWeight: 600, fontSize: 14 }}>{s.name}</span>\n          {running === s.id ? (\n            <span style={{ fontSize: 12, color: s.color }}>Running...</span>\n          ) : active === s.id ? (\n            <span style={{ fontSize: 12, color: s.color, fontWeight: 600 }}>Active</span>\n          ) : null}\n        </button>\n      ))}\n    </div>\n  );\n}\nrender(<SceneRunner/>);",
  "placeholders": [{ "name": "REPLACE_WITH_SCENE_LIST", "description": "Comma-separated list of scene entity IDs", "default": "scene.morning,scene.evening,scene.movie,scene.sleep,scene.away" }]
}
