@raineworks/ha-dashboards 1.1.4 → 1.3.0
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.
- package/README.md +3 -1
- package/dist/mcp.js +4 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,9 @@ released with the integration, the same version.
|
|
|
7
7
|
option with, so a test can check `house.yaml` loses nothing to it), `mergeHouseSources()`, and the bedtime
|
|
8
8
|
routines (`HOME_ROUTINE`, `BEDTIME_STEP_KINDS`), to check a house's bedtime automations against.
|
|
9
9
|
- **`raineworks-dashboards-mcp`**: the setup MCP server (stdio), for an AI assistant to check and set up the
|
|
10
|
-
dashboards on a Home Assistant.
|
|
10
|
+
dashboards on a Home Assistant. The integration has the same tools built in, served by Home Assistant's own MCP
|
|
11
|
+
server and always its version ([Setting up with an assistant](https://github.com/raine-works/ha-dashboards/blob/master/docs/assistant.md)):
|
|
12
|
+
prefer those. It reads `HA_URL` and `HA_TOKEN` (an administrator's long-lived token) from the
|
|
11
13
|
environment or the `.env` of the folder it's run in. In an MCP client's config:
|
|
12
14
|
|
|
13
15
|
```json
|
package/dist/mcp.js
CHANGED
|
@@ -1059,10 +1059,11 @@ function unlabeledLights(snapshot) {
|
|
|
1059
1059
|
};
|
|
1060
1060
|
}).sort((a, b) => `${a.area ?? "~"} ${a.name}`.localeCompare(`${b.area ?? "~"} ${b.name}`));
|
|
1061
1061
|
}
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
if (typeof
|
|
1062
|
+
var checkHouse = (yaml) => checkHouseSettings(Bun.YAML.parse(yaml) ?? {});
|
|
1063
|
+
function checkHouseSettings(parsed) {
|
|
1064
|
+
if (!parsed || typeof parsed !== "object" || Array.isArray(parsed))
|
|
1065
1065
|
return { understood: [], ignored: ["(not a mapping)"] };
|
|
1066
|
+
const raw = parsed;
|
|
1066
1067
|
const house = parseHouseConfig(raw);
|
|
1067
1068
|
const count = (v) => Array.isArray(v) ? v.length : v && typeof v === "object" ? Object.keys(v).length : 0;
|
|
1068
1069
|
const used = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raineworks/ha-dashboards",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Raineworks Dashboards' house settings parser, bedtime routines and setup MCP server, for a house's own Home Assistant config repository",
|
|
6
6
|
"license": "MIT",
|