2024年11月21日星期四 下午11:02:47

Developer Tools Template

7 个月 前
#29859 引用
piper addon tts on hassos
service: tts.speak
target:
  entity_id: tts.piper
data:
  cache: true
  media_player_entity_id: media_player.wifipuffer1c
  message: ppppp


detail:http://localhost:4999/boards/topic/21969/how-to-configure-piper-as-a-standard-tts-in-automations#29821
0
7 个月 前
#29860 引用
piper tts always repeated  dlna

service: tts.speak
target:
  entity_id: tts.piper
data:
  cache: false
  media_player_entity_id: media_player.xiao_ai_yin_xiang_6318
  message: ppppp
0
7 个月 前
#30855 引用

service: input_select.select_option
data:
  entity_id: input_select.input_select_husband_track_home_away_status_dropdown
  option: Away
0
7 个月 前
#31938 引用
{{states.light | selectattr('state', '==', 'on') | map(attribute='entity_id') | list}}

output
['light.lumi_acn01_edb6_light', 'light.linp_hb01_c930_indicator_light', 'light.chuangmi_212a01_9998_indicator_light']
0
6 个月 前
#33030 引用
  - service: input_boolean.turn_off
    data: {}
    target:
      entity_id: input_boolean.input_boolean_husband
0
6 个月 前
#34148 引用
Homepod mini  not test


service: tts.google_translate_say
data:
  entity_id: media_player.XXXX
  message: hello world



media_player.qi_ju_shi
0
5 个月 前
#39293 引用
Devices and Areas


https://community.home-assistant.io/t/devices-and-areas/695127



|Area|Devices
|:---|---:
{%- set ns = namespace(areas = [], devices=[], area_name = '') -%}
{%- for area in areas() | sort %}
  {%- set ns.area_name = area_name(area) -%}
  {%- set ns.devices = [] -%}
  {%- for device in area_devices(area) %}
    {%- set ns.devices = ns.devices + [{'device_name': device_attr(device, 'name_by_user') if device_attr(device, 'name_by_user') != none else device_attr(device, 'name')}] -%}
  {%- endfor %}
  {%- set ns.areas = ns.areas + [{'area_name': area_name(area),
                                  'devices': ns.devices}] -%}
{%- endfor -%}
{%- for area in ns.areas | sort(attribute='area_name') -%}
  {%- if area.devices | length == 0 %}
| {{ area.area_name }} | None
  {%- else -%}
    {%- set ns.area_name = area.area_name -%}
    {%- for device in area.devices | sort(attribute='device_name') %}
| {{ ns.area_name }} | {{ device.device_name }}
      {%- set ns.area_name = '' -%}
    {%- endfor -%}
  {%- endif -%}
{%- endfor -%}



output
0
4 个月 前
#41453 引用
s21 9910
{{states.sensor.sm_g9910_private_wifi_signal_strength.state}}


output

-64
0
3 个月 前
#46497 引用
Mijia temperature sensor cn version wsdcgq11lm no1

{{states.sensor.mijia_temperature_sensor_cn_version_wsdcgq11lm_no1}}

output


<template TemplateState(<state sensor.mijia_temperature_sensor_cn_version_wsdcgq11lm_no1=30.200006; state_class=measurement, unit_of_measurement=°C, device_class=temperature, friendly_name=Mijia  temperature sensor cn version wsdcgq11lm no1 @ 2024-08-20T00:29:29.844190+08:00>)>



{{states.sensor.mijia_temperature_sensor_cn_version_wsdcgq11lm_no1.state}}

output

30.200006
0