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

多M1支持来了!斐讯空气检测仪M1插件for HA 3.0.1

 火... [复制链接]

12

主题

323

回帖

2368

积分

论坛DIY达人

积分
2368
金钱
2028
HASS币
0
发表于 2018-3-16 22:52:28 | 显示全部楼层
越来越喜欢斐讯了,感谢楼主
回复

使用道具 举报

2

主题

107

回帖

765

积分

高级会员

积分
765
金钱
656
HASS币
0
发表于 2018-3-17 12:01:55 | 显示全部楼层
看看怎么用
回复

使用道具 举报

1

主题

25

回帖

133

积分

注册会员

积分
133
金钱
107
HASS币
0
发表于 2018-3-17 15:24:11 | 显示全部楼层
感谢分享
回复

使用道具 举报

1

主题

25

回帖

133

积分

注册会员

积分
133
金钱
107
HASS币
0
发表于 2018-3-17 23:10:14 | 显示全部楼层
frontend:
  extra_html_url:
    - /config/www/custom_ui/state-card-custom-phicomm-aircat.html
  extra_html_url_es5:
    - /config/www/custom_ui/state-card-custom-phicomm-aircat.html



加了CustomUI的代码 还是只显示温度 什么情况

回复

使用道具 举报

4

主题

125

回帖

1788

积分

金牌会员

积分
1788
金钱
1659
HASS币
0
发表于 2018-3-18 22:20:13 | 显示全部楼层
这个很使用
回复

使用道具 举报

sloy 

0

主题

41

回帖

899

积分

高级会员

积分
899
金钱
858
HASS币
0
发表于 2018-3-19 12:56:12 | 显示全部楼层
谢谢分享 来学习了
回复

使用道具 举报

22

主题

497

回帖

1608

积分

金牌会员

积分
1608
金钱
1089
HASS币
10
发表于 2018-3-19 22:15:21 | 显示全部楼层
好棒啊  
回复

使用道具 举报

22

主题

497

回帖

1608

积分

金牌会员

积分
1608
金钱
1089
HASS币
10
发表于 2018-3-20 11:12:12 | 显示全部楼层
tokenPath

这个是自己建一个空白文件在homeassistant目录下吗?

一直出不来
回复

使用道具 举报

22

主题

497

回帖

1608

积分

金牌会员

积分
1608
金钱
1089
HASS币
10
发表于 2018-3-20 11:29:30 | 显示全部楼层
yinjiong 发表于 2018-1-28 00:42
用1个把b去掉就行. 不用custom ui的话把yaml里custom ui到custom end之前的去掉,把本来#的恢复出来 ...
#Custom UI
  - platform: PhicommAirDetector
    name: m1
    devices: {'a':{'b0:f8:93:11:35:93':'input_number.phicomm_m1a_led'}}
    tokenPath: '/config/phicomm_token.txt'
#Custom UI End
#  - platform: template
#    sensors:
#      m1_pm25:
#        friendly_name: 空气质量
#        value_template: "{{ states.sensor.m1_a.attributes.pm25 }}"
#        unit_of_measurement: μg/m³
#      m1_hcho:
#        friendly_name: 甲醛
#        value_template: "{{ states.sensor.m1_a.attributes.hcho }}"
#        unit_of_measurement: mg/m³
#      m1_temperature:
#        friendly_name: 温度
#        value_template: "{{ states.sensor.m1_a.attributes.temperature }}"
#        unit_of_measurement: °C
#      m1_humidity:
#        friendly_name: 湿度
#        value_template: "{{ states.sensor.m1_a.attributes.humidity }}"
#        unit_of_measurement: "%"

改成


#Custom UI
  # - platform: PhicommAirDetector
    # name: m1
    # devices: {'a':{'b0:f8:93:11:35:93':'input_number.phicomm_m1a_led'}}
    # tokenPath: '/config/phicomm_token.txt'
#Custom UI End
 - platform: template
   sensors:
     m1_pm25:
       friendly_name: 空气质量
       value_template: "{{ states.sensor.m1_a.attributes.pm25 }}"
       unit_of_measurement: μg/m³
     m1_hcho:
       friendly_name: 甲醛
       value_template: "{{ states.sensor.m1_a.attributes.hcho }}"
       unit_of_measurement: mg/m³
     m1_temperature:
       friendly_name: 温度
       value_template: "{{ states.sensor.m1_a.attributes.temperature }}"
       unit_of_measurement: °C
     m1_humidity:
       friendly_name: 湿度
       value_template: "{{ states.sensor.m1_a.attributes.humidity }}"
       unit_of_measurement: "%"

回复

使用道具 举报

22

主题

497

回帖

1608

积分

金牌会员

积分
1608
金钱
1089
HASS币
10
发表于 2018-3-20 12:22:00 | 显示全部楼层
billy1101 发表于 2018-3-2 13:25
0.64.2 M1数据获取不了,请楼主指导  已解决

怎么解决的啊?
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2025-5-2 15:03 , Processed in 0.288734 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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