Power IC: BP2525F # ESP32C2-02 刷機 (Tasmota) – 連接USB-TTL, 並將BOOT接GND, 進入刷機模式 – 用Chrome開啟 https://jason2866.github.io/esp32tool/ – Erase – Choose a file: tasmota32c2_2M.factory.bin – Program – 刷機完成後, 移除BOOT, 重新插拔USB-TTL – 用Wifi連接Tasmota-xxxxxx-xxxx – 開啟網頁192.168.4.1, 設定Wifi – 取得DHCP IP後, Restart Tasmota # 設定Tasmota # \Tools\Consol Config Tasmota IP in Consol ipaddress1 192.168.1.131 ipaddress2 192.168.1.254 ipaddress3 255.255.255.0 ipaddress4 192.168.1.254 restart 1 SetOption56 1 : 啟用掃描以選擇最強訊號 SetOption57 1 : 裝置會每 44 分鐘掃描一次網路 # Configuration\Other\ESP32C2 Template Mini Smart Switch (GPIO 4/5/7/10) {"NAME":"ESPC2-02","ARCH":"ESP32C2","GPIO":[0,0,0,0,1,1,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0],"FLAG":0,"BASE":1} # 在AIYATO/DS-1311WN上, ESPC2-02 GPIO4/5的設定不同 # 設定Module - AIYATO GPIO4: Switch GPIO5: Relay GPIO7: Button GPIO10: LED_I # 設定Module - DS-1311WN GPIO4: Switch GPIO5: Button GPIO7: Relay GPIO10: LED_I # 設定MQTT TelePeriod 300 : MQTT 發送數據時間間隔(預設300秒) # 設定Other # Tools\Consol 修改時間時區: timezone +8 修改開關預設: PowerOnState 1 修改開關名稱 Toggle: WebButton1 Switch # Tasmota AM2301 Setting/Calibration configuration GPIOx set as switch switchmode 1 SetOption114 1 TempOffset x (-12.6..12.6) HumOffset x (-10.0..10.0) ** Note ** 按鈕短按6下, 會進入進入SoftAP模式 按鈕長按40秒, 韌體設定會重置為預設值 # UART TX log capture: 74880 baud # Firmware Upgrade (會進入Safeboot模式, 點選Restart後, 會進行更新/重啟) Use web server\OTA Url\指向 https://github.com/Jason2866/Tasmota-specials/releases \最新版本tasmota32c2_2M.bin連結