From home-assistant
Render a Home Assistant Jinja2 template. Use when the user wants to test template expressions, debug automation conditions, or evaluate sensor value transformations.
npx claudepluginhub cameri/claude-skills --plugin home-assistantThis skill is limited to using the following tools:
<objective>
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Guides TDD-style skill creation: pressure scenarios as tests, baseline agent failures, write docs to enforce compliance, verify with RED-GREEN-REFACTOR.
Guides idea refinement into designs: explores context, asks questions one-by-one, proposes approaches, presents sections for approval, writes/review specs before coding.
<quick_start>
/home-assistant:render-template "{{ states('sensor.temperature') }}"
/home-assistant:render-template "{{ states('light.living_room') == 'on' }}"
/home-assistant:render-template "{{ state_attr('climate.thermostat', 'current_temperature') }}"
</quick_start>
<context> Load credentials before every call: ```bash source ~/.claude/channels/home-assistant/.env ``` If `.env` is missing or `HA_URL`/`HA_TOKEN` are not set, tell the user to run `/home-assistant:access` first. </context> <workflow> Parse `$ARGUMENTS`: - Everything in `$ARGUMENTS` is the template string (required). - If the user didn't quote it, reconstruct the full string from all args.httpie call:
http --ignore-stdin -b POST "${HA_URL%/}/api/template" \
"Authorization: Bearer $HA_TOKEN" \
template="<template_string>"
Display result:
Template: <input> then Result: <output>Common HA template functions to remind the user:
| Function | Description |
|---|---|
states('entity_id') | Current state value |
is_state('entity_id', 'value') | Boolean state check |
state_attr('entity_id', 'attr') | Get an attribute |
now() | Current datetime |
as_timestamp(state) | Convert to Unix timestamp |
float(value, default) | Cast to float with fallback |
int(value, default) | Cast to int with fallback |
<success_criteria>