Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计通过

ha-entities医管局实体

Agent Skill

ha-entities 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,435

周安装

61

GitHub Stars

28

下载量

503
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ha-entities(医管局实体)
来源仓库:https://github.com/laurigates/claude-plugins
仓库路径:skills/ha-entities
安装命令:
npx skills add https://github.com/laurigates/claude-plugins --skill ha-entities
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/laurigates/claude-plugins --skill ha-entities

简介

ha-entities 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 适用于需要根据关键词或任务场景从来源线索中获取信息的场景。
  • 通过关键词、任务场景或来源线索进行信息检索与筛选。
  • 安装命令:npx skills add https://github.com/laurigates/claude-plugins --skill ha-entities。
  • 建议确认权限范围、维护状态及是否触发联网或文件读写操作。

SKILL.md

Home Assistant Entities

When to Use This Skill

Use this skill when...Use ha-automations instead when...
Understanding entity domainsCreating automation rules
Customizing entitiesWorking with triggers/actions
Creating template sensorsWriting automation conditions
Setting up groupsWorking with scripts/scenes
Working with device classesHandling events

Entity ID Structure

domain.object_id

Examples:

  • light.living_room_ceiling
  • sensor.outdoor_temperature
  • binary_sensor.front_door_contact
  • switch.garden_irrigation

Common Domains

DomainDescriptionExample
lightLighting controllight.kitchen
switchOn/off switchesswitch.outlet
sensorNumeric sensorssensor.temperature
binary_sensorOn/off sensorsbinary_sensor.motion
climateHVAC controlclimate.thermostat
coverBlinds, garage doorscover.garage
lockDoor lockslock.front_door
media_playerMedia devicesmedia_player.tv
cameraCamera feedscamera.front_yard
vacuumRobot vacuumsvacuum.roomba
fanFan controlfan.bedroom
alarm_control_panelAlarm systemsalarm_control_panel.home
personPeople trackingperson.john
device_trackerDevice locationdevice_tracker.phone
weatherWeather infoweather.home
input_booleanVirtual toggleinput_boolean.guest_mode
input_numberVirtual numberinput_number.target_temp
input_selectVirtual dropdowninput_select.house_mode
input_textVirtual textinput_text.message
input_datetimeVirtual date/timeinput_datetime.alarm
input_buttonVirtual buttoninput_button.reset
automationAutomationsautomation.motion_light
scriptScriptsscript.morning_routine
sceneScenesscene.movie_night
groupEntity groupsgroup.all_lights
timerCountdown timerstimer.laundry
counterCounterscounter.guests
zoneGeographic zoneszone.home
sunSun positionsun.sun

For complete device class tables (binary sensor and sensor), see REFERENCE.md.

Entity Customization

customize.yaml

# Single entity
light.living_room:
  friendly_name: "Living Room Light"
  icon: mdi:ceiling-light

# Binary sensor
binary_sensor.front_door:
  friendly_name: "Front Door"
  device_class: door

# Sensor
sensor.outdoor_temperature:
  friendly_name: "Outdoor Temperature"
  device_class: temperature
  unit_of_measurement: "°C"

Glob Customization

customize_glob:
  "light.*_ceiling":
    icon: mdi:ceiling-light

  "sensor.*_temperature":
    device_class: temperature
    unit_of_measurement: "°C"

  "binary_sensor.*_motion":
    device_class: motion

Template Sensors

template:
  - sensor:
      # Simple state
      - name: "Average Temperature"
        unit_of_measurement: "°C"
        device_class: temperature
        state: >-
          {{ ((states('sensor.living_room_temp') | float +
               states('sensor.bedroom_temp') | float +
               states('sensor.kitchen_temp') | float) / 3) | round(1) }}

      # With attributes
      - name: "Power Usage"
        unit_of_measurement: "W"
        device_class: power
        state: "{{ states('sensor.energy_meter_power') }}"
        attributes:
          cost_per_hour: >-
            {{ (states('sensor.energy_meter_power') | float * 0.15 / 1000) | round(2) }}

      # Availability
      - name: "Solar Power"
        unit_of_measurement: "W"
        device_class: power
        state: "{{ states('sensor.inverter_power') }}"
        availability: "{{ states('sensor.inverter_power') != 'unavailable' }}"

For template binary sensors, switches, buttons, numbers, groups, utility meters, counters, and timers, see REFERENCE.md.

State Attributes

Common Attributes

DomainCommon Attributes
lightbrightness, color_temp, rgb_color, hs_color, effect
climatetemperature, current_temperature, hvac_action, preset_mode
media_playervolume_level, media_title, media_artist, source
covercurrent_position, current_tilt_position
weathertemperature, humidity, pressure, wind_speed, forecast
personsource, latitude, longitude, gps_accuracy
sunelevation, azimuth, next_rising, next_setting

Accessing Attributes

# In templates
{{ state_attr('light.living_room', 'brightness') }}
{{ state_attr('climate.thermostat', 'current_temperature') }}
{{ state_attr('sun.sun', 'elevation') }}

# In conditions
condition:
  - condition: numeric_state
    entity_id: light.living_room
    attribute: brightness
    above: 100

Quick Reference

State Functions

FunctionDescriptionExample
states('entity')Get statestates('sensor.temp')
state_attr('entity', 'attr')Get attributestate_attr('light.x', 'brightness')
is_state('entity', 'value')Check stateis_state('light.x', 'on')
is_state_attr('entity', 'attr', 'val')Check attributeis_state_attr('climate.x', 'hvac_action', 'heating')
states.domainAll entities in domainstates.light
expand('group.x')Expand group membersexpand('group.all_lights')

Agentic Optimizations

ContextCommand
Find entity usagegrep -r "entity_id:" config/ --include="*.yaml"
List customizationsgrep -rA2 "^[a-z_]*\\..*:" config/customize.yaml
Find template sensorsgrep -rB2 "platform: template" config/ --include="*.yaml"
Find groupsgrep -rA5 "^group:" config/ --include="*.yaml"
List domains used`grep -roh "[a-z_]*\\." config/ --include="*.yaml" \sort -u`

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.87%
按下载量换算190

Claude

28.85%
按下载量换算145

Cursor

18.34%
按下载量换算92

Gemini CLI

10.71%
按下载量换算54

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills