2017-05-13 12:02:10 +01:00
/*
sonoff_template . h - template settings for Sonoff - Tasmota
2019-01-01 12:55:01 +00:00
Copyright ( C ) 2019 Theo Arends
2017-05-13 12:02:10 +01:00
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
2017-10-18 17:22:34 +01:00
# ifndef _SONOFF_TEMPLATE_H_
# define _SONOFF_TEMPLATE_H_
2017-02-11 14:06:23 +00:00
// User selectable GPIO functionality
2018-09-08 16:18:31 +01:00
// 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
2017-10-18 17:22:34 +01:00
enum UserSelectablePins {
2017-02-11 14:06:23 +00:00
GPIO_NONE , // Not used
GPIO_DHT11 , // DHT11
2017-12-03 13:06:15 +00:00
GPIO_DHT22 , // DHT21, DHT22, AM2301, AM2302, AM2321
GPIO_SI7021 , // iTead SI7021
2017-02-11 14:06:23 +00:00
GPIO_DSB , // Single wire DS18B20 or DS18S20
GPIO_I2C_SCL , // I2C SCL
GPIO_I2C_SDA , // I2C SDA
GPIO_WS2812 , // WS2812 Led string
2017-02-14 13:27:08 +00:00
GPIO_IRSEND , // IR remote
2017-02-11 14:06:23 +00:00
GPIO_SWT1 , // User connected external switches
2017-02-24 17:17:48 +00:00
GPIO_SWT2 ,
GPIO_SWT3 ,
GPIO_SWT4 ,
2018-06-28 13:28:14 +01:00
GPIO_SWT5 ,
GPIO_SWT6 ,
GPIO_SWT7 ,
GPIO_SWT8 ,
2017-03-09 16:48:04 +00:00
GPIO_KEY1 , // Button usually connected to GPIO0
2017-02-11 14:06:23 +00:00
GPIO_KEY2 ,
GPIO_KEY3 ,
GPIO_KEY4 ,
GPIO_REL1 , // Relays
GPIO_REL2 ,
GPIO_REL3 ,
GPIO_REL4 ,
2017-10-12 10:29:40 +01:00
GPIO_REL5 ,
GPIO_REL6 ,
GPIO_REL7 ,
GPIO_REL8 ,
2017-02-11 14:06:23 +00:00
GPIO_REL1_INV ,
GPIO_REL2_INV ,
GPIO_REL3_INV ,
GPIO_REL4_INV ,
2017-10-12 10:29:40 +01:00
GPIO_REL5_INV ,
GPIO_REL6_INV ,
GPIO_REL7_INV ,
GPIO_REL8_INV ,
2017-10-01 13:32:36 +01:00
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
2017-05-17 21:49:22 +01:00
GPIO_CNTR1 ,
GPIO_CNTR2 ,
GPIO_CNTR3 ,
GPIO_CNTR4 ,
2017-10-04 16:29:49 +01:00
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
2017-10-06 16:28:00 +01:00
GPIO_IRRECV , // IR receiver
2017-10-12 10:29:40 +01:00
GPIO_LED1 , // Leds
GPIO_LED2 ,
GPIO_LED3 ,
GPIO_LED4 ,
GPIO_LED1_INV ,
GPIO_LED2_INV ,
GPIO_LED3_INV ,
GPIO_LED4_INV ,
2017-12-16 14:51:45 +00:00
GPIO_MHZ_TXD , // MH-Z19 Serial interface
GPIO_MHZ_RXD , // MH-Z19 Serial interface
2018-10-17 11:27:05 +01:00
GPIO_PZEM0XX_TX , // PZEM0XX Serial interface
GPIO_PZEM004_RX , // PZEM004T Serial interface
2017-12-22 13:55:24 +00:00
GPIO_SAIR_TX , // SenseAir Serial interface
GPIO_SAIR_RX , // SenseAir Serial interface
2018-01-05 11:26:19 +00:00
GPIO_SPI_CS , // SPI Chip Select
GPIO_SPI_DC , // SPI Data Direction
2018-01-10 13:10:25 +00:00
GPIO_BACKLIGHT , // Display backlight control
GPIO_PMS5003 , // Plantower PMS5003 Serial interface
2018-09-08 17:17:36 +01:00
GPIO_SDS0X1_RX , // Nova Fitness SDS011 Serial interface
2018-03-20 13:31:11 +00:00
GPIO_SBR_TX , // Serial Bridge Serial interface
GPIO_SBR_RX , // Serial Bridge Serial interface
2018-04-20 13:31:09 +01:00
GPIO_SR04_TRIG , // SR04 Trigger pin
GPIO_SR04_ECHO , // SR04 Echo pin
2018-05-11 13:44:00 +01:00
GPIO_SDM120_TX , // SDM120 Serial interface
GPIO_SDM120_RX , // SDM120 Serial interface
2018-05-16 09:07:41 +01:00
GPIO_SDM630_TX , // SDM630 Serial interface
GPIO_SDM630_RX , // SDM630 Serial interface
2018-06-28 16:40:37 +01:00
GPIO_TM16CLK , // TM1638 Clock
GPIO_TM16DIO , // TM1638 Data I/O
GPIO_TM16STB , // TM1638 Strobe
2018-08-23 15:05:51 +01:00
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 ,
2018-10-17 11:27:05 +01:00
GPIO_PZEM016_RX , // PZEM-014,016 Serial Modbus interface
GPIO_PZEM017_RX , // PZEM-003,017 Serial Modbus interface
2018-09-07 06:54:29 +01:00
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
2018-10-27 02:01:09 +01:00
GPIO_TX20_TXD_BLACK , // TX20 Transmission Pin
2018-10-25 17:17:58 +01:00
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
2018-11-21 18:13:52 +00:00
GPIO_MGC3130_XFER , // MGC3130 Transfer
GPIO_MGC3130_RESET , // MGC3130 Reset
2018-11-27 14:11:10 +00:00
GPIO_SSPI_MISO , // Software SPI Master Input Slave Output
GPIO_SSPI_MOSI , // Software SPI Master Output Slave Input
GPIO_SSPI_SCLK , // Software SPI Serial Clock
GPIO_SSPI_CS , // Software SPI Chip Select
GPIO_SSPI_DC , // Software SPI Data or Command
2018-12-11 13:24:52 +00:00
GPIO_RF_SENSOR , // Rf receiver with sensor decoding
2018-12-18 09:22:41 +00:00
GPIO_AZ_TXD , // AZ-Instrument 7798 Serial interface
GPIO_AZ_RXD , // AZ-Instrument 7798 Serial interface
2018-12-30 10:45:21 +00:00
GPIO_MAX31855CS , // MAX31855 Serial interface
GPIO_MAX31855CLK , // MAX31855 Serial interface
GPIO_MAX31855DO , // MAX31855 Serial interface
2019-01-27 13:54:28 +00:00
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 ,
2019-02-04 11:53:10 +00:00
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
2019-02-04 17:18:47 +00:00
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
2019-02-08 11:46:07 +00:00
GPIO_PN532_RXD , // PN532 NFC Serial Rx
2019-01-31 18:28:38 +00:00
GPIO_SM16716_CLK , // SM16716 CLOCK
GPIO_SM16716_DAT , // SM16716 DATA
GPIO_SM16716_SEL , // SM16716 SELECT
2019-02-11 18:21:49 +00:00
GPIO_DI , // my92x1 PWM input
GPIO_DCKI , // my92x1 CLK input
GPIO_CSE7766_TX , // CSE7766 Serial interface (S31 and Pow R2)
GPIO_CSE7766_RX , // CSE7766 Serial interface (S31 and Pow R2)
2019-05-21 17:11:39 +01:00
GPIO_ARIRFRCV , // AriLux RF Receive input
2019-02-11 18:21:49 +00:00
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
2019-04-12 10:44:50 +01:00
GPIO_ADE7953_IRQ , // ADE7953 IRQ
2019-05-21 17:11:39 +01:00
GPIO_LEDLNK , // Link led
GPIO_LEDLNK_INV , // Inverted link led
GPIO_ARIRFSEL , // Arilux RF Receive input selected
2019-07-14 14:23:02 +01:00
GPIO_BUZZER , // Buzzer
GPIO_BUZZER_INV , // Inverted buzzer
2019-07-23 13:05:42 +01:00
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
2019-08-09 21:52:33 +01:00
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
2017-03-09 16:48:04 +00:00
GPIO_SENSOR_END } ;
2019-02-11 18:21:49 +00:00
// Programmer selectable GPIO functionality
2017-10-18 17:22:34 +01:00
enum ProgramSelectablePins {
2019-02-11 18:21:49 +00:00
GPIO_FIX_START = 251 ,
2018-01-05 11:26:19 +00:00
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
2019-02-11 18:21:49 +00:00
GPIO_USER , // User configurable needs to be 255
2017-02-11 14:06:23 +00:00
GPIO_MAX } ;
2017-01-28 13:41:01 +00:00
2018-02-01 15:18:00 +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 " | "
2018-06-28 13:28:14 +01:00
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| "
2018-02-01 15:18:00 +00:00
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 " | "
2018-10-17 11:27:05 +01:00
D_SENSOR_PZEM0XX_TX " | " D_SENSOR_PZEM004_RX " | "
2018-02-01 15:18:00 +00:00
D_SENSOR_SAIR_TX " | " D_SENSOR_SAIR_RX " | "
D_SENSOR_SPI_CS " | " D_SENSOR_SPI_DC " | " D_SENSOR_BACKLIGHT " | "
2018-09-08 17:17:36 +01:00
D_SENSOR_PMS5003 " | " D_SENSOR_SDS0X1_RX " | "
2018-04-20 13:31:09 +01:00
D_SENSOR_SBR_TX " | " D_SENSOR_SBR_RX " | "
2018-05-11 13:44:00 +01:00
D_SENSOR_SR04_TRIG " | " D_SENSOR_SR04_ECHO " | "
2018-05-16 09:07:41 +01:00
D_SENSOR_SDM120_TX " | " D_SENSOR_SDM120_RX " | "
2018-06-28 16:40:37 +01:00
D_SENSOR_SDM630_TX " | " D_SENSOR_SDM630_RX " | "
2018-08-23 15:05:51 +01:00
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| "
2018-09-06 16:35:57 +01:00
D_SENSOR_COUNTER " 1n| " D_SENSOR_COUNTER " 2n| " D_SENSOR_COUNTER " 3n| " D_SENSOR_COUNTER " 4n| "
2018-10-17 11:27:05 +01:00
D_SENSOR_PZEM016_RX " | " D_SENSOR_PZEM017_RX " | "
2018-10-11 17:26:49 +01:00
D_SENSOR_DFR562 " | " D_SENSOR_SDS0X1_TX " | "
2018-10-21 11:44:45 +01:00
D_SENSOR_HX711_SCK " | " D_SENSOR_HX711_DAT " | "
2018-10-25 17:17:58 +01:00
D_SENSOR_TX20_TX " | "
2018-10-27 02:01:09 +01:00
D_SENSOR_RFSEND " | " D_SENSOR_RFRECV " | "
2018-11-21 18:13:52 +00:00
D_SENSOR_TUYA_TX " | " D_SENSOR_TUYA_RX " | "
2018-11-27 14:11:10 +00:00
D_SENSOR_MGC3130_XFER " | " D_SENSOR_MGC3130_RESET " | "
2018-12-11 13:24:52 +00:00
D_SENSOR_SSPI_MISO " | " D_SENSOR_SSPI_MOSI " | " D_SENSOR_SSPI_SCLK " | " D_SENSOR_SSPI_CS " | " D_SENSOR_SSPI_DC " | "
2018-12-18 09:22:41 +00:00
D_SENSOR_RF_SENSOR " | "
2018-12-30 10:45:21 +00:00
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 " | "
2019-01-27 13:54:28 +00:00
D_SENSOR_BUTTON " 1i| " D_SENSOR_BUTTON " 2i| " D_SENSOR_BUTTON " 3i| " D_SENSOR_BUTTON " 4i| "
2019-01-30 22:57:47 +00:00
D_SENSOR_BUTTON " 1in| " D_SENSOR_BUTTON " 2in| " D_SENSOR_BUTTON " 3in| " D_SENSOR_BUTTON " 4in| "
2019-02-04 12:48:49 +00:00
D_SENSOR_NRG_SEL " | " D_SENSOR_NRG_SEL " i| " D_SENSOR_NRG_CF1 " | " D_SENSOR_HLW_CF " | " D_SENSOR_HJL_CF " | "
2019-02-04 18:14:05 +00:00
D_SENSOR_MCP39F5_TX " | " D_SENSOR_MCP39F5_RX " | " D_SENSOR_MCP39F5_RST " | "
2019-02-08 16:00:53 +00:00
D_SENSOR_PN532_TX " | " D_SENSOR_PN532_RX " | "
2019-02-11 18:21:49 +00:00
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 " | "
2019-04-12 10:44:50 +01:00
D_SENSOR_ADE7953_IRQ " | "
2019-05-21 17:11:39 +01:00
D_SENSOR_LED_LINK " | " D_SENSOR_LED_LINK " i| "
D_SENSOR_ARIRFSEL " | "
2019-07-14 14:23:02 +01:00
D_SENSOR_BUZZER " | " D_SENSOR_BUZZER " i| "
2019-07-23 13:05:42 +01:00
D_SENSOR_OLED_RESET " | "
2019-08-09 11:56:01 +01:00
D_SENSOR_SOLAXX1_TX " | " D_SENSOR_SOLAXX1_RX " | "
2019-08-09 21:52:33 +01:00
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 " | "
2019-01-27 13:54:28 +00:00
;
2018-11-11 15:58:21 +00:00
2019-05-13 14:56:01 +01: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_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_SENSOR_SWITCH "|" D_SENSOR_SWITCH "i|"
;
2017-01-28 13:41:01 +00:00
/********************************************************************************************/
2017-02-11 14:06:23 +00:00
// Supported hardware modules
2017-10-18 17:22:34 +01:00
enum SupportedModules {
2017-02-11 14:06:23 +00:00
SONOFF_BASIC ,
SONOFF_RF ,
SONOFF_SV ,
SONOFF_TH ,
SONOFF_DUAL ,
SONOFF_POW ,
SONOFF_4CH ,
2018-06-29 12:48:19 +01:00
SONOFF_S2X ,
2017-02-11 14:06:23 +00:00
SLAMPHER ,
SONOFF_TOUCH ,
SONOFF_LED ,
CH1 ,
CH4 ,
MOTOR ,
ELECTRODRAGON ,
2017-02-13 16:25:46 +00:00
EXS_RELAY ,
2017-02-28 15:01:48 +00:00
WION ,
2017-03-09 16:48:04 +00:00
WEMOS ,
2017-03-16 15:23:11 +00:00
SONOFF_DEV ,
2017-03-25 16:24:11 +00:00
H801 ,
2017-04-10 16:25:31 +01:00
SONOFF_SC ,
2017-07-03 10:45:15 +01:00
SONOFF_BN ,
2017-07-25 17:05:47 +01:00
SONOFF_4CHPRO ,
HUAFAN_SS ,
2017-07-30 16:55:37 +01:00
SONOFF_BRIDGE ,
2017-08-12 16:55:20 +01:00
SONOFF_B1 ,
2017-08-13 14:31:49 +01:00
AILIGHT ,
2017-08-16 21:56:32 +01:00
SONOFF_T11 ,
SONOFF_T12 ,
SONOFF_T13 ,
2017-08-19 17:08:06 +01:00
SUPLA1 ,
2017-09-10 14:51:44 +01:00
WITTY ,
YUNSHAN ,
2017-09-30 12:32:53 +01:00
MAGICHOME ,
2017-10-02 15:45:03 +01:00
LUANIHVIO ,
2017-10-23 11:18:15 +01:00
KMC_70011 ,
2017-11-15 22:07:45 +00:00
ARILUX_LC01 ,
ARILUX_LC11 ,
v5.9.1j - Add Dual R2, Rewrite DS18x20 and fixes
5.9.1j
* Revert changes to xsns_05_ds18x20.ino and rename to
xsns_05_ds18x20_legacy.ino still needing library OneWire and providing
legacy JSON message:
*
"DS18x20":{"DS1":{"Type":"DS18B20","Address":"284CC48E04000079","Temperature":19.5},"DS2":{"Type":"DS18B20","Address":"283AC28304000052","Temperature":19.6}}
* Add new xdrv_05_ds18x20.ino free from library OneWire and add the
following features:
* Add support for DS1822
* Add forced setting of
12-bit resolution for selected device types (#1222)
* Add read
temperature retry counter (#1215)
* Fix lost sensors by performing
sensor probe at restart only thereby removing dynamic sensor probe
(#1215)
* Fix sensor address sorting using ascending sort on sensor
type followed by sensor address
* Rewrite JSON resulting in shorter
message allowing more sensors in default firmware image:
*
"DS18B20-1":{"Id":"00000483C23A","Temperature":19.5},"DS18B20-2":{"Id":"0000048EC44C","Temperature":19.6}
* Add additional define in user_config.h to select either single sensor
(defines disabled), new multi sensor (USE_DS18X20) or legacy multi
sensor (USE_DS18X20_LEGACY)
* Add support for Sonoff Dual R2 (#1249)
*
Fix ADS1115 detection (#1258)
2017-11-27 16:46:51 +00:00
SONOFF_DUAL_R2 ,
2017-12-25 16:41:12 +00:00
ARILUX_LC06 ,
2018-02-03 22:25:05 +00:00
SONOFF_S31 ,
2018-03-21 08:27:05 +00:00
ZENGGE_ZF_WF017 ,
2018-04-20 15:55:27 +01:00
SONOFF_POW_R2 ,
2018-06-30 17:50:10 +01:00
SONOFF_IFAN02 ,
2018-11-24 15:08:53 +00:00
BLITZWOLF_BWSHP ,
2018-09-02 15:17:49 +01:00
SHELLY1 ,
SHELLY2 ,
2018-09-13 15:43:23 +01:00
PHILIPS ,
2018-09-27 17:36:42 +01:00
NEO_COOLCAM ,
2018-09-30 13:33:26 +01:00
ESP_SWITCH ,
2018-09-30 17:38:01 +01:00
OBI ,
2018-10-01 11:19:58 +01:00
TECKIN ,
2018-10-06 21:05:15 +01:00
APLIC_WDP303075 ,
2018-10-16 10:21:44 +01:00
TUYA_DIMMER ,
2018-11-08 09:24:10 +00:00
GOSUND ,
2018-11-16 09:39:57 +00:00
ARMTRONIX_DIMMERS ,
2018-11-18 23:02:09 +00:00
SK03_TUYA ,
2018-11-24 02:29:32 +00:00
PS_16_DZ ,
2018-11-29 14:13:28 +00:00
TECKIN_US ,
2018-12-11 13:49:58 +00:00
MANZOKU_EU_4 ,
2019-01-08 15:27:16 +00:00
OBI2 ,
YTF_IR_BRIDGE ,
2019-01-11 13:29:54 +00:00
DIGOO ,
2019-01-12 14:16:37 +00:00
KA10 ,
2019-01-13 18:33:27 +00:00
ZX2820 ,
2019-01-11 00:50:40 +00:00
MI_DESK_LAMP ,
2019-01-30 18:44:48 +00:00
SP10 ,
2019-02-01 13:54:35 +00:00
WAGA ,
2019-01-19 22:28:58 +00:00
SYF05 ,
2019-07-01 23:01:21 +01:00
SONOFF_L1 ,
2019-07-14 14:23:02 +01:00
SONOFF_IFAN03 ,
2019-04-10 13:54:50 +01:00
MAXMODULE } ;
2017-01-28 13:41:01 +00:00
2019-02-11 18:21:49 +00:00
# define USER_MODULE 255
2017-01-28 13:41:01 +00:00
/********************************************************************************************/
2019-01-07 15:33:18 +00:00
# define MAX_GPIO_PIN 17 // Number of supported GPIO
2018-12-29 18:46:28 +00:00
# define MIN_FLASH_PINS 4 // Number of flash chip pins unusable for configuration (GPIO6, 7, 8 and 11)
2017-01-28 13:41:01 +00:00
2018-08-30 13:27:33 +01:00
const char PINS_WEMOS [ ] PROGMEM = " D3TXD4RXD2D1flashcFLFLolD6D7D5D8D0A0 " ;
2017-10-14 10:26:49 +01:00
2017-01-28 13:41:01 +00:00
typedef struct MYIO {
uint8_t io [ MAX_GPIO_PIN ] ;
} myio ;
2018-12-29 18:46:28 +00:00
typedef struct MYCFGIO {
uint8_t io [ MAX_GPIO_PIN - MIN_FLASH_PINS ] ;
} mycfgio ;
2019-05-13 14:56:01 +01:00
# define GPIO_FLAG_USED 0 // Currently two flags used
2019-02-18 15:19:46 +00:00
2019-05-13 14:56:01 +01:00
# define GPIO_FLAG_SPARE04 16
# define GPIO_FLAG_SPARE05 32
# define GPIO_FLAG_SPARE06 64
# define GPIO_FLAG_SPARE07 128
2019-01-07 15:33:18 +00:00
typedef union {
uint8_t data ;
struct {
2019-05-13 14:56:01 +01:00
uint8_t adc0 : 4 ; // Allow ADC0 when define USE_ADC_VCC is disabled
2019-01-07 15:33:18 +00:00
uint8_t spare04 : 1 ;
uint8_t spare05 : 1 ;
uint8_t spare06 : 1 ;
uint8_t spare07 : 1 ;
} ;
} gpio_flag ;
2017-01-28 13:41:01 +00:00
typedef struct MYTMPLT {
2017-07-25 17:05:47 +01:00
char name [ 15 ] ;
2018-12-29 18:46:28 +00:00
mycfgio gp ;
2019-01-07 15:33:18 +00:00
gpio_flag flag ;
2017-01-28 13:41:01 +00:00
} mytmplt ;
2018-11-05 16:27:02 +00:00
const uint8_t kGpioNiceList [ ] PROGMEM = {
2018-09-08 16:18:31 +01:00
GPIO_NONE , // Not used
GPIO_KEY1 , // Buttons
GPIO_KEY1_NP ,
2019-01-27 13:54:28 +00:00
GPIO_KEY1_INV ,
GPIO_KEY1_INV_NP ,
2018-09-08 16:18:31 +01:00
GPIO_KEY2 ,
GPIO_KEY2_NP ,
2019-01-27 13:54:28 +00:00
GPIO_KEY2_INV ,
GPIO_KEY2_INV_NP ,
2018-09-08 16:18:31 +01:00
GPIO_KEY3 ,
GPIO_KEY3_NP ,
2019-01-27 13:54:28 +00:00
GPIO_KEY3_INV ,
GPIO_KEY3_INV_NP ,
2018-09-08 16:18:31 +01:00
GPIO_KEY4 ,
GPIO_KEY4_NP ,
2019-01-27 13:54:28 +00:00
GPIO_KEY4_INV ,
GPIO_KEY4_INV_NP ,
2018-09-08 16:18:31 +01:00
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 ,
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 ,
2019-05-21 17:11:39 +01:00
GPIO_LEDLNK , // Link led
GPIO_LEDLNK_INV , // Inverted link led
2018-09-08 16:18:31 +01:00
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 ,
2019-06-16 15:43:23 +01:00
# ifdef USE_COUNTER
2018-09-08 16:18:31 +01:00
GPIO_CNTR1 , // Counters
GPIO_CNTR1_NP ,
GPIO_CNTR2 ,
GPIO_CNTR2_NP ,
GPIO_CNTR3 ,
GPIO_CNTR3_NP ,
GPIO_CNTR4 ,
GPIO_CNTR4_NP ,
2019-06-16 15:43:23 +01:00
# endif
2019-08-12 16:18:08 +01:00
# ifdef USE_BUZZER
2019-07-14 14:23:02 +01:00
GPIO_BUZZER , // Buzzer
GPIO_BUZZER_INV , // Inverted buzzer
2019-08-12 16:18:08 +01:00
# endif
2019-02-11 18:21:49 +00:00
GPIO_TXD , // Serial interface
GPIO_RXD , // Serial interface
2018-11-05 16:27:02 +00:00
# ifdef USE_I2C
2018-09-08 16:18:31 +01:00
GPIO_I2C_SCL , // I2C SCL
GPIO_I2C_SDA , // I2C SDA
2018-11-05 16:27:02 +00:00
# endif
# ifdef USE_SPI
2018-09-08 16:18:31 +01:00
GPIO_SPI_CS , // SPI Chip Select
GPIO_SPI_DC , // SPI Data Direction
2018-11-27 14:11:10 +00:00
GPIO_SSPI_MISO , // Software SPI Master Input Slave Output
GPIO_SSPI_MOSI , // Software SPI Master Output Slave Input
GPIO_SSPI_SCLK , // Software SPI Serial Clock
GPIO_SSPI_CS , // Software SPI Chip Select
GPIO_SSPI_DC , // Software SPI Data or Command
2018-11-05 16:27:02 +00:00
# endif
# ifdef USE_DISPLAY
2018-09-08 16:18:31 +01:00
GPIO_BACKLIGHT , // Display backlight control
2019-07-23 13:05:42 +01:00
GPIO_OLED_RESET , // OLED Display Reset
2018-11-05 16:27:02 +00:00
# endif
2019-06-16 16:03:41 +01:00
# ifdef USE_DHT
2018-09-08 16:18:31 +01:00
GPIO_DHT11 , // DHT11
GPIO_DHT22 , // DHT21, DHT22, AM2301, AM2302, AM2321
GPIO_SI7021 , // iTead SI7021
2019-06-16 16:03:41 +01:00
# endif
2019-04-05 16:46:26 +01:00
# if defined(USE_DS18B20) || defined(USE_DS18x20) || defined(USE_DS18x20_LEGACY)
2018-09-08 16:18:31 +01:00
GPIO_DSB , // Single wire DS18B20 or DS18S20
2019-04-05 16:46:26 +01:00
# endif
2019-09-02 15:41:18 +01:00
// Light
# ifdef USE_LIGHT
# ifdef USE_WS2812
2018-09-08 16:18:31 +01:00
GPIO_WS2812 , // WS2812 Led string
2018-11-05 16:27:02 +00:00
# endif
2019-09-02 15:41:18 +01:00
# ifdef USE_ARILUX_RF
GPIO_ARIRFRCV , // AriLux RF Receive input
GPIO_ARIRFSEL , // Arilux RF Receive input selected
# endif
GPIO_DI , // my92x1 PWM input
GPIO_DCKI , // my92x1 CLK input
# ifdef USE_SM16716
GPIO_SM16716_CLK , // SM16716 CLOCK
GPIO_SM16716_DAT , // SM16716 DATA
GPIO_SM16716_SEL , // SM16716 SELECT
# endif // USE_SM16716
2019-09-03 12:23:05 +01:00
# ifdef USE_TUYA_MCU
2019-09-02 15:41:18 +01:00
GPIO_TUYA_TX , // Tuya Serial interface
GPIO_TUYA_RX , // Tuya Serial interface
# endif
# endif // USE_LIGHT
2019-08-28 21:01:01 +01:00
# if defined(USE_IR_REMOTE) || defined(USE_IR_REMOTE_FULL)
2018-09-08 16:18:31 +01:00
GPIO_IRSEND , // IR remote
2019-08-28 21:01:01 +01:00
# if defined(USE_IR_RECEIVE) || defined(USE_IR_REMOTE_FULL)
2018-09-08 16:18:31 +01:00
GPIO_IRRECV , // IR receiver
2018-11-05 16:27:02 +00:00
# endif
# endif
2019-09-02 15:41:18 +01:00
2018-11-05 16:27:02 +00:00
# ifdef USE_RC_SWITCH
2018-10-25 17:17:58 +01:00
GPIO_RFSEND , // RF transmitter
GPIO_RFRECV , // RF receiver
2018-11-05 16:27:02 +00:00
# endif
2018-12-11 13:24:52 +00:00
# ifdef USE_RF_SENSOR
GPIO_RF_SENSOR , // Rf receiver with sensor decoding
# endif
2018-11-05 16:27:02 +00:00
# ifdef USE_SR04
2018-09-08 16:18:31 +01:00
GPIO_SR04_TRIG , // SR04 Trigger pin
GPIO_SR04_ECHO , // SR04 Echo pin
2018-11-05 16:27:02 +00:00
# endif
# ifdef USE_TM1638
2018-09-08 16:18:31 +01:00
GPIO_TM16CLK , // TM1638 Clock
GPIO_TM16DIO , // TM1638 Data I/O
GPIO_TM16STB , // TM1638 Strobe
2018-11-05 16:27:02 +00:00
# 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
2018-11-05 16:27:02 +00:00
# endif
2019-09-02 15:41:18 +01:00
// Energy sensors
# ifdef USE_ENERGY_SENSOR
# ifdef USE_HLW8012
2019-02-04 17:18:47 +00:00
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
2019-04-12 10:44:50 +01:00
# endif
2019-09-02 15:41:18 +01:00
# if defined(USE_I2C) && defined(USE_ADE7953)
2019-04-12 10:44:50 +01:00
GPIO_ADE7953_IRQ , // ADE7953 IRQ
2018-11-05 16:27:02 +00:00
# endif
2019-02-11 18:21:49 +00:00
GPIO_CSE7766_TX , // CSE7766 Serial interface (S31 and Pow R2)
GPIO_CSE7766_RX , // CSE7766 Serial interface (S31 and Pow R2)
2019-09-02 15:41:18 +01:00
# ifdef USE_MCP39F501
2019-02-04 17:18:47 +00:00
GPIO_MCP39F5_TX , // MCP39F501 Serial interface (Shelly2)
GPIO_MCP39F5_RX , // MCP39F501 Serial interface (Shelly2)
GPIO_MCP39F5_RST , // MCP39F501 Reset (Shelly2)
2018-11-05 16:27:02 +00:00
# endif
# if defined(USE_PZEM004T) || defined(USE_PZEM_AC) || defined(USE_PZEM_DC)
2018-10-17 11:27:05 +01:00
GPIO_PZEM0XX_TX , // PZEM0XX Serial interface
2018-11-05 16:27:02 +00:00
# endif
# ifdef USE_PZEM004T
2018-10-17 11:27:05 +01:00
GPIO_PZEM004_RX , // PZEM004T Serial interface
2018-11-05 16:27:02 +00:00
# endif
# ifdef USE_PZEM_AC
2018-10-17 11:27:05 +01:00
GPIO_PZEM016_RX , // PZEM-014,016 Serial Modbus interface
2018-11-05 16:27:02 +00:00
# endif
# ifdef USE_PZEM_DC
2018-10-17 11:27:05 +01:00
GPIO_PZEM017_RX , // PZEM-003,017 Serial Modbus interface
2018-11-05 16:27:02 +00:00
# endif
2019-09-02 15:41:18 +01:00
# ifdef USE_SDM120_2
GPIO_SDM120_TX , // SDM120 Serial interface
GPIO_SDM120_RX , // SDM120 Serial interface
# endif
# endif // USE_ENERGY_SENSOR
# ifndef USE_SDM120_2
2018-11-05 16:27:02 +00:00
# ifdef USE_SDM120
2018-09-08 16:18:31 +01:00
GPIO_SDM120_TX , // SDM120 Serial interface
GPIO_SDM120_RX , // SDM120 Serial interface
2018-11-05 16:27:02 +00:00
# endif
2019-09-02 15:41:18 +01:00
# endif // USE_SDM120_2
2018-11-05 16:27:02 +00:00
# ifdef USE_SDM630
2018-09-08 16:18:31 +01:00
GPIO_SDM630_TX , // SDM630 Serial interface
GPIO_SDM630_RX , // SDM630 Serial interface
2018-11-05 16:27:02 +00:00
# endif
2019-09-02 15:41:18 +01:00
# ifdef USE_SOLAX_X1
GPIO_SOLAXX1_TX , // Solax Inverter tx pin
GPIO_SOLAXX1_RX , // Solax Inverter rx pin
# endif
2019-02-04 17:18:47 +00:00
# ifdef USE_SERIAL_BRIDGE
GPIO_SBR_TX , // Serial Bridge Serial interface
GPIO_SBR_RX , // Serial Bridge Serial interface
2019-08-09 21:52:33 +01:00
# endif
# ifdef USE_ZIGBEE
GPIO_ZIGBEE_TX , // Zigbee Serial interface
GPIO_ZIGBEE_RX , // Zigbee Serial interface
2019-02-04 17:18:47 +00:00
# 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
2018-11-05 16:27:02 +00:00
# ifdef USE_PMS5003
2018-09-08 16:18:31 +01:00
GPIO_PMS5003 , // Plantower PMS5003 Serial interface
2018-11-05 16:27:02 +00:00
# endif
# ifdef USE_TX20_WIND_SENSOR
2018-10-21 11:44:45 +01:00
GPIO_TX20_TXD_BLACK , // TX20 Transmission Pin
2018-11-05 16:27:02 +00:00
# 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
2018-11-05 16:27:02 +00:00
# endif
2018-12-18 09:22:41 +00:00
# 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
2018-12-18 09:22:41 +00:00
# endif
2019-02-08 11:46:07 +00:00
# ifdef USE_PN532_HSU
GPIO_PN532_TXD , // PN532 HSU Tx
GPIO_PN532_RXD , // PN532 HSU Rx
# endif
2019-08-19 10:47:59 +01:00
# ifdef USE_RDM6300
GPIO_RDM6300_RX ,
# endif
2019-08-25 11:29:48 +01:00
# ifdef USE_IBEACON
GPIO_IBEACON_RX ,
GPIO_IBEACON_TX ,
# endif
2019-02-08 11:46:07 +00:00
# ifdef USE_MGC3130
GPIO_MGC3130_XFER ,
GPIO_MGC3130_RESET ,
# endif
2018-12-30 10:45:21 +00:00
# ifdef USE_MAX31855
2019-01-12 14:16:37 +00:00
GPIO_MAX31855CS , // MAX31855 Serial interface
GPIO_MAX31855CLK , // MAX31855 Serial interface
GPIO_MAX31855DO , // MAX31855 Serial interface
2018-12-30 10:45:21 +00:00
# endif
2019-04-05 07:41:26 +01:00
# ifdef ROTARY_V1
2019-02-11 18:21:49 +00:00
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-04-05 14:27:06 +01:00
# endif
2019-03-23 23:26:03 +00:00
# ifdef USE_HRE
GPIO_HRE_CLOCK ,
2019-08-19 10:47:59 +01:00
GPIO_HRE_DATA ,
2019-04-05 14:27:06 +01:00
# endif
2018-09-08 16:18:31 +01:00
} ;
2019-04-05 14:27:06 +01:00
const uint8_t kModuleNiceList [ ] PROGMEM = {
2018-10-01 11:19:58 +01:00
SONOFF_BASIC , // Sonoff Relay Devices
2017-08-18 17:04:49 +01:00
SONOFF_RF ,
SONOFF_TH ,
SONOFF_DUAL ,
v5.9.1j - Add Dual R2, Rewrite DS18x20 and fixes
5.9.1j
* Revert changes to xsns_05_ds18x20.ino and rename to
xsns_05_ds18x20_legacy.ino still needing library OneWire and providing
legacy JSON message:
*
"DS18x20":{"DS1":{"Type":"DS18B20","Address":"284CC48E04000079","Temperature":19.5},"DS2":{"Type":"DS18B20","Address":"283AC28304000052","Temperature":19.6}}
* Add new xdrv_05_ds18x20.ino free from library OneWire and add the
following features:
* Add support for DS1822
* Add forced setting of
12-bit resolution for selected device types (#1222)
* Add read
temperature retry counter (#1215)
* Fix lost sensors by performing
sensor probe at restart only thereby removing dynamic sensor probe
(#1215)
* Fix sensor address sorting using ascending sort on sensor
type followed by sensor address
* Rewrite JSON resulting in shorter
message allowing more sensors in default firmware image:
*
"DS18B20-1":{"Id":"00000483C23A","Temperature":19.5},"DS18B20-2":{"Id":"0000048EC44C","Temperature":19.6}
* Add additional define in user_config.h to select either single sensor
(defines disabled), new multi sensor (USE_DS18X20) or legacy multi
sensor (USE_DS18X20_LEGACY)
* Add support for Sonoff Dual R2 (#1249)
*
Fix ADS1115 detection (#1258)
2017-11-27 16:46:51 +00:00
SONOFF_DUAL_R2 ,
2017-08-18 17:04:49 +01:00
SONOFF_POW ,
2018-04-20 15:55:27 +01:00
SONOFF_POW_R2 ,
2017-08-18 17:04:49 +01:00
SONOFF_4CH ,
SONOFF_4CHPRO ,
2018-10-01 11:19:58 +01:00
SONOFF_S31 , // Sonoff Socket Relay Devices with Energy Monitoring
SONOFF_S2X , // Sonoff Socket Relay Devices
SONOFF_TOUCH , // Sonoff Switch Devices
2017-08-18 17:04:49 +01:00
SONOFF_T11 ,
SONOFF_T12 ,
SONOFF_T13 ,
2018-10-01 11:19:58 +01:00
SONOFF_LED , // Sonoff Light Devices
2017-08-18 17:04:49 +01:00
SONOFF_BN ,
2019-07-02 09:54:30 +01:00
# ifdef USE_PS_16_DZ
SONOFF_L1 ,
# endif
2018-10-01 11:19:58 +01:00
SONOFF_B1 , // Sonoff Light Bulbs
SLAMPHER ,
SONOFF_SC , // Sonoff Environmemtal Sensor
2019-07-14 21:08:19 +01:00
# ifdef USE_SONOFF_IFAN
2018-10-01 11:19:58 +01:00
SONOFF_IFAN02 , // Sonoff Fan
2019-07-14 14:23:02 +01:00
SONOFF_IFAN03 ,
2019-07-14 21:08:19 +01:00
# endif
2018-10-01 11:19:58 +01:00
SONOFF_BRIDGE , // Sonoff Bridge
SONOFF_SV , // Sonoff Development Devices
SONOFF_DEV ,
CH1 , // Relay Devices
2017-08-18 17:04:49 +01:00
CH4 ,
MOTOR ,
ELECTRODRAGON ,
EXS_RELAY ,
2017-08-19 17:08:06 +01:00
SUPLA1 ,
2017-10-02 15:45:03 +01:00
LUANIHVIO ,
2017-09-10 14:51:44 +01:00
YUNSHAN ,
2017-08-18 17:04:49 +01:00
WION ,
2018-09-02 15:17:49 +01:00
SHELLY1 ,
SHELLY2 ,
2019-01-12 14:16:37 +00:00
BLITZWOLF_BWSHP , // Socket Relay Devices with Energy Monitoring
2018-10-01 11:19:58 +01:00
TECKIN ,
2018-11-29 14:13:28 +00:00
TECKIN_US ,
2018-10-07 11:37:03 +01:00
APLIC_WDP303075 ,
2018-11-08 09:24:10 +00:00
GOSUND ,
2019-01-14 09:57:01 +00:00
ZX2820 ,
2018-11-18 23:02:09 +00:00
SK03_TUYA ,
2019-01-11 13:29:54 +00:00
DIGOO ,
2019-01-12 14:16:37 +00:00
KA10 ,
2019-01-30 18:44:48 +00:00
SP10 ,
2019-02-01 13:54:35 +00:00
WAGA ,
2019-01-12 14:16:37 +00:00
NEO_COOLCAM , // Socket Relay Devices
2018-09-30 17:38:01 +01:00
OBI ,
2019-01-08 15:27:16 +00:00
OBI2 ,
2018-12-11 13:49:58 +00:00
MANZOKU_EU_4 ,
2019-01-12 14:16:37 +00:00
ESP_SWITCH , // Switch Devices
2019-09-03 12:23:05 +01:00
# ifdef USE_TUYA_MCU
2019-01-12 14:16:37 +00:00
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 ,
2019-04-05 16:46:26 +01:00
# endif
2019-01-12 14:16:37 +00:00
H801 , // Light Devices
2017-09-30 12:32:53 +01:00
MAGICHOME ,
2017-11-15 22:07:45 +00:00
ARILUX_LC01 ,
2017-12-25 16:41:12 +00:00
ARILUX_LC06 ,
2017-11-15 22:07:45 +00:00
ARILUX_LC11 ,
2018-03-21 08:27:05 +00:00
ZENGGE_ZF_WF017 ,
2017-08-18 17:04:49 +01:00
HUAFAN_SS ,
2019-04-05 07:41:26 +01:00
# ifdef ROTARY_V1
2019-01-11 00:50:40 +00:00
MI_DESK_LAMP ,
2019-04-05 14:27:06 +01:00
# endif
2017-10-23 11:18:15 +01:00
KMC_70011 ,
2019-01-12 14:16:37 +00:00
AILIGHT , // Light Bulbs
2018-09-26 10:56:58 +01:00
PHILIPS ,
2019-02-09 12:24:35 +00:00
SYF05 ,
2019-01-08 15:27:16 +00:00
YTF_IR_BRIDGE ,
2019-01-12 14:16:37 +00:00
WITTY , // Development Devices
2019-02-09 12:24:35 +00:00
WEMOS
2017-08-18 17:04:49 +01:00
} ;
2017-02-11 14:06:23 +00:00
// Default module settings
2017-10-18 17:22:34 +01:00
const mytmplt kModules [ MAXMODULE ] PROGMEM = {
2017-03-09 16:48:04 +00:00
{ " Sonoff Basic " , // Sonoff Basic (ESP8266)
2017-01-28 13:41:01 +00:00
GPIO_KEY1 , // GPIO00 Button
2017-03-09 16:48:04 +00:00
GPIO_USER , // GPIO01 Serial RXD and Optional sensor
2018-12-03 15:30:06 +00:00
GPIO_USER , // GPIO02 Only available on newer Sonoff Basic R2 V1
2017-01-28 13:41:01 +00:00
GPIO_USER , // GPIO03 Serial TXD and Optional sensor
GPIO_USER , // GPIO04 Optional sensor
2017-02-24 17:17:48 +00:00
0 , // GPIO05
2018-12-29 18:46:28 +00: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)
2017-01-28 13:41:01 +00:00
GPIO_REL1 , // GPIO12 Red Led and Relay (0 = Off, 1 = On)
2019-01-08 10:44:45 +00:00
GPIO_LED1_INV , // GPIO13 Green Led (0 = On, 1 = Off) - Link and Power status
2017-01-28 13:41:01 +00:00
GPIO_USER , // GPIO14 Optional sensor
2017-02-24 17:17:48 +00:00
0 , // GPIO15
2017-03-14 17:03:25 +00:00
0 , // GPIO16
0 // ADC0 Analog input
2017-01-28 13:41:01 +00:00
} ,
2017-03-09 16:48:04 +00:00
{ " Sonoff RF " , // Sonoff RF (ESP8266)
2017-01-28 13:41:01 +00:00
GPIO_KEY1 , // GPIO00 Button
2017-03-09 16:48:04 +00:00
GPIO_USER , // GPIO01 Serial RXD and Optional sensor
2019-01-06 17:02:21 +00:00
GPIO_USER , // GPIO02 Optional sensor
2017-01-28 13:41:01 +00:00
GPIO_USER , // GPIO03 Serial TXD and Optional sensor
GPIO_USER , // GPIO04 Optional sensor
2017-03-09 16:48:04 +00:00
0 ,
2018-12-29 18:46:28 +00: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)
2017-01-28 13:41:01 +00:00
GPIO_REL1 , // GPIO12 Red Led and Relay (0 = Off, 1 = On)
2019-01-08 10:44:45 +00:00
GPIO_LED1_INV , // GPIO13 Green Led (0 = On, 1 = Off) - Link and Power status
2017-01-28 13:41:01 +00:00
GPIO_USER , // GPIO14 Optional sensor
2017-03-14 17:03:25 +00:00
0 , 0 , 0
2017-01-28 13:41:01 +00:00
} ,
2017-03-09 16:48:04 +00:00
{ " Sonoff SV " , // Sonoff SV (ESP8266)
2017-01-28 13:41:01 +00:00
GPIO_KEY1 , // GPIO00 Button
2017-03-09 16:48:04 +00:00
GPIO_USER , // GPIO01 Serial RXD and Optional sensor
0 ,
2017-01-28 13:41:01 +00:00
GPIO_USER , // GPIO03 Serial TXD and Optional sensor
GPIO_USER , // GPIO04 Optional sensor
2017-02-10 16:03:34 +00:00
GPIO_USER , // GPIO05 Optional sensor
2018-12-29 18:46:28 +00: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)
2017-01-28 13:41:01 +00:00
GPIO_REL1 , // GPIO12 Red Led and Relay (0 = Off, 1 = On)
2019-01-08 10:44:45 +00:00
GPIO_LED1_INV , // GPIO13 Green Led (0 = On, 1 = Off) - Link and Power status
2017-01-28 13:41:01 +00:00
GPIO_USER , // GPIO14 Optional sensor
2017-03-14 17:03:25 +00:00
0 , 0 ,
2019-05-13 14:56:01 +01:00
ADC0_USER // ADC0 Analog input
2017-01-28 13:41:01 +00:00
} ,
2017-03-09 16:48:04 +00:00
{ " Sonoff TH " , // Sonoff TH10/16 (ESP8266)
2017-01-28 13:41:01 +00:00
GPIO_KEY1 , // GPIO00 Button
2017-03-09 16:48:04 +00:00
GPIO_USER , // GPIO01 Serial RXD and Optional sensor
0 ,
2017-01-28 13:41:01 +00:00
GPIO_USER , // GPIO03 Serial TXD and Optional sensor
GPIO_USER , // GPIO04 Optional sensor
2017-03-09 16:48:04 +00:00
0 ,
2018-12-29 18:46:28 +00: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)
2017-01-28 13:41:01 +00:00
GPIO_REL1 , // GPIO12 Red Led and Relay (0 = Off, 1 = On)
2019-01-08 10:44:45 +00:00
GPIO_LED1_INV , // GPIO13 Green Led (0 = On, 1 = Off) - Link and Power status
2017-01-28 13:41:01 +00:00
GPIO_USER , // GPIO14 Optional sensor
2017-03-14 17:03:25 +00:00
0 , 0 , 0
2017-01-28 13:41:01 +00:00
} ,
2017-03-09 16:48:04 +00:00
{ " Sonoff Dual " , // Sonoff Dual (ESP8266)
2017-01-28 13:41:01 +00:00
0 ,
GPIO_TXD , // GPIO01 Relay control
0 ,
GPIO_RXD , // GPIO03 Relay control
2017-02-17 16:18:41 +00:00
GPIO_USER , // GPIO04 Optional sensor
2017-03-09 16:48:04 +00:00
0 ,
2018-12-29 18:46:28 +00: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)
2017-03-09 16:48:04 +00:00
0 ,
2019-01-08 10:44:45 +00:00
GPIO_LED1_INV , // GPIO13 Blue Led (0 = On, 1 = Off) - Link and Power status
2017-09-10 14:51:44 +01:00
GPIO_USER , // GPIO14 Optional sensor
0 , 0 , 0
2017-01-28 13:41:01 +00:00
} ,
2018-04-20 15:55:27 +01:00
{ " Sonoff Pow " , // Sonoff Pow (ESP8266 - HLW8012)
2017-01-28 13:41:01 +00:00
GPIO_KEY1 , // GPIO00 Button
0 , 0 , 0 , 0 ,
2018-10-07 11:37:03 +01:00
GPIO_NRG_SEL , // GPIO05 HLW8012 Sel output (1 = Voltage)
2018-12-29 18:46:28 +00: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)
2017-01-28 13:41:01 +00:00
GPIO_REL1 , // GPIO12 Red Led and Relay (0 = Off, 1 = On)
2018-10-07 11:37:03 +01:00
GPIO_NRG_CF1 , // GPIO13 HLW8012 CF1 voltage / current
2017-01-28 13:41:01 +00:00
GPIO_HLW_CF , // GPIO14 HLW8012 CF power
2019-01-08 10:44:45 +00:00
GPIO_LED1 , // GPIO15 Blue Led (0 = On, 1 = Off) - Link and Power status
2017-03-14 17:03:25 +00:00
0 , 0
2017-01-28 13:41:01 +00:00
} ,
2017-03-09 16:48:04 +00:00
{ " Sonoff 4CH " , // Sonoff 4CH (ESP8285)
2017-01-28 13:41:01 +00:00
GPIO_KEY1 , // GPIO00 Button 1
2017-03-09 16:48:04 +00:00
GPIO_USER , // GPIO01 Serial RXD and Optional sensor
2017-01-28 13:41:01 +00:00
GPIO_USER , // GPIO02 Optional sensor
2017-02-04 16:09:54 +00:00
GPIO_USER , // GPIO03 Serial TXD and Optional sensor
2017-01-28 13:41:01 +00:00
GPIO_REL3 , // GPIO04 Sonoff 4CH Red Led and Relay 3 (0 = Off, 1 = On)
GPIO_REL2 , // GPIO05 Sonoff 4CH Red Led and Relay 2 (0 = Off, 1 = On)
2018-12-29 18:46:28 +00:00
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
2017-01-28 13:41:01 +00:00
GPIO_KEY2 , // GPIO09 Button 2
GPIO_KEY3 , // GPIO10 Button 3
2018-12-29 18:46:28 +00:00
// GPIO11 (SD_CMD Flash)
2019-01-08 10:44:45 +00:00
GPIO_REL1 , // GPIO12 Red Led and Relay 1 (0 = Off, 1 = On) - Link and Power status
2017-03-09 16:48:04 +00:00
GPIO_LED1_INV , // GPIO13 Blue Led (0 = On, 1 = Off)
2017-01-28 13:41:01 +00:00
GPIO_KEY4 , // GPIO14 Button 4
GPIO_REL4 , // GPIO15 Red Led and Relay 4 (0 = Off, 1 = On)
2017-03-14 17:03:25 +00:00
0 , 0
2017-01-28 13:41:01 +00:00
} ,
2018-06-29 12:48:19 +01:00
{ " Sonoff S2X " , // Sonoff S20, S22 and S26 Smart Socket (ESP8266)
2017-01-28 13:41:01 +00:00
GPIO_KEY1 , // GPIO00 Button
2017-04-10 16:25:31 +01:00
GPIO_USER , // GPIO01 Serial RXD and Optional sensor
2018-06-29 12:48:19 +01:00
GPIO_USER , // GPIO02 Optional sensor
2017-04-10 16:25:31 +01:00
GPIO_USER , // GPIO03 Serial TXD and Optional sensor
0 , 0 ,
2018-12-29 18:46:28 +00: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)
2019-01-08 10:44:45 +00:00
GPIO_REL1 , // GPIO12 Red Led and Relay (0 = Off, 1 = On) - Link and Power status
2018-06-29 12:48:19 +01:00
GPIO_LED1_INV , // GPIO13 Green/Blue Led (0 = On, 1 = Off)
2017-03-14 17:03:25 +00:00
0 , 0 , 0 , 0
2017-01-28 13:41:01 +00:00
} ,
2017-03-09 16:48:04 +00:00
{ " Slampher " , // Slampher (ESP8266)
2017-01-28 13:41:01 +00:00
GPIO_KEY1 , // GPIO00 Button
2017-04-10 16:25:31 +01:00
GPIO_USER , // GPIO01 Serial RXD and Optional sensor
0 ,
GPIO_USER , // GPIO03 Serial TXD and Optional sensor
0 , 0 ,
2018-12-29 18:46:28 +00: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)
2017-01-28 13:41:01 +00:00
GPIO_REL1 , // GPIO12 Red Led and Relay (0 = Off, 1 = On)
2019-01-08 10:44:45 +00:00
GPIO_LED1_INV , // GPIO13 Blue Led (0 = On, 1 = Off) - Link and Power status
2017-03-14 17:03:25 +00:00
0 , 0 , 0 , 0
2017-01-28 13:41:01 +00:00
} ,
2017-03-09 16:48:04 +00:00
{ " Sonoff Touch " , // Sonoff Touch (ESP8285)
2017-01-28 13:41:01 +00:00
GPIO_KEY1 , // GPIO00 Button
2017-03-19 17:19:08 +00:00
GPIO_USER , // GPIO01 Serial RXD and Optional sensor
0 ,
GPIO_USER , // GPIO03 Serial TXD and Optional sensor
0 , 0 ,
2018-12-29 18:46:28 +00:00
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0 , // GPIO09
0 , // GPIO10
// GPIO11 (SD_CMD Flash)
2019-01-08 10:44:45 +00:00
GPIO_REL1 , // GPIO12 Red Led and Relay (0 = Off, 1 = On) - Link and Power status
2017-01-28 13:41:01 +00:00
GPIO_LED1_INV , // GPIO13 Blue Led (0 = On, 1 = Off)
2017-03-14 17:03:25 +00:00
0 , 0 , 0 , 0
2017-01-28 13:41:01 +00:00
} ,
2017-03-09 16:48:04 +00:00
{ " Sonoff LED " , // Sonoff LED (ESP8266)
2017-01-28 13:41:01 +00:00
GPIO_KEY1 , // GPIO00 Button
0 , 0 , 0 ,
2017-02-19 16:49:17 +00:00
GPIO_USER , // GPIO04 Optional sensor (PWM3 Green)
GPIO_USER , // GPIO05 Optional sensor (PWM2 Red)
2018-12-29 18:46:28 +00: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)
2017-03-19 17:19:08 +00:00
GPIO_PWM1 , // GPIO12 Cold light (PWM0 Cold)
2019-01-08 10:44:45 +00:00
GPIO_LED1_INV , // GPIO13 Blue Led (0 = On, 1 = Off) - Link and Power status
2017-03-19 17:19:08 +00:00
GPIO_PWM2 , // GPIO14 Warm light (PWM1 Warm)
2017-02-19 16:49:17 +00:00
GPIO_USER , // GPIO15 Optional sensor (PWM4 Blue)
2017-03-14 17:03:25 +00:00
0 , 0
2017-01-28 13:41:01 +00:00
} ,
2017-07-15 14:07:30 +01:00
{ " 1 Channel " , // 1 Channel Inching/Latching Relay using (PSA-B01 - ESP8266 and PSF-B01 - ESP8285)
2017-01-28 13:41:01 +00:00
GPIO_KEY1 , // GPIO00 Button
2017-03-09 16:48:04 +00:00
0 , 0 , 0 , 0 , 0 ,
2018-12-29 18:46:28 +00: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)
2017-01-28 13:41:01 +00:00
GPIO_REL1 , // GPIO12 Red Led and Relay (0 = Off, 1 = On)
2019-01-08 10:44:45 +00:00
GPIO_LED1_INV , // GPIO13 Green Led (0 = On, 1 = Off) - Link and Power status
2017-03-14 17:03:25 +00:00
0 , 0 , 0 , 0
2017-01-28 13:41:01 +00:00
} ,
2017-07-03 10:45:15 +01:00
{ " 4 Channel " , // 4 Channel Inching/Latching Relays (ESP8266)
2017-01-28 13:41:01 +00:00
0 ,
GPIO_TXD , // GPIO01 Relay control
0 ,
GPIO_RXD , // GPIO03 Relay control
2017-03-09 16:48:04 +00:00
0 , 0 ,
2018-12-29 18:46:28 +00: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)
2017-03-09 16:48:04 +00:00
0 ,
2019-01-08 10:44:45 +00:00
GPIO_LED1_INV , // GPIO13 Blue Led (0 = On, 1 = Off) - Link and Power status
2017-03-14 17:03:25 +00:00
0 , 0 , 0 , 0
2017-01-28 13:41:01 +00:00
} ,
2017-03-09 16:48:04 +00:00
{ " Motor C/AC " , // Motor Clockwise / Anti clockwise (PSA-B01 - ESP8266)
2017-01-28 13:41:01 +00:00
GPIO_KEY1 , // GPIO00 Button
2017-03-09 16:48:04 +00:00
0 , 0 , 0 , 0 , 0 ,
2018-12-29 18:46:28 +00: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)
2017-01-28 13:41:01 +00:00
GPIO_REL1 , // GPIO12 Red Led and Relay (0 = Off, 1 = On)
2019-01-08 10:44:45 +00:00
GPIO_LED1_INV , // GPIO13 Green Led (0 = On, 1 = Off) - Link and Power status
2017-03-14 17:03:25 +00:00
0 , 0 , 0 , 0
2017-01-28 13:41:01 +00:00
} ,
2017-03-09 16:48:04 +00:00
{ " ElectroDragon " , // ElectroDragon IoT Relay Board (ESP8266)
2017-01-28 13:41:01 +00:00
GPIO_KEY2 , // GPIO00 Button 2
2017-03-09 16:48:04 +00:00
GPIO_USER , // GPIO01 Serial RXD and Optional sensor
2017-01-28 13:41:01 +00:00
GPIO_KEY1 , // GPIO02 Button 1
GPIO_USER , // GPIO03 Serial TXD and Optional sensor
GPIO_USER , // GPIO04 Optional sensor
2017-03-12 17:36:33 +00:00
GPIO_USER , // GPIO05 Optional sensor
2018-12-29 18:46:28 +00: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)
2017-01-28 13:41:01 +00:00
GPIO_REL2 , // GPIO12 Red Led and Relay 2 (0 = Off, 1 = On)
GPIO_REL1 , // GPIO13 Red Led and Relay 1 (0 = Off, 1 = On)
GPIO_USER , // GPIO14 Optional sensor
2017-03-12 17:36:33 +00:00
GPIO_USER , // GPIO15 Optional sensor
2019-01-08 10:44:45 +00:00
GPIO_LED1 , // GPIO16 Green/Blue Led (1 = On, 0 = Off) - Link and Power status
2019-05-13 14:56:01 +01:00
ADC0_USER // ADC0 A0 Analog input
2017-01-28 13:41:01 +00:00
} ,
2018-09-30 13:33:26 +01:00
{ " EXS Relay(s) " , // ES-Store Latching relay(s) (ESP8266)
2018-07-02 13:25:02 +01:00
// https://ex-store.de/ESP8266-WiFi-Relay-V31
2018-09-30 13:33:26 +01:00
// V3.1 Module Pin 1 VCC 3V3, Module Pin 6 GND
// https://ex-store.de/2-Kanal-WiFi-WLan-Relay-V5-Blackline-fuer-Unterputzmontage
GPIO_USER , // GPIO00 V3.1 Module Pin 8 - V5.0 Module Pin 4
GPIO_USER , // GPIO01 UART0_TXD V3.1 Module Pin 2 - V5.0 Module Pin 3
GPIO_USER , // GPIO02 V3.1 Module Pin 7
GPIO_USER , // GPIO03 UART0_RXD V3.1 Module Pin 3
GPIO_USER , // GPIO04 V3.1 Module Pin 10 - V5.0 Module Pin 2
GPIO_USER , // GPIO05 V3.1 Module Pin 9 - V5.0 Module Pin 1
2018-12-29 18:46:28 +00: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)
2017-02-13 16:25:46 +00:00
GPIO_REL1 , // GPIO12 Relay1 ( 1 = Off)
GPIO_REL2 , // GPIO13 Relay1 ( 1 = On)
2018-10-01 11:19:58 +01:00
GPIO_USER , // GPIO14 V3.1 Module Pin 5 - V5.0 GPIO_REL3_INV Relay2 ( 1 = Off)
2019-01-08 10:44:45 +00:00
GPIO_LED1 , // GPIO15 V5.0 LED1 - Link and Power status
2018-10-01 11:19:58 +01:00
GPIO_USER , // GPIO16 V3.1 Module Pin 4 - V5.0 GPIO_REL4_INV Relay2 ( 1 = On)
2017-03-14 17:03:25 +00:00
0
2017-02-13 16:25:46 +00:00
} ,
2018-07-02 13:25:02 +01:00
{ " WiOn " , // Indoor Tap (ESP8266)
// https://www.amazon.com/gp/product/B00ZYLUBJU/ref=s9_acsd_al_bw_c_x_3_w
2017-02-28 15:01:48 +00:00
GPIO_USER , // GPIO00 Optional sensor (pm clock)
0 ,
2019-01-08 10:44:45 +00:00
GPIO_LED1 , // GPIO02 Green Led (1 = On, 0 = Off) - Link and Power status
2017-03-09 16:48:04 +00:00
0 , 0 , 0 ,
2018-12-29 18:46:28 +00: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)
2017-02-28 15:01:48 +00:00
GPIO_USER , // GPIO12 Optional sensor (pm data)
GPIO_KEY1 , // GPIO13 Button
0 ,
GPIO_REL1 , // GPIO15 Relay (0 = Off, 1 = On)
2017-03-14 17:03:25 +00:00
0 , 0
2017-02-28 15:01:48 +00:00
} ,
2018-01-18 15:19:28 +00:00
{ " Generic " , // Any ESP8266/ESP8285 device like WeMos and NodeMCU hardware (ESP8266)
2017-03-09 16:48:04 +00:00
GPIO_USER , // GPIO00 D3 Wemos Button Shield
GPIO_USER , // GPIO01 TX Serial RXD
GPIO_USER , // GPIO02 D4 Wemos DHT Shield
GPIO_USER , // GPIO03 RX Serial TXD and Optional sensor
GPIO_USER , // GPIO04 D2 Wemos I2C SDA
GPIO_USER , // GPIO05 D1 Wemos I2C SCL / Wemos Relay Shield (0 = Off, 1 = On) / Wemos WS2812B RGB led Shield
2018-12-29 18:46:28 +00:00
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
GPIO_USER , // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
GPIO_USER , // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
// GPIO11 (SD_CMD Flash)
2017-03-09 16:48:04 +00:00
GPIO_USER , // GPIO12 D6
GPIO_USER , // GPIO13 D7
GPIO_USER , // GPIO14 D5
GPIO_USER , // GPIO15 D8
2017-03-14 17:03:25 +00:00
GPIO_USER , // GPIO16 D0 Wemos Wake
2019-05-13 14:56:01 +01:00
ADC0_USER // ADC0 A0 Analog input
2017-03-16 15:23:11 +00:00
} ,
{ " Sonoff Dev " , // Sonoff Dev (ESP8266)
GPIO_KEY1 , // GPIO00 E-FW Button
GPIO_USER , // GPIO01 TX Serial RXD and Optional sensor
0 , // GPIO02
GPIO_USER , // GPIO03 RX Serial TXD and Optional sensor
GPIO_USER , // GPIO04 Optional sensor
GPIO_USER , // GPIO05 Optional sensor
2018-12-29 18:46:28 +00: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)
2017-03-16 15:23:11 +00:00
GPIO_USER , // GPIO12
2018-04-03 15:45:33 +01:00
GPIO_USER , // GPIO13 BLUE LED
2017-03-16 15:23:11 +00:00
GPIO_USER , // GPIO14 Optional sensor
0 , // GPIO15
0 , // GPIO16
2019-05-13 14:56:01 +01:00
ADC0_USER // ADC0 A0 Analog input
2017-03-25 16:24:11 +00:00
} ,
{ " H801 " , // Lixada H801 Wifi (ESP8266)
2018-04-19 21:29:09 +01:00
GPIO_USER , // GPIO00 E-FW Button
2019-01-08 10:44:45 +00:00
GPIO_LED1 , // GPIO01 Green LED - Link and Power status
2018-09-05 17:01:15 +01:00
GPIO_USER , // GPIO02 TX and Optional sensor - Pin next to TX on the PCB
GPIO_USER , // GPIO03 RX and Optional sensor - Pin next to GND on the PCB
2018-04-13 09:33:17 +01:00
GPIO_PWM5 , // GPIO04 W2 - PWM5
2017-03-25 16:24:11 +00:00
GPIO_LED2_INV , // GPIO05 Red LED
2018-12-29 18:46:28 +00: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)
2017-09-02 13:37:02 +01:00
GPIO_PWM3 , // GPIO12 Blue
2017-10-01 13:32:36 +01:00
GPIO_PWM2 , // GPIO13 Green
2018-04-13 09:33:17 +01:00
GPIO_PWM4 , // GPIO14 W1 - PWM4
2017-10-01 13:32:36 +01:00
GPIO_PWM1 , // GPIO15 Red
2017-03-25 16:24:11 +00:00
0 , 0
2017-04-10 16:25:31 +01:00
} ,
{ " Sonoff SC " , // Sonoff SC (ESP8266)
GPIO_KEY1 , // GPIO00 Button
GPIO_TXD , // GPIO01 RXD to ATMEGA328P
GPIO_USER , // GPIO02 Optional sensor
GPIO_RXD , // GPIO03 TXD to ATMEGA328P
0 , 0 ,
2018-12-29 18:46:28 +00: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)
2017-04-10 16:25:31 +01:00
0 ,
2019-01-08 10:44:45 +00:00
GPIO_LED1_INV , // GPIO13 Green Led (0 = On, 1 = Off) - Link and Power status
2017-04-10 16:25:31 +01:00
0 , 0 , 0 , 0
2017-07-03 10:45:15 +01:00
} ,
2017-07-15 14:07:30 +01:00
{ " Sonoff BN-SZ " , // Sonoff BN-SZ01 Ceiling led (ESP8285)
2017-07-03 10:45:15 +01:00
0 , 0 , 0 , 0 , 0 , 0 ,
2018-12-29 18:46:28 +00:00
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0 , // GPIO09
0 , // GPIO10
// GPIO11 (SD_CMD Flash)
2017-07-03 10:45:15 +01:00
GPIO_PWM1 , // GPIO12 Light
2019-01-08 10:44:45 +00:00
GPIO_LED1_INV , // GPIO13 Red Led (0 = On, 1 = Off) - Link and Power status
2019-01-10 10:59:18 +00:00
0 , 0 , 0 , 0
2017-07-25 17:05:47 +01:00
} ,
{ " Sonoff 4CH Pro " , // Sonoff 4CH Pro (ESP8285)
GPIO_KEY1 , // GPIO00 Button 1
GPIO_USER , // GPIO01 Serial RXD and Optional sensor
GPIO_USER , // GPIO02 Optional sensor
GPIO_USER , // GPIO03 Serial TXD and Optional sensor
GPIO_REL3 , // GPIO04 Sonoff 4CH Red Led and Relay 3 (0 = Off, 1 = On)
GPIO_REL2 , // GPIO05 Sonoff 4CH Red Led and Relay 2 (0 = Off, 1 = On)
2018-12-29 18:46:28 +00:00
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
2017-07-25 17:05:47 +01:00
GPIO_KEY2 , // GPIO09 Button 2
GPIO_KEY3 , // GPIO10 Button 3
2018-12-29 18:46:28 +00:00
// GPIO11 (SD_CMD Flash)
2017-07-25 17:05:47 +01:00
GPIO_REL1 , // GPIO12 Red Led and Relay 1 (0 = Off, 1 = On)
2019-01-08 10:44:45 +00:00
GPIO_LED1_INV , // GPIO13 Blue Led (0 = On, 1 = Off) - Link and Power status
2017-07-25 17:05:47 +01:00
GPIO_KEY4 , // GPIO14 Button 4
GPIO_REL4 , // GPIO15 Red Led and Relay 4 (0 = Off, 1 = On)
0 , 0
} ,
{ " Huafan SS " , // Hua Fan Smart Socket (ESP8266) - like Sonoff Pow
2019-05-21 17:11:39 +01:00
GPIO_LEDLNK_INV , // GPIO00 Blue Led (0 = On, 1 = Off) - Link status
2017-07-25 17:05:47 +01:00
0 , 0 ,
2019-05-21 17:11:39 +01:00
GPIO_LED1_INV , // GPIO03 Red Led (0 = On, 1 = Off) - Power status
2018-12-29 18:46:28 +00:00
GPIO_KEY1 , // GPIO04 Button
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)
2018-10-07 11:37:03 +01:00
GPIO_NRG_CF1 , // GPIO12 HLW8012 CF1 voltage / current
GPIO_NRG_SEL , // GPIO13 HLW8012 Sel output (1 = Voltage)
2017-07-25 17:05:47 +01:00
GPIO_HLW_CF , // GPIO14 HLW8012 CF power
0 , 0 , 0
2017-07-30 16:55:37 +01:00
} ,
{ " Sonoff Bridge " , // Sonoff RF Bridge 433 (ESP8285)
GPIO_KEY1 , // GPIO00 Button
GPIO_TXD , // GPIO01 RF bridge control
GPIO_USER , // GPIO02 Optional sensor
GPIO_RXD , // GPIO03 RF bridge control
2017-08-16 16:05:36 +01:00
GPIO_USER , // GPIO04 Optional sensor
GPIO_USER , // GPIO05 Optional sensor
2018-12-29 18:46:28 +00:00
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0 , // GPIO09
0 , // GPIO10
// GPIO11 (SD_CMD Flash)
2019-02-06 21:34:41 +00:00
GPIO_USER , // GPIO12 Optional sensor
2019-01-08 10:44:45 +00:00
GPIO_LED1_INV , // GPIO13 Blue Led (0 = On, 1 = Off) - Link and Power status
2019-02-06 21:34:41 +00:00
GPIO_USER , // GPIO14 Optional sensor
0 , 0 , 0
2017-08-12 16:55:20 +01:00
} ,
{ " Sonoff B1 " , // Sonoff B1 (ESP8285 - my9231)
GPIO_KEY1 , // GPIO00 Pad
GPIO_USER , // GPIO01 Serial RXD and Optional sensor pad
GPIO_USER , // GPIO02 Optional sensor SDA pad
GPIO_USER , // GPIO03 Serial TXD and Optional sensor pad
0 , 0 ,
2018-12-29 18:46:28 +00:00
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0 , // GPIO09
0 , // GPIO10
// GPIO11 (SD_CMD Flash)
2017-08-12 16:55:20 +01:00
GPIO_DI , // GPIO12 my9231 DI
0 ,
GPIO_DCKI , // GPIO14 my9231 DCKI
2017-08-13 14:31:49 +01:00
0 , 0 , 0
2017-08-13 12:11:44 +01:00
} ,
2017-08-13 14:31:49 +01:00
{ " AiLight " , // Ai-Thinker RGBW led (ESP8266 - my9291)
2017-08-13 12:11:44 +01:00
GPIO_KEY1 , // GPIO00 Pad
GPIO_USER , // GPIO01 Serial RXD and Optional sensor pad
GPIO_USER , // GPIO02 Optional sensor SDA pad
GPIO_USER , // GPIO03 Serial TXD and Optional sensor pad
0 , 0 ,
2018-12-29 18:46:28 +00: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)
2017-08-13 12:11:44 +01:00
0 ,
2017-08-13 14:31:49 +01:00
GPIO_DI , // GPIO13 my9291 DI
2017-08-13 12:11:44 +01:00
0 ,
2017-08-13 14:31:49 +01:00
GPIO_DCKI , // GPIO15 my9291 DCKI
2017-08-13 12:11:44 +01:00
0 , 0
2017-08-16 21:56:32 +01:00
} ,
{ " Sonoff T1 1CH " , // Sonoff T1 1CH (ESP8285)
2017-08-18 17:04:49 +01:00
GPIO_KEY1 , // GPIO00 Button 1
2017-08-16 21:56:32 +01:00
GPIO_USER , // GPIO01 Serial RXD and Optional sensor
2018-04-23 10:37:46 +01:00
GPIO_USER , // GPIO02 Optional Sensor (J3 Pin 5)
2017-08-16 21:56:32 +01:00
GPIO_USER , // GPIO03 Serial TXD and Optional sensor
2017-08-18 17:04:49 +01:00
0 , 0 ,
2018-12-29 18:46:28 +00:00
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
0 , // GPIO09
0 , // GPIO10
// GPIO11 (SD_CMD Flash)
2017-08-18 17:04:49 +01:00
GPIO_REL1 , // GPIO12 Blue Led and Relay 1 (0 = Off, 1 = On)
2019-01-08 10:44:45 +00:00
GPIO_LED1_INV , // GPIO13 Blue Led (0 = On, 1 = Off) - Link and Power status
2017-08-16 21:56:32 +01:00
0 , 0 , 0 , 0
} ,
{ " Sonoff T1 2CH " , // Sonoff T1 2CH (ESP8285)
GPIO_KEY1 , // GPIO00 Button 1
GPIO_USER , // GPIO01 Serial RXD and Optional sensor
2018-04-23 10:37:46 +01:00
GPIO_USER , // GPIO02 Optional Sensor (J3 Pin 5)
2017-08-16 21:56:32 +01:00
GPIO_USER , // GPIO03 Serial TXD and Optional sensor
0 ,
2017-08-18 17:04:49 +01:00
GPIO_REL2 , // GPIO05 Blue Led and Relay 2 (0 = Off, 1 = On)
2018-12-29 18:46:28 +00:00
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
2017-08-18 17:04:49 +01:00
GPIO_KEY2 , // GPIO09 Button 2
2018-12-29 18:46:28 +00:00
0 , // GPIO10
// GPIO11 (SD_CMD Flash)
2017-08-16 21:56:32 +01:00
GPIO_REL1 , // GPIO12 Blue Led and Relay 1 (0 = Off, 1 = On)
2019-01-08 10:44:45 +00:00
GPIO_LED1_INV , // GPIO13 Blue Led (0 = On, 1 = Off) - Link and Power status
2017-08-16 21:56:32 +01:00
0 , 0 , 0 , 0
} ,
{ " Sonoff T1 3CH " , // Sonoff T1 3CH (ESP8285)
GPIO_KEY1 , // GPIO00 Button 1
GPIO_USER , // GPIO01 Serial RXD and Optional sensor
2018-04-23 10:37:46 +01:00
GPIO_USER , // GPIO02 Optional Sensor (J3 Pin 5)
2017-08-16 21:56:32 +01:00
GPIO_USER , // GPIO03 Serial TXD and Optional sensor
GPIO_REL3 , // GPIO04 Blue Led and Relay 3 (0 = Off, 1 = On)
GPIO_REL2 , // GPIO05 Blue Led and Relay 2 (0 = Off, 1 = On)
2018-12-29 18:46:28 +00:00
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
2017-08-16 21:56:32 +01:00
GPIO_KEY2 , // GPIO09 Button 2
GPIO_KEY3 , // GPIO10 Button 3
2018-12-29 18:46:28 +00:00
// GPIO11 (SD_CMD Flash)
2017-08-16 21:56:32 +01:00
GPIO_REL1 , // GPIO12 Blue Led and Relay 1 (0 = Off, 1 = On)
2019-01-08 10:44:45 +00:00
GPIO_LED1_INV , // GPIO13 Blue Led (0 = On, 1 = Off) - Link and Power status
2017-08-16 21:56:32 +01:00
0 , 0 , 0 , 0
2017-08-19 17:08:06 +01:00
} ,
2018-07-02 13:25:02 +01:00
{ " Supla Espablo " , // Supla Espablo (ESP8266)
// http://www.wykop.pl/ramka/3325399/diy-supla-do-puszki-instalacyjnej-podtynkowej-supla-org/
2017-08-19 17:08:06 +01:00
0 , // GPIO00 Flash jumper
GPIO_USER , // GPIO01 Serial RXD and Optional sensor
GPIO_DSB , // GPIO02 DS18B20 sensor
GPIO_USER , // GPIO03 Serial TXD and Optional sensor
GPIO_KEY1 , // GPIO04 Button 1
GPIO_REL1 , // GPIO05 Relay 1 (0 = Off, 1 = On)
2018-12-29 18:46:28 +00: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)
2017-08-19 17:08:06 +01:00
GPIO_USER , // GPIO12 Optional sensor
GPIO_REL2 , // GPIO13 Relay 2 (0 = Off, 1 = On)
GPIO_USER , // GPIO14 Optional sensor
0 ,
2019-01-08 10:44:45 +00:00
GPIO_LED1 , // GPIO16 Led (1 = On, 0 = Off) - Link and Power status
2019-05-13 14:56:01 +01:00
ADC0_USER // ADC0 A0 Analog input
2017-09-10 14:51:44 +01:00
} ,
2018-07-02 13:25:02 +01:00
{ " Witty Cloud " , // Witty Cloud Dev Board (ESP8266)
// https://www.aliexpress.com/item/ESP8266-serial-WIFI-Witty-cloud-Development-Board-ESP-12F-module-MINI-nodemcu/32643464555.html
2017-09-10 14:51:44 +01:00
GPIO_USER , // GPIO00 D3 flash push button on interface board
GPIO_USER , // GPIO01 Serial RXD and Optional sensor
2019-01-08 10:44:45 +00:00
GPIO_LED1_INV , // GPIO02 D4 Blue Led (0 = On, 1 = Off) on ESP-12F - Link and Power status
2017-09-10 14:51:44 +01:00
GPIO_USER , // GPIO03 Serial TXD and Optional sensor
GPIO_KEY1 , // GPIO04 D2 push button on ESP-12F board
GPIO_USER , // GPIO05 D1 optional sensor
2018-12-29 18:46:28 +00: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)
2017-10-06 16:28:00 +01:00
GPIO_PWM2 , // GPIO12 D6 RGB LED Green
GPIO_PWM3 , // GPIO13 D7 RGB LED Blue
2017-09-10 14:51:44 +01:00
GPIO_USER , // GPIO14 D5 optional sensor
2017-10-06 16:28:00 +01:00
GPIO_PWM1 , // GPIO15 D8 RGB LED Red
2017-09-10 14:51:44 +01:00
GPIO_USER , // GPIO16 D0 optional sensor
2019-05-13 14:56:01 +01:00
ADC0_USER // ADC0 A0 Light sensor / Requires USE_ADC_VCC in user_config.h to be disabled
2017-09-10 14:51:44 +01:00
} ,
2018-07-02 13:25:02 +01:00
{ " Yunshan Relay " , // Yunshan Wifi Relay (ESP8266)
// https://www.ebay.com/p/Esp8266-220v-10a-Network-Relay-WiFi-Module/1369583381
2017-09-10 14:51:44 +01:00
// 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
GPIO_USER , // GPIO01 Serial RXD and Optional sensor - Module Pin 2
2019-01-08 10:44:45 +00:00
GPIO_LED1_INV , // GPIO02 Blue Led (0 = On, 1 = Off) on ESP-12F - Module Pin 7 - Link and Power status
2017-09-10 14:51:44 +01:00
GPIO_USER , // GPIO03 Serial TXD and Optional sensor - Module Pin 3
GPIO_REL1 , // GPIO04 Red Led and Relay (0 = Off, 1 = On) - Module Pin 10
GPIO_KEY1 , // GPIO05 Blue Led and OptoCoupler input - Module Pin 9
2018-12-29 18:46:28 +00: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)
2019-01-10 10:59:18 +00:00
0 , 0 , 0 , 0 , 0 , 0
2017-09-30 12:32:53 +01:00
} ,
2018-09-28 16:26:08 +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
0 ,
GPIO_USER , // GPIO01 Serial RXD and Optional sensor
2019-01-08 10:44:45 +00:00
GPIO_LED1_INV , // GPIO02 Blue onboard LED - Link and Power status
2018-09-28 16:26:08 +01:00
GPIO_USER , // GPIO03 Serial TXD and Optional sensor
2018-09-29 11:34:24 +01:00
GPIO_ARIRFRCV , // GPIO04 IR or RF receiver (optional) (Arilux LC10)
2018-09-28 16:26:08 +01:00
GPIO_PWM2 , // GPIO05 RGB LED Green
2018-12-29 18:46:28 +00: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)
2018-09-28 16:26:08 +01:00
GPIO_PWM3 , // GPIO12 RGB LED Blue
GPIO_USER , // GPIO13 RGBW LED White (optional - set to PWM4 for Cold White or Warm White as used on Arilux LC10)
GPIO_PWM1 , // GPIO14 RGB LED Red
2019-05-21 17:11:39 +01:00
GPIO_ARIRFSEL , // GPIO15 RF receiver control (Arilux LC10)
2018-09-28 16:26:08 +01:00
0 , 0
} ,
2018-07-02 13:25:02 +01:00
{ " Luani HVIO " , // ESP8266_HVIO
// https://luani.de/projekte/esp8266-hvio/
2017-10-02 15:45:03 +01:00
0 , // GPIO00 Flash jumper
GPIO_USER , // GPIO01 Serial RXD and Optional sensor
GPIO_USER , // GPIO02 Optional sensor / I2C SDA pad
GPIO_USER , // GPIO03 Serial TXD and Optional sensor
GPIO_REL1 , // GPIO04 Relay 1 (0 = Off, 1 = On)
GPIO_REL2 , // GPIO05 Relay 2 (0 = Off, 1 = On)
2018-12-29 18:46:28 +00: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)
2017-10-02 15:45:03 +01:00
GPIO_SWT1 , // GPIO12 External input 1 (0 = On, 1 = Off)
GPIO_SWT2 , // GPIO13 External input 2 (0 = On, 1 = Off)
GPIO_USER , // GPIO14 Optional sensor / I2C SCL pad
2019-01-08 10:44:45 +00:00
GPIO_LED1 , // GPIO15 Led (1 = On, 0 = Off) - Link and Power status
2017-10-02 15:45:03 +01:00
0 ,
2019-05-13 14:56:01 +01:00
ADC0_USER // ADC0 A0 Analog input
2017-10-23 11:18:15 +01:00
} ,
2018-07-02 13:25:02 +01:00
{ " KMC 70011 " , // KMC 70011
// https://www.amazon.com/KMC-Timing-Monitoring-Network-125V-240V/dp/B06XRX2GTQ
2017-10-23 11:18:15 +01:00
GPIO_KEY1 , // GPIO00 Button
0 , 0 , 0 ,
2018-10-07 11:37:03 +01:00
GPIO_HLW_CF , // GPIO04 HLW8012 CF power
GPIO_NRG_CF1 , // GPIO05 HLW8012 CF1 voltage / current
2018-12-29 18:46:28 +00: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)
2018-10-07 11:37:03 +01:00
GPIO_NRG_SEL , // GPIO12 HLW8012 SEL (1 = Voltage)
2019-01-08 10:44:45 +00:00
GPIO_LED1_INV , // GPIO13 Green Led - Link and Power status
2017-10-23 11:18:15 +01:00
GPIO_REL1 , // GPIO14 Relay
0 , 0 , 0
2017-10-26 15:33:33 +01:00
} ,
2018-07-02 13:25:02 +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
2017-11-15 22:07:45 +00:00
// (PwmFrequency 1111Hz)
GPIO_KEY1 , // GPIO00 Optional Button
2018-02-13 13:30:30 +00:00
GPIO_USER , // GPIO01 Serial RXD and Optional sensor
2019-05-21 17:11:39 +01:00
GPIO_ARIRFSEL , // GPIO02 RF receiver control
2018-02-13 13:30:30 +00:00
GPIO_USER , // GPIO03 Serial TXD and Optional sensor
2017-11-21 15:06:51 +00:00
GPIO_ARIRFRCV , // GPIO04 IR or RF receiver (optional)
2017-10-26 15:33:33 +01:00
GPIO_PWM1 , // GPIO05 RGB LED Red
2018-12-29 18:46:28 +00: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)
2017-10-26 15:33:33 +01:00
GPIO_PWM2 , // GPIO12 RGB LED Green
GPIO_PWM3 , // GPIO13 RGB LED Blue
GPIO_USER , // GPIO14 RGBW LED White (optional - set to PWM4 for Cold White or Warm White)
0 , 0 , 0
2017-11-15 22:07:45 +00:00
} ,
2018-07-02 13:25:02 +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
2017-11-15 22:07:45 +00:00
// (PwmFrequency 540Hz)
GPIO_KEY1 , // GPIO00 Optional Button
2018-02-13 13:30:30 +00:00
GPIO_USER , // GPIO01 Serial RXD and Optional sensor
2019-05-21 17:11:39 +01:00
GPIO_ARIRFSEL , // GPIO02 RF receiver control
2018-02-13 13:30:30 +00:00
GPIO_USER , // GPIO03 Serial TXD and Optional sensor
2017-11-15 22:07:45 +00:00
GPIO_PWM2 , // GPIO04 RGB LED Green
GPIO_PWM1 , // GPIO05 RGB LED Red
2018-12-29 18:46:28 +00: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)
2017-11-15 22:07:45 +00:00
GPIO_PWM5 , // GPIO12 RGBCW LED Warm
GPIO_PWM4 , // GPIO13 RGBW LED Cold
GPIO_PWM3 , // GPIO14 RGB LED Blue
2017-11-21 15:06:51 +00:00
GPIO_ARIRFRCV , // GPIO15 RF receiver input
2017-11-15 22:07:45 +00:00
0 , 0
v5.9.1j - Add Dual R2, Rewrite DS18x20 and fixes
5.9.1j
* Revert changes to xsns_05_ds18x20.ino and rename to
xsns_05_ds18x20_legacy.ino still needing library OneWire and providing
legacy JSON message:
*
"DS18x20":{"DS1":{"Type":"DS18B20","Address":"284CC48E04000079","Temperature":19.5},"DS2":{"Type":"DS18B20","Address":"283AC28304000052","Temperature":19.6}}
* Add new xdrv_05_ds18x20.ino free from library OneWire and add the
following features:
* Add support for DS1822
* Add forced setting of
12-bit resolution for selected device types (#1222)
* Add read
temperature retry counter (#1215)
* Fix lost sensors by performing
sensor probe at restart only thereby removing dynamic sensor probe
(#1215)
* Fix sensor address sorting using ascending sort on sensor
type followed by sensor address
* Rewrite JSON resulting in shorter
message allowing more sensors in default firmware image:
*
"DS18B20-1":{"Id":"00000483C23A","Temperature":19.5},"DS18B20-2":{"Id":"0000048EC44C","Temperature":19.6}
* Add additional define in user_config.h to select either single sensor
(defines disabled), new multi sensor (USE_DS18X20) or legacy multi
sensor (USE_DS18X20_LEGACY)
* Add support for Sonoff Dual R2 (#1249)
*
Fix ADS1115 detection (#1258)
2017-11-27 16:46:51 +00:00
} ,
{ " Sonoff Dual R2 " , // Sonoff Dual R2 (ESP8285)
2017-12-02 11:40:33 +00:00
GPIO_USER , // GPIO00 Button 0 on header (0 = On, 1 = Off)
v5.9.1j - Add Dual R2, Rewrite DS18x20 and fixes
5.9.1j
* Revert changes to xsns_05_ds18x20.ino and rename to
xsns_05_ds18x20_legacy.ino still needing library OneWire and providing
legacy JSON message:
*
"DS18x20":{"DS1":{"Type":"DS18B20","Address":"284CC48E04000079","Temperature":19.5},"DS2":{"Type":"DS18B20","Address":"283AC28304000052","Temperature":19.6}}
* Add new xdrv_05_ds18x20.ino free from library OneWire and add the
following features:
* Add support for DS1822
* Add forced setting of
12-bit resolution for selected device types (#1222)
* Add read
temperature retry counter (#1215)
* Fix lost sensors by performing
sensor probe at restart only thereby removing dynamic sensor probe
(#1215)
* Fix sensor address sorting using ascending sort on sensor
type followed by sensor address
* Rewrite JSON resulting in shorter
message allowing more sensors in default firmware image:
*
"DS18B20-1":{"Id":"00000483C23A","Temperature":19.5},"DS18B20-2":{"Id":"0000048EC44C","Temperature":19.6}
* Add additional define in user_config.h to select either single sensor
(defines disabled), new multi sensor (USE_DS18X20) or legacy multi
sensor (USE_DS18X20_LEGACY)
* Add support for Sonoff Dual R2 (#1249)
*
Fix ADS1115 detection (#1258)
2017-11-27 16:46:51 +00:00
GPIO_USER , // GPIO01 Serial RXD and Optional sensor
0 ,
GPIO_USER , // GPIO03 Serial TXD and Optional sensor
0 ,
GPIO_REL2 , // GPIO05 Relay 2 (0 = Off, 1 = On)
2018-12-29 18:46:28 +00:00
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
2017-12-02 11:40:33 +00:00
GPIO_USER , // GPIO09 Button 1 on header (0 = On, 1 = Off)
GPIO_KEY1 , // GPIO10 Button on casing
2018-12-29 18:46:28 +00:00
// GPIO11 (SD_CMD Flash)
v5.9.1j - Add Dual R2, Rewrite DS18x20 and fixes
5.9.1j
* Revert changes to xsns_05_ds18x20.ino and rename to
xsns_05_ds18x20_legacy.ino still needing library OneWire and providing
legacy JSON message:
*
"DS18x20":{"DS1":{"Type":"DS18B20","Address":"284CC48E04000079","Temperature":19.5},"DS2":{"Type":"DS18B20","Address":"283AC28304000052","Temperature":19.6}}
* Add new xdrv_05_ds18x20.ino free from library OneWire and add the
following features:
* Add support for DS1822
* Add forced setting of
12-bit resolution for selected device types (#1222)
* Add read
temperature retry counter (#1215)
* Fix lost sensors by performing
sensor probe at restart only thereby removing dynamic sensor probe
(#1215)
* Fix sensor address sorting using ascending sort on sensor
type followed by sensor address
* Rewrite JSON resulting in shorter
message allowing more sensors in default firmware image:
*
"DS18B20-1":{"Id":"00000483C23A","Temperature":19.5},"DS18B20-2":{"Id":"0000048EC44C","Temperature":19.6}
* Add additional define in user_config.h to select either single sensor
(defines disabled), new multi sensor (USE_DS18X20) or legacy multi
sensor (USE_DS18X20_LEGACY)
* Add support for Sonoff Dual R2 (#1249)
*
Fix ADS1115 detection (#1258)
2017-11-27 16:46:51 +00:00
GPIO_REL1 , // GPIO12 Relay 1 (0 = Off, 1 = On)
2019-01-08 10:44:45 +00:00
GPIO_LED1_INV , // GPIO13 Blue Led (0 = On, 1 = Off) - Link and Power status
v5.9.1j - Add Dual R2, Rewrite DS18x20 and fixes
5.9.1j
* Revert changes to xsns_05_ds18x20.ino and rename to
xsns_05_ds18x20_legacy.ino still needing library OneWire and providing
legacy JSON message:
*
"DS18x20":{"DS1":{"Type":"DS18B20","Address":"284CC48E04000079","Temperature":19.5},"DS2":{"Type":"DS18B20","Address":"283AC28304000052","Temperature":19.6}}
* Add new xdrv_05_ds18x20.ino free from library OneWire and add the
following features:
* Add support for DS1822
* Add forced setting of
12-bit resolution for selected device types (#1222)
* Add read
temperature retry counter (#1215)
* Fix lost sensors by performing
sensor probe at restart only thereby removing dynamic sensor probe
(#1215)
* Fix sensor address sorting using ascending sort on sensor
type followed by sensor address
* Rewrite JSON resulting in shorter
message allowing more sensors in default firmware image:
*
"DS18B20-1":{"Id":"00000483C23A","Temperature":19.5},"DS18B20-2":{"Id":"0000048EC44C","Temperature":19.6}
* Add additional define in user_config.h to select either single sensor
(defines disabled), new multi sensor (USE_DS18X20) or legacy multi
sensor (USE_DS18X20_LEGACY)
* Add support for Sonoff Dual R2 (#1249)
*
Fix ADS1115 detection (#1258)
2017-11-27 16:46:51 +00:00
0 , 0 , 0 , 0
2017-12-25 16:41:12 +00:00
} ,
2018-07-02 13:25:02 +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
2017-12-25 16:41:12 +00:00
GPIO_KEY1 , // GPIO00 Optional Button
2018-02-13 13:30:30 +00:00
GPIO_USER , // GPIO01 Serial RXD and Optional sensor
2017-12-25 16:41:12 +00:00
GPIO_USER , // GPIO02 Empty pad
2018-02-13 13:30:30 +00:00
GPIO_USER , // GPIO03 Serial TXD and Optional sensor
2017-12-25 16:41:12 +00:00
GPIO_USER , // GPIO04 W2 - PWM5
0 ,
2018-12-29 18:46:28 +00: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)
2017-12-25 16:41:12 +00:00
GPIO_PWM2 , // GPIO12 RGB LED Green
GPIO_PWM3 , // GPIO13 RGB LED Blue
GPIO_PWM1 , // GPIO14 RGB LED Red
GPIO_USER , // GPIO15 RGBW LED White
0 , 0
2018-02-03 22:25:05 +00:00
} ,
2018-04-20 15:55:27 +01:00
{ " Sonoff S31 " , // Sonoff S31 (ESP8266 - CSE7766)
2018-02-03 22:25:05 +00:00
GPIO_KEY1 , // GPIO00 Button
2019-02-04 13:57:20 +00:00
GPIO_CSE7766_TX , // GPIO01 Serial RXD 4800 baud 8E1 CSE7766 energy sensor
2018-02-03 22:25:05 +00:00
0 ,
2019-02-04 13:57:20 +00:00
GPIO_CSE7766_RX , // GPIO03 Serial TXD
2018-02-03 22:25:05 +00:00
0 , 0 ,
2018-12-29 18:46:28 +00: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)
2018-02-03 22:25:05 +00:00
GPIO_REL1 , // GPIO12 Red Led and Relay (0 = Off, 1 = On)
2019-01-08 10:44:45 +00:00
GPIO_LED1_INV , // GPIO13 Green Led (0 = On, 1 = Off) - Link and Power status
2018-02-03 22:25:05 +00:00
0 , 0 , 0 , 0
2018-03-21 08:27:05 +00:00
} ,
2018-07-02 13:25:02 +01:00
{ " Zengge 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
2018-03-21 08:27:05 +00:00
GPIO_KEY1 , // GPIO00 Optional Button
0 ,
GPIO_USER , // GPIO02 Empty pad
0 ,
GPIO_USER , // GPIO04 W2 - PWM5
0 ,
2018-12-29 18:46:28 +00: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)
2018-03-21 08:27:05 +00:00
GPIO_PWM2 , // GPIO12 RGB LED Green
GPIO_PWM1 , // GPIO13 RGB LED Red
GPIO_PWM3 , // GPIO14 RGB LED Blue
0 , 0 , 0
2018-04-20 15:55:27 +01:00
} ,
{ " Sonoff Pow R2 " , // Sonoff Pow R2 (ESP8285 - CSE7766)
GPIO_KEY1 , // GPIO00 Button
2019-02-04 13:57:20 +00:00
GPIO_CSE7766_TX , // GPIO01 Serial RXD 4800 baud 8E1 CSE7766 energy sensor
2018-04-20 15:55:27 +01:00
0 ,
2019-02-04 13:57:20 +00:00
GPIO_CSE7766_RX , // GPIO03 Serial TXD
2018-04-20 15:55:27 +01:00
0 , 0 ,
2018-12-29 18:46:28 +00: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)
2018-04-20 15:55:27 +01:00
GPIO_REL1 , // GPIO12 Red Led and Relay (0 = Off, 1 = On)
2019-01-08 10:44:45 +00:00
GPIO_LED1_INV , // GPIO13 Blue Led (0 = On, 1 = Off) - Link and Power status
2018-04-20 15:55:27 +01:00
0 , 0 , 0 , 0
2018-06-30 17:50:10 +01:00
} ,
{ " Sonoff iFan02 " , // Sonoff iFan02 (ESP8285)
2018-07-04 17:41:00 +01:00
GPIO_KEY1 , // GPIO00 WIFI_KEY0 Virtual button 1 as feedback from RC
GPIO_USER , // GPIO01 ESP_TXD Serial RXD and Optional sensor
0 , // GPIO02 ESP_LOG
GPIO_USER , // GPIO03 ESP_RXD Serial TXD and Optional sensor
GPIO_REL3 , // GPIO04 WIFI_O2 Relay 3 (0 = Off, 1 = On) controlling the fan
GPIO_REL2 , // GPIO05 WIFI_O1 Relay 2 (0 = Off, 1 = On) controlling the fan
2018-12-29 18:46:28 +00:00
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
2018-07-04 17:41:00 +01:00
GPIO_KEY2 , // GPIO09 WIFI_KEY1 Virtual button 2 as feedback from RC
GPIO_KEY3 , // GPIO10 WIFI_KEY2 Virtual button 3 as feedback from RC
2018-12-29 18:46:28 +00:00
// GPIO11 (SD_CMD Flash)
2018-07-04 17:41:00 +01:00
GPIO_REL1 , // GPIO12 WIFI_O0 Relay 1 (0 = Off, 1 = On) controlling the light
2019-01-08 10:44:45 +00:00
GPIO_LED1_INV , // GPIO13 WIFI_CHK Blue Led on PCA (0 = On, 1 = Off) - Link and Power status
2018-07-04 17:41:00 +01:00
GPIO_KEY4 , // GPIO14 WIFI_KEY3 Virtual button 4 as feedback from RC
GPIO_REL4 , // GPIO15 WIFI_O3 Relay 4 (0 = Off, 1 = On) controlling the fan
2018-06-30 17:50:10 +01:00
0 , 0
2018-07-02 13:25:02 +01:00
} ,
2018-11-24 15:08:53 +00:00
{ " BlitzWolf SHP " , // BlitzWolf BW-SHP2 and BW-SHP6 (ESP8285 - BL0937 or HJL-01 Energy Monitoring)
2018-07-02 13:25:02 +01:00
// 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
2018-11-24 15:08:53 +00:00
// 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
2019-05-21 17:11:39 +01:00
GPIO_LED1_INV , // GPIO00 Red Led (1 = On, 0 = Off) - Power status
2018-07-02 13:25:02 +01:00
GPIO_USER , // GPIO01 Serial RXD and Optional sensor
2019-05-21 17:11:39 +01:00
GPIO_LEDLNK_INV , // GPIO02 Blue Led (1 = On, 0 = Off) - Link status
2018-07-02 13:25:02 +01:00
GPIO_USER , // GPIO03 Serial TXD and Optional sensor
0 ,
2018-10-07 11:37:03 +01:00
GPIO_HJL_CF , // GPIO05 BL0937 or HJL-01 CF power
2018-12-29 18:46:28 +00: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)
2018-10-07 11:37:03 +01:00
GPIO_NRG_SEL_INV , // GPIO12 BL0937 or HJL-01 Sel output (0 = Voltage)
2018-07-02 13:25:02 +01:00
GPIO_KEY1 , // GPIO13 Button
2018-10-07 11:37:03 +01:00
GPIO_NRG_CF1 , // GPIO14 BL0937 or HJL-01 CF1 current / voltage
2018-07-02 13:25:02 +01:00
GPIO_REL1 , // GPIO15 Relay (0 = Off, 1 = On)
0 , 0
2018-09-02 15:17:49 +01:00
} ,
2018-12-29 18:46:28 +00:00
{ " Shelly 1 " , // Shelly1 Open Source (ESP8266 - 2MB) - https://shelly.cloud/shelly1-open-source/
2019-03-18 01:10:10 +00:00
0 , // GPIO00 - Can be changed to GPIO_USER, only if Shelly is powered with 12V DC
0 , // GPIO01 Serial RXD - Can be changed to GPIO_USER, only if Shelly is powered with 12V DC
2019-01-08 14:58:35 +00:00
0 ,
2019-03-18 01:10:10 +00:00
0 , // GPIO03 Serial TXD - Can be changed to GPIO_USER, only if Shelly is powered with 12V DC
2018-12-29 18:46:28 +00:00
GPIO_REL1 , // GPIO04 Relay (0 = Off, 1 = On)
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)
2018-09-02 15:17:49 +01:00
0 , 0 , 0 , 0 , 0 , 0
} ,
2018-12-29 18:46:28 +00:00
{ " Shelly 2 " , // Shelly2 (ESP8266 - 2MB) - https://shelly.cloud/shelly2/
2018-09-02 15:17:49 +01:00
0 ,
2019-02-04 17:18:47 +00:00
GPIO_MCP39F5_TX , // GPIO01 MCP39F501 Serial input
2019-01-07 15:33:18 +00:00
0 ,
2019-02-04 17:18:47 +00:00
GPIO_MCP39F5_RX , // GPIO03 MCP39F501 Serial output
2018-12-29 18:46:28 +00:00
GPIO_REL1 , // GPIO04
GPIO_REL2 , // 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)
GPIO_SWT1 , // GPIO12
2019-01-07 15:33:18 +00:00
0 ,
2018-12-29 18:46:28 +00:00
GPIO_SWT2 , // GPIO14
2019-02-04 17:18:47 +00:00
GPIO_MCP39F5_RST , // GPIO15 MCP39F501 Reset
2019-01-07 15:33:18 +00:00
0 ,
2019-02-17 15:05:53 +00:00
0
2018-09-13 15:43:23 +01:00
} ,
{ " Xiaomi Philips " , // Xiaomi Philips bulb (ESP8266)
0 , 0 , 0 , 0 , 0 , 0 ,
2018-12-29 18:46:28 +00: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)
2018-09-13 15:43:23 +01:00
GPIO_PWM2 , // GPIO12 cold/warm light
0 , 0 ,
GPIO_PWM1 , // GPIO15 light intensity
0 , 0
2018-09-27 17:36:42 +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
0 , 0 , 0 , 0 ,
2019-01-08 10:44:45 +00:00
GPIO_LED1_INV , // GPIO04 Red Led (0 = On, 1 = Off) - Link and Power status
2018-09-27 17:36:42 +01:00
0 ,
2018-12-29 18:46:28 +00: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)
2018-09-27 17:36:42 +01:00
GPIO_REL1 , // GPIO12 Red Led and Relay (0 = Off, 1 = On)
GPIO_KEY1 , // GPIO13 Button
0 , 0 , 0 , 0
2018-09-30 13:33:26 +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
GPIO_KEY2 , // GPIO00 Button 2
GPIO_USER , // GPIO01 Serial RXD and Optional sensor
GPIO_REL3_INV , // GPIO02 Yellow Led 3 (0 = On, 1 = Off)
GPIO_USER , // GPIO03 Serial TXD and Optional sensor
GPIO_KEY1 , // GPIO04 Button 1
GPIO_REL2_INV , // GPIO05 Red Led 2 (0 = On, 1 = Off)
2018-12-29 18:46:28 +00: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)
2018-09-30 13:33:26 +01:00
GPIO_REL4_INV , // GPIO12 Blue Led 4 (0 = On, 1 = Off)
GPIO_KEY4 , // GPIO13 Button 4
GPIO_KEY3 , // GPIO14 Button 3
GPIO_LED1 , // GPIO15 Optional sensor
GPIO_REL1_INV , // GPIO16 Green Led 1 (0 = On, 1 = Off)
2019-01-10 10:59:18 +00:00
0
2018-09-30 17:38:01 +01:00
} ,
{ " OBI Socket " , // OBI socket (ESP8266) - https://www.obi.de/hausfunksteuerung/wifi-stecker-schuko/p/2291706
2018-10-19 16:11:30 +01:00
GPIO_USER , // GPIO00
2018-11-24 15:32:09 +00:00
GPIO_USER , // GPIO01 Serial RXD
0 ,
GPIO_USER , // GPIO03 Serial TXD
2019-01-08 10:44:45 +00:00
GPIO_LED1 , // GPIO04 Blue LED - Link and Power status
2018-10-19 16:11:30 +01:00
GPIO_REL1 , // GPIO05 (Relay OFF, but used as Relay Switch)
2018-12-29 18:46:28 +00: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)
2019-01-06 17:02:21 +00:00
GPIO_LED3 , // GPIO12 (Relay ON, but set to LOW, so we can switch with GPIO05)
2018-10-19 16:11:30 +01:00
GPIO_USER , // GPIO13
GPIO_KEY1 , // GPIO14 Button
0 ,
GPIO_USER , // GPIO16
2019-05-13 14:56:01 +01:00
ADC0_USER // ADC0 A0 Analog input
2018-10-01 11:19:58 +01:00
} ,
{ " Teckin " , // https://www.amazon.de/gp/product/B07D5V139R
0 ,
GPIO_KEY1 , // GPIO01 Serial TXD and Button
0 ,
2019-05-21 17:11:39 +01:00
GPIO_LED1_INV , // GPIO03 Serial RXD and Red Led (0 = On, 1 = Off) - Power status
2018-10-07 11:37:03 +01:00
GPIO_HJL_CF , // GPIO04 BL0937 or HJL-01 CF power
GPIO_NRG_CF1 , // GPIO05 BL0937 or HJL-01 CF1 current / voltage
2018-12-29 18:46:28 +00: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)
2018-10-07 11:37:03 +01:00
GPIO_NRG_SEL_INV , // GPIO12 BL0937 or HJL-01 Sel output (0 = Voltage)
2019-05-21 17:11:39 +01:00
GPIO_LEDLNK_INV , // GPIO13 Blue Led (0 = On, 1 = Off) - Link status
2018-10-01 11:19:58 +01:00
GPIO_REL1 , // GPIO14 Relay (0 = Off, 1 = On)
0 , 0 , 0
2018-10-06 21:05:15 +01:00
} ,
2018-10-07 11:37:03 +01:00
{ " AplicWDP303075 " , // Aplic WDP 303075 (ESP8285 - HLW8012 Energy Monitoring)
2018-10-06 21:05:15 +01:00
// https://www.amazon.de/dp/B07CNWVNJ2
2018-10-07 11:37:03 +01:00
0 , 0 , 0 ,
GPIO_KEY1 , // GPIO03 Button
GPIO_HLW_CF , // GPIO04 HLW8012 CF power
GPIO_NRG_CF1 , // GPIO05 HLW8012 CF1 current / voltage
2018-12-29 18:46:28 +00: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)
2018-10-07 11:37:03 +01:00
GPIO_NRG_SEL_INV , // GPIO12 HLW8012 CF Sel output (0 = Voltage)
2019-01-08 10:44:45 +00:00
GPIO_LED1_INV , // GPIO13 LED (0 = On, 1 = Off) - Link and Power status
2018-10-07 11:37:03 +01:00
GPIO_REL1 , // GPIO14 Relay SRU 5VDC SDA (0 = Off, 1 = On )
0 , 0 , 0
2018-10-16 00:32:14 +01:00
} ,
2019-09-03 12:23:05 +01:00
{ " Tuya MCU " , // Tuya MCU device (ESP8266 w/ separate MCU)
2018-10-16 10:21:44 +01:00
// https://www.amazon.com/gp/product/B07CTNSZZ8/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1
2018-11-01 01:55:16 +00:00
GPIO_USER , // Virtual Button (controlled by MCU)
2018-10-27 03:37:50 +01:00
GPIO_USER , // GPIO01 MCU serial control
2018-10-18 12:01:31 +01:00
GPIO_USER ,
2018-10-27 03:37:50 +01:00
GPIO_USER , // GPIO03 MCU serial control
2018-10-18 12:01:31 +01:00
GPIO_USER ,
GPIO_USER ,
2018-12-29 18:46:28 +00: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)
2018-10-18 12:01:31 +01:00
GPIO_USER ,
2018-11-10 15:30:29 +00:00
GPIO_USER ,
GPIO_USER , // GPIO14 Green Led
GPIO_USER ,
GPIO_USER ,
0
} ,
2018-11-29 14:13:28 +00:00
{ " Gosund SP1 v23 " , // https://www.amazon.de/gp/product/B0777BWS1P
2018-11-16 09:39:57 +00:00
0 ,
2019-05-21 17:11:39 +01:00
GPIO_LEDLNK_INV , // GPIO01 Serial RXD and LED1 (blue) inv - Link status
2018-11-16 09:39:57 +00:00
0 ,
GPIO_KEY1 , // GPIO03 Serial TXD and Button
GPIO_HJL_CF , // GPIO04 BL0937 or HJL-01 CF power
GPIO_NRG_CF1 , // GPIO05 BL0937 or HJL-01 CF1 current / voltage
2018-12-29 18:46:28 +00: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)
2018-11-16 09:39:57 +00:00
GPIO_NRG_SEL_INV , // GPIO12 BL0937 or HJL-01 Sel output (0 = Voltage)
2019-05-21 17:11:39 +01:00
GPIO_LED1_INV , // GPIO13 LED2 (red) inv - Power status
2018-11-16 09:39:57 +00:00
GPIO_REL1 , // GPIO14 Relay (0 = Off, 1 = On)
0 , 0 , 0
} ,
2018-12-29 18:46:28 +00:00
{ " ARMTR Dimmer " , // 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/
2018-11-10 15:30:29 +00:00
GPIO_USER ,
2018-12-29 18:46:28 +00:00
GPIO_TXD , // GPIO01 MCU serial control
2018-11-24 15:08:53 +00:00
GPIO_USER ,
2018-12-29 18:46:28 +00:00
GPIO_RXD , // GPIO03 MCU serial control
2018-11-10 15:30:29 +00:00
GPIO_USER ,
GPIO_USER ,
2018-12-29 18:46:28 +00: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)
2018-11-10 15:30:29 +00:00
GPIO_USER ,
2018-10-18 12:01:31 +01:00
GPIO_USER ,
2018-11-24 15:08:53 +00:00
GPIO_USER ,
2018-10-18 12:01:31 +01:00
GPIO_USER ,
GPIO_USER ,
0
2018-11-18 23:02:09 +00:00
} ,
{ " SK03 Outdoor " , // Outdoor smart plug with power monitoring HLW8012 chip - https://www.amazon.com/gp/product/B07CG7MBPV
GPIO_KEY1 , // GPIO00 Button
2018-11-24 15:08:53 +00:00
0 , 0 , 0 ,
2018-11-18 23:02:09 +00:00
GPIO_HLW_CF , // GPIO04 HLW8012 CF power
GPIO_NRG_CF1 , // GPIO05 HLW8012 CF1 current / voltage
2018-12-29 18:46:28 +00: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)
2018-11-18 23:02:09 +00:00
GPIO_NRG_SEL_INV , // GPIO12 HLW8012 CF Sel output (0 = Voltage)
2019-05-21 17:11:39 +01:00
GPIO_LED1_INV , // GPIO13 Red Led (0 = On, 1 = Off) - Power status
GPIO_LEDLNK_INV , // GPIO14 Blue Led (0 = On, 1 = Off) - Link status
2018-11-18 23:02:09 +00:00
GPIO_REL1 , // GPIO15 Relay (0 = Off, 1 = On)
0 , 0
2018-11-24 02:29:32 +00:00
} ,
2018-11-27 14:11:10 +00:00
{ " PS-16-DZ " , // PS-16-DZ Dimmer (ESP8266 w/ separate Nuvoton MCU dimmer)
2018-11-24 02:29:32 +00:00
// https://www.aliexpress.com/item/SM-Smart-WIFI-Wall-Dimmer-Light-Switch-US-Ewelink-APP-Remote-Control-Wi-Fi-Wirele-Work/32871151902.html
GPIO_USER ,
GPIO_TXD , // GPIO01 MCU serial control
GPIO_USER ,
2018-11-27 00:30:05 +00:00
GPIO_RXD , // GPIO03 MCU serial control
2018-11-24 02:29:32 +00:00
GPIO_USER ,
2019-04-10 13:54:50 +01:00
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)
GPIO_USER ,
GPIO_LED1 , // GPIO13 WiFi LED - Link and Power status
GPIO_USER ,
GPIO_USER ,
GPIO_USER ,
0
} ,
2018-11-29 14:13:28 +00: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
2019-05-21 17:11:39 +01:00
GPIO_LED1_INV , // GPIO00 Red Led (1 = On, 0 = Off) - Power status
2018-11-29 14:13:28 +00:00
0 ,
2019-05-21 17:11:39 +01:00
GPIO_LEDLNK_INV , // GPIO02 Blue Led (1 = On, 0 = Off) - Link status
2018-11-29 14:13:28 +00:00
0 ,
GPIO_REL1 , // GPIO04 Relay (0 = Off, 1 = On)
GPIO_HJL_CF , // GPIO05 BL0937 or HJL-01 CF power
2018-12-29 18:46:28 +00: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)
2018-11-29 14:13:28 +00:00
GPIO_NRG_SEL_INV , // GPIO12 BL0937 or HJL-01 Sel output (0 = Voltage)
GPIO_KEY1 , // GPIO13 Button
GPIO_NRG_CF1 , // GPIO14 BL0937 or HJL-01 CF1 current / voltage
0 , 0 , 0
2018-12-11 13:49:58 +00:00
} ,
2018-12-11 17:00:12 +00:00
{ " Manzoku strip " , // "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/
2018-12-11 13:49:58 +00:00
0 , // GPIO00
0 , // GPIO01 Serial RXD
0 ,
GPIO_KEY1 , // GPIO03 Serial TXD + Button
GPIO_REL2 , // GPIO04 Relay 2
GPIO_REL1 , // GPIO05 Relay 1
2018-12-29 18:46:28 +00: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)
2018-12-11 13:49:58 +00:00
GPIO_REL3 , // GPIO12 Relay 3
GPIO_REL4 , // GPIO13 Relay 4
GPIO_USER , // GPIO14
0 ,
GPIO_USER , // GPIO16
0
2019-01-08 15:27:16 +00:00
} ,
{ " OBI Socket 2 " , // OBI socket (ESP8266) - https://www.obi.de/hausfunksteuerung/wifi-stecker-schuko-2-stueck-weiss/p/4077673
0 , // GPIO00
0 , // GPIO01 Serial RXD
0 ,
0 , // GPIO03 Serial TXD
GPIO_REL1 , // GPIO04 Relay 1
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)
2019-05-21 17:11:39 +01:00
GPIO_LEDLNK_INV , // GPIO12 Green LED - Link status
GPIO_LED1 , // GPIO13 Red LED - Power status
2019-01-08 15:27:16 +00:00
0 , 0 , 0 , 0
} ,
{ " 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
GPIO_USER , // GPIO00
GPIO_USER , // GPIO01 Serial RXD
GPIO_USER , // GPIO02
GPIO_USER , // GPIO03 Serial TXD
GPIO_LED1_INV , // GPIO04 Blue Led - Link status
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
GPIO_KEY1 , // GPIO13 Button
GPIO_IRSEND , // GPIO14 IR Transmitter
0 , 0 , 0
2019-01-11 13:29:54 +00:00
} ,
{ " Digoo DG-SP202 " , // 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
GPIO_KEY1 , // GPIO00 Button1
0 , // GPIO01 Serial RXD
0 , // GPIO02
0 , // GPIO03 Serial TXD
GPIO_HJL_CF , // GPIO04 BL0937 or HJL-01 CF power
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)
GPIO_NRG_SEL_INV , // GPIO12 BL0937 or HJL-01 Sel output (0 = Voltage)
GPIO_LED1 , // GPIO13 Blue Leds - Link Status
GPIO_REL2 , // GPIO14 Relay2 (0 = Off, 1 = On) and Red Led
GPIO_REL1 , // GPIO15 Relay1 (0 = Off, 1 = On) and Red Led
GPIO_KEY2_NP , // GPIO16 Button2, externally pulled up
0
2019-01-12 14:16:37 +00:00
} ,
2019-01-07 16:44:30 +00:00
{ " KA10 " , // SMANERGY KA10 (ESP8285 - BL0937 Energy Monitoring) - https://www.amazon.es/dp/B07MBTCH2Y
0 , // GPIO00
2019-05-21 17:11:39 +01:00
GPIO_LEDLNK_INV , // GPIO01 Blue LED - Link status
2019-01-07 16:44:30 +00:00
0 , // GPIO02
GPIO_KEY1 , // GPIO03 Button
GPIO_HJL_CF , // GPIO04 BL0937 CF power
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)
GPIO_NRG_SEL_INV , // GPIO12 BL0937 Sel output (1 = Voltage)
2019-05-21 17:11:39 +01:00
GPIO_LED1 , // GPIO13 Red LED - Power status
2019-01-07 16:44:30 +00:00
GPIO_REL1 , // GPIO14 Relay 1
0 , 0 , 0
2019-01-14 02:35:33 +00:00
} ,
2019-01-13 18:33:27 +00:00
{ " Luminea ZX2820 " ,
2019-01-14 09:57:01 +00:00
GPIO_KEY1 , // GPIO00 Button
2019-01-13 18:33:27 +00:00
0 , 0 , 0 ,
GPIO_HLW_CF , // GPIO04 HLW8012 CF power
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)
GPIO_NRG_SEL_INV , // GPIO12 HLW8012 SEL (0 = Voltage)
GPIO_LED1_INV , // GPIO13 Green Led - Link and Power status
GPIO_REL1 , // GPIO14 Relay
0 , 0 , 0
2019-01-11 00:50:40 +00:00
} ,
2019-01-15 15:11:42 +00:00
{ " Mi Desk Lamp " , // Mi LED Desk Lamp - https://www.mi.com/global/smartlamp/
2019-01-11 00:50:40 +00:00
0 , 0 ,
GPIO_KEY1 , // GPIO02 Button
0 ,
GPIO_PWM1 , // GPIO04 Cold White
GPIO_PWM2 , // GPIO05 Warm White
// GPIO06 (SD_CLK Flash)
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
// GPIO08 (SD_DATA1 Flash QIO/DIO/DOUT)
2019-01-15 15:11:42 +00:00
0 , // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
0 , // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
2019-01-11 00:50:40 +00:00
// GPIO11 (SD_CMD Flash)
2019-02-11 18:21:49 +00:00
GPIO_ROT1A , // GPIO12 Rotary switch A pin
GPIO_ROT1B , // GPIO13 Rotary switch B pin
2019-01-11 00:50:40 +00:00
0 , 0 , 0 , 0
2019-01-19 22:28:58 +00:00
} ,
2019-02-01 13:55:33 +00:00
{ " SP10 " , // Tuya SP10 (BL0937 Energy Monitoring)
2019-01-30 18:44:48 +00:00
// 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
GPIO_PWM1 , // GPIO01 Nightlight
0 , // GPIO02
GPIO_KEY1 , // GPIO03 Button
GPIO_HJL_CF , // GPIO04 BL0937 CF power
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)
GPIO_NRG_SEL_INV , // GPIO12 BL0937 Sel output (1 = Voltage)
GPIO_LED1 , // GPIO13 Blue LED - Link status
2019-02-01 13:55:33 +00:00
GPIO_REL1 , // GPIO14 Relay and red LED
2019-01-30 18:44:48 +00:00
0 , 0 , 0
2019-02-01 04:27:35 +00:00
} ,
2019-02-01 13:54:35 +00:00
{ " WAGA CHCZ02MB " , // WAGA life CHCZ02MB (HJL-01 Energy Monitoring)
// https://www.ebay.com/itm/332595697006
2019-05-21 17:11:39 +01:00
GPIO_LED1_INV , // GPIO00 Red LED
2019-02-09 14:04:58 +00:00
0 , // GPIO01 Serial RXD
2019-02-01 13:54:35 +00:00
0 , // GPIO02
GPIO_NRG_SEL_INV , // GPIO03 HJL-01 Sel output (1 = Voltage)
2019-02-04 11:53:10 +00:00
0 , // GPIO04
2019-02-01 13:54:35 +00:00
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)
GPIO_REL1 , // GPIO12 Relay
GPIO_KEY1 , // GPIO13 Button
GPIO_NRG_CF1 , // GPIO14 HJL-01 CF1 voltage / current
2019-05-21 17:11:39 +01:00
GPIO_LEDLNK_INV , // GPIO15 Blue LED - Link status
2019-02-01 13:54:35 +00:00
0 , 0
2019-02-03 06:54:23 +00:00
} ,
2019-01-19 22:28:58 +00:00
{ " SYF05 " , // Sunyesmart SYF05 (a.k.a. Fcmila) = TYWE3S + SM16726
2019-02-02 00:28:16 +00:00
// Also works with Merkury 904 RGBW Bulbs with 13 set to GPIO_SM16716_SEL
2019-01-19 22:28:58 +00:00
// 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
GPIO_USER , // GPIO00 N.C.
2019-02-09 14:04:58 +00:00
0 , // GPIO01 Serial RXD
2019-01-19 22:28:58 +00:00
GPIO_USER , // GPIO02 N.C.
2019-02-09 14:04:58 +00:00
0 , // GPIO03 Serial TXD
2019-02-02 00:28:16 +00:00
GPIO_SM16716_CLK , // GPIO04 SM16716 Clock
GPIO_PWM1 , // GPIO05 White
2019-02-09 14:04:58 +00: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)
2019-02-02 00:28:16 +00:00
GPIO_USER , // GPIO12 Alt. White on some devices
2019-02-06 23:51:54 +00:00
GPIO_USER , // GPIO13 SM16716 Enable on some devices
2019-02-02 00:28:16 +00:00
GPIO_SM16716_DAT , // GPIO14 SM16716 Data
2019-01-21 06:44:07 +00:00
0 , // GPIO15 wired to GND
2019-01-19 22:28:58 +00:00
GPIO_USER , // GPIO16 N.C.
2019-05-13 14:56:01 +01:00
ADC0_USER // ADC0 A0 Analog input
2019-07-01 23:01:21 +01:00
} ,
2019-07-02 09:54:30 +01:00
{ " Sonoff L1 " , // Sonoff L1 RGB LED controller (ESP8266 w/ separate Nuvoton MCU)
2019-07-22 17:21:25 +01:00
0 ,
2019-07-01 23:01:21 +01:00
GPIO_TXD , // GPIO01 MCU serial control
2019-07-22 17:21:25 +01:00
0 ,
2019-07-01 23:01:21 +01:00
GPIO_RXD , // GPIO03 MCU serial control
2019-07-22 17:21:25 +01:00
0 , 0 ,
2019-07-01 23:01:21 +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)
2019-07-22 17:21:25 +01:00
0 ,
GPIO_LED1_INV , // GPIO13 WiFi Blue Led - Link and Power status
0 , 0 , 0 , 0
2019-07-14 14:23:02 +01:00
} ,
{ " Sonoff iFan03 " , // Sonoff iFan03 (ESP8285)
2019-07-16 16:32:49 +01:00
GPIO_KEY1 , // GPIO00 WIFI_KEY0 Button 1
GPIO_TXD , // GPIO01 ESP_TXD Serial RXD connection to P0.5 of RF microcontroller
2019-07-14 14:23:02 +01:00
0 , // GPIO02 ESP_LOG
2019-07-16 16:32:49 +01:00
GPIO_RXD , // GPIO03 ESP_RXD Serial TXD connection to P0.4 of RF microcontroller
2019-07-14 14:23:02 +01:00
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)
GPIO_REL1_INV , // GPIO09 WIFI_O0 Relay 1 (0 = Off, 1 = On) controlling the light
GPIO_BUZZER_INV , // GPIO10 WIFI_O4 Buzzer (0 = Off, 1 = On)
// GPIO11 (SD_CMD Flash)
GPIO_REL3 , // GPIO12 WIFI_O2 Relay 3 (0 = Off, 1 = On) controlling the fan
GPIO_LED1_INV , // GPIO13 WIFI_CHK Blue Led on PCA (0 = On, 1 = Off) - Link and Power status
GPIO_REL2 , // GPIO14 WIFI_O1 Relay 2 (0 = Off, 1 = On) controlling the fan
GPIO_REL4 , // GPIO15 WIFI_O3 Relay 4 (0 = Off, 1 = On) controlling the fan
0 , 0
2019-01-14 09:57:01 +00:00
}
2019-01-12 14:16:37 +00:00
} ;
/*
Optionals
2019-01-07 16:44:30 +00:00
2019-02-09 16:01:44 +00:00
{ " RGB Smart Plug " , // Tuya based smart plug with power monitoring and RGB light
// https://www.aliexpress.com/item/ET-Smart-Plug-Wifi-Socket-With-Switch-Phone-APP-Voice-Remote-Control-Monitor-Smart-Timing-Switch/32964036349.html?spm=a2g0s.9042311.0.0.439c4c4d4N8N2Q
// https://xiangshangcn.en.alibaba.com/product/60844251239-807590977/RGB_wifi_smart_plug_smart_socket_smart_outlet_EU_works_with_Amazon_alexa_google_home_mobile_app_tuya_solution_smart_life.html?spm=a2700.icbuShop.41413.24.4e996767oFAAmO
GPIO_PWM1 , // GPIO00 Red
GPIO_USER , // GPIO01 Serial RXD and Optional sensor
GPIO_PWM3 , // GPIO02 Blue
GPIO_USER , // GPIO03 Serial TXD and Optional sensor
GPIO_PWM2 , // GPIO04 Green
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)
GPIO_NRG_SEL_INV , // GPIO12 BL0937 or HJL-01 Sel output (0 = Voltage)
GPIO_KEY1 , // GPIO13 Button
GPIO_NRG_CF1 , // GPIO14 BL0937 or HJL-01 CF1 current / voltage
GPIO_REL1 , // GPIO15 Relay (0 = Off, 1 = On)
0 , 0
}
2019-01-27 13:54:28 +00:00
{ " ESP RGBWWC " , // esp rgbww controller https://github.com/pljakobs/esp_rgbww_controller/tree/v2.3
GPIO_KEY1 , // GPIO00 Button
GPIO_USER , // GPIO01 Serial RXD and Optional sensor
0 , // GPIO02
GPIO_USER , // GPIO03 Serial TXD and Optional sensor
GPIO_PWM5 , // GPIO04 LED Warm White
GPIO_PWM4 , // GPIO05 LED Cold 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)
GPIO_PWM2 , // GPIO12 LED Green
GPIO_PWM1 , // GPIO13 LED Red
GPIO_PWM3 , // GPIO14 LED Blue
0 , // GPIO15
GPIO_KEY2 , // GPIO16 Button
0
}
2019-01-10 10:59:18 +00:00
{ " N0DY Relay " , // N0DY Wifi Dual Relay (ESP-07)
// https://www.n0dy.com/product/web-controlled-dual-relay/
// https://www.amazon.com/dp/B072MKV8ZM
GPIO_KEY1 , // GPIO00 PROG Button
GPIO_USER , // GPIO01 Serial RXD or Optional sensor on J2 RXD (if not using serial io)
2019-01-11 13:29:54 +00:00
0 , // GPIO02
2019-01-10 10:59:18 +00:00
GPIO_USER , // GPIO03 Serial TXD or Optional sensor on J2 TXD (if not using serial io)
GPIO_REL2_INV , // GPIO04 Relay 2 (active low)
GPIO_REL1_INV , // GPIO05 Relay 1 (active low)
// 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 , 0 , 0 , 0 , 0 , 0
}
2018-09-29 11:34:24 +01:00
{ " MagicHome " , // Magic Home (aka Flux-light) (ESP8266)
// https://www.aliexpress.com/item/Magic-Home-Mini-RGB-RGBW-Wifi-Controller-For-Led-Strip-Panel-light-Timing-Function-16million-colors/32686853650.html
0 ,
GPIO_USER , // GPIO01 Serial RXD and Optional sensor
2019-01-08 10:44:45 +00:00
GPIO_LED1_INV , // GPIO02 Blue onboard LED - Link and Power status
2018-09-29 11:34:24 +01:00
GPIO_USER , // GPIO03 Serial TXD and Optional sensor
GPIO_USER , // GPIO04 IR receiver (optional)
GPIO_PWM2 , // GPIO05 RGB LED Green
2018-12-29 18:46:28 +00: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)
2018-09-29 11:34:24 +01:00
GPIO_PWM3 , // GPIO12 RGB LED Blue
GPIO_USER , // GPIO13 RGBW LED White (optional - set to PWM4 for Cold White or Warm White)
GPIO_PWM1 , // GPIO14 RGB LED Red
0 , 0 , 0
2019-01-07 16:44:30 +00:00
}
2018-09-26 10:56:58 +01:00
{ " Arilux LC10 " , // Arilux LC10 (ESP8285), RGBW + RF
// https://github.com/arendst/Sonoff-Tasmota/wiki/MagicHome-with-ESP8285
// https://www.aliexpress.com/item/DC5-24V-Wireless-WIFI-LED-RGB-Controller-RGBW-Controller-IR-RF-Remote-Control-IOS-Android-for/32827253255.html
// https://www.aliexpress.com/item/Wifi-LED-RGB-Controler-DC12V-MIni-Wifi-RGB-RGBW-LED-Controller-for-RGB-RGBW-LED-Strip/32673444047.html
GPIO_USER , // GPIO00 Optional Button
GPIO_USER , // GPIO01 Serial RXD and Optional sensor
0 ,
GPIO_USER , // GPIO03 Serial TXD and Optional sensor0
GPIO_ARIRFRCV , // GPIO04 RF receiver input
GPIO_PWM2 , // GPIO05 RGB LED Green
2018-12-29 18:46:28 +00: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)
2018-09-26 10:56:58 +01:00
GPIO_PWM3 , // GPIO12 RGB LED Blue
GPIO_PWM4 , // GPIO13 RGBW LED White
GPIO_PWM1 , // GPIO14 RGB LED Red
2019-05-21 17:11:39 +01:00
GPIO_ARIRFSEL , // GPIO15 RF receiver control
2018-09-26 10:56:58 +01:00
0 , 0
}
2017-12-25 16:41:12 +00:00
{ " Xenon 3CH " , // Xenon 3CH (ESP8266) - (#1128)
0 , 0 , 0 ,
GPIO_KEY2 , // GPIO03 Serial TXD and Optional sensor
GPIO_REL2 , // GPIO04 Relay 2
GPIO_KEY3 , // GPIO05 Input 2
2018-12-29 18:46:28 +00: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)
2017-12-25 16:41:12 +00:00
GPIO_KEY1 , // GPIO12 Key input
GPIO_REL1 , // GPIO13 Relay 1
0 ,
GPIO_REL3 , // GPIO15 Relay 3
0 , 0
}
2018-01-05 11:26:19 +00:00
{ " PowStro Basic " , // PowStro (ESP8266) - (#1419)
0 , 0 , 0 , 0 ,
GPIO_REL1 , // GPIO04 Relay (0 = Off, 1 = On)
0 ,
2018-12-29 18:46:28 +00: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)
2018-01-05 11:26:19 +00:00
GPIO_KEY1 , // GPIO12 Button
0 , 0 ,
2019-01-08 10:44:45 +00:00
GPIO_LED1 , // GPIO15 Led (1 = On, 0 = Off) - Link and Power status
2018-01-05 11:26:19 +00:00
0 , 0
}
2018-01-07 13:56:23 +00:00
2018-01-18 15:19:28 +00:00
{ " SMPW701E " , // SM-PW701E WLAN Socket (#1190)
0 , 0 , 0 , 0 ,
2019-01-08 10:44:45 +00:00
GPIO_LED1_INV , // GPIO04 Blue Led (0 = On, 1 = Off) - Link and Power status
2018-01-18 15:19:28 +00:00
0 , // GPIO05 IR or RF receiver (optional)
2018-12-29 18:46:28 +00: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)
2018-01-18 15:19:28 +00:00
GPIO_REL1 , // GPIO12 Relay and Red Led (0 = Off, 1 = On)
GPIO_KEY1 , // GPIO13 Button
0 , 0 , 0 , 0
}
{ " SWA1 " , // Smart Plugs (ESP8266)
0 ,
GPIO_USER , // GPIO01
0 ,
GPIO_USER , // GPIO03
2019-01-08 10:44:45 +00:00
GPIO_LED1_INV , // GPIO04 Blue LED - Link and Power status
2018-01-18 15:19:28 +00:00
GPIO_REL1 , // GPIO05 Red LED and relay
2018-12-29 18:46:28 +00: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)
2018-01-18 15:19:28 +00:00
0 ,
GPIO_KEY1 , // GPIO13 Button (normally GPIO00)
GPIO_USER , // GPIO14
0 , 0 , 0
}
2018-01-24 16:31:20 +00:00
{ " MagicHome v2.3 " , // Magic Home (aka Flux-light) (ESP8266) (#1353)
0 , 0 ,
2019-01-08 10:44:45 +00:00
GPIO_LED1_INV , // GPIO02 Blue onboard LED - Link and Power status
2018-01-24 16:31:20 +00:00
0 ,
GPIO_USER , // GPIO04 IR receiver (optional)
GPIO_PWM2 , // GPIO05 RGB LED Green
2018-12-29 18:46:28 +00: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)
2018-01-24 16:31:20 +00:00
GPIO_PWM1 , // GPIO12 RGB LED Red
GPIO_PWM3 , // GPIO13 RGB LED Blue
0 ,
GPIO_PWM4 , // GPIO15 RGBW LED White
0 , 0
2018-02-16 16:35:51 +00:00
}
2018-09-05 17:01:15 +01:00
{ " Ledunia " , // Ledunia (ESP8266 - 32MB) - http://ledunia.de/
2018-02-16 16:35:51 +00:00
GPIO_USER , // GPIO00 (D0)
GPIO_USER , // GPIO01 (D7) Serial RXD
GPIO_USER , // GPIO02 (D2)
GPIO_USER , // GPIO03 (D8) Serial TXD
GPIO_USER , // GPIO04 (D4) 4 x WS2812 Leds, (DOUT) Extents WS2812 string
GPIO_USER , // GPIO05 (D5) Blue Led
2018-12-29 18:46:28 +00: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)
2018-02-16 16:35:51 +00:00
GPIO_USER , // GPIO12 (D12)
GPIO_USER , // GPIO13 (D13)
GPIO_USER , // GPIO14 (D14)
GPIO_USER , // GPIO15 (D15)
GPIO_USER , // GPIO16 (D16)
0 // ADC0 Analog input (A0)
2018-09-02 15:17:49 +01:00
}
2018-11-24 15:08:53 +00:00
{ " Delock 11826 " , // Delock 11826 (ESP8285) = Sonoff Basic
GPIO_KEY1 , // GPIO00 Button
0 , 0 , 0 , 0 , 0 ,
2018-12-29 18:46:28 +00: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)
2018-11-24 15:08:53 +00:00
GPIO_REL1 , // GPIO12 Red Led and Relay (0 = Off, 1 = On)
2019-01-08 10:44:45 +00:00
GPIO_LED1_INV , // GPIO13 Green Led (0 = On, 1 = Off) - Link and Power status
2018-11-24 15:08:53 +00:00
0 , 0 , 0 , 0
}
2017-12-25 16:41:12 +00:00
*/
2018-09-07 06:54:29 +01:00
# endif // _SONOFF_TEMPLATE_H_