開始裝潢新家,為了讓智能開關接入 Home Assistant 系統,而展開的刷機之路…
3.3V <---> 3.3V
RXD <---> TX
TXD <---> RX
GND <---> GND
剛打開時,會是進入 Cycle Mode (燈的顏色一直循環) ,這時候要短路 Boot 與 GND 進入刷機模式 (燈的顏色停止循環)
name_add_mac_suffix 是因為我有大量的 TX Ultimate 需要處理
經緯度是因為有日照時間,可以進入 Night Mode
substitutions:
name: t5-1c-120
friendly_name: T5-1C-120
relay_count: "1"
latitude: "24.147736"
longitude: "120.673645"
packages:
smarthomeyourself.tx_ultimate:
url: https://github.com/SmartHome-yourself/sonoff-tx-ultimate-for-esphome
file: tx_ultimate_us.yaml
ref: main
esphome:
name: ${name}
name_add_mac_suffix: true
friendly_name: ${friendly_name}
api:
ota:
platform: esphome
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ap:
ssid: ${friendly_name} AP
password: "fallback_password"
web_server:
port: 80
substitutions:
name: t5-2c-120
friendly_name: T5-2C-120
relay_count: "2"
latitude: "24.147736"
longitude: "120.673645"
packages:
smarthomeyourself.tx_ultimate:
url: https://github.com/SmartHome-yourself/sonoff-tx-ultimate-for-esphome
file: tx_ultimate_us.yaml
ref: main
esphome:
name: ${name}
name_add_mac_suffix: true
friendly_name: ${friendly_name}
api:
ota:
platform: esphome
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ap:
ssid: ${friendly_name} AP
password: "fallback_password"
web_server:
port: 80
substitutions:
name: t5-3c-120
friendly_name: T5-3C-120
relay_count: "3"
latitude: "24.147736"
longitude: "120.673645"
packages:
smarthomeyourself.tx_ultimate:
url: https://github.com/SmartHome-yourself/sonoff-tx-ultimate-for-esphome
file: tx_ultimate_us.yaml
ref: main
esphome:
name: ${name}
name_add_mac_suffix: true
friendly_name: ${friendly_name}
api:
ota:
platform: esphome
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ap:
ssid: ${friendly_name} AP
password: "fallback_password"
web_server:
port: 80
substitutions:
name: t5-4c-120
friendly_name: T5-4C-120
relay_count: "4"
latitude: "24.147736"
longitude: "120.673645"
packages:
smarthomeyourself.tx_ultimate:
url: https://github.com/SmartHome-yourself/sonoff-tx-ultimate-for-esphome
file: tx_ultimate_us.yaml
ref: main
esphome:
name: ${name}
name_add_mac_suffix: true
friendly_name: ${friendly_name}
api:
ota:
platform: esphome
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ap:
ssid: ${friendly_name} AP
password: "fallback_password"
web_server:
port: 80