2024年12月4日星期三 上午1:23:49

How to add script into Dashboard cards

9 个月 前
#28553 引用
How to add script into Dashboard cards
0
9 个月 前
#28554 引用

type: grid
square: false
columns: 1
cards:
  - type: entities
    entities:
      - entity: input_boolean.input_boolean_husband
      - entity: input_boolean.input_boolean_wife
      - entity: input_boolean.input_boolean_dark
      - entity: input_boolean.input_boolean_slave_wc
    title: ' Room'
  - type: alarm-panel
    entity: alarm_control_panel.aqara_hub_m1s_edb6_security_system
0
9 个月 前
#28555 引用


  {% for alight in states.light|map(attribute="entity_id")|list|sort  -%}  
- entity: {{alight}}{{"\n"}}
  {%- endfor %}



output

- entity: light.aqara_hub_m1s_3967_lightbulb
- entity: light.aqara_hub_m1s_edb6_lightbulb
- entity: light.cuco_cp2_7782_indicator_light_2
- entity: light.lightbulb
- entity: light.lightbulb_3467
- entity: light.linp_hb01_c930_indicator_light_2
- entity: light.lumi_acn014_3467_light_2
- entity: light.lumi_acn01_edb6_light_2
- entity: light.lumi_mihk01_54b3_light
- entity: light.mi_jia_duo_gong_neng_zhi_neng_wang_guan_xin_jia_po_ban_light
- entity: light.mismartledlivingroomceilinglight_5f74_mi_smart_led_ceiling_light_sw
- entity: light.philips_cbulb_f4b8_light_2
- entity: light.yeelight_ceil26_0x1c5c4959
- entity: light.yeelight_ceil26_0x1c5c4959_by_yeelight_integration_nightlight
- entity: light.yeelight_color8_0x1c598a45
- entity: light.yeelink_ceil26_ef4f_light_2
- entity: light.yeelink_ceiling21_5f74_light_2
- entity: light.yeelink_color8_303b_light_2
- entity: light.yeelink_mbulb3_6cd9_light_2
- entity: light.yeelink_ml1_763c_light_2
0