Smart Wi-Fi Socket SWA1

Warning

This is a fast moving field. This information will be out of date in some detail even before you read it.

RXD (so TXD on your blower) TXD (so RXD on your blower) GND BOOT0 (so short this to GND as you push the header into place and the power comes on) 5V (it has a regulator to step down to the mandatory 3V3)

{ "SWA1", // Smart Plugs (ESP8266) 0, // GPIO00 GPIO_USER, // GPIO01 0, // GPIO02 GPIO_USER, // GPIO03 GPIO_REL2_INV, // GPIO04 Blue LED GPIO_REL1, // GPIO05 Red LED and relay 0, // GPIO06 (SD_CLK Flash) 0, // GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT) 0, // GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT) 0, // GPIO09 (SD_DATA2 Flash QIO) 0, // GPIO10 (SD_DATA3 Flash QIO) 0, // GPIO11 (SD_CMD Flash) 0, // GPIO12 GPIO_KEY1, // GPIO13 Button (normally GPIO00) GPIO_USER, // GPIO14 0, // GPIO15 0, // GPIO16 0 // ADC0 },

Line 53 #define STA_SSID1 "NIGNET" // [Ssid1] Wifi SSID #define STA_PASS1 "my password" // [Password1] Wifi password Line 82 #define MQTT_HOST "192.168.1.201" // [MqttHost] #define MQTT_PORT 1883 // [MqttPort] MQTT port (10123 on CloudMQTT) #define MQTT_USER "username" // [MqttUser] Optional user #define MQTT_PASS "password" // [MqttPassword] Optional password

- platform: mqtt name: "Plug Power" state_topic: "stat/esp01/POWER1" command_topic: "cmnd/esp01/power1" qos: 0 payload_on: "ON" payload_off: "OFF" optimistic: false retain: true - platform: mqtt name: "Plug Light" state_topic: "stat/esp01/POWER2" command_topic: "cmnd/esp01/power2" qos: 0 payload_on: "ON" payload_off: "OFF" optimistic: false retain: true