Homematic
SkillCommunicationRead Homematic IP Home Control Unit state and prepare guarded smart-home control messages without exposing HCU credentials.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Homematic skill
What this skill tells your AI
The instructions your AI receives, as published by hybridaione/hybridclaw in skills/homematic/SKILL.md and read by ahel’s review.
Use this skill for Homematic IP Home Control Unit (HCU) state inspection and guarded smart-home control planning. The primary v1 integration target is the official Homematic IP Connect API, which exposes HCU plugin communication over WebSocket. Treat CCU/RaspberryMatic and Homematic IP Access Point cloud support as separate compatibility paths until their protocols are implemented and tested.
This v1 targets remote HCU Connect API clients. The HTTPS port 6969 auth
helpers implement the remote-client enrollment flow. Installed HCU plugin
containers instead receive their token from the HCU container environment and
mounted /TOKEN file; this helper does not implement container installation.
Safety Rules
- Start with
plan,summarize-fixture,plugin-ready,get-state, orget-system-state. - For HCU setup, generate gateway
http-requestpayloads with the helper. Never ask the operator to paste activation keys or auth tokens into chat. - For HCU WebSocket operations, use helper
websocket-messageoutput as the source of truth for connection headers, message type, path, stakes tier, and approval requirement. - For a local operator-owned read-only smoke test,
run-websocketcan open the HCU WebSocket directly usingHOMEMATIC_HCU_AUTH_TOKENfrom the helper environment. Do not pass that token as an argument. Use gateway-managed execution for any amber/red operation. - Reads are green but still privacy-sensitive because home occupancy, alarms, temperatures, shutters, and energy state can reveal living patterns.
- Mutating device or group actions are amber unless they affect alarms, security zones, locks, or safety state; those are red.
- Do not execute a write unless the operator granted the exact helper-reported
requiredGrant. Include device/group ids, channel index, target value, rollback, and expected physical effect in the approval text. - Do not use shell
curl, ad hoc WebSocket scripts, or cleartext headers when the gateway tool or helper output can express the request.
Command Contract
Show helper usage:
node skills/homematic/homematic.cjs --help
Plan an explicit operation. The model should choose from the documented helper operations instead of asking the helper to parse user prose:
node skills/homematic/homematic.cjs --format json plan get-state
node skills/homematic/homematic.cjs --format json plan set-set-point-temperature
Build HCU auth setup requests. The helper uses
<secret:HOMEMATIC_HCU_ACTIVATION_KEY> and
<secret:HOMEMATIC_HCU_AUTH_TOKEN> placeholders so the gateway resolves
stored secrets server-side.
node skills/homematic/homematic.cjs --format json http-request auth-token \
--hcu-url https://hcu1-1234.local \
--plugin-id com.example.hybridclaw.homematic
node skills/homematic/homematic.cjs --format json http-request confirm-token \
--hcu-url https://hcu1-1234.local
Prepare read-only HCU Connect API messages:
node skills/homematic/homematic.cjs --format json websocket-message plugin-ready \
--hcu-url https://hcu1-1234.local
node skills/homematic/homematic.cjs --format json websocket-message get-state \
--hcu-url https://hcu1-1234.local
node skills/homematic/homematic.cjs --format json websocket-message get-system-state \
--hcu-url https://hcu1-1234.local
node skills/homematic/homematic.cjs --format json --hmip-system-events websocket-message get-state \
--hcu-url https://hcu1-1234.local
Run a local HCU WebSocket read. This is for operator-owned smoke tests where
the helper environment can see the stored token value; normal agent flows
should prefer generated payloads and gateway-managed secrets.
Use --insecure-local-tls only for operator-owned local/private HCU hosts with
self-signed certificates.
HOMEMATIC_HCU_AUTH_TOKEN="<token>" \
node skills/homematic/homematic.cjs --format json run-websocket get-state \
--hcu-url https://hcu1-1234.local
Generate policy material for local HCU network access and SecretRef routing:
node skills/homematic/homematic.cjs --format json policy-rules \
--hcu-url https://hcu1-1234.local \
--agent main
Prepare guarded write messages:
First produce an approval plan. After explicit operator confirmation, run the
exact approvedCommand unchanged.
node skills/homematic/homematic.cjs --format json approval-plan set-switch-state \
--hcu-url https://hcu1-1234.local \
--device-id 3014F711A000000000001234 \
--channel-index 1 \
--on true
node skills/homematic/homematic.cjs --format json websocket-message set-switch-state \
--hcu-url https://hcu1-1234.local \
--device-id 3014F711A000000000001234 \
--channel-index 1 \
--on true \
--operator-grant approve-homematic-write
node skills/homematic/homematic.cjs --format json websocket-message set-set-point-temperature \
--hcu-url https://hcu1-1234.local \
--group-id 00000000-1111-2222-3333-444444444444 \
--temperature 20.5 \
--operator-grant approve-homematic-write
node skills/homematic/homematic.cjs --format json websocket-message set-shutter-level \
--hcu-url https://hcu1-1234.local \
--device-id 3014F711A000000000001234 \
--channel-index 1 \
--level 0.25 \
--operator-grant approve-homematic-write
node skills/homematic/homematic.cjs --format json websocket-message acknowledge-safety-alarm \
--hcu-url https://hcu1-1234.local \
--operator-grant approve-homematic-security-write
Summarize a saved HCU state fixture without contacting hardware:
node skills/homematic/homematic.cjs --format json summarize-fixture \
--fixture skills/homematic/fixtures/hcu-state.json
The helper returns auditEvents payloads for planned and live read/control
operations. These are structured for the F2 audit rail and intentionally carry
SecretRef ids, never secret values.
Required Inputs
- HCU URL: use the local HCUweb hostname, usually
https://hcu1-XXXX.local, whereXXXXare the last four SGTIN digits shown on the underside of the Home Control Unit. - Developer mode: enable HCU developer mode in HCUweb before creating remote Connect API credentials.
- WebSocket exposure: enable Connect API WebSocket exposure in HCUweb for remote-client reads and guarded message planning.
- Plugin id: use a stable reverse-DNS style id and keep it identical for auth enrollment and WebSocket messages.
- Credentials: store activation keys and auth tokens in HybridClaw secrets; never paste values into chat or CLI arguments.
Access To Local Devices
HCU v1 requires local network reachability to hcu1-XXXX.local on HTTPS port
6969 for remote-client auth enrollment and WSS port 9001 for Connect API
messages. On macOS, the terminal or agent host may need Local Network access
before .local mDNS names resolve or WebSocket connections succeed. If mDNS is
unavailable, use the HCU's local IP address and keep the host allowlist scoped
to that address.
CCU/RaspberryMatic and Homematic IP Access Point cloud setups are not HCU Connect API endpoints. CCU/RaspberryMatic needs its local CCU API path, and the Access Point cloud path uses a separate cloud REST API. Treat both as follow-up compatibility work, not as prerequisites for this HCU skill.
V1 Coverage
This helper emits PLUGIN_STATE_RESPONSE and HMIP_SYSTEM_REQUEST messages for
read/state and guarded native Homematic IP control paths. Connect API plugin
device inclusion (DISCOVER_*, INCLUSION_EVENT, EXCLUSION_EVENT),
plugin-device control/status (CONTROL_*, STATUS_*), HCUweb configuration
templates (CONFIG_TEMPLATE_*, CONFIG_UPDATE_*), system info, and user
message flows are intentionally deferred follow-up surfaces.
References
- Official Homematic IP Connect API: https://github.com/homematicip/connect-api
- Connect API Java reference: https://github.com/homematicip/connect-api-java
- Documentation model: https://github.com/homematicip/connect-api-documentation-model
- OpenCCU-LTS context for cloud-free CCU deployments: https://github.com/homematicip/OpenCCU-LTS
Relevant HCU Connect API notes:
- Remote HCU plugins connect to
wss://hcu1-XXXX.local:9001. - WebSocket connection headers include
plugin-idandauthtoken. - HCU auth enrollment uses HTTPS port
6969, headerVERSION: 12, and therequestConnectApiAuthToken/confirmConnectApiAuthTokenendpoints. - Add
hmip-system-events: trueto the WebSocket handshake when subscribing to HCUHMIP_SYSTEM_EVENTpush messages. - HCU system requests use
type: "HMIP_SYSTEM_REQUEST"and abody.pathsuch as/hmip/home/getState,/hmip/device/control/setSwitchState,/hmip/group/heating/setSetPointTemperature, or/hmip/home/security/acknowledgeSafetyAlarm. /hmip/home/getStateis the HCU Connect API path./hmip/home/getCurrentStatebelongs to the separate Homematic IP REST / Access Point API surface.
Signals
- GitHub stars
- 132
- Forks
- 12
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
homematic- Source
- github.com/hybridaione/hybridclaw