1. 在 MQTT 選單中, 設定完成並啟用
2. 在 STATUS 選單中, 查看 MQTT Status 的狀態是不是 CONNECTED
3. 在 HASS 選單中 Configuration 有一個 Show 按鈕, 按下去之後可以看到設定方法了
switch:
- name: ESPURNA_xxxxxx
platform: mqtt
state_topic: myHASS/ESPURNA_xxxxxx/relay/0
command_topic: myHASS/ESPURNA_xxxxxx/relay/0/set
payload_on: 1
payload_off: 0
availability_topic: myHASS/ESPURNA_xxxxxx/status
payload_available: 1
payload_not_available: 0
|