标签:# <标签:0 x00007fc3fb644be8 >

我创建了另一个Dashboard。
我的仪表盘是完全响应的,所以它可以在台式机、平板电脑和移动应用程序上使用。
它有一个侧边栏,用于提供当前信息。在小屏幕(宽度小于1024px)的小设备上,侧边栏会自动隐藏。
主视图(仪表板本身)是基于默认的hui- mason- view,所以它是完全可配置的,每个卡都可以添加…
另一个很好的特性是,可以在UI的帮助下轻松地添加卡片。

首先,我想向您介绍我的完整设置和布局我的设置仪表板。
但是你不必按照我的方式塑造仪表板。它是完全可配置的。

在台式机和平板电脑上,它看起来像:

和手机:

我的仪表板主要由我创建的两个自定义组件组成:
HA-Dashboard
https://github.com/wassy92x/lovelace-ha-dashboard

可以在HACS中添加此插件作为自定义存储库,但我还在HACS-Default-Repsitient中创建了一个Light-request,因此它将很快以默认的HACS提供。
更新:现在可以使用HACS默认值。

关于配置请参见我的GitHub-Repository。

实体 - 按钮组
https://github.com/wassy92x/lovelace-entities-btn-group

此插件也可以在HACS中添加为自定义存储库,但我还在HACS-Default-Repsitient中创建了一个Ligh-request,因此它将很快以默认的HACS提供。
更新:现在可以使用HACS默认值。

关于配置请参见我的GitHub-Repository。

这个前端插件本身也可以使用,没有我的仪表盘。

此外,你需要以下插件获得仪表板为我的:

视图:- title: Kiosk路径:Kiosk类型:custom:ha-dashboard侧边栏:按钮:- icon: mdi:robot-vacuum action: action: call-service service: browser_mod。popup service_data: title:小米Roborock card: buttons: true entity: vacuum。roborock_vacuum_s5 type: 'custom:xiao -vacuum-card' stickyCards: - type: 'custom:digital-clock' style: | ha-card {margin: 0 5px;border - radius: 0;边框底:1px固体白色;} - type: weather-forecast entity: weather.frankfurt_openweathermap style: | ha_card {padding-top: 0 !important;padding-bottom: 0 !重要;} card: - type: 'custom:auto-entities' card: type: entities title: Offene Fenster/Türen filter: include: - entity_id: binary_sensor。*_fensterkontakt* state: 'on' show_empty: false sort: method: entity_id cards: - type: 'custom:entities-btn-group' title: Wohnzimmer entities: - light. class: 'custom:entities-btn-group'Moritz -实体:气候。wohnzimmer_thermostat_int0000001变量:curTempEntity:传感器。wohnzimmer_temperature - entity: media_player。firetv_wohnzimmer name: FireTV - type: 'custom:entities-btn-group' title: Küche entities: - entity: light.esstischlampe - entity: climate. name: FireTV - type: 'custom:entities-btn-group'kueche_thermostat变量:湿度实体:传感器。kuche_feuchtigkeit curTempEntity:传感器。kuche_temperatur - entity: var.state_spulmaschine name: Spülmaschine - type: 'custom:entities-btn-group' title: Außen entities: - entity: switch.pool_warmwasserpumpe name: Warmwasser - template: - camera variables: pictureUrl: https://mycamera.com/weg name: Weg title: Kiosk

此外,我有以下按钮模板样式的按钮:

Button_Card_templates:默认值:Aspect_ratio:1/1样式:卡: - 边界半径:10px  - 框阴影:无 - 转换:无名称: - 字体大小:0.8EM灯:模板: - 默认自定义:>亮度:>亮度:>亮度:>[[if(实体&&实体。&& && tigity.attributes.brightness.brightness.brightness.brightness.brightness.brightness.brightness *(100/255))+'%'}返回'']]]样式:custom_fields:亮度: - 位置:绝对 - 右:5px  -  top:5px  - 字体大小:0.85em double_tap_action:action:call-service服务:browser_mod.popup service_data:title:'[[返回entity.attributes.friendly_name]]'卡片:类型:'自定义:灯实体卡'实体:'[[[返回Entity.entity_id]]'var:模板: - 默认show_state:true样式:状态: - 底部:calc(25% -  0.4em) - 位置:绝对 - 宽度:100% - 文本对齐:中心 - 字体大小:0.8em  - 字体重量:粗体:模板: - 默认show_entity_picture:true样式:entity_picture: - 宽度:95% - 高度:100% - 边界半径:5px气候:模板: - 默认show_icon:false show_state:true show_name:false tap_action:action:call-service服务:browser_mod.popup service_data:title:'[[返回entity.attributes.friendly_name]]'卡:类型:'custom:简单恒温器'实体:'[[返回Entity.entity_id]]'隐藏:温度:'[[[返回变量&&变量.Curtempentity]]'传感器: - 实体:'[[[返回变量&&变量&&变量。Cutempentity]]]'名称:温度 - 实体:'[[返回变量&&变量.Humityingentity]]'名称:feuchtikeit step_size:0.5 custom_fields:curtemp:> [[[如果(变量&&变量&& curtempentity && sends [变量.curtempentity]){return(math.round(arrowble.curtempentity] .state * 10)/ 10)+状态[变变.Uurtempentity] .attributes.unit_of_measurement}如果(实体&&实体.Attributes){return(数学.round(entity.Attributes.Current_Temperature * 10)/ 10)+'°C'}返回'']]] targetTemp:> [[[[[[如果(实体&&实体.Attributes){return entity.attributes.t+''']]湿度:> [[[[[[如果(变量&&变量&& && tolmate [变量&bumityingentity]){return(math.round(stars.rounds.humtifyentity] .state *10)/ 10)+状态[变量.Himityentity] .Attributes.unit_of_measurement} return''']]样式:状态: - 底部:5px  - 位置:绝对 - 宽度:100% - 文本 - 对齐:中心 - 字体α:0.8em custom_fields:curtemp: - 位置:绝对 - 左:0  -  top:calc(50% -  0.6em) - 宽度:100% - 字体大小:1.2em targettemp: - 位置:绝对 - 右:5px  -  top:5px  - 字体大小:0.85em湿度: - 位置:绝对 - 左:5px  -  top:5px  -  font-size:0.85em相机:模板: - 默认show_entity_picture:true entity_picture:'[[[返回variables.pictureurl]]]'风格:Entity_picture: - 宽度:95% - 高度:100% - 边界半径:5px键:操作:URL URL_Path:'[[返回Variables.pictureUrl]]'
4喜欢

首先,感谢您的插件!

我有一个小问题,当我使用你的卡时,屏幕大小有些奇怪。我怎么能做到呢?我平板电脑上的按钮太大了。

正确的大小和更宽的窗口尺寸我的浏览器:

错误的大小与较小的窗口尺寸我的浏览器:

@rolfberkenbosch
我将尝试调整按钮的大小。
我认为你喜欢在一排有3个按钮。
每行按钮数量的大小是基于屏幕大小的。
如果您的屏幕小于1025px或大于1599px,则会在一行中有3个按钮,否则将有2个按钮,因为否则按钮将是小的。

你能提供一下你的平板电脑的屏幕尺寸吗?(你可以从以下网站获取:http://howbigismybrowser.com/)和你喜欢的风格?

我试图提高按钮组/按钮的响应性,并发布了一个新版本。
此外,我还添加了改变布局的可能性。如果你想自定义布局,请访问我的GitHub实体按钮组仓库。(但如果你能告诉我你的屏幕分辨率,那还是不错的)

我想看到更多的例子伟德国际官方app下载苹果版:least_smile:以及谁使用styes,因为我想有3个图标在一行。

还有一件事,如果你只找到git版本,你需要在示例中包含更多代码,例如:伟德国际官方app下载苹果版

- type: 'custom:entities-btn-group' title: Küchekueche_thermostat变量:湿度实体:传感器。kuche_feuchtigkeit curTempEntity:传感器。kuche_temperatur - entity: var. state_spulmasmachine name: Spülmaschine

github的例子中缺少了气候