boneIO 1.5.0.dev6__py3-none-any.whl → 1.5.0.dev8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- boneio/core/remote/wled.py +9 -1
- boneio/migrations/runner.py +82 -0
- boneio/version.py +1 -1
- boneio/webui/frontend-dist/assets/{ConfigEditor-DbZgmkmq.js → ConfigEditor-D4xZU9og.js} +1 -1
- boneio/webui/frontend-dist/assets/{aiWizardPrompt-BubjUKaK.js → aiWizardPrompt-DFwp2Xa8.js} +1 -1
- boneio/webui/frontend-dist/assets/{index-qx3gjAAI.js → index-BpK_lX6d.js} +20 -10
- boneio/webui/frontend-dist/assets/{index-D6g-vdBv.css → index-zdMDZxqr.css} +1 -1
- boneio/webui/frontend-dist/index.html +2 -2
- boneio/webui/frontend-dist/sw.js +1 -1
- boneio/webui/routes/modbus.py +2 -2
- {boneio-1.5.0.dev6.dist-info → boneio-1.5.0.dev8.dist-info}/METADATA +1 -1
- {boneio-1.5.0.dev6.dist-info → boneio-1.5.0.dev8.dist-info}/RECORD +16 -16
- {boneio-1.5.0.dev6.dist-info → boneio-1.5.0.dev8.dist-info}/WHEEL +0 -0
- {boneio-1.5.0.dev6.dist-info → boneio-1.5.0.dev8.dist-info}/entry_points.txt +0 -0
- {boneio-1.5.0.dev6.dist-info → boneio-1.5.0.dev8.dist-info}/licenses/LICENSE +0 -0
- {boneio-1.5.0.dev6.dist-info → boneio-1.5.0.dev8.dist-info}/top_level.txt +0 -0
boneio/core/remote/wled.py
CHANGED
|
@@ -288,10 +288,18 @@ class WLEDRemoteDevice(RemoteDevice):
|
|
|
288
288
|
|
|
289
289
|
if action == "ON":
|
|
290
290
|
seg_state["on"] = True
|
|
291
|
+
# Ensure device is globally on so the segment is visible
|
|
292
|
+
state["on"] = True
|
|
291
293
|
elif action == "OFF":
|
|
292
294
|
seg_state["on"] = False
|
|
293
295
|
elif action == "TOGGLE":
|
|
294
|
-
|
|
296
|
+
# WLED ignores "on": "t" at segment level (tested on
|
|
297
|
+
# v0.15.0-b4) — resolve toggle using cached state.
|
|
298
|
+
current_on = self.segment_is_on(segment_id)
|
|
299
|
+
seg_state["on"] = not current_on
|
|
300
|
+
if not current_on:
|
|
301
|
+
# Turning on — ensure device is globally on
|
|
302
|
+
state["on"] = True
|
|
295
303
|
|
|
296
304
|
if brightness is not None:
|
|
297
305
|
seg_state["bri"] = max(0, min(255, brightness))
|
boneio/migrations/runner.py
CHANGED
|
@@ -14,6 +14,7 @@ Flow:
|
|
|
14
14
|
|
|
15
15
|
from __future__ import annotations
|
|
16
16
|
|
|
17
|
+
import hashlib
|
|
17
18
|
import importlib
|
|
18
19
|
import importlib.util
|
|
19
20
|
import json
|
|
@@ -155,6 +156,7 @@ class MigrationRunner:
|
|
|
155
156
|
self.status = MigrationStatus.BOOTSTRAP_REQUIRED
|
|
156
157
|
return self.status
|
|
157
158
|
|
|
159
|
+
self._ensure_helper_up_to_date()
|
|
158
160
|
self._apply_pending(pending)
|
|
159
161
|
|
|
160
162
|
except Exception as exc:
|
|
@@ -184,6 +186,7 @@ class MigrationRunner:
|
|
|
184
186
|
self.status = MigrationStatus.OK
|
|
185
187
|
return True
|
|
186
188
|
|
|
189
|
+
self._ensure_helper_up_to_date()
|
|
187
190
|
return self._apply_pending(pending, progress_callback=progress_callback)
|
|
188
191
|
|
|
189
192
|
def get_status_dict(self) -> dict[str, Any]:
|
|
@@ -282,6 +285,85 @@ class MigrationRunner:
|
|
|
282
285
|
"""Return True when the helper binary exists and is executable."""
|
|
283
286
|
return os.path.isfile(HELPER_PATH) and os.access(HELPER_PATH, os.X_OK)
|
|
284
287
|
|
|
288
|
+
def _ensure_helper_up_to_date(self) -> None:
|
|
289
|
+
"""Auto-update /usr/sbin/boneio-migrate if the bundled version differs.
|
|
290
|
+
|
|
291
|
+
Compares SHA256 of the installed helper vs the one shipped in the
|
|
292
|
+
package. If they differ, sends an ``install_file`` action to the
|
|
293
|
+
currently installed helper to overwrite itself with the new version.
|
|
294
|
+
This works because ``sudo -n /usr/sbin/boneio-migrate`` is already
|
|
295
|
+
allowed in sudoers on all systems.
|
|
296
|
+
"""
|
|
297
|
+
if not BOOTSTRAP_HELPER_SRC.exists():
|
|
298
|
+
return
|
|
299
|
+
if not self._helper_installed():
|
|
300
|
+
return
|
|
301
|
+
|
|
302
|
+
try:
|
|
303
|
+
installed_hash = hashlib.sha256(
|
|
304
|
+
Path(HELPER_PATH).read_bytes()
|
|
305
|
+
).hexdigest()
|
|
306
|
+
bundled_hash = hashlib.sha256(
|
|
307
|
+
BOOTSTRAP_HELPER_SRC.read_bytes()
|
|
308
|
+
).hexdigest()
|
|
309
|
+
|
|
310
|
+
if installed_hash == bundled_hash:
|
|
311
|
+
_LOGGER.debug("boneio-migrate helper is up to date.")
|
|
312
|
+
return
|
|
313
|
+
|
|
314
|
+
_LOGGER.info(
|
|
315
|
+
"boneio-migrate helper outdated (installed=%s, bundled=%s). Updating...",
|
|
316
|
+
installed_hash[:12],
|
|
317
|
+
bundled_hash[:12],
|
|
318
|
+
)
|
|
319
|
+
|
|
320
|
+
# Copy the new helper to assets dir so install_file can find it
|
|
321
|
+
update_asset = ASSETS_DIR / "_helper_update"
|
|
322
|
+
update_asset.mkdir(parents=True, exist_ok=True)
|
|
323
|
+
update_src = update_asset / "boneio-migrate"
|
|
324
|
+
update_src.write_bytes(BOOTSTRAP_HELPER_SRC.read_bytes())
|
|
325
|
+
|
|
326
|
+
# Send install_file action to the old helper to overwrite itself
|
|
327
|
+
plan_payload = {
|
|
328
|
+
"version": "_helper_update",
|
|
329
|
+
"actions": [
|
|
330
|
+
{
|
|
331
|
+
"action": "install_file",
|
|
332
|
+
"src": "_helper_update/boneio-migrate",
|
|
333
|
+
"dst": HELPER_PATH,
|
|
334
|
+
"mode": 0o755,
|
|
335
|
+
"owner": "root",
|
|
336
|
+
"group": "root",
|
|
337
|
+
"template_vars": {},
|
|
338
|
+
"expected_sha256": bundled_hash,
|
|
339
|
+
}
|
|
340
|
+
],
|
|
341
|
+
"assets_base": str(ASSETS_DIR),
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
result = subprocess.run(
|
|
345
|
+
["sudo", "-n", HELPER_PATH],
|
|
346
|
+
input=json.dumps(plan_payload),
|
|
347
|
+
capture_output=True,
|
|
348
|
+
text=True,
|
|
349
|
+
timeout=15,
|
|
350
|
+
)
|
|
351
|
+
|
|
352
|
+
# Clean up temp asset
|
|
353
|
+
update_src.unlink(missing_ok=True)
|
|
354
|
+
update_asset.rmdir()
|
|
355
|
+
|
|
356
|
+
if result.returncode == 0:
|
|
357
|
+
_LOGGER.info("boneio-migrate helper updated successfully.")
|
|
358
|
+
else:
|
|
359
|
+
_LOGGER.warning(
|
|
360
|
+
"Helper self-update failed (rc=%d): %s",
|
|
361
|
+
result.returncode,
|
|
362
|
+
result.stderr.strip(),
|
|
363
|
+
)
|
|
364
|
+
except Exception as exc:
|
|
365
|
+
_LOGGER.warning("Could not check/update boneio-migrate helper: %s", exc)
|
|
366
|
+
|
|
285
367
|
def _load_manifest(self) -> None:
|
|
286
368
|
"""Load MANIFEST.sha256 from the assets directory."""
|
|
287
369
|
if not MANIFEST_PATH.exists():
|
boneio/version.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
# flake8: noqa
|
|
2
|
-
__version__ = "1.5.
|
|
2
|
+
__version__ = "1.5.0dev8"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{a as t,c as n,i as r,n as i,o as a,r as o,t as s}from"./monaco-61yH0vfd.js";import{b as c}from"./vendor-pmGLHP0_.js";import{a as l,c as u,i as d,l as f,n as p,o as m,r as h,s as g}from"./index-
|
|
1
|
+
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{a as t,c as n,i as r,n as i,o as a,r as o,t as s}from"./monaco-61yH0vfd.js";import{b as c}from"./vendor-pmGLHP0_.js";import{a as l,c as u,i as d,l as f,n as p,o as m,r as h,s as g}from"./index-BpK_lX6d.js";var _=e(n(),1);function v(){let[e,t]=(0,_.useState)(`dark`);return(0,_.useEffect)(()=>{t(localStorage.getItem(`theme`)||`dark`);let e=new MutationObserver(e=>{e.forEach(e=>{e.attributeName===`data-theme`&&t(document.documentElement.getAttribute(`data-theme`)||`dark`)})});return e.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-theme`]}),()=>e.disconnect()},[]),e}function y(e){return u({tag:`svg`,attr:{viewBox:`0 0 24 24`},child:[{tag:`path`,attr:{d:`M11.28 9.53 8.81 12l2.47 2.47a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-3-3a.75.75 0 0 1 0-1.06l3-3a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734Z`},child:[]},{tag:`path`,attr:{d:`M3.75 2h16.5c.966 0 1.75.784 1.75 1.75v16.5A1.75 1.75 0 0 1 20.25 22H3.75A1.75 1.75 0 0 1 2 20.25V3.75C2 2.784 2.784 2 3.75 2ZM3.5 3.75v16.5c0 .138.112.25.25.25H15v-17H3.75a.25.25 0 0 0-.25.25Zm13 16.75h3.75a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25H16.5Z`},child:[]}]})(e)}var b=c();function x({isOpen:e,onClose:t}){let{t:n}=p(),[r,i]=(0,_.useState)(!1),[a,o]=(0,_.useState)(null),s=async()=>{i(!0);try{let e=await f.get(`/api/check_configuration`);o({status:e.data.status,message:e.data.message})}catch{o({status:`error`,message:n(`config_check.failed`)})}finally{i(!1)}};return e?(0,b.jsx)(`div`,{className:`fixed inset-0 bg-base-300/80 flex items-center justify-center z-50`,children:(0,b.jsxs)(`div`,{className:`bg-base-200 p-8 rounded-lg shadow-lg max-w-2xl w-full mx-4`,children:[(0,b.jsx)(`h2`,{className:`text-2xl font-bold mb-6`,children:n(`config_check.title`)}),r?(0,b.jsxs)(`div`,{className:`flex flex-col items-center gap-4 py-8`,children:[(0,b.jsx)(`div`,{className:`loading loading-spinner loading-lg`}),(0,b.jsx)(`p`,{className:`text-lg`,children:n(`config_check.checking`)})]}):a?(0,b.jsxs)(`div`,{className:`space-y-4`,children:[(0,b.jsx)(`div`,{className:`text-lg font-semibold ${a.status===`success`?`text-success`:`text-error`}`,children:a.status===`success`?n(`config_check.valid`):n(`config_check.error`)}),a.message&&(0,b.jsx)(`pre`,{className:`bg-base-300 p-4 rounded-lg whitespace-pre-wrap`,children:a.message}),(0,b.jsxs)(`div`,{className:`flex justify-end gap-4 mt-6`,children:[(0,b.jsx)(`button`,{className:`btn btn-ghost`,onClick:()=>{o(null),t()},children:n(`common.close`)}),(0,b.jsx)(`button`,{className:`btn btn-primary`,onClick:()=>{o(null),s()},children:n(`config_check.check_again`)})]})]}):(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(`p`,{className:`text-base-content/70`,children:n(`config_check.description`)}),(0,b.jsxs)(`div`,{className:`flex justify-end gap-4`,children:[(0,b.jsx)(`button`,{className:`btn btn-ghost`,onClick:t,children:n(`common.cancel`)}),(0,b.jsx)(`button`,{className:`btn btn-primary`,onClick:s,children:n(`config_check.check_button`)})]})]})]})}):null}function S(e){return new Worker(`/assets/yaml.worker-BKRoXlmz.js`,{name:e?.name})}self.MonacoEnvironment={getWorker(e,t){return t===`yaml`?new S:t===`json`?new s:new i}},a.config({monaco:r});var C;function w(){let[e,n]=(0,_.useState)([]),[r,i]=(0,_.useState)(null),[a,s]=(0,_.useState)(``),[c,u]=(0,_.useState)(!1),[p,S]=(0,_.useState)(`waiting`),[w,T]=(0,_.useState)(!0),[E,D]=(0,_.useState)(!1),O=v(),k=async()=>{try{n((await f.get(`/api/files`)).data.items)}catch(e){console.error(`Error loading directory:`,e)}},A=async e=>{try{let t=`/api/files/${encodeURIComponent(e)}`,n=await f.get(t);i(e),s(n.data.content),localStorage.setItem(`lastOpenedFile`,e)}catch(e){console.error(`Error loading file:`,e)}},j=async()=>{if(r)try{await f.put(`/api/files/${encodeURIComponent(r)}`,{content:a}),console.log(`File saved successfully`)}catch(e){console.error(`Error saving file:`,e)}},M=async e=>{if(!C){let t=(await f.get(`/schema/config.schema.json`)).data;C=await o(e,{enableSchemaRequest:!0,schemas:[{uri:window.location.origin+`/schema/config.schema.json`,fileMatch:[`config.yaml`,`config.yml`],schema:t},...Object.keys(t.properties).map(e=>({uri:window.location.origin+`/schema/${e}.schema.json`,fileMatch:[`${e}.yaml`,`${e}.yml`],schema:t.properties[e]}))],validate:!0})}},N=async(e,t)=>{e.addCommand(t.KeyMod.CtrlCmd|t.KeyCode.KeyS,()=>{j()})},P=e=>{n(t=>{let n=t=>t.map(t=>t.path===e?{...t,isOpen:!t.isOpen}:t.children?{...t,children:n(t.children)}:t);return n(t)})},F=(e,t=0)=>e.map(e=>{let n=t==0||e.isOpen;return(0,b.jsxs)(`div`,{children:[(0,b.jsxs)(`button`,{className:`flex items-center gap-2 w-full px-2 py-1 hover:bg-base-300 ${r===e.path?`bg-primary/10`:``}`,style:{paddingLeft:`${t*16+8}px`},onClick:()=>e.type===`file`?A(e.path):P(e.path),children:[e.type===`directory`&&(0,b.jsx)(`span`,{className:`text-xs`,children:n?(0,b.jsx)(h,{}):(0,b.jsx)(d,{})}),(0,b.jsx)(`span`,{className:`text-base-content/70`,children:e.type===`directory`?n?(0,b.jsx)(g,{}):(0,b.jsx)(m,{}):(0,b.jsx)(l,{})}),(0,b.jsx)(`span`,{className:`text-sm truncate`,children:e.name})]}),e.type===`directory`&&n&&e.children&&F(e.children,t+1)]},e.path)}),I=async()=>{try{return await f.get(`/api/files`),!0}catch{return!1}},L=async()=>{for(u(!0),S(`waiting`),await new Promise(e=>setTimeout(e,2e3)),S(`checking`);;){if(await I()){S(`ready`),await new Promise(e=>setTimeout(e,1e3)),u(!1),k();break}await new Promise(e=>setTimeout(e,1e3))}};return(0,_.useEffect)(()=>{(async()=>{await k();let e=localStorage.getItem(`lastOpenedFile`);e&&A(e)})()},[]),(0,b.jsxs)(`div`,{className:`flex h-full bg-base-300`,children:[c?(0,b.jsx)(`div`,{className:`fixed inset-0 bg-base-300/80 flex items-center justify-center z-50`,children:(0,b.jsxs)(`div`,{className:`bg-base-200 p-8 rounded-lg shadow-lg text-center`,children:[(0,b.jsx)(`div`,{className:`loading loading-spinner loading-lg mb-4`}),(0,b.jsxs)(`h2`,{className:`text-xl font-bold mb-4`,children:[p===`waiting`&&`Restarting Service...`,p===`checking`&&`Waiting for Service...`,p===`ready`&&`Service Restarted!`]}),(0,b.jsxs)(`p`,{className:`text-base-content/70`,children:[p===`waiting`&&`Initiating service restart`,p===`checking`&&`Checking if service is back online`,p===`ready`&&`Redirecting...`]})]})}):null,(0,b.jsxs)(`div`,{className:`${w?`w-64`:`w-0`} transition-all duration-300 bg-base-200 border-r border-base-content/10 overflow-hidden`,children:[(0,b.jsx)(`div`,{className:`p-2 text-sm font-semibold text-base-content/70 uppercase`,children:`Explorer`}),(0,b.jsx)(`div`,{className:`overflow-y-auto`,children:F(e)})]}),(0,b.jsxs)(`div`,{className:`flex-1 overflow-hidden flex flex-col h-full max-h-screen`,children:[(0,b.jsxs)(`div`,{className:`flex items-center p-2 border-b border-base-content/10`,children:[(0,b.jsx)(`button`,{onClick:()=>T(!w),className:`btn btn-ghost btn-sm p-1`,title:w?`Hide file tree`:`Show file tree`,children:(0,b.jsx)(y,{className:`h-5 w-5 opacity-70 transition-transform duration-200 ${w?``:`rotate-180`}`})}),r&&(0,b.jsx)(`span`,{className:`ml-2 text-sm opacity-70`,children:r})]}),(0,b.jsx)(`div`,{className:`flex-1 overflow-hidden`,children:(0,b.jsx)(t,{height:`100%`,width:`100%`,defaultLanguage:`yaml`,path:r||`config.yaml`,theme:O===`light`?`vs-light`:`vs-dark`,value:a,onChange:e=>s(e||``),onMount:N,beforeMount:M,options:{minimap:{enabled:!0},scrollBeyondLastLine:!1,fontSize:14,automaticLayout:!0,readOnly:!1,formatOnType:!0,formatOnPaste:!0,quickSuggestions:{other:!0,comments:!1,strings:!0}}})}),(0,b.jsxs)(`div`,{className:`h-12 bg-base-200 border-t border-base-content/10 flex items-center justify-end px-4 gap-4`,children:[(0,b.jsx)(`button`,{onClick:j,disabled:!r,className:`btn btn-primary btn-sm`,children:`Save`}),(0,b.jsx)(`button`,{onClick:()=>D(!0),className:`btn btn-primary btn-sm`,children:`Check Config`}),(0,b.jsx)(`button`,{onClick:async()=>{await j();try{if((await f.post(`/api/restart`)).data.status===`not available`){let e=document.getElementById(`toast`);e&&(e.classList.remove(`hidden`),setTimeout(()=>{e.classList.add(`hidden`)},5e3))}else console.log(`Service restarted successfully`),L()}catch(e){console.error(`Error restarting service:`,e)}},disabled:!r,className:`btn btn-secondary btn-sm`,children:`Save and Restart`})]})]}),(0,b.jsx)(`div`,{id:`toast`,className:`toast toast-end hidden`,children:(0,b.jsx)(`div`,{className:`alert alert-warning`,children:(0,b.jsx)(`span`,{children:`Restart not possible. Application is not running as systemd service. Restart manually.`})})}),(0,b.jsx)(x,{isOpen:E,onClose:()=>D(!1)})]})}export{w as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./index-
|
|
1
|
+
import{t as e}from"./index-BpK_lX6d.js";function t(t){let n=e(t);return[`=== ROLE ===`,`You are a friendly boneIO Black input configuration wizard.`,`Your job is to help the user configure a physical input (button/switch) step by step.`,``,`=== CONVERSATION RULES ===`,`1. Ask ONE question at a time. Keep questions short and clear.`,`2. ONLY use IDs and values from the CONTEXT section below — never invent IDs.`,`3. When the user describes an action in natural language, match it to the closest available output, cover, or remote device from the context.`,`4. After each user answer, confirm what you understood before moving on.`,`5. When the user mentions a "light" or ESPHome light output, ask follow-up questions about:`,` - Action type (TOGGLE, ON, OFF, BRIGHTNESS_UP, BRIGHTNESS_DOWN, SET_BRIGHTNESS)`,` - Transition time (in seconds)`,` - Brightness level (0-255)`,` - Color temperature (if supported)`,`6. When the user mentions a "cover" or "blind" or "roller shutter", ask about:`,` - Cover action (TOGGLE, OPEN, CLOSE, STOP, SMART_TOGGLE, TILT)`,` - Position (0-100) if applicable`,`7. When the user mentions MQTT action, ask for the MQTT topic and message payload.`,`8. Skip questions about features the user says they don't need.`,``,`=== CONVERSATION FLOW ===`,`Follow this order (skip steps the user already answered):`,``,`Step 1: Ask which physical input to configure (e.g. IN_01 to IN_49).`,` Show a few available inputs from the context if helpful.`,` IMPORTANT: Check "configured_inputs" in the context first.`,` If an input is already configured, warn the user and ask if they want to reconfigure it.`,`Step 2: Ask what name to give this input (e.g. "Bedroom Light Switch").`,`Step 3: Ask which area/room it belongs to (show available areas).`,`Step 4: Ask what should happen on SINGLE CLICK.`,` - Which output/cover/remote device should it control?`,` - What action? (TOGGLE, ON, OFF, etc.)`,` - If it's a light with brightness: ask about transition, brightness.`,`Step 5: Ask if the user wants a DOUBLE CLICK action.`,` - If yes, same sub-questions as Step 4.`,` - If no, skip to Step 6.`,`Step 6: Ask if the user wants a LONG PRESS action.`,` - If yes, same sub-questions as Step 4.`,` - If no, skip to Step 7.`,`Step 7: Ask if they want any advanced settings (bounce_time, double_click_duration, etc.).`,` - Most users will say no — that's fine, use defaults.`,`Step 8: Show a summary of the configuration and ask for confirmation.`,`Step 9: Output the final JSON.`,``,`=== OUTPUT FORMAT ===`,`When the user confirms the configuration, output ONLY a valid JSON block.`,`No markdown code fences, no explanations around the JSON.`,`The JSON must have this exact shape:`,`{"version":1,"entity_type":"event","apply_to":"current_form","changes":{...}}`,``,`The "changes" object should contain ALL fields for the configured input:`,`- "name": display name`,`- "boneio_input": the selected input ID (e.g. "IN_01")`,`- "area": room/area ID (if selected)`,`- "actions": object with click type keys, each containing an array of action objects`,``,`Action object fields: action, boneio_output, action_output, boneio_cover, action_cover,`,`remote_device, output_id, cover_id, brightness, color_temp, transition, topic, action_mqtt_msg.`,`Only include fields relevant to the action type.`,``,`=== EXAMPLE FINAL JSON ===`,JSON.stringify({version:1,entity_type:`event`,apply_to:`current_form`,changes:{name:`Bedroom Light`,boneio_input:`IN_01`,area:`bedroom`,actions:{single:[{action:`output`,boneio_output:`out_01`,action_output:`TOGGLE`}],double:[{action:`output`,boneio_output:`out_01`,action_output:`ON`,brightness:255}],long:[{action:`output`,boneio_output:`out_01`,action_output:`OFF`}]}}},null,2),``,`=== CONTEXT (your knowledge about this boneIO device) ===`,JSON.stringify(n,null,2),``,`=== BEGIN ===`,`Start by greeting the user and asking which input (IN_01 to IN_49) they want to configure.`,`If there are no available inputs left, let the user know.`].join(`
|
|
2
2
|
`)}export{t as buildAiWizardPrompt};
|