『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 207|回复: 0

[求助] HA自带的条件卡片用button-card怎么写啊

[复制链接]

1

主题

9

帖子

73

积分

注册会员

Rank: 2

积分
73
金钱
64
HASS币
0
发表于 2024-3-22 22:24:33 | 显示全部楼层 |阅读模式
20金钱
本帖最后由 466491587 于 2024-3-22 22:46 编辑

大佬们,HA自带的条件按钮卡片,用button-card怎么写啊,自带的卡片在弹出卡片里面无法正常显示

type: conditional
conditions:
  - condition: state
    entity: light.lemesh_wy0c15_9302_light
    state: 'on'
card:
  show_name: true
  show_icon: true
  type: button
  tap_action:
    action: toggle
  entity: switch.xiaomi_86v1_b2cb_left_switch_service
  icon: mdi:track-light
  show_state: false
  name: 橱柜灯

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-5-4 02:04 , Processed in 0.099815 second(s), 20 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表