这个代码加到packages文件夹里面那个文件名,是自己起一个就可以嘛?怎么让HA去加载自已的这个文件名。 | 我自己起了个名,不加载,需要在configuration里面怎么设置啊,我用现在版本是Home Assistant
0.99.3
希望有人能指点一二。
3.hass代码部分,Packages如下: sensor: - platform: mqtt name: "zong" state_topic: "tele/sonoff/SENSOR" value_template: "{{value_json['ENERGY'].Total }}" unit_of_measurement: "KWH" - platform: mqtt name: "zuotian" state_topic: "tele/sonoff/SENSOR" value_template: "{{value_json['ENERGY'].Yesterday }}" unit_of_measurement: "KWH" - platform: mqtt name: "jintian" state_topic: "tele/sonoff/SENSOR" value_template: "{{value_json['ENERGY'].Today }}" unit_of_measurement: "KWH" - platform: mqtt name: "gonglv" state_topic: "tele/sonoff/SENSOR" value_template: "{{value_json['ENERGY'].Power }}" unit_of_measurement: "W" - platform: mqtt name: "yinshu" state_topic: "tele/sonoff/SENSOR" value_template: "{{value_json['ENERGY'].Factor }}" unit_of_measurement: " " - platform: mqtt name: "dianya" state_topic: "tele/sonoff/SENSOR" value_template: "{{value_json['ENERGY'].Voltage }}" unit_of_measurement: "V" - platform: mqtt name: "dianliu" state_topic: "tele/sonoff/SENSOR" value_template: "{{value_json['ENERGY'].Current }}" unit_of_measurement: "A" history_graph: #首页显示曲线图 gl1: name: 6H entities: hours_to_show: 6 refresh: 0 homeassistant: customize: sensor.zong: friendly_name: 总用电量 icon: mdi:chart-bar-stacked sensor.zuotian: friendly_name: 昨日电量 icon: mdi:chart-bar-stacked sensor.jintian: friendly_name: 今日电量 icon: mdi:chart-bar-stacked sensor.gonglv: friendly_name: 功率 icon: mdi:chart-bar sensor.yinshu: friendly_name: 功率因数 icon: mdi:chart-bar sensor.dianya: friendly_name: 电压 icon: mdi:flash sensor.dianliu: friendly_name: 电流 icon: mdi:flash-auto group: dianli: name:电表 control: hidden view: no entities: - sensor.zong - sensor.zuotian - sensor.jintian - sensor.gonglv - sensor.yinshu - sensor.dianya - sensor.dianliu
这些代码是加到一个里面嘛?而且我加到一个里面的时候,HASS起不来机,提示 control: hidden 这行代码有错误,希望能指点一下。
|