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

 找回密码
 立即注册
楼主: plutosherry

[插件集成] 彩云天气 动态图标完整版【Caiyun Weather for lovelace】【原创】

  [复制链接]

0

主题

267

帖子

2990

积分

金牌会员

Rank: 6Rank: 6

积分
2990
金钱
2723
HASS币
0
发表于 2019-2-22 21:51:52 | 显示全部楼层
厉害                                      
回复

使用道具 举报

3

主题

149

帖子

1286

积分

金牌会员

Rank: 6Rank: 6

积分
1286
金钱
1132
HASS币
20
发表于 2019-2-27 09:12:24 | 显示全部楼层
459662146 发表于 2019-2-2 17:03
奇怪现在又不报错不过lovelace里面除了home抬头有显示 其他都是空白

和你问题一样  我也不知道该怎么处理
回复

使用道具 举报

65

主题

853

帖子

3038

积分

论坛元老

Rank: 8Rank: 8

积分
3038
金钱
2180
HASS币
40
 楼主| 发表于 2019-2-27 11:16:52 | 显示全部楼层
wk27449 发表于 2019-2-27 09:12
和你问题一样  我也不知道该怎么处理

按F12查看浏览器日志吧,那是因为有错才会显示空白。
回复

使用道具 举报

0

主题

77

帖子

340

积分

论坛积极会员

积分
340
金钱
263
HASS币
0
发表于 2019-3-13 11:00:44 | 显示全部楼层
大佬能跟新手稍微详细说明下ui-lovelace.yaml这种文件怎么引用啊吗?
configuration.yaml中加入
lovelace:
  mode: yaml
这样引用原来的配置都没了,整个界面需要重新手工配置好像,求指导
回复

使用道具 举报

65

主题

853

帖子

3038

积分

论坛元老

Rank: 8Rank: 8

积分
3038
金钱
2180
HASS币
40
 楼主| 发表于 2019-3-13 14:18:50 | 显示全部楼层
Jifaner 发表于 2019-3-13 11:00
大佬能跟新手稍微详细说明下ui-lovelace.yaml这种文件怎么引用啊吗?
configuration.yaml中加入
lovelace:

要启用lovelace ui 需要配置ui-lovelace.yaml文件,和配置group.yaml实现显示是一个目的,但配置方法有很大区别。具体配置方法参见官方网站有详细说明。https://www.home-assistant.io/lovelace/yaml-mode/
回复

使用道具 举报

1

主题

72

帖子

277

积分

中级会员

Rank: 3Rank: 3

积分
277
金钱
205
HASS币
0
发表于 2019-3-15 22:23:47 | 显示全部楼层
configuration.yaml中加入
lovelace:
  mode: yaml
ui-lovelace.yaml也改好了。还是空白页面,只有个标题。用的是9楼的
回复

使用道具 举报

21

主题

427

帖子

2413

积分

金牌会员

Rank: 6Rank: 6

积分
2413
金钱
1981
HASS币
20
发表于 2019-3-21 14:50:42 | 显示全部楼层
本帖最后由 AnyLine 于 2019-3-21 22:17 编辑

那个lovelace研究了好久才会写,实际上楼主应该只写个card的,小白也会加。新建卡片,粘贴进,不会报错,lovelace只加resources的三行。


回复

使用道具 举报

21

主题

427

帖子

2413

积分

金牌会员

Rank: 6Rank: 6

积分
2413
金钱
1981
HASS币
20
发表于 2019-3-21 14:53:14 | 显示全部楼层
rexchen 发表于 2019-3-15 22:23
configuration.yaml中加入
lovelace:
  mode: yaml

按我说的来。1.
resources:
  - type: js
    url: /local/lovelace_ui/resources/caiyun-weather-card.js


加到总编辑lovelace的页面。保存后返回。

2.新建卡片写入

type: custom:caiyun-weather-card
title: 彩云天气
location: 郑州

entity_carwash: sensor.caiyun_now_carwash
entity_current_conditions: sensor.now_caiyun_weather
entity_forecast_aqi_1: sensor.caiyun_air_aqi_1
entity_forecast_aqi_2: sensor.caiyun_air_aqi_2
entity_forecast_aqi_3: sensor.caiyun_air_aqi_3
entity_forecast_aqi_4: sensor.caiyun_air_aqi_4
entity_forecast_carwash_1: sensor.caiyun_carwash_1
entity_forecast_carwash_2: sensor.caiyun_carwash_2
entity_forecast_carwash_3: sensor.caiyun_carwash_3
entity_forecast_carwash_4: sensor.caiyun_carwash_4
entity_forecast_precipitation_1: sensor.caiyun_precipitation_1
entity_forecast_precipitation_2: sensor.caiyun_precipitation_2
entity_forecast_precipitation_3: sensor.caiyun_precipitation_3
entity_forecast_precipitation_4: sensor.caiyun_precipitation_4
entity_forecast_skycon_1: sensor.caiyun_weather_1
entity_forecast_skycon_2: sensor.caiyun_weather_2
entity_forecast_skycon_3: sensor.caiyun_weather_3
entity_forecast_skycon_4: sensor.caiyun_weather_4
entity_forecast_temphigh_1: sensor.caiyun_high_temperature_1
entity_forecast_temphigh_2: sensor.caiyun_high_temperature_2
entity_forecast_temphigh_3: sensor.caiyun_high_temperature_3
entity_forecast_temphigh_4: sensor.caiyun_high_temperature_4
entity_forecast_templow_1: sensor.caiyun_low_temperature_1
entity_forecast_templow_2: sensor.caiyun_low_temperature_2
entity_forecast_templow_3: sensor.caiyun_low_temperature_3
entity_forecast_templow_4: sensor.caiyun_low_temperature_4
entity_hourly_summary: sensor.caiyun_weather_hourly_des
entity_humidity: sensor.now_caiyun_humidity
entity_minutely_summary: sensor.caiyun_weather_minutely_des
entity_now_air_aqi: sensor.now_caiyun_aqi
entity_now_aqipm25: sensor.now_caiyun_pm25
entity_now_temphigh: sensor.caiyun_now_high_temperature
entity_now_templow: sensor.caiyun_now_low_temperature
entity_precipitation: sensor.now_caiyun_precipitation
entity_pressure: sensor.now_caiyun_pressure
entity_sun: sun.sun
entity_temperature: sensor.now_caiyun_temperature
entity_visibility: sensor.now_caiyun_vis
entity_wind_bearing: sensor.now_caiyun_wind_dir
entity_wind_speed: sensor.now_caiyun_wind_spd

回复

使用道具 举报

11

主题

296

帖子

1179

积分

金牌会员

Rank: 6Rank: 6

积分
1179
金钱
883
HASS币
0
发表于 2019-3-22 21:34:20 | 显示全部楼层
感谢分享
回复

使用道具 举报

4

主题

184

帖子

1088

积分

金牌会员

Rank: 6Rank: 6

积分
1088
金钱
904
HASS币
0
发表于 2019-3-22 22:24:58 | 显示全部楼层
AnyLine 发表于 2019-3-21 14:53
按我说的来。1.
resources:
  - type: js

还是没弄明白,能再详细说说吗
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-4-27 00:26 , Processed in 3.921565 second(s), 30 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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