Home Assistant除了自带的主题风格,还可以切换自定义的主题风格,我们需要找到配置文件路径,通常是在用户名路径下的.homeassistant的文件夹。 创建目录,在.homeassistant下创建themes目录 下载主题,git clone https://github.com/maartenpaauw/home-assistant-community-themes.git 将主题风格导入HA,vim .homeassistant/conf...
: | ha-card { height: 170px !important; }这个房卡最开始是在https://community.home-assistant.io/t/mushroom-inspiration/484525/48 看到。 感谢各位大佬! 2:label_entities('灯'):标签为“灯”。 3:area_entities('厨房'):区域为“厨房”,去掉区域删选就是全屋。
type:custom:digital-clock timeZone:Asia/Shanghai locale:cn dateFormat:day:2-digit month:short year:numeric timeFormat:hour:numeric minute:numeric 4、simple clock card 这张卡片和上面类似,但好处是可以调节大小尺寸,想显示多大就多大 type:custom:simple-clock-card use_military:truehide_seconds:false#隐...
这段代码是 Home Assistant Lovelace UI 中的一个auto-entities自定义卡片配置,它的作用是自动列出所有当前状态为开启的灯光实体,除非这些灯光实体具有hidden: true属性。下面是对代码中每个部分的解释: type: custom:auto-entities: 这指定了卡片类型为auto-entities,它是一个自定义卡片,需要通过 HACS 安装。 card: ...
- type: custom:config-template-card #这个就是选择lovelace里面卡片样式,介绍有写怎么用 entities: #这个很关键,修改light.后面的参数,后面的参数是实体,比如灯 - light.yeelink_light3_18a0_light#这里你当做预加载灯泡之类的组建,反应更快。 - light.mijia_group3_6769_light ...
Home Assistant进阶---UI设置初体验之彩云天气 前期在折腾完Home Assistant的相关软硬件之后,就开始折腾最终级的Home Assistant的UI界面设置,这个东西真是需要很大的耐心,同时需要一些极客精神,甚至要敲一些代码,这里首先说明,我没有相关基础,纯属个人爱好,尽量不用代码。
homeassistant:customize:input_boolean.boolean_ceshi2:###主IDfriendly_name:这是我的名字icon:mdi:fan###主图标custom_ui_state_card:state-card-button##要用这个custom_ui,就必须写这个!config:width:70px#宽度,低于35px无效,默认为35pxheight:35px#高度,低于35px无效,默认为35pxborder_radius:10px#圆角...
配置Homeassistant HA 设备的接入方式并非一键连接,需要在树莓派目录\usr\share\hassio\homeassistant下修改配置文件configuration.yaml。 进入HA 管理界面,点击侧边栏Supervisor中的Add-on store,安装并启动File editor插件便可在网页对configuration.yaml文件进行直接编写。
The logic is the same as the internal home-assistant * templates integration (see here for example): type: custom:button-card entity: sensor.mysensor # No need to repeat this one in the triggers_update, it is added by default triggers_update: - switch.myswitch - light.mylight If your...
首先,在 /www/custom_ui/ 文件夹下创建名为 custom-weather-card.html 的文件,没有相关文件夹请自行新建,文件内容为:(部分值已由我人工汉化过了) 代码示例 <dom-moduleid='custom-weather-card'><template>.clear{clear:both;}.card{margin:1em auto;padding-left:1em;padding-right:1em;position:relative;...