将设备添加到Home Assistant
https://www.home-assistant.io/docs/configuration/devices/
configuration.yaml
文件
风格1:在原有的条目下增加
sensor:
- platform: mqtt
state_topic: "home/bedroom/temperature"
name: "MQTT Sensor 1"
- platform: mqtt
state_topic: "home/kitchen/temperature"
name: "MQTT Sensor 2"
- platform: rest
resource: http://IP_ADDRESS/ENDPOINT
switch:
- platform: vera
风格2:单独列出每个设备
您需要附加数字或字符串以区分条目,如下例所示。附加的数字或字符串必须是唯一的。
media_player livingroom:
platform: mpd
server: IP_ADDRESS
media_player kitchen: