Use this skill for local IKEA TRÅDFRI light control through an IKEA TRÅDFRI gateway.
scripts/tradfri.js for actual gateway actions.references/setup.md before first use to configure the gateway host and credentials.npm install.node-tradfri-client and a locally reachable IKEA TRÅDFRI gateway.Run commands from the skill folder or with an absolute path.
bash
node scripts/tradfri.js status
bash
node scripts/tradfri.js list-devices
bash
node scripts/tradfri.js list-groups
bash
node scripts/tradfri.js whats-on
bash
node scripts/tradfri.js offline
bash
node scripts/tradfri.js light-off "Speelkamer 1"
node scripts/tradfri.js light-on "Speelkamer 1"
bash
node scripts/tradfri.js brightness "Speelkamer 1" 35
bash
node scripts/tradfri.js group-off "Woonkamer"
node scripts/tradfri.js group-on "Woonkamer"
bash
node scripts/tradfri.js group-brightness "Woonkamer" 50
node scripts/tradfri.js group-brightness "Slaapkamers" 100
bash
node scripts/tradfri.js all-on
node scripts/tradfri.js all-on _ 100
node scripts/tradfri.js all-off
node scripts/tradfri.js all-on _ 50 --verify
Note: SuperGroup and Instellen are intentionally excluded from bulk actions.
bash
node scripts/tradfri.js floor-on 1 50 --verify
node scripts/tradfri.js floor-off 4 --verify
bash
node scripts/tradfri.js layout day --verify
node scripts/tradfri.js layout evening --verify
node scripts/tradfri.js layout night --verify
alive: false), say so explicitly instead of pretending the action succeeded.The tested route is node-tradfri-client, not pytradfri.
Install dependencies with npm install in the skill folder. The required runtime dependency is node-tradfri-client.
The script includes retry logic, settle delays, device-level verification, floor commands, and layout presets for installations that need more robust post-action checks.
The gateway must be reachable on the local network from the machine running the skill.
The script reads config from config.json, with environment variables overriding it:
TRADFRI_HOSTTRADFRI_IDENTITYTRADFRI_PSKlist-devices, whats-on, and offline include the resolved group name when the gateway exposes deviceIDs on groups.
The published version intentionally ships without working credentials; users must add their own local gateway details.
If auth stops working, recreate credentials using the flow in references/setup.md.