本帖最后由 快乐之源 于 2018-2-23 15:38 编辑
把涉及B的都删掉就可以啦,两个配置文件都要删这是phicomm的(把mac地址修改成自己的)
sensor:
#Custom UI
- platform: PhicommAirDetector
name: m1
devices: {'a':{'B0:F8:93:11:93:21':'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: "%"
input_number:
phicomm_m1a_led:
name: 屏幕亮度
icon: mdi:led-on
initial: 50
min: 0
max: 50
step: 25
group:
m1a:
name: 空气质量
view: no
entities:
#Custom UI
- sensor.m1_a
#Custom UI End
# - sensor.m1_a_temperature
# - sensor.m1_a_humidity
# - sensor.m1_a_pm25
# - sensor.m1_a_hcho
- input_number.phicomm_m1a_led
homeassistant:
customize:
# sensor.m1_a_humidity:
# icon: mdi:water-percent
# sensor.m1_a_pm25:
# icon: mdi:blur
#Custom UI
sensor.m1_a:
custom_ui_state_card: state-card-custom-phicomm-aircat
#Custom UI End
这是tooken(替换账户密码):
sensor:
- platform: PhicommTokenGetter
name: tokengetter
phicommAccount : 替换成你的账户
phicommPassowrd: 替换成你的密码
tokenPath: '/config/phicomm_token.txt'
input_boolean:
phicomm_token_reset:
name: 重试
icon: mdi:lock-reset
initial: false
group:
tokengetter:
name: Token获取
view: no
entities:
- input_boolean.phicomm_token_reset
|