Tasmota/tasmota/tasmota_template.h

2434 lines
114 KiB
C
Raw Normal View History

/*
2019-10-27 11:04:08 +00:00
tasmota_template.h - template settings for Tasmota
2019-12-31 13:23:34 +00:00
Copyright (C) 2020 Theo Arends
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
2017-01-28 13:41:01 +00:00
2019-10-27 11:04:08 +00:00
#ifndef _TASMOTA_TEMPLATE_H_
#define _TASMOTA_TEMPLATE_H_
2020-04-28 17:27:07 +01:00
#ifdef ESP8266
// User selectable GPIO functionality
// ATTENTION: Only add at the end of this list just before GPIO_SENSOR_END
// Then add the same name(s) in a nice location in array kGpioNiceList
enum UserSelectablePins {
GPIO_NONE, // Not used
GPIO_DHT11, // DHT11
GPIO_DHT22, // DHT21, DHT22, AM2301, AM2302, AM2321
GPIO_SI7021, // iTead SI7021
GPIO_DSB, // Single wire DS18B20 or DS18S20
GPIO_I2C_SCL, // I2C SCL
GPIO_I2C_SDA, // I2C SDA
GPIO_WS2812, // WS2812 Led string
GPIO_IRSEND, // IR remote
GPIO_SWT1, // User connected external switches
GPIO_SWT2,
GPIO_SWT3,
GPIO_SWT4,
GPIO_SWT5,
GPIO_SWT6,
GPIO_SWT7,
GPIO_SWT8,
GPIO_KEY1, // Button usually connected to GPIO0
GPIO_KEY2,
GPIO_KEY3,
GPIO_KEY4,
GPIO_REL1, // Relays
GPIO_REL2,
GPIO_REL3,
GPIO_REL4,
GPIO_REL5,
GPIO_REL6,
GPIO_REL7,
GPIO_REL8,
GPIO_REL1_INV,
GPIO_REL2_INV,
GPIO_REL3_INV,
GPIO_REL4_INV,
GPIO_REL5_INV,
GPIO_REL6_INV,
GPIO_REL7_INV,
GPIO_REL8_INV,
GPIO_PWM1, // RGB Red or C Cold White
GPIO_PWM2, // RGB Green or CW Warm White
GPIO_PWM3, // RGB Blue
GPIO_PWM4, // RGBW (Cold) White
GPIO_PWM5, // RGBCW Warm White
GPIO_CNTR1,
GPIO_CNTR2,
GPIO_CNTR3,
GPIO_CNTR4,
GPIO_PWM1_INV, // RGB Red or C Cold White
GPIO_PWM2_INV, // RGB Green or CW Warm White
GPIO_PWM3_INV, // RGB Blue
GPIO_PWM4_INV, // RGBW (Cold) White
GPIO_PWM5_INV, // RGBCW Warm White
GPIO_IRRECV, // IR receiver
GPIO_LED1, // Leds
GPIO_LED2,
GPIO_LED3,
GPIO_LED4,
GPIO_LED1_INV,
GPIO_LED2_INV,
GPIO_LED3_INV,
GPIO_LED4_INV,
GPIO_MHZ_TXD, // MH-Z19 Serial interface
GPIO_MHZ_RXD, // MH-Z19 Serial interface
GPIO_PZEM0XX_TX, // PZEM0XX Serial interface
GPIO_PZEM004_RX, // PZEM004T Serial interface
GPIO_SAIR_TX, // SenseAir Serial interface
GPIO_SAIR_RX, // SenseAir Serial interface
GPIO_SPI_CS, // SPI Chip Select
GPIO_SPI_DC, // SPI Data Direction
GPIO_BACKLIGHT, // Display backlight control
GPIO_PMS5003_RX, // Plantower PMS5003 Serial interface
GPIO_SDS0X1_RX, // Nova Fitness SDS011 Serial interface
GPIO_SBR_TX, // Serial Bridge Serial interface
GPIO_SBR_RX, // Serial Bridge Serial interface
2019-11-15 22:10:07 +00:00
GPIO_SR04_TRIG, // SR04 Trigger/TX pin
GPIO_SR04_ECHO, // SR04 Echo/RX pin
GPIO_SDM120_TX, // SDM120 Serial interface
GPIO_SDM120_RX, // SDM120 Serial interface
GPIO_SDM630_TX, // SDM630 Serial interface
GPIO_SDM630_RX, // SDM630 Serial interface
GPIO_TM16CLK, // TM1638 Clock
GPIO_TM16DIO, // TM1638 Data I/O
GPIO_TM16STB, // TM1638 Strobe
GPIO_SWT1_NP, // User connected external switches
GPIO_SWT2_NP,
GPIO_SWT3_NP,
GPIO_SWT4_NP,
GPIO_SWT5_NP,
GPIO_SWT6_NP,
GPIO_SWT7_NP,
GPIO_SWT8_NP,
GPIO_KEY1_NP, // Button usually connected to GPIO0
GPIO_KEY2_NP,
GPIO_KEY3_NP,
GPIO_KEY4_NP,
GPIO_CNTR1_NP,
GPIO_CNTR2_NP,
GPIO_CNTR3_NP,
GPIO_CNTR4_NP,
GPIO_PZEM016_RX, // PZEM-014,016 Serial Modbus interface
GPIO_PZEM017_RX, // PZEM-003,017 Serial Modbus interface
GPIO_MP3_DFR562, // RB-DFR-562, DFPlayer Mini MP3 Player
2018-10-11 17:26:49 +01:00
GPIO_SDS0X1_TX, // Nova Fitness SDS011 Serial interface
GPIO_HX711_SCK, // HX711 Load Cell clock
GPIO_HX711_DAT, // HX711 Load Cell data
GPIO_TX2X_TXD_BLACK, // TX20/TX23 Transmission Pin
GPIO_RFSEND, // RF transmitter
GPIO_RFRECV, // RF receiver
2018-10-27 02:01:09 +01:00
GPIO_TUYA_TX, // Tuya Serial interface
GPIO_TUYA_RX, // Tuya Serial interface
GPIO_MGC3130_XFER, // MGC3130 Transfer
GPIO_MGC3130_RESET, // MGC3130 Reset
GPIO_SSPI_MISO, // Software SPI Master Input Client Output
GPIO_SSPI_MOSI, // Software SPI Master Output Client Input
GPIO_SSPI_SCLK, // Software SPI Serial Clock
GPIO_SSPI_CS, // Software SPI Chip Select
GPIO_SSPI_DC, // Software SPI Data or Command
GPIO_RF_SENSOR, // Rf receiver with sensor decoding
GPIO_AZ_TXD, // AZ-Instrument 7798 Serial interface
GPIO_AZ_RXD, // AZ-Instrument 7798 Serial interface
GPIO_MAX31855CS, // MAX31855 Serial interface
GPIO_MAX31855CLK, // MAX31855 Serial interface
GPIO_MAX31855DO, // MAX31855 Serial interface
GPIO_KEY1_INV, // Inverted buttons
GPIO_KEY2_INV,
GPIO_KEY3_INV,
GPIO_KEY4_INV,
GPIO_KEY1_INV_NP, // Inverted buttons without pull-up
GPIO_KEY2_INV_NP,
GPIO_KEY3_INV_NP,
GPIO_KEY4_INV_NP,
GPIO_NRG_SEL, // HLW8012/HLJ-01 Sel output (1 = Voltage)
GPIO_NRG_SEL_INV, // HLW8012/HLJ-01 Sel output (0 = Voltage)
GPIO_NRG_CF1, // HLW8012/HLJ-01 CF1 voltage / current
GPIO_HLW_CF, // HLW8012 CF power
GPIO_HJL_CF, // HJL-01/BL0937 CF power
GPIO_MCP39F5_TX, // MCP39F501 Serial interface (Shelly2)
GPIO_MCP39F5_RX, // MCP39F501 Serial interface (Shelly2)
GPIO_MCP39F5_RST, // MCP39F501 Reset (Shelly2)
2019-02-07 23:06:54 +00:00
GPIO_PN532_TXD, // PN532 NFC Serial Tx
GPIO_PN532_RXD, // PN532 NFC Serial Rx
GPIO_SM16716_CLK, // SM16716 CLOCK
GPIO_SM16716_DAT, // SM16716 DATA
GPIO_SM16716_SEL, // SM16716 SELECT
GPIO_DI, // my92x1 PWM input
GPIO_DCKI, // my92x1 CLK input
GPIO_CSE7766_TX, // CSE7766 Serial interface (S31 and Pow R2) - Not used anymore 20200121
GPIO_CSE7766_RX, // CSE7766 Serial interface (S31 and Pow R2)
GPIO_ARIRFRCV, // AriLux RF Receive input
GPIO_TXD, // Serial interface
GPIO_RXD, // Serial interface
GPIO_ROT1A, // Rotary switch1 A Pin
GPIO_ROT1B, // Rotary switch1 B Pin
GPIO_ROT2A, // Rotary switch2 A Pin
GPIO_ROT2B, // Rotary switch2 B Pin
2019-03-23 23:26:03 +00:00
GPIO_HRE_CLOCK, // Clock/Power line for HR-E Water Meter
GPIO_HRE_DATA, // Data line for HR-E Water Meter
GPIO_ADE7953_IRQ, // ADE7953 IRQ
GPIO_LEDLNK, // Link led
GPIO_LEDLNK_INV, // Inverted link led
GPIO_ARIRFSEL, // Arilux RF Receive input selected
GPIO_BUZZER, // Buzzer
GPIO_BUZZER_INV, // Inverted buzzer
GPIO_OLED_RESET, // OLED Display Reset
2019-08-09 11:56:01 +01:00
GPIO_SOLAXX1_TX, // Solax Inverter tx pin
GPIO_SOLAXX1_RX, // Solax Inverter rx pin
GPIO_ZIGBEE_TX, // Zigbee Serial interface
GPIO_ZIGBEE_RX, // Zigbee Serial interface
2019-08-19 09:54:58 +01:00
GPIO_RDM6300_RX, // RDM6300 RX
2019-08-24 12:20:00 +01:00
GPIO_IBEACON_TX, // HM17 IBEACON TX
GPIO_IBEACON_RX, // HM17 IBEACON RX
GPIO_A4988_DIR, // A4988 direction pin
GPIO_A4988_STP, // A4988 step pin
GPIO_A4988_ENA, // A4988 enabled pin
GPIO_A4988_MS1, // A4988 microstep pin1
GPIO_A4988_MS2, // A4988 microstep pin2
GPIO_A4988_MS3, // A4988 microstep pin3
GPIO_DDS2382_TX, // DDS2382 Serial interface
GPIO_DDS2382_RX, // DDS2382 Serial interface
2019-10-03 09:06:51 +01:00
GPIO_DDSU666_TX, // DDSU666 Serial interface
GPIO_DDSU666_RX, // DDSU666 Serial interface
GPIO_SM2135_CLK, // SM2135 Clk
GPIO_SM2135_DAT, // SM2135 Dat
GPIO_DEEPSLEEP, // Kill switch for deepsleep
GPIO_EXS_ENABLE, // EXS MCU Enable
GPIO_TASMOTACLIENT_TXD, // Client TX
GPIO_TASMOTACLIENT_RXD, // Client RX
GPIO_TASMOTACLIENT_RST, // Client Reset Pin
GPIO_TASMOTACLIENT_RST_INV, // Client Reset Inverted
GPIO_HPMA_RX, // Honeywell HPMA115S0 Serial interface
GPIO_HPMA_TX, // Honeywell HPMA115S0 Serial interface
2019-12-17 01:13:24 +00:00
GPIO_GPS_RX, // GPS serial interface
GPIO_GPS_TX, // GPS serial interface
2020-02-06 18:06:09 +00:00
GPIO_DSB_OUT, // Pseudo Single wire DS18B20 or DS18S20
GPIO_DHT11_OUT, // Pseudo Single wire DHT11, DHT21, DHT22, AM2301, AM2302, AM2321
2020-02-06 16:05:37 +00:00
GPIO_HM10_RX, // HM10-BLE-Mijia-bridge serial interface
GPIO_HM10_TX, // HM10-BLE-Mijia-bridge serial interface
2020-01-05 00:06:30 +00:00
GPIO_LE01MR_RX, // F&F LE-01MR energy meter
GPIO_LE01MR_TX, // F&F LE-01MR energy meter
2020-02-27 20:03:05 +00:00
GPIO_CC1101_GDO0, // CC1101 pin for RX
GPIO_CC1101_GDO2, // CC1101 pin for RX
GPIO_HRXL_RX, // Data from MaxBotix HRXL sonar range sensor
2020-03-18 10:30:52 +00:00
GPIO_ELECTRIQ_MOODL_TX, // ElectriQ iQ-wifiMOODL Serial TX
2020-04-11 00:48:37 +01:00
GPIO_AS3935,
GPIO_PMS5003_TX, // Plantower PMS5003 Serial interface
GPIO_BOILER_OT_RX, // OpenTherm Boiler RX pin
GPIO_BOILER_OT_TX, // OpenTherm Boiler TX pin
2020-04-26 08:43:52 +01:00
GPIO_WINDMETER_SPEED, // WindMeter speed counter pin
GPIO_BL0940_RX, // BL0940 serial interface
GPIO_TCP_TX, // TCP Serial bridge
GPIO_TCP_RX, // TCP Serial bridge
GPIO_TELEINFO_RX, // TELEINFO serial interface
GPIO_TELEINFO_ENABLE,// TELEINFO Enable PIN
GPIO_LMT01, // LMT01 input counting pin
GPIO_IEM3000_TX, // IEM3000 Serial interface
GPIO_IEM3000_RX, // IEM3000 Serial interface
2020-07-22 09:07:07 +01:00
GPIO_ZIGBEE_RST, // Zigbee reset
GPIO_DYP_RX,
GPIO_SENSOR_END };
// Programmer selectable GPIO functionality
enum ProgramSelectablePins {
GPIO_FIX_START = 251,
GPIO_SPI_MISO, // SPI MISO library fixed pin GPIO12
GPIO_SPI_MOSI, // SPI MOSI library fixed pin GPIO13
GPIO_SPI_CLK, // SPI Clk library fixed pin GPIO14
GPIO_USER, // User configurable needs to be 255
GPIO_MAX };
2017-01-28 13:41:01 +00:00
// Text in webpage Module Parameters and commands GPIOS and GPIO
const char kSensorNames[] PROGMEM =
D_SENSOR_NONE "|"
D_SENSOR_DHT11 "|" D_SENSOR_AM2301 "|" D_SENSOR_SI7021 "|"
D_SENSOR_DS18X20 "|"
D_SENSOR_I2C_SCL "|" D_SENSOR_I2C_SDA "|"
D_SENSOR_WS2812 "|"
D_SENSOR_IRSEND "|"
D_SENSOR_SWITCH "1|" D_SENSOR_SWITCH "2|" D_SENSOR_SWITCH "3|" D_SENSOR_SWITCH "4|" D_SENSOR_SWITCH "5|" D_SENSOR_SWITCH "6|" D_SENSOR_SWITCH "7|" D_SENSOR_SWITCH "8|"
D_SENSOR_BUTTON "1|" D_SENSOR_BUTTON "2|" D_SENSOR_BUTTON "3|" D_SENSOR_BUTTON "4|"
D_SENSOR_RELAY "1|" D_SENSOR_RELAY "2|" D_SENSOR_RELAY "3|" D_SENSOR_RELAY "4|" D_SENSOR_RELAY "5|" D_SENSOR_RELAY "6|" D_SENSOR_RELAY "7|" D_SENSOR_RELAY "8|"
D_SENSOR_RELAY "1i|" D_SENSOR_RELAY "2i|" D_SENSOR_RELAY "3i|" D_SENSOR_RELAY "4i|" D_SENSOR_RELAY "5i|" D_SENSOR_RELAY "6i|" D_SENSOR_RELAY "7i|" D_SENSOR_RELAY "8i|"
D_SENSOR_PWM "1|" D_SENSOR_PWM "2|" D_SENSOR_PWM "3|" D_SENSOR_PWM "4|" D_SENSOR_PWM "5|"
D_SENSOR_COUNTER "1|" D_SENSOR_COUNTER "2|" D_SENSOR_COUNTER "3|" D_SENSOR_COUNTER "4|"
D_SENSOR_PWM "1i|" D_SENSOR_PWM "2i|" D_SENSOR_PWM "3i|" D_SENSOR_PWM "4i|" D_SENSOR_PWM "5i|"
D_SENSOR_IRRECV "|"
D_SENSOR_LED "1|" D_SENSOR_LED "2|" D_SENSOR_LED "3|" D_SENSOR_LED "4|"
D_SENSOR_LED "1i|" D_SENSOR_LED "2i|" D_SENSOR_LED "3i|" D_SENSOR_LED "4i|"
D_SENSOR_MHZ_TX "|" D_SENSOR_MHZ_RX "|"
D_SENSOR_PZEM0XX_TX "|" D_SENSOR_PZEM004_RX "|"
D_SENSOR_SAIR_TX "|" D_SENSOR_SAIR_RX "|"
D_SENSOR_SPI_CS "|" D_SENSOR_SPI_DC "|" D_SENSOR_BACKLIGHT "|"
D_SENSOR_PMS5003_RX "|" D_SENSOR_SDS0X1_RX "|"
D_SENSOR_SBR_TX "|" D_SENSOR_SBR_RX "|"
D_SENSOR_SR04_TRIG "|" D_SENSOR_SR04_ECHO "|"
D_SENSOR_SDM120_TX "|" D_SENSOR_SDM120_RX "|"
D_SENSOR_SDM630_TX "|" D_SENSOR_SDM630_RX "|"
D_SENSOR_TM1638_CLK "|" D_SENSOR_TM1638_DIO "|" D_SENSOR_TM1638_STB "|"
D_SENSOR_SWITCH "1n|" D_SENSOR_SWITCH "2n|" D_SENSOR_SWITCH "3n|" D_SENSOR_SWITCH "4n|" D_SENSOR_SWITCH "5n|" D_SENSOR_SWITCH "6n|" D_SENSOR_SWITCH "7n|" D_SENSOR_SWITCH "8n|"
D_SENSOR_BUTTON "1n|" D_SENSOR_BUTTON "2n|" D_SENSOR_BUTTON "3n|" D_SENSOR_BUTTON "4n|"
D_SENSOR_COUNTER "1n|" D_SENSOR_COUNTER "2n|" D_SENSOR_COUNTER "3n|" D_SENSOR_COUNTER "4n|"
D_SENSOR_PZEM016_RX "|" D_SENSOR_PZEM017_RX "|"
2018-10-11 17:26:49 +01:00
D_SENSOR_DFR562 "|" D_SENSOR_SDS0X1_TX "|"
D_SENSOR_HX711_SCK "|" D_SENSOR_HX711_DAT "|"
D_SENSOR_TX2X_TX "|"
2018-10-27 02:01:09 +01:00
D_SENSOR_RFSEND "|" D_SENSOR_RFRECV "|"
D_SENSOR_TUYA_TX "|" D_SENSOR_TUYA_RX "|"
D_SENSOR_MGC3130_XFER "|" D_SENSOR_MGC3130_RESET "|"
D_SENSOR_SSPI_MISO "|" D_SENSOR_SSPI_MOSI "|" D_SENSOR_SSPI_SCLK "|" D_SENSOR_SSPI_CS "|" D_SENSOR_SSPI_DC "|"
D_SENSOR_RF_SENSOR "|"
D_SENSOR_AZ_TX "|" D_SENSOR_AZ_RX "|"
2019-01-19 22:28:58 +00:00
D_SENSOR_MAX31855_CS "|" D_SENSOR_MAX31855_CLK "|" D_SENSOR_MAX31855_DO "|"
D_SENSOR_BUTTON "1i|" D_SENSOR_BUTTON "2i|" D_SENSOR_BUTTON "3i|" D_SENSOR_BUTTON "4i|"
D_SENSOR_BUTTON "1in|" D_SENSOR_BUTTON "2in|" D_SENSOR_BUTTON "3in|" D_SENSOR_BUTTON "4in|"
D_SENSOR_NRG_SEL "|" D_SENSOR_NRG_SEL "i|" D_SENSOR_NRG_CF1 "|" D_SENSOR_HLW_CF "|" D_SENSOR_HJL_CF "|"
D_SENSOR_MCP39F5_TX "|" D_SENSOR_MCP39F5_RX "|" D_SENSOR_MCP39F5_RST "|"
D_SENSOR_PN532_TX "|" D_SENSOR_PN532_RX "|"
D_SENSOR_SM16716_CLK "|" D_SENSOR_SM16716_DAT "|" D_SENSOR_SM16716_POWER "|"
D_SENSOR_MY92X1_DI "|" D_SENSOR_MY92X1_DCKI "|"
D_SENSOR_CSE7766_TX "|" D_SENSOR_CSE7766_RX "|"
D_SENSOR_ARIRFRCV "|" D_SENSOR_TXD "|" D_SENSOR_RXD "|"
D_SENSOR_ROTARY "1a|" D_SENSOR_ROTARY "1b|" D_SENSOR_ROTARY "2a|" D_SENSOR_ROTARY "2b|"
2019-03-23 23:26:03 +00:00
D_SENSOR_HRE_CLOCK "|" D_SENSOR_HRE_DATA "|"
D_SENSOR_ADE7953_IRQ "|"
D_SENSOR_LED_LINK "|" D_SENSOR_LED_LINK "i|"
D_SENSOR_ARIRFSEL "|"
D_SENSOR_BUZZER "|" D_SENSOR_BUZZER "i|"
D_SENSOR_OLED_RESET "|"
2019-08-09 11:56:01 +01:00
D_SENSOR_SOLAXX1_TX "|" D_SENSOR_SOLAXX1_RX "|"
D_SENSOR_ZIGBEE_TXD "|" D_SENSOR_ZIGBEE_RXD "|"
2019-08-19 09:54:58 +01:00
D_SENSOR_RDM6300_RX "|"
2019-08-24 12:20:00 +01:00
D_SENSOR_IBEACON_TX "|" D_SENSOR_IBEACON_RX "|"
D_SENSOR_A4988_DIR "|" D_SENSOR_A4988_STP "|" D_SENSOR_A4988_ENA "|" D_SENSOR_A4988_MS1 "|" D_SENSOR_A4988_MS2 "|" D_SENSOR_A4988_MS3 "|"
D_SENSOR_DDS2382_TX "|" D_SENSOR_DDS2382_RX "|"
2019-10-03 09:06:51 +01:00
D_SENSOR_DDSU666_TX "|" D_SENSOR_DDSU666_RX "|"
D_SENSOR_SM2135_CLK "|" D_SENSOR_SM2135_DAT "|"
D_SENSOR_DEEPSLEEP "|" D_SENSOR_EXS_ENABLE "|"
D_SENSOR_CLIENT_TX "|" D_SENSOR_CLIENT_RX "|" D_SENSOR_CLIENT_RESET "|" D_SENSOR_CLIENT_RESET "i|"
D_SENSOR_HPMA_RX "|" D_SENSOR_HPMA_TX "|"
2020-01-05 00:06:30 +00:00
D_SENSOR_GPS_RX "|" D_SENSOR_GPS_TX "|"
D_SENSOR_DS18X20 "o|" D_SENSOR_DHT11 "o|"
D_SENSOR_HM10_RX "|" D_SENSOR_HM10_TX "|"
2020-02-27 20:31:19 +00:00
D_SENSOR_LE01MR_RX "|" D_SENSOR_LE01MR_TX "|"
D_SENSOR_CC1101_GDO0 "|" D_SENSOR_CC1101_GDO2 "|"
D_SENSOR_HRXL_RX "|"
2020-04-11 00:48:37 +01:00
D_SENSOR_ELECTRIQ_MOODL "|"
2020-04-26 08:43:52 +01:00
D_SENSOR_AS3935 "|" D_SENSOR_PMS5003_TX "|"
D_SENSOR_BOILER_OT_RX "|" D_SENSOR_BOILER_OT_TX "|"
D_SENSOR_WINDMETER_SPEED "|"
D_SENSOR_BL0940_RX "|"
D_SENSOR_TCP_TXD "|" D_SENSOR_TCP_RXD "|"
D_SENSOR_TELEINFO_RX "|" D_SENSOR_TELEINFO_ENABLE "|"
D_SENSOR_LMT01_PULSE "|"
2020-07-22 09:07:07 +01:00
D_SENSOR_IEM3000_TX "|" D_SENSOR_IEM3000_RX "|"
D_SENSOR_ZIGBEE_RST "|"
D_SENSOR_DYP_RX
;
2018-11-11 15:58:21 +00:00
const char kSensorNamesFixed[] PROGMEM =
D_SENSOR_SPI_MISO "|" D_SENSOR_SPI_MOSI "|" D_SENSOR_SPI_CLK "|"
D_SENSOR_USER;
const uint8_t kGpioNiceList[] PROGMEM = {
GPIO_NONE, // Not used
GPIO_KEY1, // Buttons
GPIO_KEY1_NP,
GPIO_KEY1_INV,
GPIO_KEY1_INV_NP,
GPIO_KEY2,
GPIO_KEY2_NP,
GPIO_KEY2_INV,
GPIO_KEY2_INV_NP,
GPIO_KEY3,
GPIO_KEY3_NP,
GPIO_KEY3_INV,
GPIO_KEY3_INV_NP,
GPIO_KEY4,
GPIO_KEY4_NP,
GPIO_KEY4_INV,
GPIO_KEY4_INV_NP,
GPIO_SWT1, // User connected external switches
GPIO_SWT1_NP,
GPIO_SWT2,
GPIO_SWT2_NP,
GPIO_SWT3,
GPIO_SWT3_NP,
GPIO_SWT4,
GPIO_SWT4_NP,
GPIO_SWT5,
GPIO_SWT5_NP,
GPIO_SWT6,
GPIO_SWT6_NP,
GPIO_SWT7,
GPIO_SWT7_NP,
GPIO_SWT8,
GPIO_SWT8_NP,
#ifdef ROTARY_V1
GPIO_ROT1A, // Rotary switch1 A Pin
GPIO_ROT1B, // Rotary switch1 B Pin
GPIO_ROT2A, // Rotary switch2 A Pin
GPIO_ROT2B, // Rotary switch2 B Pin
#endif
GPIO_REL1, // Relays
GPIO_REL1_INV,
GPIO_REL2,
GPIO_REL2_INV,
GPIO_REL3,
GPIO_REL3_INV,
GPIO_REL4,
GPIO_REL4_INV,
GPIO_REL5,
GPIO_REL5_INV,
GPIO_REL6,
GPIO_REL6_INV,
GPIO_REL7,
GPIO_REL7_INV,
GPIO_REL8,
GPIO_REL8_INV,
GPIO_LED1, // Leds
GPIO_LED1_INV,
GPIO_LED2,
GPIO_LED2_INV,
GPIO_LED3,
GPIO_LED3_INV,
GPIO_LED4,
GPIO_LED4_INV,
GPIO_LEDLNK, // Link led
GPIO_LEDLNK_INV, // Inverted link led
GPIO_PWM1, // RGB Red or C Cold White
GPIO_PWM1_INV,
GPIO_PWM2, // RGB Green or CW Warm White
GPIO_PWM2_INV,
GPIO_PWM3, // RGB Blue
GPIO_PWM3_INV,
GPIO_PWM4, // RGBW (Cold) White
GPIO_PWM4_INV,
GPIO_PWM5, // RGBCW Warm White
GPIO_PWM5_INV,
#ifdef USE_COUNTER
GPIO_CNTR1, // Counters
GPIO_CNTR1_NP,
GPIO_CNTR2,
GPIO_CNTR2_NP,
GPIO_CNTR3,
GPIO_CNTR3_NP,
GPIO_CNTR4,
GPIO_CNTR4_NP,
#endif
#ifdef USE_BUZZER
GPIO_BUZZER, // Buzzer
GPIO_BUZZER_INV, // Inverted buzzer
#endif
GPIO_TXD, // Serial interface
GPIO_RXD, // Serial interface
#ifdef USE_I2C
GPIO_I2C_SCL, // I2C SCL
GPIO_I2C_SDA, // I2C SDA
#endif
#ifdef USE_SPI
GPIO_SPI_CS, // SPI Chip Select
GPIO_SPI_DC, // SPI Data Direction
GPIO_SSPI_MISO, // Software SPI Master Input Client Output
GPIO_SSPI_MOSI, // Software SPI Master Output Client Input
GPIO_SSPI_SCLK, // Software SPI Serial Clock
GPIO_SSPI_CS, // Software SPI Chip Select
GPIO_SSPI_DC, // Software SPI Data or Command
#endif
#ifdef USE_DISPLAY
GPIO_BACKLIGHT, // Display backlight control
GPIO_OLED_RESET, // OLED Display Reset
#endif
#ifdef USE_DHT
GPIO_DHT11, // DHT11
GPIO_DHT22, // DHT21, DHT22, AM2301, AM2302, AM2321
GPIO_SI7021, // iTead SI7021
GPIO_DHT11_OUT, // Pseudo Single wire DHT11, DHT21, DHT22, AM2301, AM2302, AM2321
#endif
#ifdef USE_DS18x20
GPIO_DSB, // Single wire DS18B20 or DS18S20
GPIO_DSB_OUT, // Pseudo Single wire DS18B20 or DS18S20
2019-04-05 16:46:26 +01:00
#endif
#ifdef USE_LMT01 // LMT01, count pulses on GPIO
GPIO_LMT01,
#endif
// Light
#ifdef USE_LIGHT
#ifdef USE_WS2812
GPIO_WS2812, // WS2812 Led string
#endif
#ifdef USE_ARILUX_RF
GPIO_ARIRFRCV, // AriLux RF Receive input
GPIO_ARIRFSEL, // Arilux RF Receive input selected
#endif
#ifdef USE_MY92X1
GPIO_DI, // my92x1 PWM input
GPIO_DCKI, // my92x1 CLK input
#endif // USE_MY92X1
#ifdef USE_SM16716
GPIO_SM16716_CLK, // SM16716 CLOCK
GPIO_SM16716_DAT, // SM16716 DATA
GPIO_SM16716_SEL, // SM16716 SELECT
#endif // USE_SM16716
#ifdef USE_SM2135
GPIO_SM2135_CLK, // SM2135 CLOCK
GPIO_SM2135_DAT, // SM2135 DATA
#endif // USE_SM2135
#ifdef USE_TUYA_MCU
GPIO_TUYA_TX, // Tuya Serial interface
GPIO_TUYA_RX, // Tuya Serial interface
#endif
#ifdef USE_EXS_DIMMER
GPIO_EXS_ENABLE, // EXS MCU Enable
#endif
#ifdef USE_ELECTRIQ_MOODL
2020-03-18 10:30:52 +00:00
GPIO_ELECTRIQ_MOODL_TX,
#endif
#endif // USE_LIGHT
#if defined(USE_IR_REMOTE) || defined(USE_IR_REMOTE_FULL)
GPIO_IRSEND, // IR remote
#if defined(USE_IR_RECEIVE) || defined(USE_IR_REMOTE_FULL)
GPIO_IRRECV, // IR receiver
#endif
#endif
#ifdef USE_RC_SWITCH
GPIO_RFSEND, // RF transmitter
GPIO_RFRECV, // RF receiver
#endif
#ifdef USE_RF_SENSOR
GPIO_RF_SENSOR, // Rf receiver with sensor decoding
#endif
#ifdef USE_SR04
2019-11-15 22:10:07 +00:00
GPIO_SR04_TRIG, // SR04 Tri/TXgger pin
GPIO_SR04_ECHO, // SR04 Ech/RXo pin
#endif
#ifdef USE_TM1638
GPIO_TM16CLK, // TM1638 Clock
GPIO_TM16DIO, // TM1638 Data I/O
GPIO_TM16STB, // TM1638 Strobe
#endif
#ifdef USE_HX711
2018-10-11 17:26:49 +01:00
GPIO_HX711_SCK, // HX711 Load Cell clock
GPIO_HX711_DAT, // HX711 Load Cell data
#endif
// Energy sensors
#ifdef USE_ENERGY_SENSOR
#ifdef USE_HLW8012
GPIO_NRG_SEL, // HLW8012/HLJ-01 Sel output (1 = Voltage)
GPIO_NRG_SEL_INV, // HLW8012/HLJ-01 Sel output (0 = Voltage)
GPIO_NRG_CF1, // HLW8012/HLJ-01 CF1 voltage / current
GPIO_HLW_CF, // HLW8012 CF power
GPIO_HJL_CF, // HJL-01/BL0937 CF power
#endif
#if defined(USE_I2C) && defined(USE_ADE7953)
GPIO_ADE7953_IRQ, // ADE7953 IRQ
#endif
2019-11-24 01:27:04 +00:00
#ifdef USE_CSE7766
GPIO_CSE7766_TX, // CSE7766 Serial interface (S31 and Pow R2)
GPIO_CSE7766_RX, // CSE7766 Serial interface (S31 and Pow R2)
2019-11-24 01:27:04 +00:00
#endif
#ifdef USE_MCP39F501
GPIO_MCP39F5_TX, // MCP39F501 Serial interface (Shelly2)
GPIO_MCP39F5_RX, // MCP39F501 Serial interface (Shelly2)
GPIO_MCP39F5_RST, // MCP39F501 Reset (Shelly2)
#endif
#if defined(USE_PZEM004T) || defined(USE_PZEM_AC) || defined(USE_PZEM_DC)
GPIO_PZEM0XX_TX, // PZEM0XX Serial interface
#endif
#ifdef USE_PZEM004T
GPIO_PZEM004_RX, // PZEM004T Serial interface
#endif
#ifdef USE_PZEM_AC
GPIO_PZEM016_RX, // PZEM-014,016 Serial Modbus interface
#endif
#ifdef USE_PZEM_DC
GPIO_PZEM017_RX, // PZEM-003,017 Serial Modbus interface
#endif
#ifdef USE_SDM120
GPIO_SDM120_TX, // SDM120 Serial interface
GPIO_SDM120_RX, // SDM120 Serial interface
#endif
#ifdef USE_SDM630
GPIO_SDM630_TX, // SDM630 Serial interface
GPIO_SDM630_RX, // SDM630 Serial interface
#endif
#ifdef USE_DDS2382
GPIO_DDS2382_TX, // DDS2382 Serial interface
GPIO_DDS2382_RX, // DDS2382 Serial interface
#endif
#ifdef USE_DDSU666
GPIO_DDSU666_TX, // DDSU666 Serial interface
GPIO_DDSU666_RX, // DDSU666 Serial interface
#endif
#ifdef USE_SOLAX_X1
GPIO_SOLAXX1_TX, // Solax Inverter tx pin
GPIO_SOLAXX1_RX, // Solax Inverter rx pin
#endif
2020-01-05 00:06:30 +00:00
#ifdef USE_LE01MR
GPIO_LE01MR_RX, // F7F LE-01MR energy meter rx pin
GPIO_LE01MR_TX, // F7F LE-01MR energy meter tx pin
#endif
#ifdef USE_BL0940
GPIO_BL0940_RX, // BL0940 Serial interface
#endif
#ifdef USE_IEM3000
GPIO_IEM3000_TX, // IEM3000 Serial interface
GPIO_IEM3000_RX, // IEM3000 Serial interface
#endif
#endif // USE_ENERGY_SENSOR
// Serial
#ifdef USE_SERIAL_BRIDGE
GPIO_SBR_TX, // Serial Bridge Serial interface
GPIO_SBR_RX, // Serial Bridge Serial interface
#endif
#ifdef USE_TCP_BRIDGE
GPIO_TCP_TX, // TCP Serial bridge
GPIO_TCP_RX, // TCP Serial bridge
#endif
#ifdef USE_ZIGBEE
GPIO_ZIGBEE_TX, // Zigbee Serial interface
GPIO_ZIGBEE_RX, // Zigbee Serial interface
2020-07-22 09:07:07 +01:00
GPIO_ZIGBEE_RST, // Zigbee reset
#endif
#ifdef USE_MHZ19
GPIO_MHZ_TXD, // MH-Z19 Serial interface
GPIO_MHZ_RXD, // MH-Z19 Serial interface
#endif
#ifdef USE_SENSEAIR
GPIO_SAIR_TX, // SenseAir Serial interface
GPIO_SAIR_RX, // SenseAir Serial interface
#endif
#ifdef USE_NOVA_SDS
GPIO_SDS0X1_TX, // Nova Fitness SDS011 Serial interface
GPIO_SDS0X1_RX, // Nova Fitness SDS011 Serial interface
#endif
#ifdef USE_HPMA
GPIO_HPMA_TX, // Honeywell HPMA115S0 Serial interface
GPIO_HPMA_RX, // Honeywell HPMA115S0 Serial interface
#endif
#ifdef USE_PMS5003
GPIO_PMS5003_TX, // Plantower PMS5003 Serial interface
GPIO_PMS5003_RX, // Plantower PMS5003 Serial interface
#endif
#if defined(USE_TX20_WIND_SENSOR) || defined(USE_TX23_WIND_SENSOR)
GPIO_TX2X_TXD_BLACK, // TX20/TX23 Transmission Pin
#endif
#ifdef USE_WINDMETER
GPIO_WINDMETER_SPEED,
#endif
#ifdef USE_MP3_PLAYER
2018-10-27 02:01:09 +01:00
GPIO_MP3_DFR562, // RB-DFR-562, DFPlayer Mini MP3 Player Serial interface
#endif
#ifdef USE_AZ7798
GPIO_AZ_TXD, // AZ-Instrument 7798 CO2 datalogger Serial interface
2018-12-30 11:30:01 +00:00
GPIO_AZ_RXD, // AZ-Instrument 7798 CO2 datalogger Serial interface
#endif
#ifdef USE_PN532_HSU
GPIO_PN532_TXD, // PN532 HSU Tx
GPIO_PN532_RXD, // PN532 HSU Rx
#endif
#ifdef USE_TASMOTA_CLIENT
GPIO_TASMOTACLIENT_TXD, // Tasmota Client TX
GPIO_TASMOTACLIENT_RXD, // Tasmota Client RX
GPIO_TASMOTACLIENT_RST, // Tasmota Client Reset
GPIO_TASMOTACLIENT_RST_INV, // Tasmota Client Reset Inverted
2019-10-20 19:12:55 +01:00
#endif
#ifdef USE_RDM6300
GPIO_RDM6300_RX,
#endif
2019-08-25 11:29:48 +01:00
#ifdef USE_IBEACON
GPIO_IBEACON_TX,
2020-05-07 15:03:27 +01:00
GPIO_IBEACON_RX,
2019-08-25 11:29:48 +01:00
#endif
#ifdef USE_GPS
GPIO_GPS_TX, // GPS serial interface
2020-05-07 15:03:27 +01:00
GPIO_GPS_RX, // GPS serial interface
#endif
2020-02-06 16:05:37 +00:00
#ifdef USE_HM10
GPIO_HM10_TX, // GPS serial interface
2020-05-07 15:03:27 +01:00
GPIO_HM10_RX, // GPS serial interface
#endif
#ifdef USE_OPENTHERM
GPIO_BOILER_OT_TX,
GPIO_BOILER_OT_RX,
#endif
#ifdef USE_MGC3130
GPIO_MGC3130_XFER,
GPIO_MGC3130_RESET,
#endif
#ifdef USE_MAX31855
GPIO_MAX31855CS, // MAX31855 Serial interface
GPIO_MAX31855CLK, // MAX31855 Serial interface
GPIO_MAX31855DO, // MAX31855 Serial interface
#endif
2019-03-23 23:26:03 +00:00
#ifdef USE_HRE
GPIO_HRE_CLOCK,
GPIO_HRE_DATA,
#endif
2019-10-15 19:34:35 +01:00
#ifdef USE_A4988_STEPPER
GPIO_A4988_DIR, // A4988 direction pin
GPIO_A4988_STP, // A4988 step pin
// folowing are not mandatory
GPIO_A4988_ENA, // A4988 enabled pin
GPIO_A4988_MS1, // A4988 microstep pin1
GPIO_A4988_MS2, // A4988 microstep pin2
GPIO_A4988_MS3, // A4988 microstep pin3
#endif
#ifdef USE_DEEPSLEEP
GPIO_DEEPSLEEP,
2019-12-17 01:13:24 +00:00
#endif
2020-02-27 20:03:05 +00:00
#ifdef USE_KEELOQ
GPIO_CC1101_GDO0, // CC1101 pin for RX
GPIO_CC1101_GDO2, // CC1101 pin for RX
#endif
#ifdef USE_HRXL
GPIO_HRXL_RX,
#endif
#ifdef USE_DYP
GPIO_DYP_RX,
#endif
2020-04-11 00:48:37 +01:00
#ifdef USE_AS3935
GPIO_AS3935,
#endif
#ifdef USE_TELEINFO
GPIO_TELEINFO_RX,
GPIO_TELEINFO_ENABLE,
#endif
};
2020-03-28 17:08:43 +00:00
/********************************************************************************************/
// User selectable ADC0 functionality
enum UserSelectableAdc0 {
ADC0_NONE, // Not used
ADC0_INPUT, // Analog input
ADC0_TEMP, // Thermistor
ADC0_LIGHT, // Light sensor
ADC0_BUTTON, // Button
ADC0_BUTTON_INV,
ADC0_RANGE, // Range
ADC0_CT_POWER, // Current
// ADC0_SWITCH, // Switch
// ADC0_SWITCH_INV,
ADC0_END };
// Programmer selectable ADC0 functionality
enum ProgramSelectableAdc0 {
ADC0_FIX_START = 14,
ADC0_USER, // User configurable needs to be 15
ADC0_MAX };
// Text in webpage Module Parameters and commands ADC
const char kAdc0Names[] PROGMEM =
D_SENSOR_NONE "|" D_ANALOG_INPUT "|"
D_TEMPERATURE "|" D_LIGHT "|"
D_SENSOR_BUTTON "|" D_SENSOR_BUTTON "i|"
D_RANGE "|"
D_CT_POWER "|"
// D_SENSOR_SWITCH "|" D_SENSOR_SWITCH "i|"
;
/********************************************************************************************/
#define MAX_GPIO_PIN 17 // Number of supported GPIO
#define MIN_FLASH_PINS 4 // Number of flash chip pins unusable for configuration (GPIO6, 7, 8 and 11)
2020-04-28 17:27:07 +01:00
#define MAX_USER_PINS 13 // MAX_GPIO_PIN - MIN_FLASH_PINS
#define ADC0_PIN 17 // Pin number of ADC0
#define WEMOS_MODULE 17 // Wemos module
2020-03-28 17:08:43 +00:00
const char PINS_WEMOS[] PROGMEM = "D3TXD4RXD2D1flashcFLFLolD6D7D5D8D0A0";
/********************************************************************************************/
2020-03-28 17:08:43 +00:00
typedef struct MYIO {
uint8_t io[MAX_GPIO_PIN];
} myio;
typedef struct MYCFGIO {
uint8_t io[MAX_GPIO_PIN - MIN_FLASH_PINS];
} mycfgio;
#define GPIO_FLAG_USED 0 // Currently two flags used
#define GPIO_FLAG_SPARE04 16
#define GPIO_FLAG_SPARE05 32
#define GPIO_FLAG_SPARE06 64
#define GPIO_FLAG_SPARE07 128
typedef union {
uint8_t data;
struct {
uint8_t adc0 : 4; // Allow ADC0 when define USE_ADC_VCC is disabled
uint8_t spare04 : 1;
uint8_t spare05 : 1;
uint8_t spare06 : 1;
uint8_t spare07 : 1;
};
} gpio_flag;
typedef struct MYTMPLT {
mycfgio gp;
gpio_flag flag;
} mytmplt;
/********************************************************************************************/
// Supported hardware modules
2020-04-28 17:27:07 +01:00
2020-03-28 17:08:43 +00:00
enum SupportedModules {
SONOFF_BASIC, SONOFF_RF, SONOFF_SV, SONOFF_TH, SONOFF_DUAL, SONOFF_POW, SONOFF_4CH, SONOFF_S2X, SLAMPHER, SONOFF_TOUCH,
SONOFF_LED, CH1, CH4, MOTOR, ELECTRODRAGON, EXS_RELAY, WION, WEMOS, SONOFF_DEV, H801,
SONOFF_SC, SONOFF_BN, SONOFF_4CHPRO, HUAFAN_SS, SONOFF_BRIDGE, SONOFF_B1, AILIGHT, SONOFF_T11, SONOFF_T12, SONOFF_T13,
SUPLA1, WITTY, YUNSHAN, MAGICHOME, LUANIHVIO, KMC_70011, ARILUX_LC01, ARILUX_LC11, SONOFF_DUAL_R2, ARILUX_LC06,
SONOFF_S31, ZENGGE_ZF_WF017, SONOFF_POW_R2, SONOFF_IFAN02, BLITZWOLF_BWSHP, SHELLY1, SHELLY2, PHILIPS, NEO_COOLCAM, ESP_SWITCH,
OBI, TECKIN, APLIC_WDP303075, TUYA_DIMMER, GOSUND, ARMTRONIX_DIMMERS, SK03_TUYA, PS_16_DZ, TECKIN_US, MANZOKU_EU_4,
OBI2, YTF_IR_BRIDGE, DIGOO, KA10, ZX2820, MI_DESK_LAMP, SP10, WAGA, SYF05, SONOFF_L1,
SONOFF_IFAN03, EXS_DIMMER, PWM_DIMMER, SONOFF_D1, SONOFF_ZB_BRIDGE,
MAXMODULE };
2020-03-28 17:08:43 +00:00
#define USER_MODULE 255
const char kModuleNames[] PROGMEM =
"Sonoff Basic|Sonoff RF|Sonoff SV|Sonoff TH|Sonoff Dual|Sonoff Pow|Sonoff 4CH|Sonoff S2X|Slampher|Sonoff Touch|"
"Sonoff LED|1 Channel|4 Channel|Motor C/AC|ElectroDragon|EXS Relay(s)|WiOn|Generic|Sonoff Dev|H801|"
"Sonoff SC|Sonoff BN-SZ|Sonoff 4CH Pro|Huafan SS|Sonoff Bridge|Sonoff B1|AiLight|Sonoff T1 1CH|Sonoff T1 2CH|Sonoff T1 3CH|"
"Supla Espablo|Witty Cloud|Yunshan Relay|MagicHome|Luani HVIO|KMC 70011|Arilux LC01|Arilux LC11|Sonoff Dual R2|Arilux LC06|"
"Sonoff S31|Zengge WF017|Sonoff Pow R2|Sonoff iFan02|BlitzWolf SHP|Shelly 1|Shelly 2|Xiaomi Philips|Neo Coolcam|ESP Switch|"
"OBI Socket|Teckin|AplicWDP303075|Tuya MCU|Gosund SP1 v23|ARMTR Dimmer|SK03 Outdoor|PS-16-DZ|Teckin US|Manzoku strip|"
"OBI Socket 2|YTF IR Bridge|Digoo DG-SP202|KA10|Luminea ZX2820|Mi Desk Lamp|SP10|WAGA CHCZ02MB|SYF05|Sonoff L1|"
"Sonoff iFan03|EXS Dimmer|PWM Dimmer|Sonoff D1|Sonoff ZbBridge"
2020-03-28 17:08:43 +00:00
;
const uint8_t kModuleNiceList[] PROGMEM = {
SONOFF_BASIC, // Sonoff Relay Devices
SONOFF_RF,
SONOFF_TH,
SONOFF_DUAL,
SONOFF_DUAL_R2,
SONOFF_POW,
SONOFF_POW_R2,
SONOFF_4CH,
SONOFF_4CHPRO,
SONOFF_S31, // Sonoff Socket Relay Devices with Energy Monitoring
SONOFF_S2X, // Sonoff Socket Relay Devices
SONOFF_TOUCH, // Sonoff Switch Devices
SONOFF_T11,
SONOFF_T12,
SONOFF_T13,
2020-02-27 16:52:27 +00:00
#ifdef USE_SONOFF_D1
SONOFF_D1, // Sonoff D1
#endif
SONOFF_LED, // Sonoff Light Devices
SONOFF_BN,
2019-10-17 11:20:26 +01:00
#ifdef USE_SONOFF_L1
SONOFF_L1,
#endif
SONOFF_B1, // Sonoff Light Bulbs
SLAMPHER,
#ifdef USE_SONOFF_SC
SONOFF_SC, // Sonoff Environmemtal Sensor
#endif
#ifdef USE_SONOFF_IFAN
SONOFF_IFAN02, // Sonoff Fan
SONOFF_IFAN03,
#endif
#ifdef USE_SONOFF_RF
SONOFF_BRIDGE, // Sonoff Bridge
#endif
#ifdef USE_ZIGBEE_EZSP
SONOFF_ZB_BRIDGE,
#endif
SONOFF_SV, // Sonoff Development Devices
SONOFF_DEV,
CH1, // Relay Devices
CH4,
MOTOR,
ELECTRODRAGON,
EXS_RELAY,
2017-08-19 17:08:06 +01:00
SUPLA1,
LUANIHVIO,
YUNSHAN,
WION,
SHELLY1,
SHELLY2,
BLITZWOLF_BWSHP, // Socket Relay Devices with Energy Monitoring
TECKIN,
TECKIN_US,
APLIC_WDP303075,
GOSUND,
ZX2820,
SK03_TUYA,
DIGOO,
KA10,
2019-01-30 18:44:48 +00:00
SP10,
2019-02-01 13:54:35 +00:00
WAGA,
NEO_COOLCAM, // Socket Relay Devices
OBI,
OBI2,
2018-12-11 13:49:58 +00:00
MANZOKU_EU_4,
ESP_SWITCH, // Switch Devices
#ifdef USE_TUYA_MCU
TUYA_DIMMER, // Dimmer Devices
2019-04-05 16:46:26 +01:00
#endif
#ifdef USE_ARMTRONIX_DIMMERS
2018-11-10 15:30:29 +00:00
ARMTRONIX_DIMMERS,
2019-04-05 16:46:26 +01:00
#endif
#ifdef USE_PS_16_DZ
2018-11-26 00:19:09 +00:00
PS_16_DZ,
#endif
#ifdef USE_EXS_DIMMER
EXS_DIMMER,
2020-02-24 13:19:15 +00:00
#endif
#ifdef USE_PWM_DIMMER
PWM_DIMMER,
2019-04-05 16:46:26 +01:00
#endif
H801, // Light Devices
MAGICHOME,
ARILUX_LC01,
ARILUX_LC06,
ARILUX_LC11,
ZENGGE_ZF_WF017,
HUAFAN_SS,
#ifdef ROTARY_V1
2019-01-11 00:50:40 +00:00
MI_DESK_LAMP,
#endif
KMC_70011,
AILIGHT, // Light Bulbs
PHILIPS,
2019-02-09 12:24:35 +00:00
SYF05,
YTF_IR_BRIDGE,
WITTY, // Development Devices
2019-02-09 12:24:35 +00:00
WEMOS
};
enum SupportedTemplates {
TMP_SONOFF_BASIC, TMP_SONOFF_SV, TMP_SONOFF_DUAL, TMP_SONOFF_POW, TMP_SONOFF_4CH, TMP_SONOFF_LED, TMP_ELECTRODRAGON,
TMP_EXS_RELAY, TMP_WION, TMP_WEMOS, TMP_SONOFF_DEV, TMP_H801, TMP_SONOFF_SC, TMP_SONOFF_BN, TMP_HUAFAN_SS, TMP_SONOFF_BRIDGE,
TMP_SONOFF_B1, TMP_AILIGHT, TMP_SONOFF_T11, TMP_SONOFF_T12, TMP_SONOFF_T13, TMP_SUPLA1, TMP_WITTY, TMP_YUNSHAN, TMP_MAGICHOME,
TMP_LUANIHVIO, TMP_KMC_70011, TMP_ARILUX_LC01, TMP_ARILUX_LC11, TMP_SONOFF_DUAL_R2, TMP_ARILUX_LC06, TMP_ZENGGE_ZF_WF017,
TMP_SONOFF_POW_R2, TMP_BLITZWOLF_BWSHP, TMP_SHELLY1, TMP_SHELLY2, TMP_PHILIPS, TMP_NEO_COOLCAM, TMP_ESP_SWITCH, TMP_OBI,
TMP_TECKIN, TMP_APLIC_WDP303075, TMP_TUYA_DIMMER, TMP_GOSUND, TMP_ARMTRONIX_DIMMERS, TMP_SK03_TUYA, TMP_PS_16_DZ,
TMP_TECKIN_US, TMP_MANZOKU_EU_4, TMP_OBI2, TMP_YTF_IR_BRIDGE, TMP_DIGOO, TMP_KA10, TMP_ZX2820, TMP_MI_DESK_LAMP, TMP_SP10,
TMP_WAGA, TMP_SYF05, TMP_SONOFF_IFAN03, TMP_EXS_DIMMER, TMP_PWM_DIMMER, TMP_SONOFF_ZB_BRIDGE,
TMP_MAXMODULE };
const uint8_t kModuleTemplateList[MAXMODULE] PROGMEM = {
TMP_SONOFF_BASIC,
TMP_SONOFF_BASIC, // SONOFF_RF
TMP_SONOFF_SV,
TMP_SONOFF_BASIC, // SONOFF_TH
TMP_SONOFF_DUAL,
TMP_SONOFF_POW,
TMP_SONOFF_4CH,
TMP_SONOFF_BASIC, // SONOFF_S2X
TMP_SONOFF_BASIC, // SLAMPHER
TMP_SONOFF_T11, // SONOFF_TOUCH
TMP_SONOFF_LED,
TMP_SONOFF_BASIC, // CH1
TMP_SONOFF_DUAL, // CH4
TMP_SONOFF_BASIC, // MOTOR
TMP_ELECTRODRAGON,
TMP_EXS_RELAY,
TMP_WION,
TMP_WEMOS,
TMP_SONOFF_DEV,
TMP_H801,
TMP_SONOFF_SC,
TMP_SONOFF_BN,
TMP_SONOFF_4CH, // SONOFF_4CHPRO
TMP_HUAFAN_SS,
TMP_SONOFF_BRIDGE,
TMP_SONOFF_B1,
TMP_AILIGHT,
TMP_SONOFF_T11,
TMP_SONOFF_T12,
TMP_SONOFF_T13,
TMP_SUPLA1,
TMP_WITTY,
TMP_YUNSHAN,
TMP_MAGICHOME,
TMP_LUANIHVIO,
TMP_KMC_70011,
TMP_ARILUX_LC01,
TMP_ARILUX_LC11,
TMP_SONOFF_DUAL_R2,
TMP_ARILUX_LC06,
TMP_SONOFF_POW_R2, // SONOFF_S31
TMP_ZENGGE_ZF_WF017,
TMP_SONOFF_POW_R2,
TMP_SONOFF_4CH, // SONOFF_IFAN02
TMP_BLITZWOLF_BWSHP,
TMP_SHELLY1,
TMP_SHELLY2,
TMP_PHILIPS,
TMP_NEO_COOLCAM,
TMP_ESP_SWITCH,
TMP_OBI,
TMP_TECKIN,
TMP_APLIC_WDP303075,
TMP_TUYA_DIMMER,
TMP_GOSUND,
TMP_ARMTRONIX_DIMMERS,
TMP_SK03_TUYA,
TMP_PS_16_DZ,
TMP_TECKIN_US,
TMP_MANZOKU_EU_4,
TMP_OBI2,
TMP_YTF_IR_BRIDGE,
TMP_DIGOO,
TMP_KA10,
TMP_ZX2820,
TMP_MI_DESK_LAMP,
TMP_SP10,
TMP_WAGA,
TMP_SYF05,
TMP_SONOFF_DUAL, // SONOFF_L1
TMP_SONOFF_IFAN03,
TMP_EXS_DIMMER,
TMP_PWM_DIMMER,
TMP_SONOFF_DUAL, // SONOFF_D1
TMP_SONOFF_ZB_BRIDGE,
};
// Default template settings
const mytmplt kModules[TMP_MAXMODULE] PROGMEM = {
2020-08-18 10:42:48 +01:00
{ // SONOFF_BASIC - Sonoff Basic (ESP8266)
AGPIO(GPIO_KEY1), // GPIO00 Button
AGPIO(GPIO_USER), // GPIO01 Serial RXD and Optional sensor
AGPIO(GPIO_USER), // GPIO02 Only available on newer Sonoff Basic R2 V1
AGPIO(GPIO_USER), // GPIO03 Serial TXD and Optional sensor
AGPIO(GPIO_USER), // GPIO04 Optional sensor
0, // GPIO05
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_REL1), // GPIO12 Red Led and Relay (0 = Off, 1 = On)
AGPIO(GPIO_LED1_INV), // GPIO13 Green Led (0 = On, 1 = Off) - Link and Power status
AGPIO(GPIO_USER), // GPIO14 Optional sensor
0, // GPIO15
0, // GPIO16
0 // ADC0 Analog input
},
/*
2020-08-18 10:42:48 +01:00
{ // SONOFF_RF - Sonoff RF (ESP8266)
AGPIO(GPIO_KEY1), // GPIO00 Button
AGPIO(GPIO_USER), // GPIO01 Serial RXD and Optional sensor
AGPIO(GPIO_USER), // GPIO02 Optional sensor
AGPIO(GPIO_USER), // GPIO03 Serial TXD and Optional sensor
AGPIO(GPIO_USER), // GPIO04 Optional sensor
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_REL1), // GPIO12 Red Led and Relay (0 = Off, 1 = On)
AGPIO(GPIO_LED1_INV), // GPIO13 Green Led (0 = On, 1 = Off) - Link and Power status
AGPIO(GPIO_USER), // GPIO14 Optional sensor
2020-03-28 17:08:43 +00:00
0, 0, 0
},
*/
2020-08-18 10:42:48 +01:00
{ // SONOFF_SV - Sonoff SV (ESP8266)
AGPIO(GPIO_KEY1), // GPIO00 Button
AGPIO(GPIO_USER), // GPIO01 Serial RXD and Optional sensor
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_USER), // GPIO03 Serial TXD and Optional sensor
AGPIO(GPIO_USER), // GPIO04 Optional sensor
AGPIO(GPIO_USER), // GPIO05 Optional sensor
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_REL1), // GPIO12 Red Led and Relay (0 = Off, 1 = On)
AGPIO(GPIO_LED1_INV), // GPIO13 Green Led (0 = On, 1 = Off) - Link and Power status
AGPIO(GPIO_USER), // GPIO14 Optional sensor
2020-03-28 17:08:43 +00:00
0, 0,
2020-08-18 10:42:48 +01:00
AGPIO(ADC0_USER) // ADC0 Analog input
2020-03-28 17:08:43 +00:00
},
/*
2020-08-18 10:42:48 +01:00
{ // SONOFF_TH - Sonoff TH10/16 (ESP8266)
AGPIO(GPIO_KEY1), // GPIO00 Button
AGPIO(GPIO_USER), // GPIO01 Serial RXD and Optional sensor
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_USER), // GPIO03 Serial TXD and Optional sensor
AGPIO(GPIO_USER), // GPIO04 Optional sensor
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_REL1), // GPIO12 Red Led and Relay (0 = Off, 1 = On)
AGPIO(GPIO_LED1_INV), // GPIO13 Green Led (0 = On, 1 = Off) - Link and Power status
AGPIO(GPIO_USER), // GPIO14 Optional sensor
2020-03-28 17:08:43 +00:00
0, 0, 0
},
*/
2020-08-18 10:42:48 +01:00
{ // SONOFF_DUAL - Sonoff Dual (ESP8266)
AGPIO(GPIO_USER), // GPIO00 Pad
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_TXD), // GPIO01 Relay control
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_RXD), // GPIO03 Relay control
AGPIO(GPIO_USER), // GPIO04 Optional sensor
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_LED1_INV), // GPIO13 Blue Led (0 = On, 1 = Off) - Link and Power status
AGPIO(GPIO_USER), // GPIO14 Optional sensor
2020-03-28 17:08:43 +00:00
0, 0, 0
},
2020-08-18 10:42:48 +01:00
{ // SONOFF_POW - Sonoff Pow (ESP8266 - HLW8012)
AGPIO(GPIO_KEY1), // GPIO00 Button
2020-03-28 17:08:43 +00:00
0, 0, 0, 0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_NRG_SEL), // GPIO05 HLW8012 Sel output (1 = Voltage)
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_REL1), // GPIO12 Red Led and Relay (0 = Off, 1 = On)
AGPIO(GPIO_NRG_CF1), // GPIO13 HLW8012 CF1 voltage / current
AGPIO(GPIO_HLW_CF), // GPIO14 HLW8012 CF power
AGPIO(GPIO_LED1), // GPIO15 Blue Led (0 = On, 1 = Off) - Link and Power status
2020-03-28 17:08:43 +00:00
0, 0
},
2020-08-18 10:42:48 +01:00
{ // SONOFF_4CH - Sonoff 4CH (ESP8285)
AGPIO(GPIO_KEY1), // GPIO00 Button 1
AGPIO(GPIO_USER), // GPIO01 Serial RXD and Optional sensor
AGPIO(GPIO_USER), // GPIO02 Optional sensor
AGPIO(GPIO_USER), // GPIO03 Serial TXD and Optional sensor
AGPIO(GPIO_REL1) +2, // GPIO04 Sonoff 4CH Red Led and Relay 3 (0 = Off, 1 = On)
AGPIO(GPIO_REL1) +1, // GPIO05 Sonoff 4CH Red Led and Relay 2 (0 = Off, 1 = On)
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
AGPIO(GPIO_KEY1) +1, // GPIO09 Button 2
AGPIO(GPIO_KEY1) +2, // GPIO10 Button 3
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_REL1), // GPIO12 Red Led and Relay 1 (0 = Off, 1 = On) - Link and Power status
AGPIO(GPIO_LED1_INV), // GPIO13 Blue Led (0 = On, 1 = Off)
AGPIO(GPIO_KEY1) +3, // GPIO14 Button 4
AGPIO(GPIO_REL1) +3, // GPIO15 Red Led and Relay 4 (0 = Off, 1 = On)
2020-03-28 17:08:43 +00:00
0, 0
},
/*
2020-08-18 10:42:48 +01:00
{ // SONOFF_S2X - Sonoff S20, S22 and S26 Smart Socket (ESP8266)
AGPIO(GPIO_KEY1), // GPIO00 Button
AGPIO(GPIO_USER), // GPIO01 Serial RXD and Optional sensor
AGPIO(GPIO_USER), // GPIO02 Optional sensor
AGPIO(GPIO_USER), // GPIO03 Serial TXD and Optional sensor
2020-03-28 17:08:43 +00:00
0, 0,
2020-08-18 10:42:48 +01:00
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_REL1), // GPIO12 Red Led and Relay (0 = Off, 1 = On) - Link and Power status
AGPIO(GPIO_LED1_INV), // GPIO13 Green/Blue Led (0 = On, 1 = Off)
2020-03-28 17:08:43 +00:00
0, 0, 0, 0
},
*/
/*
2020-08-18 10:42:48 +01:00
{ // SLAMPHER - Slampher (ESP8266)
AGPIO(GPIO_KEY1), // GPIO00 Button
AGPIO(GPIO_USER), // GPIO01 Serial RXD and Optional sensor
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_USER), // GPIO03 Serial TXD and Optional sensor
2020-03-28 17:08:43 +00:00
0, 0,
2020-08-18 10:42:48 +01:00
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_REL1), // GPIO12 Red Led and Relay (0 = Off, 1 = On)
AGPIO(GPIO_LED1_INV), // GPIO13 Blue Led (0 = On, 1 = Off) - Link and Power status
2020-03-28 17:08:43 +00:00
0, 0, 0, 0
},
*/
/*
2020-08-18 10:42:48 +01:00
{ // SONOFF_TOUCH - Sonoff Touch (ESP8285)
AGPIO(GPIO_KEY1), // GPIO00 Button
AGPIO(GPIO_USER), // GPIO01 Serial RXD and Optional sensor
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_USER), // GPIO03 Serial TXD and Optional sensor
2020-03-28 17:08:43 +00:00
0, 0,
2020-08-18 10:42:48 +01:00
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_REL1), // GPIO12 Red Led and Relay (0 = Off, 1 = On) - Link and Power status
AGPIO(GPIO_LED1_INV), // GPIO13 Blue Led (0 = On, 1 = Off)
2020-03-28 17:08:43 +00:00
0, 0, 0, 0
},
*/
2020-08-18 10:42:48 +01:00
{ // SONOFF_LED - Sonoff LED (ESP8266)
AGPIO(GPIO_KEY1), // GPIO00 Button
2020-03-28 17:08:43 +00:00
0, 0, 0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_USER), // GPIO04 Optional sensor (PWM3 Green)
AGPIO(GPIO_USER), // GPIO05 Optional sensor (PWM2 Red)
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_PWM1), // GPIO12 Cold light (PWM0 Cold)
AGPIO(GPIO_LED1_INV), // GPIO13 Blue Led (0 = On, 1 = Off) - Link and Power status
AGPIO(GPIO_PWM1) +1, // GPIO14 Warm light (PWM1 Warm)
AGPIO(GPIO_USER), // GPIO15 Optional sensor (PWM4 Blue)
2020-03-28 17:08:43 +00:00
0, 0
},
/*
2020-08-18 10:42:48 +01:00
{ // CH1 - 1 Channel Inching/Latching Relay using (PSA-B01 - ESP8266 and PSF-B01 - ESP8285)
AGPIO(GPIO_KEY1), // GPIO00 Button
2020-03-28 17:08:43 +00:00
0, 0, 0, 0, 0,
2020-08-18 10:42:48 +01:00
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_REL1), // GPIO12 Red Led and Relay (0 = Off, 1 = On)
AGPIO(GPIO_LED1_INV), // GPIO13 Green Led (0 = On, 1 = Off) - Link and Power status
2020-03-28 17:08:43 +00:00
0, 0, 0, 0
},
*/
/*
2020-08-18 10:42:48 +01:00
{ // CH4 - 4 Channel Inching/Latching Relays (ESP8266)
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_TXD), // GPIO01 Relay control
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_RXD), // GPIO03 Relay control
2020-03-28 17:08:43 +00:00
0, 0,
2020-08-18 10:42:48 +01:00
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_LED1_INV), // GPIO13 Blue Led (0 = On, 1 = Off) - Link and Power status
2020-03-28 17:08:43 +00:00
0, 0, 0, 0
},
*/
/*
2020-08-18 10:42:48 +01:00
{ // MOTOR - Motor Clockwise / Anti clockwise (PSA-B01 - ESP8266)
AGPIO(GPIO_KEY1), // GPIO00 Button
2020-03-28 17:08:43 +00:00
0, 0, 0, 0, 0,
2020-08-18 10:42:48 +01:00
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_REL1), // GPIO12 Red Led and Relay (0 = Off, 1 = On)
AGPIO(GPIO_LED1_INV), // GPIO13 Green Led (0 = On, 1 = Off) - Link and Power status
2020-03-28 17:08:43 +00:00
0, 0, 0, 0
},
*/
2020-08-18 10:42:48 +01:00
{ // ELECTRODRAGON - ElectroDragon IoT Relay Board (ESP8266)
AGPIO(GPIO_KEY1) +1, // GPIO00 Button 2
AGPIO(GPIO_USER), // GPIO01 Serial RXD and Optional sensor
AGPIO(GPIO_KEY1), // GPIO02 Button 1
AGPIO(GPIO_USER), // GPIO03 Serial TXD and Optional sensor
AGPIO(GPIO_USER), // GPIO04 Optional sensor
AGPIO(GPIO_USER), // GPIO05 Optional sensor
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_REL1) +1, // GPIO12 Red Led and Relay 2 (0 = Off, 1 = On)
AGPIO(GPIO_REL1), // GPIO13 Red Led and Relay 1 (0 = Off, 1 = On)
AGPIO(GPIO_USER), // GPIO14 Optional sensor
AGPIO(GPIO_USER), // GPIO15 Optional sensor
AGPIO(GPIO_LED1), // GPIO16 Green/Blue Led (1 = On, 0 = Off) - Link and Power status
AGPIO(ADC0_USER) // ADC0 A0 Analog input
},
{ // EXS_RELAY - ES-Store Latching relay(s) (ESP8266)
// https://ex-store.de/ESP8266-WiFi-Relay-V31
// V3.1 Module Pin 1 VCC 3V3, Module Pin 6 GND
// https://ex-store.de/2-Kanal-WiFi-WLan-Relay-V5-Blackline-fuer-Unterputzmontage
AGPIO(GPIO_USER), // GPIO00 V3.1 Module Pin 8 - V5.0 Module Pin 4
AGPIO(GPIO_USER), // GPIO01 UART0_TXD V3.1 Module Pin 2 - V5.0 Module Pin 3
AGPIO(GPIO_USER), // GPIO02 V3.1 Module Pin 7
AGPIO(GPIO_USER), // GPIO03 UART0_RXD V3.1 Module Pin 3
AGPIO(GPIO_USER), // GPIO04 V3.1 Module Pin 10 - V5.0 Module Pin 2
AGPIO(GPIO_USER), // GPIO05 V3.1 Module Pin 9 - V5.0 Module Pin 1
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_REL1), // GPIO12 Relay1 ( 1 = Off)
AGPIO(GPIO_REL1) +1, // GPIO13 Relay1 ( 1 = On)
AGPIO(GPIO_USER), // GPIO14 V3.1 Module Pin 5 - V5.0 GPIO_REL3_INV Relay2 ( 1 = Off)
AGPIO(GPIO_LED1), // GPIO15 V5.0 LED1 - Link and Power status
AGPIO(GPIO_USER), // GPIO16 V3.1 Module Pin 4 - V5.0 GPIO_REL4_INV Relay2 ( 1 = On)
2020-03-28 17:08:43 +00:00
0
},
2020-08-18 10:42:48 +01:00
{ // WION - Indoor Tap (ESP8266)
// https://www.amazon.com/gp/product/B00ZYLUBJU/ref=s9_acsd_al_bw_c_x_3_w
AGPIO(GPIO_USER), // GPIO00 Optional sensor (pm clock)
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_LED1), // GPIO02 Green Led (1 = On, 0 = Off) - Link and Power status
2020-03-28 17:08:43 +00:00
0, 0, 0,
2020-08-18 10:42:48 +01:00
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_USER), // GPIO12 Optional sensor (pm data)
AGPIO(GPIO_KEY1), // GPIO13 Button
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_REL1), // GPIO15 Relay (0 = Off, 1 = On)
2020-03-28 17:08:43 +00:00
0, 0
},
2020-08-18 10:42:48 +01:00
{ // WEMOS - Any ESP8266/ESP8285 device like WeMos and NodeMCU hardware (ESP8266)
AGPIO(GPIO_USER), // GPIO00 D3 Wemos Button Shield
AGPIO(GPIO_USER), // GPIO01 TX Serial RXD
AGPIO(GPIO_USER), // GPIO02 D4 Wemos DHT Shield
AGPIO(GPIO_USER), // GPIO03 RX Serial TXD and Optional sensor
AGPIO(GPIO_USER), // GPIO04 D2 Wemos I2C SDA
AGPIO(GPIO_USER), // GPIO05 D1 Wemos I2C SCL / Wemos Relay Shield (0 = Off, 1 = On) / Wemos WS2812B RGB led Shield
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
AGPIO(GPIO_USER), // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
AGPIO(GPIO_USER), // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_USER), // GPIO12 D6
AGPIO(GPIO_USER), // GPIO13 D7
AGPIO(GPIO_USER), // GPIO14 D5
AGPIO(GPIO_USER), // GPIO15 D8
AGPIO(GPIO_USER), // GPIO16 D0 Wemos Wake
AGPIO(ADC0_USER) // ADC0 A0 Analog input
},
{ // SONOFF_DEV - Sonoff Dev (ESP8266)
AGPIO(GPIO_KEY1), // GPIO00 E-FW Button
AGPIO(GPIO_USER), // GPIO01 TX Serial RXD and Optional sensor
0, // GPIO02
AGPIO(GPIO_USER), // GPIO03 RX Serial TXD and Optional sensor
AGPIO(GPIO_USER), // GPIO04 Optional sensor
AGPIO(GPIO_USER), // GPIO05 Optional sensor
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_USER), // GPIO12
AGPIO(GPIO_USER), // GPIO13 BLUE LED
AGPIO(GPIO_USER), // GPIO14 Optional sensor
0, // GPIO15
0, // GPIO16
AGPIO(ADC0_USER) // ADC0 A0 Analog input
},
{ // H801 - Lixada H801 Wifi (ESP8266)
AGPIO(GPIO_USER), // GPIO00 E-FW Button
AGPIO(GPIO_LED1), // GPIO01 Green LED - Link and Power status
AGPIO(GPIO_USER), // GPIO02 TX and Optional sensor - Pin next to TX on the PCB
AGPIO(GPIO_USER), // GPIO03 RX and Optional sensor - Pin next to GND on the PCB
AGPIO(GPIO_PWM1) +4, // GPIO04 W2 - PWM5
AGPIO(GPIO_LED1_INV) +1, // GPIO05 Red LED
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_PWM1) +2, // GPIO12 Blue
AGPIO(GPIO_PWM1) +1, // GPIO13 Green
AGPIO(GPIO_PWM1) +3, // GPIO14 W1 - PWM4
AGPIO(GPIO_PWM1), // GPIO15 Red
2020-03-28 17:08:43 +00:00
0, 0
},
2020-08-18 10:42:48 +01:00
{ // SONOFF_SC - onoff SC (ESP8266)
AGPIO(GPIO_KEY1), // GPIO00 Button
AGPIO(GPIO_TXD), // GPIO01 RXD to ATMEGA328P
AGPIO(GPIO_USER), // GPIO02 Optional sensor
AGPIO(GPIO_RXD), // GPIO03 TXD to ATMEGA328P
2020-03-28 17:08:43 +00:00
0, 0,
2020-08-18 10:42:48 +01:00
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_LED1_INV), // GPIO13 Green Led (0 = On, 1 = Off) - Link and Power status
2020-03-28 17:08:43 +00:00
0, 0, 0, 0
},
2020-08-18 10:42:48 +01:00
{ // SONOFF_BN - Sonoff BN-SZ01 Ceiling led (ESP8285)
2020-03-28 17:08:43 +00:00
0, 0, 0, 0, 0, 0,
2020-08-18 10:42:48 +01:00
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_PWM1), // GPIO12 Light
AGPIO(GPIO_LED1_INV), // GPIO13 Red Led (0 = On, 1 = Off) - Link and Power status
2020-03-28 17:08:43 +00:00
0, 0, 0, 0
},
/*
2020-08-18 10:42:48 +01:00
{ // SONOFF_4CHPRO - Sonoff 4CH Pro (ESP8285)
AGPIO(GPIO_KEY1), // GPIO00 Button 1
AGPIO(GPIO_USER), // GPIO01 Serial RXD and Optional sensor
AGPIO(GPIO_USER), // GPIO02 Optional sensor
AGPIO(GPIO_USER), // GPIO03 Serial TXD and Optional sensor
AGPIO(GPIO_REL1) +2, // GPIO04 Sonoff 4CH Red Led and Relay 3 (0 = Off, 1 = On)
AGPIO(GPIO_REL1) +1, // GPIO05 Sonoff 4CH Red Led and Relay 2 (0 = Off, 1 = On)
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
AGPIO(GPIO_KEY1) +1, // GPIO09 Button 2
AGPIO(GPIO_KEY1) +2, // GPIO10 Button 3
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_REL1), // GPIO12 Red Led and Relay 1 (0 = Off, 1 = On)
AGPIO(GPIO_LED1_INV), // GPIO13 Blue Led (0 = On, 1 = Off) - Link and Power status
AGPIO(GPIO_KEY1) +3, // GPIO14 Button 4
AGPIO(GPIO_REL1) +3, // GPIO15 Red Led and Relay 4 (0 = Off, 1 = On)
2020-03-28 17:08:43 +00:00
0, 0
},
*/
2020-08-18 10:42:48 +01:00
{ // HUAFAN_SS - Hua Fan Smart Socket (ESP8266) - like Sonoff Pow
AGPIO(GPIO_LEDLNK_INV), // GPIO00 Blue Led (0 = On, 1 = Off) - Link status
2020-03-28 17:08:43 +00:00
0, 0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_LED1_INV), // GPIO03 Red Led (0 = On, 1 = Off) - Power status
AGPIO(GPIO_KEY1), // GPIO04 Button
AGPIO(GPIO_REL1_INV), // GPIO05 Relay (0 = On, 1 = Off)
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_NRG_CF1), // GPIO12 HLW8012 CF1 voltage / current
AGPIO(GPIO_NRG_SEL), // GPIO13 HLW8012 Sel output (1 = Voltage)
AGPIO(GPIO_HLW_CF), // GPIO14 HLW8012 CF power
2020-03-28 17:08:43 +00:00
0, 0, 0
},
2020-08-18 10:42:48 +01:00
{ // SONOFF_BRIDGE - Sonoff RF Bridge 433 (ESP8285)
AGPIO(GPIO_KEY1), // GPIO00 Button
AGPIO(GPIO_TXD), // GPIO01 RF bridge control
AGPIO(GPIO_USER), // GPIO02 Optional sensor
AGPIO(GPIO_RXD), // GPIO03 RF bridge control
AGPIO(GPIO_USER), // GPIO04 Optional sensor
AGPIO(GPIO_USER), // GPIO05 Optional sensor
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_USER), // GPIO12 Optional sensor
AGPIO(GPIO_LED1_INV), // GPIO13 Blue Led (0 = On, 1 = Off) - Link and Power status
AGPIO(GPIO_USER), // GPIO14 Optional sensor
2020-03-28 17:08:43 +00:00
0, 0, 0
},
2020-08-18 10:42:48 +01:00
{ // SONOFF_B1 - Sonoff B1 (ESP8285 - my9231)
AGPIO(GPIO_KEY1), // GPIO00 Pad
AGPIO(GPIO_USER), // GPIO01 Serial RXD and Optional sensor pad
AGPIO(GPIO_USER), // GPIO02 Optional sensor SDA pad
AGPIO(GPIO_USER), // GPIO03 Serial TXD and Optional sensor pad
2020-03-28 17:08:43 +00:00
0, 0,
2020-08-18 10:42:48 +01:00
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_DI), // GPIO12 my9231 DI
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_DCKI), // GPIO14 my9231 DCKI
2020-03-28 17:08:43 +00:00
0, 0, 0
},
2020-08-18 10:42:48 +01:00
{ // AILIGHT - Ai-Thinker RGBW led (ESP8266 - my9291)
AGPIO(GPIO_KEY1), // GPIO00 Pad
AGPIO(GPIO_USER), // GPIO01 Serial RXD and Optional sensor pad
AGPIO(GPIO_USER), // GPIO02 Optional sensor SDA pad
AGPIO(GPIO_USER), // GPIO03 Serial TXD and Optional sensor pad
2020-03-28 17:08:43 +00:00
0, 0,
2020-08-18 10:42:48 +01:00
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_DI), // GPIO13 my9291 DI
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_DCKI), // GPIO15 my9291 DCKI
2020-03-28 17:08:43 +00:00
0, 0
},
2020-08-18 10:42:48 +01:00
{ // SONOFF_T11 - Sonoff T1 1CH (ESP8285)
AGPIO(GPIO_KEY1), // GPIO00 Button 1
AGPIO(GPIO_USER), // GPIO01 Serial RXD and Optional sensor
AGPIO(GPIO_USER), // GPIO02 Optional Sensor (J3 Pin 5)
AGPIO(GPIO_USER), // GPIO03 Serial TXD and Optional sensor
2020-03-28 17:08:43 +00:00
0, 0,
2020-08-18 10:42:48 +01:00
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_REL1), // GPIO12 Blue Led and Relay 1 (0 = Off, 1 = On)
AGPIO(GPIO_LED1_INV), // GPIO13 Blue Led (0 = On, 1 = Off) - Link and Power status
2020-03-28 17:08:43 +00:00
0, 0, 0, 0
},
2020-08-18 10:42:48 +01:00
{ // SONOFF_T12 - Sonoff T1 2CH (ESP8285)
AGPIO(GPIO_KEY1), // GPIO00 Button 1
AGPIO(GPIO_USER), // GPIO01 Serial RXD and Optional sensor
AGPIO(GPIO_USER), // GPIO02 Optional Sensor (J3 Pin 5)
AGPIO(GPIO_USER), // GPIO03 Serial TXD and Optional sensor
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_REL1) +1, // GPIO05 Blue Led and Relay 2 (0 = Off, 1 = On)
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
AGPIO(GPIO_KEY1) +1, // GPIO09 Button 2
0, // GPIO10
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_REL1), // GPIO12 Blue Led and Relay 1 (0 = Off, 1 = On)
AGPIO(GPIO_LED1_INV), // GPIO13 Blue Led (0 = On, 1 = Off) - Link and Power status
2020-03-28 17:08:43 +00:00
0, 0, 0, 0
},
2020-08-18 10:42:48 +01:00
{ // SONOFF_T13 - Sonoff T1 3CH (ESP8285)
AGPIO(GPIO_KEY1), // GPIO00 Button 1
AGPIO(GPIO_USER), // GPIO01 Serial RXD and Optional sensor
AGPIO(GPIO_USER), // GPIO02 Optional Sensor (J3 Pin 5)
AGPIO(GPIO_USER), // GPIO03 Serial TXD and Optional sensor
AGPIO(GPIO_REL1) +2, // GPIO04 Blue Led and Relay 3 (0 = Off, 1 = On)
AGPIO(GPIO_REL1) +1, // GPIO05 Blue Led and Relay 2 (0 = Off, 1 = On)
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
AGPIO(GPIO_KEY1) +1, // GPIO09 Button 2
AGPIO(GPIO_KEY1) +2, // GPIO10 Button 3
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_REL1), // GPIO12 Blue Led and Relay 1 (0 = Off, 1 = On)
AGPIO(GPIO_LED1_INV), // GPIO13 Blue Led (0 = On, 1 = Off) - Link and Power status
2020-03-28 17:08:43 +00:00
0, 0, 0, 0
},
2020-08-18 10:42:48 +01:00
{ // SUPLA1 - Supla Espablo (ESP8266)
// http://www.wykop.pl/ramka/3325399/diy-supla-do-puszki-instalacyjnej-podtynkowej-supla-org/
0, // GPIO00 Flash jumper
AGPIO(GPIO_USER), // GPIO01 Serial RXD and Optional sensor
#ifdef USE_DS18x20
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_DSB), // GPIO02 DS18B20 sensor
#else
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_USER), // GPIO02 Optional sensor
#endif
AGPIO(GPIO_USER), // GPIO03 Serial TXD and Optional sensor
AGPIO(GPIO_KEY1), // GPIO04 Button 1
AGPIO(GPIO_REL1), // GPIO05 Relay 1 (0 = Off, 1 = On)
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_USER), // GPIO12 Optional sensor
AGPIO(GPIO_REL1) +1, // GPIO13 Relay 2 (0 = Off, 1 = On)
AGPIO(GPIO_USER), // GPIO14 Optional sensor
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_LED1), // GPIO16 Led (1 = On, 0 = Off) - Link and Power status
AGPIO(ADC0_USER) // ADC0 A0 Analog input
},
{ // WITTY - Witty Cloud Dev Board (ESP8266)
// https://www.aliexpress.com/item/ESP8266-serial-WIFI-Witty-cloud-Development-Board-ESP-12F-module-MINI-nodemcu/32643464555.html
AGPIO(GPIO_USER), // GPIO00 D3 flash push button on interface board
AGPIO(GPIO_USER), // GPIO01 Serial RXD and Optional sensor
AGPIO(GPIO_LED1_INV), // GPIO02 D4 Blue Led (0 = On, 1 = Off) on ESP-12F - Link and Power status
AGPIO(GPIO_USER), // GPIO03 Serial TXD and Optional sensor
AGPIO(GPIO_KEY1), // GPIO04 D2 push button on ESP-12F board
AGPIO(GPIO_USER), // GPIO05 D1 optional sensor
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_PWM1) +1, // GPIO12 D6 RGB LED Green
AGPIO(GPIO_PWM1) +2, // GPIO13 D7 RGB LED Blue
AGPIO(GPIO_USER), // GPIO14 D5 optional sensor
AGPIO(GPIO_PWM1), // GPIO15 D8 RGB LED Red
AGPIO(GPIO_USER), // GPIO16 D0 optional sensor
AGPIO(ADC0_USER) // ADC0 A0 Light sensor / Requires USE_ADC_VCC in user_config.h to be disabled
},
{ // YUNSHAN - Yunshan Wifi Relay (ESP8266)
// https://www.ebay.com/p/Esp8266-220v-10a-Network-Relay-WiFi-Module/1369583381
// Schematics and Info https://ucexperiment.wordpress.com/2016/12/18/yunshan-esp8266-250v-15a-acdc-network-wifi-relay-module/
0, // GPIO00 Flash jumper - Module Pin 8
AGPIO(GPIO_USER), // GPIO01 Serial RXD and Optional sensor - Module Pin 2
AGPIO(GPIO_LED1_INV), // GPIO02 Blue Led (0 = On, 1 = Off) on ESP-12F - Module Pin 7 - Link and Power status
AGPIO(GPIO_USER), // GPIO03 Serial TXD and Optional sensor - Module Pin 3
AGPIO(GPIO_REL1), // GPIO04 Red Led and Relay (0 = Off, 1 = On) - Module Pin 10
AGPIO(GPIO_KEY1), // GPIO05 Blue Led and OptoCoupler input - Module Pin 9
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
2020-03-28 17:08:43 +00:00
0, 0, 0, 0, 0, 0
},
2020-08-18 10:42:48 +01:00
{ // MAGICHOME - Magic Home (aka Flux-light) (ESP8266) and Arilux LC10 (ESP8285)
// https://www.aliexpress.com/item/Magic-Home-Mini-RGB-RGBW-Wifi-Controller-For-Led-Strip-Panel-light-Timing-Function-16million-colors/32686853650.html
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_USER), // GPIO01 Serial RXD and Optional sensor
AGPIO(GPIO_LED1_INV), // GPIO02 Blue onboard LED - Link and Power status
AGPIO(GPIO_USER), // GPIO03 Serial TXD and Optional sensor
AGPIO(GPIO_ARIRFRCV), // GPIO04 IR or RF receiver (optional) (Arilux LC10)
AGPIO(GPIO_PWM1) +1, // GPIO05 RGB LED Green
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_PWM1) +2, // GPIO12 RGB LED Blue
AGPIO(GPIO_USER), // GPIO13 RGBW LED White (optional - set to PWM4 for Cold White or Warm White as used on Arilux LC10)
AGPIO(GPIO_PWM1), // GPIO14 RGB LED Red
AGPIO(GPIO_ARIRFSEL), // GPIO15 RF receiver control (Arilux LC10)
2020-03-28 17:08:43 +00:00
0, 0
},
2020-08-18 10:42:48 +01:00
{ // LUANIHVIO - ESP8266_HVIO
// https://luani.de/projekte/esp8266-hvio/
0, // GPIO00 Flash jumper
AGPIO(GPIO_USER), // GPIO01 Serial RXD and Optional sensor
AGPIO(GPIO_USER), // GPIO02 Optional sensor / I2C SDA pad
AGPIO(GPIO_USER), // GPIO03 Serial TXD and Optional sensor
AGPIO(GPIO_REL1), // GPIO04 Relay 1 (0 = Off, 1 = On)
AGPIO(GPIO_REL1) +1, // GPIO05 Relay 2 (0 = Off, 1 = On)
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_SWT1), // GPIO12 External input 1 (0 = On, 1 = Off)
AGPIO(GPIO_SWT1) +1, // GPIO13 External input 2 (0 = On, 1 = Off)
AGPIO(GPIO_USER), // GPIO14 Optional sensor / I2C SCL pad
AGPIO(GPIO_LED1), // GPIO15 Led (1 = On, 0 = Off) - Link and Power status
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(ADC0_USER) // ADC0 A0 Analog input
2020-03-28 17:08:43 +00:00
},
2020-08-18 10:42:48 +01:00
{ // KMC_70011 - KMC 70011
// https://www.amazon.com/KMC-Timing-Monitoring-Network-125V-240V/dp/B06XRX2GTQ
AGPIO(GPIO_KEY1), // GPIO00 Button
2020-03-28 17:08:43 +00:00
0, 0, 0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_HLW_CF), // GPIO04 HLW8012 CF power
AGPIO(GPIO_NRG_CF1), // GPIO05 HLW8012 CF1 voltage / current
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_NRG_SEL), // GPIO12 HLW8012 SEL (1 = Voltage)
AGPIO(GPIO_LED1_INV), // GPIO13 Green Led - Link and Power status
AGPIO(GPIO_REL1), // GPIO14 Relay
2020-03-28 17:08:43 +00:00
0, 0, 0
},
2020-08-18 10:42:48 +01:00
{ // ARILUX_LC01 - Arilux AL-LC01 (ESP8285)
// https://www.banggood.com/nl/ARILUX-AL-LC01-Super-Mini-LED-WIFI-Smart-RGB-Controller-For-RGB-LED-Strip-Light-DC-9-12V-p-1058603.html
// (PwmFrequency 1111Hz)
AGPIO(GPIO_KEY1), // GPIO00 Optional Button
AGPIO(GPIO_USER), // GPIO01 Serial RXD and Optional sensor
AGPIO(GPIO_ARIRFSEL), // GPIO02 RF receiver control
AGPIO(GPIO_USER), // GPIO03 Serial TXD and Optional sensor
AGPIO(GPIO_ARIRFRCV), // GPIO04 IR or RF receiver (optional)
AGPIO(GPIO_PWM1), // GPIO05 RGB LED Red
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_PWM1) +1, // GPIO12 RGB LED Green
AGPIO(GPIO_PWM1) +2, // GPIO13 RGB LED Blue
AGPIO(GPIO_USER), // GPIO14 RGBW LED White (optional - set to PWM4 for Cold White or Warm White)
2020-03-28 17:08:43 +00:00
0, 0, 0
},
2020-08-18 10:42:48 +01:00
{ // ARILUX_LC11 - Arilux AL-LC11 (ESP8266)
// https://www.banggood.com/nl/ARILUX-AL-LC11-Super-Mini-LED-WIFI-APP-Controller-RF-Remote-Control-For-RGBWW-LED-Strip-DC9-28V-p-1085112.html
// (PwmFrequency 540Hz)
AGPIO(GPIO_KEY1), // GPIO00 Optional Button
AGPIO(GPIO_USER), // GPIO01 Serial RXD and Optional sensor
AGPIO(GPIO_ARIRFSEL), // GPIO02 RF receiver control
AGPIO(GPIO_USER), // GPIO03 Serial TXD and Optional sensor
AGPIO(GPIO_PWM1) +1, // GPIO04 RGB LED Green
AGPIO(GPIO_PWM1), // GPIO05 RGB LED Red
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_PWM1) +4, // GPIO12 RGBCW LED Warm
AGPIO(GPIO_PWM1) +3, // GPIO13 RGBW LED Cold
AGPIO(GPIO_PWM1) +2, // GPIO14 RGB LED Blue
AGPIO(GPIO_ARIRFRCV), // GPIO15 RF receiver input
2020-03-28 17:08:43 +00:00
0, 0
},
2020-08-18 10:42:48 +01:00
{ // SONOFF_DUAL_R2 - Sonoff Dual R2 (ESP8285)
AGPIO(GPIO_USER), // GPIO00 Button 0 on header (0 = On, 1 = Off)
AGPIO(GPIO_USER), // GPIO01 Serial RXD and Optional sensor
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_USER), // GPIO03 Serial TXD and Optional sensor
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_REL1) +1, // GPIO05 Relay 2 (0 = Off, 1 = On)
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
AGPIO(GPIO_USER), // GPIO09 Button 1 on header (0 = On, 1 = Off)
AGPIO(GPIO_KEY1), // GPIO10 Button on casing
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_REL1), // GPIO12 Relay 1 (0 = Off, 1 = On)
AGPIO(GPIO_LED1_INV), // GPIO13 Blue Led (0 = On, 1 = Off) - Link and Power status
2020-03-28 17:08:43 +00:00
0, 0, 0, 0
},
2020-08-18 10:42:48 +01:00
{ // ARILUX_LC06 - Arilux AL-LC06 (ESP8285)
// https://www.banggood.com/ARILUX-AL-LC06-LED-WIFI-Smartphone-Controller-Romote-5-Channels-DC12-24V-For-RGBWW-Strip-light-p-1061476.html
AGPIO(GPIO_KEY1), // GPIO00 Optional Button
AGPIO(GPIO_USER), // GPIO01 Serial RXD and Optional sensor
AGPIO(GPIO_USER), // GPIO02 Empty pad
AGPIO(GPIO_USER), // GPIO03 Serial TXD and Optional sensor
AGPIO(GPIO_USER), // GPIO04 W2 - PWM5
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_PWM1) +1, // GPIO12 RGB LED Green
AGPIO(GPIO_PWM1) +2, // GPIO13 RGB LED Blue
AGPIO(GPIO_PWM1), // GPIO14 RGB LED Red
AGPIO(GPIO_USER), // GPIO15 RGBW LED White
2020-03-28 17:08:43 +00:00
0, 0
},
/*
2020-08-18 10:42:48 +01:00
{ // SONOFF_S31 - Sonoff S31 (ESP8266 - CSE7766)
AGPIO(GPIO_KEY1), // GPIO00 Button
AGPIO(GPIO_CSE7766_TX), // GPIO01 Serial RXD 4800 baud 8E1 CSE7766 energy sensor
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_CSE7766_RX), // GPIO03 Serial TXD
2020-03-28 17:08:43 +00:00
0, 0,
2020-08-18 10:42:48 +01:00
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_REL1), // GPIO12 Red Led and Relay (0 = Off, 1 = On)
AGPIO(GPIO_LED1_INV), // GPIO13 Green Led (0 = On, 1 = Off) - Link and Power status
2020-03-28 17:08:43 +00:00
0, 0, 0, 0
},
*/
2020-08-18 10:42:48 +01:00
{ // ZENGGE_ZF_WF017 - Zenggee ZJ-WF017-A (ESP12S))
// https://www.ebay.com/p/Smartphone-Android-IOS-WiFi-Music-Controller-for-RGB-5050-3528-LED-Strip-Light/534446632?_trksid=p2047675.l2644
AGPIO(GPIO_KEY1), // GPIO00 Optional Button
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_USER), // GPIO02 Empty pad
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_USER), // GPIO04 W2 - PWM5
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_PWM1) +1, // GPIO12 RGB LED Green
AGPIO(GPIO_PWM1), // GPIO13 RGB LED Red
AGPIO(GPIO_PWM1) +2, // GPIO14 RGB LED Blue
2020-03-28 17:08:43 +00:00
0, 0, 0
},
2020-08-18 10:42:48 +01:00
{ // SONOFF_POW_R2 - Sonoff Pow R2 (ESP8285 - CSE7766)
AGPIO(GPIO_KEY1), // GPIO00 Button
AGPIO(GPIO_CSE7766_TX), // GPIO01 Serial RXD 4800 baud 8E1 CSE7766 energy sensor
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_CSE7766_RX), // GPIO03 Serial TXD
2020-03-28 17:08:43 +00:00
0, 0,
2020-08-18 10:42:48 +01:00
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_REL1), // GPIO12 Red Led and Relay (0 = Off, 1 = On)
AGPIO(GPIO_LED1_INV), // GPIO13 Blue Led (0 = On, 1 = Off) - Link and Power status
2020-03-28 17:08:43 +00:00
0, 0, 0, 0
},
/*
2020-08-18 10:42:48 +01:00
{ // SONOFF_IFAN02 - Sonoff iFan02 (ESP8285)
AGPIO(GPIO_KEY1), // GPIO00 WIFI_KEY0 Virtual button 1 as feedback from RC
AGPIO(GPIO_USER), // GPIO01 ESP_TXD Serial RXD and Optional sensor
0, // GPIO02 ESP_LOG
AGPIO(GPIO_USER), // GPIO03 ESP_RXD Serial TXD and Optional sensor
AGPIO(GPIO_REL1) +2, // GPIO04 WIFI_O2 Relay 3 (0 = Off, 1 = On) controlling the fan
AGPIO(GPIO_REL1) +1, // GPIO05 WIFI_O1 Relay 2 (0 = Off, 1 = On) controlling the fan
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
AGPIO(GPIO_KEY1) +1, // GPIO09 WIFI_KEY1 Virtual button 2 as feedback from RC
AGPIO(GPIO_KEY1) +2, // GPIO10 WIFI_KEY2 Virtual button 3 as feedback from RC
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_REL1), // GPIO12 WIFI_O0 Relay 1 (0 = Off, 1 = On) controlling the light
AGPIO(GPIO_LED1_INV), // GPIO13 WIFI_CHK Blue Led on PCA (0 = On, 1 = Off) - Link and Power status
AGPIO(GPIO_KEY1) +3, // GPIO14 WIFI_KEY3 Virtual button 4 as feedback from RC
AGPIO(GPIO_REL1) +3, // GPIO15 WIFI_O3 Relay 4 (0 = Off, 1 = On) controlling the fan
2020-03-28 17:08:43 +00:00
0, 0
},
*/
2020-08-18 10:42:48 +01:00
{ // BLITZWOLF_BWSHP - BlitzWolf BW-SHP2 and BW-SHP6 (ESP8285 - BL0937 or HJL-01 Energy Monitoring)
// https://www.banggood.com/BlitzWolf-BW-SHP2-Smart-WIFI-Socket-EU-Plug-220V-16A-Work-with-Amazon-Alexa-Google-Assistant-p-1292899.html
// https://www.amazon.de/Steckdose-Homecube-intelligente-Verbrauchsanzeige-funktioniert/dp/B076Q2LKHG/ref=sr_1_fkmr0_1
// https://www.amazon.de/Intelligente-Stromverbrauch-Fernsteurung-Schaltbare-Energieklasse/dp/B076WZQS4S/ref=sr_1_1
// https://www.aliexpress.com/store/product/BlitzWolf-BW-SHP6-EU-Plug-Metering-Version-WIFI-Smart-Socket-220V-240V-10A-Work-with-Amazon/1965360_32945504669.html
AGPIO(GPIO_LED1_INV), // GPIO00 Red Led (1 = On, 0 = Off) - Power status
AGPIO(GPIO_USER), // GPIO01 Serial RXD and Optional sensor
AGPIO(GPIO_LEDLNK_INV), // GPIO02 Blue Led (1 = On, 0 = Off) - Link status
AGPIO(GPIO_USER), // GPIO03 Serial TXD and Optional sensor
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_HJL_CF), // GPIO05 BL0937 or HJL-01 CF power
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_NRG_SEL_INV), // GPIO12 BL0937 or HJL-01 Sel output (0 = Voltage)
AGPIO(GPIO_KEY1), // GPIO13 Button
AGPIO(GPIO_NRG_CF1), // GPIO14 BL0937 or HJL-01 CF1 current / voltage
AGPIO(GPIO_REL1), // GPIO15 Relay (0 = Off, 1 = On)
2020-03-28 17:08:43 +00:00
0, 0
},
2020-08-18 10:42:48 +01:00
{ // SHELLY1 - Shelly1 Open Source (ESP8266 - 2MB) - https://shelly.cloud/shelly1-open-source/
AGPIO(GPIO_USER), // GPIO00 - Can be changed to GPIO_USER, only if Shelly is powered with 12V DC
AGPIO(GPIO_USER), // GPIO01 Serial RXD - Can be changed to GPIO_USER, only if Shelly is powered with 12V DC
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_USER), // GPIO03 Serial TXD - Can be changed to GPIO_USER, only if Shelly is powered with 12V DC
AGPIO(GPIO_REL1), // GPIO04 Relay (0 = Off, 1 = On)
AGPIO(GPIO_SWT1_NP), // GPIO05 SW pin
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
2020-03-28 17:08:43 +00:00
0, 0, 0, 0, 0, 0
},
2020-08-18 10:42:48 +01:00
{ // SHELLY2 - Shelly2 (ESP8266 - 2MB) - https://shelly.cloud/shelly2/
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_MCP39F5_TX), // GPIO01 MCP39F501 Serial input
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_MCP39F5_RX), // GPIO03 MCP39F501 Serial output
AGPIO(GPIO_REL1), // GPIO04
AGPIO(GPIO_REL1) +1, // GPIO05
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_SWT1), // GPIO12
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_SWT1) +1, // GPIO14
AGPIO(GPIO_MCP39F5_RST), // GPIO15 MCP39F501 Reset
2020-03-28 17:08:43 +00:00
0,
0
},
2020-08-18 10:42:48 +01:00
{ // PHILIPS - Xiaomi Philips bulb (ESP8266)
2020-03-28 17:08:43 +00:00
0, 0, 0, 0, 0, 0,
2020-08-18 10:42:48 +01:00
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_PWM1) +1, // GPIO12 cold/warm light
2020-03-28 17:08:43 +00:00
0, 0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_PWM1), // GPIO15 light intensity
2020-03-28 17:08:43 +00:00
0, 0
},
2020-08-18 10:42:48 +01:00
{ // NEO_COOLCAM - Neo Coolcam (ESP8266)
// https://www.banggood.com/NEO-COOLCAM-WiFi-Mini-Smart-Plug-APP-Remote-Control-Timing-Smart-Socket-EU-Plug-p-1288562.html?cur_warehouse=CN
2020-03-28 17:08:43 +00:00
0, 0, 0, 0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_LED1_INV), // GPIO04 Red Led (0 = On, 1 = Off) - Link and Power status
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_REL1), // GPIO12 Red Led and Relay (0 = Off, 1 = On)
AGPIO(GPIO_KEY1), // GPIO13 Button
2020-03-28 17:08:43 +00:00
0, 0, 0, 0
},
2020-08-18 10:42:48 +01:00
{ // ESP_SWITCH - Michael Haustein 4 channel wall switch (ESP07 = ESP8266)
// Use rules for further actions like - rule on power1#state do publish cmnd/other_device/power %value% endon
AGPIO(GPIO_KEY1) +1, // GPIO00 Button 2
AGPIO(GPIO_USER), // GPIO01 Serial RXD and Optional sensor
AGPIO(GPIO_REL1_INV) +2, // GPIO02 Yellow Led 3 (0 = On, 1 = Off)
AGPIO(GPIO_USER), // GPIO03 Serial TXD and Optional sensor
AGPIO(GPIO_KEY1), // GPIO04 Button 1
AGPIO(GPIO_REL1_INV) +1, // GPIO05 Red Led 2 (0 = On, 1 = Off)
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_REL1_INV) +3, // GPIO12 Blue Led 4 (0 = On, 1 = Off)
AGPIO(GPIO_KEY1) +3, // GPIO13 Button 4
AGPIO(GPIO_KEY1) +2, // GPIO14 Button 3
AGPIO(GPIO_LED1), // GPIO15 Optional sensor
AGPIO(GPIO_REL1_INV), // GPIO16 Green Led 1 (0 = On, 1 = Off)
2020-03-28 17:08:43 +00:00
0
},
2020-08-18 10:42:48 +01:00
{ // OBI - OBI socket (ESP8266) - https://www.obi.de/hausfunksteuerung/wifi-stecker-schuko/p/2291706
AGPIO(GPIO_USER), // GPIO00
AGPIO(GPIO_USER), // GPIO01 Serial RXD
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_USER), // GPIO03 Serial TXD
AGPIO(GPIO_LED1), // GPIO04 Blue LED - Link and Power status
AGPIO(GPIO_REL1), // GPIO05 (Relay OFF, but used as Relay Switch)
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_LED1) +2, // GPIO12 (Relay ON, but set to LOW, so we can switch with GPIO05)
AGPIO(GPIO_USER), // GPIO13
AGPIO(GPIO_KEY1), // GPIO14 Button
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_USER), // GPIO16
AGPIO(ADC0_USER) // ADC0 A0 Analog input
2020-03-28 17:08:43 +00:00
},
2020-08-18 10:42:48 +01:00
{ // TECKIN - https://www.amazon.de/gp/product/B07D5V139R
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_KEY1), // GPIO01 Serial TXD and Button
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_LED1_INV), // GPIO03 Serial RXD and Red Led (0 = On, 1 = Off) - Power status
AGPIO(GPIO_HJL_CF), // GPIO04 BL0937 or HJL-01 CF power
AGPIO(GPIO_NRG_CF1), // GPIO05 BL0937 or HJL-01 CF1 current / voltage
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_NRG_SEL_INV), // GPIO12 BL0937 or HJL-01 Sel output (0 = Voltage)
AGPIO(GPIO_LEDLNK_INV), // GPIO13 Blue Led (0 = On, 1 = Off) - Link status
AGPIO(GPIO_REL1), // GPIO14 Relay (0 = Off, 1 = On)
2020-03-28 17:08:43 +00:00
0, 0, 0
},
2020-08-18 10:42:48 +01:00
{ // APLIC_WDP303075 - Aplic WDP 303075 (ESP8285 - HLW8012 Energy Monitoring)
// https://www.amazon.de/dp/B07CNWVNJ2
2020-03-28 17:08:43 +00:00
0, 0, 0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_KEY1), // GPIO03 Button
AGPIO(GPIO_HLW_CF), // GPIO04 HLW8012 CF power
AGPIO(GPIO_NRG_CF1), // GPIO05 HLW8012 CF1 current / voltage
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_NRG_SEL_INV), // GPIO12 HLW8012 CF Sel output (0 = Voltage)
AGPIO(GPIO_LED1_INV), // GPIO13 LED (0 = On, 1 = Off) - Link and Power status
AGPIO(GPIO_REL1), // GPIO14 Relay SRU 5VDC SDA (0 = Off, 1 = On )
2020-03-28 17:08:43 +00:00
0, 0, 0
},
2020-08-18 10:42:48 +01:00
{ // TUYA_DIMMER - Tuya MCU device (ESP8266 w/ separate MCU)
// https://www.amazon.com/gp/product/B07CTNSZZ8/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1
AGPIO(GPIO_USER), // Virtual Button (controlled by MCU)
AGPIO(GPIO_USER), // GPIO01 MCU serial control
AGPIO(GPIO_USER),
AGPIO(GPIO_USER), // GPIO03 MCU serial control
AGPIO(GPIO_USER),
AGPIO(GPIO_USER),
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_USER),
AGPIO(GPIO_USER),
AGPIO(GPIO_USER), // GPIO14 Green Led
AGPIO(GPIO_USER),
AGPIO(GPIO_USER),
2020-03-28 17:08:43 +00:00
0
},
2020-08-18 10:42:48 +01:00
{ // GOSUND - https://www.amazon.de/gp/product/B0777BWS1P
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_LEDLNK_INV), // GPIO01 Serial RXD and LED1 (blue) inv - Link status
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_KEY1), // GPIO03 Serial TXD and Button
AGPIO(GPIO_HJL_CF), // GPIO04 BL0937 or HJL-01 CF power
AGPIO(GPIO_NRG_CF1), // GPIO05 BL0937 or HJL-01 CF1 current / voltage
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_NRG_SEL_INV), // GPIO12 BL0937 or HJL-01 Sel output (0 = Voltage)
AGPIO(GPIO_LED1_INV), // GPIO13 LED2 (red) inv - Power status
AGPIO(GPIO_REL1), // GPIO14 Relay (0 = Off, 1 = On)
2020-03-28 17:08:43 +00:00
0, 0, 0
},
2020-08-18 10:42:48 +01:00
{ // ARMTRONIX_DIMMERS - ARMTRONIX Dimmer, one or two channel (ESP8266 w/ separate MCU dimmer)
// https://www.tindie.com/products/Armtronix/wifi-ac-dimmer-two-triac-board/
// https://www.tindie.com/products/Armtronix/wifi-ac-dimmer-esp8266-one-triac-board-alexaecho/
AGPIO(GPIO_USER),
AGPIO(GPIO_TXD), // GPIO01 MCU serial control
AGPIO(GPIO_USER),
AGPIO(GPIO_RXD), // GPIO03 MCU serial control
AGPIO(GPIO_USER),
AGPIO(GPIO_USER),
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_USER),
AGPIO(GPIO_USER),
AGPIO(GPIO_USER),
AGPIO(GPIO_USER),
AGPIO(GPIO_USER),
2020-03-28 17:08:43 +00:00
0
},
2020-08-18 10:42:48 +01:00
{ // SK03_TUYA - Outdoor smart plug with power monitoring HLW8012 chip - https://www.amazon.com/gp/product/B07CG7MBPV
AGPIO(GPIO_KEY1), // GPIO00 Button
2020-03-28 17:08:43 +00:00
0, 0, 0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_HLW_CF), // GPIO04 HLW8012 CF power
AGPIO(GPIO_NRG_CF1), // GPIO05 HLW8012 CF1 current / voltage
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_NRG_SEL_INV), // GPIO12 HLW8012 CF Sel output (0 = Voltage)
AGPIO(GPIO_LED1_INV), // GPIO13 Red Led (0 = On, 1 = Off) - Power status
AGPIO(GPIO_LEDLNK_INV), // GPIO14 Blue Led (0 = On, 1 = Off) - Link status
AGPIO(GPIO_REL1), // GPIO15 Relay (0 = Off, 1 = On)
2020-03-28 17:08:43 +00:00
0, 0
},
2020-08-18 10:42:48 +01:00
{ // PS_16_DZ - PS-16-DZ Dimmer (ESP8266 w/ separate Nuvoton MCU dimmer)
// https://www.aliexpress.com/item/SM-Smart-WIFI-Wall-Dimmer-Light-Switch-US-Ewelink-APP-Remote-Control-Wi-Fi-Wirele-Work/32871151902.html
AGPIO(GPIO_USER),
AGPIO(GPIO_TXD), // GPIO01 MCU serial control
AGPIO(GPIO_USER),
AGPIO(GPIO_RXD), // GPIO03 MCU serial control
AGPIO(GPIO_USER),
AGPIO(GPIO_USER),
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_USER),
AGPIO(GPIO_LED1), // GPIO13 WiFi LED - Link and Power status
AGPIO(GPIO_USER),
AGPIO(GPIO_USER),
AGPIO(GPIO_USER),
2020-03-28 17:08:43 +00:00
0
},
2020-08-18 10:42:48 +01:00
{ // TECKIN_US - Teckin SP20 US with Energy Monitoring
// https://www.amazon.com/Outlet-Compatible-Monitoring-Function-Required/dp/B079Q5W22B
// https://www.amazon.com/Outlet-ZOOZEE-Monitoring-Function-Compatible/dp/B07J2LR5KN
AGPIO(GPIO_LED1_INV), // GPIO00 Red Led (1 = On, 0 = Off) - Power status
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_LEDLNK_INV), // GPIO02 Blue Led (1 = On, 0 = Off) - Link status
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_REL1), // GPIO04 Relay (0 = Off, 1 = On)
AGPIO(GPIO_HJL_CF), // GPIO05 BL0937 or HJL-01 CF power
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_NRG_SEL_INV), // GPIO12 BL0937 or HJL-01 Sel output (0 = Voltage)
AGPIO(GPIO_KEY1), // GPIO13 Button
AGPIO(GPIO_NRG_CF1), // GPIO14 BL0937 or HJL-01 CF1 current / voltage
2020-03-28 17:08:43 +00:00
0, 0, 0
},
2020-08-18 10:42:48 +01:00
{ // MANZOKU_EU_4 - "MANZOKU" labeled power strip, EU version
// https://www.amazon.de/Steckdosenleiste-AOFO-Mehrfachsteckdose-Ãœberspannungsschutz-Sprachsteuerung/dp/B07GBSD11P/
// https://www.amazon.de/Steckdosenleiste-Geekbes-USB-Anschluss-Kompatibel-gesteuert/dp/B078W23BW9/
0, // GPIO00
0, // GPIO01 Serial RXD
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_KEY1), // GPIO03 Serial TXD + Button
AGPIO(GPIO_REL1) +1, // GPIO04 Relay 2
AGPIO(GPIO_REL1), // GPIO05 Relay 1
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_REL1) +2, // GPIO12 Relay 3
AGPIO(GPIO_REL1) +3, // GPIO13 Relay 4
AGPIO(GPIO_USER), // GPIO14
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_USER), // GPIO16
2020-03-28 17:08:43 +00:00
0
},
2020-08-18 10:42:48 +01:00
{ // OBI2 - OBI socket (ESP8266) - https://www.obi.de/hausfunksteuerung/wifi-stecker-schuko-2-stueck-weiss/p/4077673
0, // GPIO00
0, // GPIO01 Serial RXD
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
0, // GPIO03 Serial TXD
AGPIO(GPIO_REL1), // GPIO04 Relay 1
AGPIO(GPIO_KEY1), // GPIO05 Button
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_LEDLNK_INV), // GPIO12 Green LED - Link status
AGPIO(GPIO_LED1), // GPIO13 Red LED - Power status
2020-03-28 17:08:43 +00:00
0, 0, 0, 0
},
2020-08-18 10:42:48 +01:00
{ // YTF_IR_BRIDGE - https://www.aliexpress.com/item/Tuya-universal-Smart-IR-Hub-remote-control-Voice-Control-AC-TV-Work-With-Alexa-Google-Home/32951202513.html
AGPIO(GPIO_USER), // GPIO00
AGPIO(GPIO_USER), // GPIO01 Serial RXD
AGPIO(GPIO_USER), // GPIO02
AGPIO(GPIO_USER), // GPIO03 Serial TXD
AGPIO(GPIO_LED1_INV), // GPIO04 Blue Led - Link status
AGPIO(GPIO_IRRECV), // GPIO05 IR Receiver
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
0, // GPIO12
AGPIO(GPIO_KEY1), // GPIO13 Button
AGPIO(GPIO_IRSEND), // GPIO14 IR Transmitter
2020-03-28 17:08:43 +00:00
0, 0, 0
},
2020-08-18 10:42:48 +01:00
{ // DIGOO - Digoo DG-SP202
// https://www.banggood.com/DIGOO-DG-SP202-Dual-EU-Plug-Smart-WIFI-Socket-Individual-Controllable-Energy-Monitor-Remote-Control-Timing-Smart-Home-Outlet-let-p-1375323.html
AGPIO(GPIO_KEY1), // GPIO00 Button1
0, // GPIO01 Serial RXD
0, // GPIO02
0, // GPIO03 Serial TXD
AGPIO(GPIO_HJL_CF), // GPIO04 BL0937 or HJL-01 CF power
AGPIO(GPIO_NRG_CF1), // GPIO05 BL0937 or HJL-01 CF1 current / voltage
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_NRG_SEL_INV), // GPIO12 BL0937 or HJL-01 Sel output (0 = Voltage)
AGPIO(GPIO_LED1), // GPIO13 Blue Leds - Link Status
AGPIO(GPIO_REL1) +1, // GPIO14 Relay2 (0 = Off, 1 = On) and Red Led
AGPIO(GPIO_REL1), // GPIO15 Relay1 (0 = Off, 1 = On) and Red Led
AGPIO(GPIO_KEY1_NP) +1, // GPIO16 Button2, externally pulled up
2020-03-28 17:08:43 +00:00
0
},
2020-08-18 10:42:48 +01:00
{ // KA10 - SMANERGY KA10 (ESP8285 - BL0937 Energy Monitoring) - https://www.amazon.es/dp/B07MBTCH2Y
0, // GPIO00
AGPIO(GPIO_LEDLNK_INV), // GPIO01 Blue LED - Link status
0, // GPIO02
AGPIO(GPIO_KEY1), // GPIO03 Button
AGPIO(GPIO_HJL_CF), // GPIO04 BL0937 CF power
AGPIO(GPIO_NRG_CF1), // GPIO05 BL0937 CF1 voltage / current
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_NRG_SEL_INV), // GPIO12 BL0937 Sel output (1 = Voltage)
AGPIO(GPIO_LED1), // GPIO13 Red LED - Power status
AGPIO(GPIO_REL1), // GPIO14 Relay 1
2020-03-28 17:08:43 +00:00
0, 0, 0
},
2020-08-18 10:42:48 +01:00
{ // ZX2820
AGPIO(GPIO_KEY1), // GPIO00 Button
2020-03-28 17:08:43 +00:00
0, 0, 0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_HLW_CF), // GPIO04 HLW8012 CF power
AGPIO(GPIO_NRG_CF1), // GPIO05 HLW8012 CF1 voltage / current
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_NRG_SEL_INV), // GPIO12 HLW8012 SEL (0 = Voltage)
AGPIO(GPIO_LED1_INV), // GPIO13 Green Led - Link and Power status
AGPIO(GPIO_REL1), // GPIO14 Relay
2020-03-28 17:08:43 +00:00
0, 0, 0
},
2020-08-18 10:42:48 +01:00
{ // MI_DESK_LAMP - Mi LED Desk Lamp - https://www.mi.com/global/smartlamp/
2020-03-28 17:08:43 +00:00
0, 0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_KEY1), // GPIO02 Button
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_PWM1), // GPIO04 Cold White
AGPIO(GPIO_PWM1) +1, // GPIO05 Warm White
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_ROT1A), // GPIO12 Rotary switch A pin
AGPIO(GPIO_ROT1B), // GPIO13 Rotary switch B pin
2020-03-28 17:08:43 +00:00
0, 0, 0, 0
},
2020-08-18 10:42:48 +01:00
{ // SP10 - Tuya SP10 (BL0937 Energy Monitoring)
// https://www.aliexpress.com/item/Smart-Mini-WiFi-Plug-Outlet-Switch-Work-With-ForEcho-Alexa-Google-Home-Remote-EU-Smart-Socket/32963670423.html
0, // GPIO00
AGPIO(GPIO_PWM1), // GPIO01 Nightlight
0, // GPIO02
AGPIO(GPIO_KEY1), // GPIO03 Button
AGPIO(GPIO_HJL_CF), // GPIO04 BL0937 CF power
AGPIO(GPIO_NRG_CF1), // GPIO05 BL0937 CF1 voltage / current
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_NRG_SEL_INV), // GPIO12 BL0937 Sel output (1 = Voltage)
AGPIO(GPIO_LED1), // GPIO13 Blue LED - Link status
AGPIO(GPIO_REL1), // GPIO14 Relay and red LED
2020-03-28 17:08:43 +00:00
0, 0, 0
},
2020-08-18 10:42:48 +01:00
{ // WAGA - WAGA life CHCZ02MB (HJL-01 Energy Monitoring)
// https://www.ebay.com/itm/332595697006
AGPIO(GPIO_LED1_INV), // GPIO00 Red LED
0, // GPIO01 Serial RXD
0, // GPIO02
AGPIO(GPIO_NRG_SEL_INV), // GPIO03 HJL-01 Sel output (1 = Voltage)
0, // GPIO04
AGPIO(GPIO_HJL_CF), // GPIO05 HJL-01 CF power
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_REL1), // GPIO12 Relay
AGPIO(GPIO_KEY1), // GPIO13 Button
AGPIO(GPIO_NRG_CF1), // GPIO14 HJL-01 CF1 voltage / current
AGPIO(GPIO_LEDLNK_INV), // GPIO15 Blue LED - Link status
2020-03-28 17:08:43 +00:00
0, 0
},
2020-08-18 10:42:48 +01:00
{ // SYF05 - Sunyesmart SYF05 (a.k.a. Fcmila) = TYWE3S + SM16726
// Also works with Merkury 904 RGBW Bulbs with 13 set to GPIO_SM16716_SEL
// https://www.flipkart.com/fc-mila-bxav-xs-ad-smart-bulb/p/itmf85zgs45fzr7n
// https://docs.tuya.com/en/hardware/WiFi-module/wifi-e3s-module.html
// http://www.datasheet-pdf.com/PDF/SM16716-Datasheet-Sunmoon-932771
AGPIO(GPIO_USER), // GPIO00 N.C.
0, // GPIO01 Serial RXD
AGPIO(GPIO_USER), // GPIO02 N.C.
0, // GPIO03 Serial TXD
AGPIO(GPIO_SM16716_CLK), // GPIO04 SM16716 Clock
AGPIO(GPIO_PWM1), // GPIO05 White
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_USER), // GPIO12 Alt. White on some devices
AGPIO(GPIO_USER), // GPIO13 SM16716 Enable on some devices
AGPIO(GPIO_SM16716_DAT), // GPIO14 SM16716 Data
0, // GPIO15 wired to GND
AGPIO(GPIO_USER), // GPIO16 N.C.
AGPIO(ADC0_USER) // ADC0 A0 Analog input
},
/*
2020-08-18 10:42:48 +01:00
{ // SONOFF_L1 - Sonoff L1 RGB LED controller (ESP8266 w/ separate Nuvoton MCU)
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_TXD), // GPIO01 MCU serial control
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_RXD), // GPIO03 MCU serial control
2020-03-28 17:08:43 +00:00
0, 0,
2020-08-18 10:42:48 +01:00
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_LED1_INV), // GPIO13 WiFi Blue Led - Link and Power status
2020-03-28 17:08:43 +00:00
0, 0, 0, 0
},
*/
2020-08-18 10:42:48 +01:00
{ // SONOFF_IFAN03 - Sonoff iFan03 (ESP8285)
AGPIO(GPIO_KEY1), // GPIO00 WIFI_KEY0 Button 1
AGPIO(GPIO_TXD), // GPIO01 ESP_TXD Serial RXD connection to P0.5 of RF microcontroller
0, // GPIO02 ESP_LOG
AGPIO(GPIO_RXD), // GPIO03 ESP_RXD Serial TXD connection to P0.4 of RF microcontroller
0, // GPIO04 DEBUG_RX
0, // GPIO05 DEBUG_TX
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
AGPIO(GPIO_REL1_INV), // GPIO09 WIFI_O0 Relay 1 (0 = Off, 1 = On) controlling the light
AGPIO(GPIO_BUZZER_INV), // GPIO10 WIFI_O4 Buzzer (0 = Off, 1 = On)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_REL1) +2, // GPIO12 WIFI_O2 Relay 3 (0 = Off, 1 = On) controlling the fan
AGPIO(GPIO_LED1_INV), // GPIO13 WIFI_CHK Blue Led on PCA (0 = On, 1 = Off) - Link and Power status
AGPIO(GPIO_REL1) +1, // GPIO14 WIFI_O1 Relay 2 (0 = Off, 1 = On) controlling the fan
AGPIO(GPIO_REL1) +3, // GPIO15 WIFI_O3 Relay 4 (0 = Off, 1 = On) controlling the fan
2020-03-28 17:08:43 +00:00
0, 0
},
2020-08-18 10:42:48 +01:00
{ // EXS_DIMMER - EX-Store WiFi Dimmer v4, two channel (ESP8266 w/ separate MCU dimmer)
// https://ex-store.de/2-Kanal-RS232-WiFi-WLan-Dimmer-Modul-V4-fuer-Unterputzmontage-230V-3A
// https://ex-store.de/2-Kanal-RS232-WiFi-WLan-Dimmer-Modul-V4-fuer-Unterputzmontage-230V-3A-ESP8266-V12-Stift-und-Buchsenleisten
2020-03-28 17:08:43 +00:00
0,
2020-08-18 10:42:48 +01:00
AGPIO(GPIO_TXD), // GPIO01 MCU serial control
AGPIO(GPIO_LEDLNK), // GPIO02 LED Link
AGPIO(GPIO_RXD), // GPIO03 MCU serial control
AGPIO(GPIO_USER), // GPIO04
AGPIO(GPIO_USER), // GPIO05
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_USER), // GPIO12
AGPIO(GPIO_EXS_ENABLE), // GPIO13 EXS MCU Enable
AGPIO(GPIO_USER), // GPIO14
0, // GPIO15
2020-03-28 17:08:43 +00:00
0, 0
},
2020-08-18 10:42:48 +01:00
{ // PWM_DIMMER - Support for Martin Jerry/acenx/Tessan/NTONPOWER SD0x PWM
// dimmer switches. The brightness of the load for these dimmers is
// controlled by a PWM GPIO pin. There are typically power, up & down
// buttons and 4 LED's. Examples are:
// https://www.amazon.com/dp/B07FXYSVR1
// https://www.amazon.com/dp/B07V26Q3VD
// https://www.amazon.com/dp/B07K67D43J
// https://www.amazon.com/dp/B07TTGFWFM
AGPIO(GPIO_KEY1) +2, // GPIO00 Up button
AGPIO(GPIO_KEY1) +1, // GPIO01 Down button
0, // GPIO02
AGPIO(GPIO_LED1_INV) +3, // GPIO03 Level 5 LED
AGPIO(GPIO_LEDLNK_INV), // GPIO04 LED Link
AGPIO(GPIO_LED1_INV) +2, // GPIO05 Level 4 LED
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_LED1_INV) +1, // GPIO12 Level 3 LED
AGPIO(GPIO_PWM1), // GPIO13 Dimmer PWM
AGPIO(GPIO_LED1_INV), // GPIO12 Level 2 LED
AGPIO(GPIO_KEY1_INV), // GPIO15 Power button
AGPIO(GPIO_REL1_INV), // GPIO16 Power relay/Level 1 LED
2020-03-28 17:08:43 +00:00
0
},
/*
2020-08-18 10:42:48 +01:00
{ // SONOFF_D1 - Sonoff D1 RF Dimmer 433 (ESP8285)
AGPIO(GPIO_USER), // GPIO00 Pad
AGPIO(GPIO_TXD), // GPIO01 D1 control
0, // GPIO02
AGPIO(GPIO_RXD), // GPIO03 D1 control
0, // GPIO04 DEBUG_RX
0, // GPIO05 DEBUG_TX
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
0, // GPIO12
AGPIO(GPIO_LED1_INV), // GPIO13 WiFi Blue Led - Link and Power status
2020-03-28 17:08:43 +00:00
0, 0, 0, 0
},
*/
2020-08-18 10:42:48 +01:00
{ // SONOFF_ZB_BRIDGE - Sonoff Zigbee Bridge (ESP8266)
AGPIO(GPIO_LED1_INV), // GPIO00 Green Led (0 = On, 1 = Off) - Traffic between ESP and EFR
AGPIO(GPIO_ZIGBEE_TX), // GPIO01 Zigbee Serial control
0, // GPIO02
AGPIO(GPIO_ZIGBEE_RX), // GPIO03 Zigbee Serial control
AGPIO(GPIO_ZIGBEE_RST), // GPIO04 Zigbee Reset
0, // GPIO05 EFR32 Bootloader mode (drive Low for Gecko Bootloader, inactive or high for Zigbee EmberZNet)
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
AGPIO(GPIO_I2C_SDA), // GPIO12 I2C SDA - connected to 512KB EEPROM
AGPIO(GPIO_LEDLNK_INV), // GPIO13 Blue Led (0 = On, 1 = Off) - Link status
AGPIO(GPIO_I2C_SCL), // GPIO14 I2C SCL - connected to 512KB EEPROM
0, // GPIO15 connected to IO15 pad, also used for logging
AGPIO(GPIO_KEY1), // GPIO16 Button
0
}
};
#endif // ESP8266
#ifdef ESP32
#include "tasmota_template_ESP32.h"
#endif // ESP32
2019-10-27 11:04:08 +00:00
#endif // _TASMOTA_TEMPLATE_H_