tap_action字段定义了单击卡片时的操作,这里我们选择了toggle,即切换实体的状态。hold_action字段定义了长按卡片时的操作,这里我们选择了more-info,即显示实体的更多信息。 保存并关闭custom-button-entity-row.yaml文件后,在Home Assistant的用户界面中,你可以通过以下步骤将自定义卡片添加到视图中: 打开Home Assistant...
在homeassistant的www目录下新建一个home目录,将单个灯光图,全灭的背景图,透明图,以及你喜欢的灯光开关图标(开关的图标也可以使用内置的,使用内置的就不用上传了)上传到目录中。 回到homeassistant,我们先将对应的灯光开关实体id找到,编辑仪表盘后,点击添加卡片,选择按实体,搜索灯,找到对应的开关,下面的switch.xxxx就...
1、找到HomeAssistant右下角配置-仪表盘-添加仪表盘-标题名字随意(我填了home) 2、找到新建好的标题,在左边侧栏这,点击点右上角三个点-编辑仪表盘-点亮从空白仪表盘开始-自行编辑-再点三个点原始配置编辑器-进入编辑配置 三个点!!三个点在这~ 复制下面代码: 我上面会有注解,方便理解。 kiosk_mode: hide_h...
在homeassistant的www目录下新建一个home目录,将单个灯光图,全灭的背景图,透明图,以及你喜欢的灯光开关图标(开关的图标也可以使用内置的,使用内置的就不用上传了)上传到目录中。 回到homeassistant,我们先将对应的灯光开关实体id找到,编辑仪表盘后,点击添加卡片,选择按实体,搜索灯,找到对应的开关,下面的switch.xxxx就...
-state-icon:图标元素,entity指向对应的开关实例,tap_action指按下后触发的动作,既然是开关,那就选toggle。icon指使用系统内哪个图标,这里是个灯,就使用灯泡的图标:mdi:lightbulb。网上有home assistant所有图标的索引,可以自己查找合适的图标。(https://mdi.bessarabov.com/)style下面可以自己写css样式表,熟悉css的...
有双击和长按操作啊,自己编辑改下就可以了,double_tap_action这是双击 hold_action:这是长按 ......
tap_action:action: toggle state_image:"on": /local/ui/floorplan/double-door-open.svg "off": ...
tap_action: action: none style: pointer-events: none top: 50% left: 50% width: 100% mix_blend_mode: lighten state_image: 'off': /local/xxx/透明.png 'on': /local/xxx/对应亮灯的图地址 #一个灯操作图标 - type: state-icon entity: 同上的设备实体ID号 tap_action: action: toggle #...
{"$schema":"https://raw.githubusercontent.com/house-of-abbey/GarminHomeAssistant/main/config.schema.json","title":"Home","items": [ {"entity":"script.food_on_table","name":"Food is Ready!","type":"tap","tap_action": {"service":"script.turn_on","confirm":true} }, {"entity"...
tap_action: action: toggle - type: entity-button entity: script.pc_restart name: Restart tap_action: action: toggle - type: entity-button entity: script.pc_lock name: Lock tap_action: action: toggle - type: entity-button entity: camera.living_room_camera name: LR Ca...