(二 -3-3) 天猫精灵接入Home Assistant-自动发现Mqtt设备-自动生成配置信息

http://www.hassmart.com/products/switches/#tab=config

switch:
  - platform: mqtt
    name: keting
    state_topic: hassmart/switch/hassmart_3key_aaaaaa_1/state
    command_topic: hassmart/switch/hassmart_3key_aaaaaa_1/set
    qos: 1
    retain: false
  - platform: mqtt
    name: chufang
    state_topic: hassmart/switch/hassmart_3key_aaaaaa_2/state
    command_topic: hassmart/switch/hassmart_3key_aaaaaa_2/set
    qos: 1
    retain: false
  - platform: mqtt
    name: woshi
    state_topic: hassmart/switch/hassmart_3key_aaaaaa_3/state
    command_topic: hassmart/switch/hassmart_3key_aaaaaa_3/set
    qos: 1
    retain: false

  

原文地址:https://www.cnblogs.com/kekeoutlook/p/9536791.html