mirror of https://github.com/arendst/Tasmota.git
Clarify Link/Power LED selection
Clarify Link/Power LED selection
This commit is contained in:
parent
4224f25234
commit
23fa3c624a
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* 6.4.1.7 20190106
|
||||
* Fix HLW8012, HJL01 and BL0937 based energy sensors low Power (below 10W) measurement regression from 6.4.1.6
|
||||
* Add relay status functionality to LED2 when configured leaving LED1 for (wifi/mqtt) status indication
|
||||
* Add Power status functionality to LED2 when configured leaving LED1 for Link status indication
|
||||
* Add no pull-up control to Shelly 2 module (default is pull-up, change GPIO2 to Switch3n for no pull-up) (#4841)
|
||||
* Add 4 seconds startup delay to button control (#4829)
|
||||
* Change button driver making it modular
|
||||
|
|
|
@ -371,7 +371,7 @@ void SetLedPower(uint8_t state)
|
|||
digitalWrite(pin[GPIO_LED1 + led_pin], (bitRead(led_inverted, led_pin)) ? !state : state);
|
||||
}
|
||||
|
||||
void SetLedWifi(uint8_t state)
|
||||
void SetLedLink(uint8_t state)
|
||||
{
|
||||
if (state) state = 1;
|
||||
digitalWrite(pin[GPIO_LED1], (bitRead(led_inverted, 0)) ? !state : state);
|
||||
|
@ -1283,7 +1283,7 @@ void MqttDataHandler(char* topic, byte* data, unsigned int data_len)
|
|||
Settings.ledstate = payload;
|
||||
if (!Settings.ledstate) {
|
||||
SetLedPower(0);
|
||||
SetLedWifi(0);
|
||||
SetLedLink(0);
|
||||
}
|
||||
}
|
||||
snprintf_P(mqtt_data, sizeof(mqtt_data), S_JSON_COMMAND_NVALUE, command, Settings.ledstate);
|
||||
|
@ -1827,7 +1827,7 @@ void Every250mSeconds(void)
|
|||
if ((!(Settings.ledstate &0x08)) && ((Settings.ledstate &0x06) || (blinks > 200) || (blinkstate))) {
|
||||
// if ( (!Settings.flag.global_state && global_state.data) || ((!(Settings.ledstate &0x08)) && ((Settings.ledstate &0x06) || (blinks > 200) || (blinkstate))) ) {
|
||||
// SetLedPower(blinkstate); // Set led on or off
|
||||
SetLedWifi(blinkstate); // Set led on or off
|
||||
SetLedLink(blinkstate); // Set led on or off
|
||||
}
|
||||
if (!blinkstate) {
|
||||
blinks--;
|
||||
|
@ -2341,7 +2341,7 @@ void GpioInit(void)
|
|||
}
|
||||
|
||||
SetLedPower(Settings.ledstate &8);
|
||||
SetLedWifi(Settings.ledstate &8);
|
||||
SetLedLink(Settings.ledstate &8);
|
||||
|
||||
XdrvCall(FUNC_PRE_INIT);
|
||||
}
|
||||
|
|
|
@ -579,7 +579,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
|
||||
// GPIO11 (SD_CMD Flash)
|
||||
GPIO_REL1, // GPIO12 Red Led and Relay (0 = Off, 1 = On)
|
||||
GPIO_LED1_INV, // GPIO13 Green Led (0 = On, 1 = Off)
|
||||
GPIO_LED1_INV, // GPIO13 Green Led (0 = On, 1 = Off) - Link and Power status
|
||||
GPIO_USER, // GPIO14 Optional sensor
|
||||
0, // GPIO15
|
||||
0, // GPIO16
|
||||
|
@ -599,7 +599,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
|
||||
// GPIO11 (SD_CMD Flash)
|
||||
GPIO_REL1, // GPIO12 Red Led and Relay (0 = Off, 1 = On)
|
||||
GPIO_LED1_INV, // GPIO13 Green Led (0 = On, 1 = Off)
|
||||
GPIO_LED1_INV, // GPIO13 Green Led (0 = On, 1 = Off) - Link and Power status
|
||||
GPIO_USER, // GPIO14 Optional sensor
|
||||
0, 0, 0
|
||||
},
|
||||
|
@ -617,7 +617,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
|
||||
// GPIO11 (SD_CMD Flash)
|
||||
GPIO_REL1, // GPIO12 Red Led and Relay (0 = Off, 1 = On)
|
||||
GPIO_LED1_INV, // GPIO13 Green Led (0 = On, 1 = Off)
|
||||
GPIO_LED1_INV, // GPIO13 Green Led (0 = On, 1 = Off) - Link and Power status
|
||||
GPIO_USER, // GPIO14 Optional sensor
|
||||
0, 0,
|
||||
GPIO_FLAG_ADC0 // ADC0 Analog input
|
||||
|
@ -636,7 +636,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
|
||||
// GPIO11 (SD_CMD Flash)
|
||||
GPIO_REL1, // GPIO12 Red Led and Relay (0 = Off, 1 = On)
|
||||
GPIO_LED1_INV, // GPIO13 Green Led (0 = On, 1 = Off)
|
||||
GPIO_LED1_INV, // GPIO13 Green Led (0 = On, 1 = Off) - Link and Power status
|
||||
GPIO_USER, // GPIO14 Optional sensor
|
||||
0, 0, 0
|
||||
},
|
||||
|
@ -654,7 +654,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
|
||||
// GPIO11 (SD_CMD Flash)
|
||||
0,
|
||||
GPIO_LED1_INV, // GPIO13 Blue Led (0 = On, 1 = Off)
|
||||
GPIO_LED1_INV, // GPIO13 Blue Led (0 = On, 1 = Off) - Link and Power status
|
||||
GPIO_USER, // GPIO14 Optional sensor
|
||||
0, 0, 0
|
||||
},
|
||||
|
@ -671,7 +671,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
GPIO_REL1, // GPIO12 Red Led and Relay (0 = Off, 1 = On)
|
||||
GPIO_NRG_CF1, // GPIO13 HLW8012 CF1 voltage / current
|
||||
GPIO_HLW_CF, // GPIO14 HLW8012 CF power
|
||||
GPIO_LED1, // GPIO15 Blue Led (0 = On, 1 = Off)
|
||||
GPIO_LED1, // GPIO15 Blue Led (0 = On, 1 = Off) - Link and Power status
|
||||
0, 0
|
||||
},
|
||||
{ "Sonoff 4CH", // Sonoff 4CH (ESP8285)
|
||||
|
@ -687,7 +687,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
GPIO_KEY2, // GPIO09 Button 2
|
||||
GPIO_KEY3, // GPIO10 Button 3
|
||||
// GPIO11 (SD_CMD Flash)
|
||||
GPIO_REL1, // GPIO12 Red Led and Relay 1 (0 = Off, 1 = On)
|
||||
GPIO_REL1, // GPIO12 Red Led and Relay 1 (0 = Off, 1 = On) - Link and Power status
|
||||
GPIO_LED1_INV, // GPIO13 Blue Led (0 = On, 1 = Off)
|
||||
GPIO_KEY4, // GPIO14 Button 4
|
||||
GPIO_REL4, // GPIO15 Red Led and Relay 4 (0 = Off, 1 = On)
|
||||
|
@ -705,7 +705,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
|
||||
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
|
||||
// GPIO11 (SD_CMD Flash)
|
||||
GPIO_REL1, // GPIO12 Red Led and Relay (0 = Off, 1 = On)
|
||||
GPIO_REL1, // GPIO12 Red Led and Relay (0 = Off, 1 = On) - Link and Power status
|
||||
GPIO_LED1_INV, // GPIO13 Green/Blue Led (0 = On, 1 = Off)
|
||||
0, 0, 0, 0
|
||||
},
|
||||
|
@ -722,7 +722,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
|
||||
// GPIO11 (SD_CMD Flash)
|
||||
GPIO_REL1, // GPIO12 Red Led and Relay (0 = Off, 1 = On)
|
||||
GPIO_LED1_INV, // GPIO13 Blue Led (0 = On, 1 = Off)
|
||||
GPIO_LED1_INV, // GPIO13 Blue Led (0 = On, 1 = Off) - Link and Power status
|
||||
0, 0, 0, 0
|
||||
},
|
||||
{ "Sonoff Touch", // Sonoff Touch (ESP8285)
|
||||
|
@ -737,7 +737,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
0, // GPIO09
|
||||
0, // GPIO10
|
||||
// GPIO11 (SD_CMD Flash)
|
||||
GPIO_REL1, // GPIO12 Red Led and Relay (0 = Off, 1 = On)
|
||||
GPIO_REL1, // GPIO12 Red Led and Relay (0 = Off, 1 = On) - Link and Power status
|
||||
GPIO_LED1_INV, // GPIO13 Blue Led (0 = On, 1 = Off)
|
||||
0, 0, 0, 0
|
||||
},
|
||||
|
@ -753,7 +753,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
|
||||
// GPIO11 (SD_CMD Flash)
|
||||
GPIO_PWM1, // GPIO12 Cold light (PWM0 Cold)
|
||||
GPIO_LED1_INV, // GPIO13 Blue Led (0 = On, 1 = Off)
|
||||
GPIO_LED1_INV, // GPIO13 Blue Led (0 = On, 1 = Off) - Link and Power status
|
||||
GPIO_PWM2, // GPIO14 Warm light (PWM1 Warm)
|
||||
GPIO_USER, // GPIO15 Optional sensor (PWM4 Blue)
|
||||
0, 0
|
||||
|
@ -768,7 +768,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
|
||||
// GPIO11 (SD_CMD Flash)
|
||||
GPIO_REL1, // GPIO12 Red Led and Relay (0 = Off, 1 = On)
|
||||
GPIO_LED1_INV, // GPIO13 Green Led (0 = On, 1 = Off)
|
||||
GPIO_LED1_INV, // GPIO13 Green Led (0 = On, 1 = Off) - Link and Power status
|
||||
0, 0, 0, 0
|
||||
},
|
||||
{ "4 Channel", // 4 Channel Inching/Latching Relays (ESP8266)
|
||||
|
@ -784,7 +784,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
|
||||
// GPIO11 (SD_CMD Flash)
|
||||
0,
|
||||
GPIO_LED1_INV, // GPIO13 Blue Led (0 = On, 1 = Off)
|
||||
GPIO_LED1_INV, // GPIO13 Blue Led (0 = On, 1 = Off) - Link and Power status
|
||||
0, 0, 0, 0
|
||||
},
|
||||
{ "Motor C/AC", // Motor Clockwise / Anti clockwise (PSA-B01 - ESP8266)
|
||||
|
@ -797,7 +797,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
|
||||
// GPIO11 (SD_CMD Flash)
|
||||
GPIO_REL1, // GPIO12 Red Led and Relay (0 = Off, 1 = On)
|
||||
GPIO_LED1_INV, // GPIO13 Green Led (0 = On, 1 = Off)
|
||||
GPIO_LED1_INV, // GPIO13 Green Led (0 = On, 1 = Off) - Link and Power status
|
||||
0, 0, 0, 0
|
||||
},
|
||||
{ "ElectroDragon", // ElectroDragon IoT Relay Board (ESP8266)
|
||||
|
@ -817,7 +817,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
GPIO_REL1, // GPIO13 Red Led and Relay 1 (0 = Off, 1 = On)
|
||||
GPIO_USER, // GPIO14 Optional sensor
|
||||
GPIO_USER, // GPIO15 Optional sensor
|
||||
GPIO_LED1, // GPIO16 Green/Blue Led (1 = On, 0 = Off)
|
||||
GPIO_LED1, // GPIO16 Green/Blue Led (1 = On, 0 = Off) - Link and Power status
|
||||
GPIO_FLAG_ADC0 // ADC0 A0 Analog input
|
||||
},
|
||||
{ "EXS Relay(s)", // ES-Store Latching relay(s) (ESP8266)
|
||||
|
@ -839,7 +839,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
GPIO_REL1, // GPIO12 Relay1 ( 1 = Off)
|
||||
GPIO_REL2, // GPIO13 Relay1 ( 1 = On)
|
||||
GPIO_USER, // GPIO14 V3.1 Module Pin 5 - V5.0 GPIO_REL3_INV Relay2 ( 1 = Off)
|
||||
GPIO_LED1, // GPIO15 V5.0 LED1
|
||||
GPIO_LED1, // GPIO15 V5.0 LED1 - Link and Power status
|
||||
GPIO_USER, // GPIO16 V3.1 Module Pin 4 - V5.0 GPIO_REL4_INV Relay2 ( 1 = On)
|
||||
0
|
||||
},
|
||||
|
@ -847,7 +847,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
// https://www.amazon.com/gp/product/B00ZYLUBJU/ref=s9_acsd_al_bw_c_x_3_w
|
||||
GPIO_USER, // GPIO00 Optional sensor (pm clock)
|
||||
0,
|
||||
GPIO_LED1, // GPIO02 Green Led (1 = On, 0 = Off)
|
||||
GPIO_LED1, // GPIO02 Green Led (1 = On, 0 = Off) - Link and Power status
|
||||
0, 0, 0,
|
||||
// GPIO06 (SD_CLK Flash)
|
||||
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
|
||||
|
@ -904,7 +904,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
},
|
||||
{ "H801", // Lixada H801 Wifi (ESP8266)
|
||||
GPIO_USER, // GPIO00 E-FW Button
|
||||
GPIO_LED1, // GPIO01 Green LED
|
||||
GPIO_LED1, // GPIO01 Green LED - Link and Power status
|
||||
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
|
||||
GPIO_PWM5, // GPIO04 W2 - PWM5
|
||||
|
@ -934,7 +934,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
|
||||
// GPIO11 (SD_CMD Flash)
|
||||
0,
|
||||
GPIO_LED1_INV, // GPIO13 Green Led (0 = On, 1 = Off)
|
||||
GPIO_LED1_INV, // GPIO13 Green Led (0 = On, 1 = Off) - Link and Power status
|
||||
0, 0, 0, 0
|
||||
},
|
||||
{ "Sonoff BN-SZ", // Sonoff BN-SZ01 Ceiling led (ESP8285)
|
||||
|
@ -946,7 +946,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
0, // GPIO10
|
||||
// GPIO11 (SD_CMD Flash)
|
||||
GPIO_PWM1, // GPIO12 Light
|
||||
GPIO_LED1_INV, // GPIO13 Red Led (0 = On, 1 = Off)
|
||||
GPIO_LED1_INV, // GPIO13 Red Led (0 = On, 1 = Off) - Link and Power status
|
||||
0, 0,
|
||||
0, 0
|
||||
},
|
||||
|
@ -964,15 +964,15 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
GPIO_KEY3, // GPIO10 Button 3
|
||||
// GPIO11 (SD_CMD Flash)
|
||||
GPIO_REL1, // GPIO12 Red Led and Relay 1 (0 = Off, 1 = On)
|
||||
GPIO_LED1_INV, // GPIO13 Blue Led (0 = On, 1 = Off)
|
||||
GPIO_LED1_INV, // GPIO13 Blue Led (0 = On, 1 = Off) - Link and Power status
|
||||
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
|
||||
GPIO_LED1_INV, // GPIO00 Blue Led (0 = On, 1 = Off)
|
||||
GPIO_LED1_INV, // GPIO00 Blue Led (0 = On, 1 = Off) - Link status
|
||||
0, 0,
|
||||
GPIO_LED2_INV, // GPIO03 Red Led (0 = On, 1 = Off)
|
||||
GPIO_LED2_INV, // GPIO03 Red Led (0 = On, 1 = Off) - Power status
|
||||
GPIO_KEY1, // GPIO04 Button
|
||||
GPIO_REL1_INV, // GPIO05 Relay (0 = On, 1 = Off)
|
||||
// GPIO06 (SD_CLK Flash)
|
||||
|
@ -1000,7 +1000,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
0, // GPIO10
|
||||
// GPIO11 (SD_CMD Flash)
|
||||
0,
|
||||
GPIO_LED1_INV, // GPIO13 Blue Led (0 = On, 1 = Off)
|
||||
GPIO_LED1_INV, // GPIO13 Blue Led (0 = On, 1 = Off) - Link and Power status
|
||||
0, 0, 0, 0
|
||||
},
|
||||
{ "Sonoff B1", // Sonoff B1 (ESP8285 - my9231)
|
||||
|
@ -1051,7 +1051,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
0, // GPIO10
|
||||
// GPIO11 (SD_CMD Flash)
|
||||
GPIO_REL1, // GPIO12 Blue Led and Relay 1 (0 = Off, 1 = On)
|
||||
GPIO_LED1_INV, // GPIO13 Blue Led (0 = On, 1 = Off)
|
||||
GPIO_LED1_INV, // GPIO13 Blue Led (0 = On, 1 = Off) - Link and Power status
|
||||
0, 0, 0, 0
|
||||
},
|
||||
{ "Sonoff T1 2CH", // Sonoff T1 2CH (ESP8285)
|
||||
|
@ -1068,7 +1068,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
0, // GPIO10
|
||||
// GPIO11 (SD_CMD Flash)
|
||||
GPIO_REL1, // GPIO12 Blue Led and Relay 1 (0 = Off, 1 = On)
|
||||
GPIO_LED1_INV, // GPIO13 Blue Led (0 = On, 1 = Off)
|
||||
GPIO_LED1_INV, // GPIO13 Blue Led (0 = On, 1 = Off) - Link and Power status
|
||||
0, 0, 0, 0
|
||||
},
|
||||
{ "Sonoff T1 3CH", // Sonoff T1 3CH (ESP8285)
|
||||
|
@ -1085,7 +1085,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
GPIO_KEY3, // GPIO10 Button 3
|
||||
// GPIO11 (SD_CMD Flash)
|
||||
GPIO_REL1, // GPIO12 Blue Led and Relay 1 (0 = Off, 1 = On)
|
||||
GPIO_LED1_INV, // GPIO13 Blue Led (0 = On, 1 = Off)
|
||||
GPIO_LED1_INV, // GPIO13 Blue Led (0 = On, 1 = Off) - Link and Power status
|
||||
0, 0, 0, 0
|
||||
},
|
||||
{ "Supla Espablo", // Supla Espablo (ESP8266)
|
||||
|
@ -1106,14 +1106,14 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
GPIO_REL2, // GPIO13 Relay 2 (0 = Off, 1 = On)
|
||||
GPIO_USER, // GPIO14 Optional sensor
|
||||
0,
|
||||
GPIO_LED1, // GPIO16 Led (1 = On, 0 = Off)
|
||||
GPIO_LED1, // GPIO16 Led (1 = On, 0 = Off) - Link and Power status
|
||||
GPIO_FLAG_ADC0 // ADC0 A0 Analog input
|
||||
},
|
||||
{ "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
|
||||
GPIO_USER, // GPIO00 D3 flash push button on interface board
|
||||
GPIO_USER, // GPIO01 Serial RXD and Optional sensor
|
||||
GPIO_LED1_INV, // GPIO02 D4 Blue Led (0 = On, 1 = Off) on ESP-12F
|
||||
GPIO_LED1_INV, // GPIO02 D4 Blue Led (0 = On, 1 = Off) on ESP-12F - Link and Power status
|
||||
GPIO_USER, // GPIO03 Serial TXD and Optional sensor
|
||||
GPIO_KEY1, // GPIO04 D2 push button on ESP-12F board
|
||||
GPIO_USER, // GPIO05 D1 optional sensor
|
||||
|
@ -1135,7 +1135,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
// 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
|
||||
GPIO_LED1_INV, // GPIO02 Blue Led (0 = On, 1 = Off) on ESP-12F - Module Pin 7
|
||||
GPIO_LED1_INV, // GPIO02 Blue Led (0 = On, 1 = Off) on ESP-12F - Module Pin 7 - Link and Power status
|
||||
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
|
||||
|
@ -1151,7 +1151,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
// 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
|
||||
GPIO_LED1_INV, // GPIO02 Blue onboard LED
|
||||
GPIO_LED1_INV, // GPIO02 Blue onboard LED - Link and Power status
|
||||
GPIO_USER, // GPIO03 Serial TXD and Optional sensor
|
||||
GPIO_ARIRFRCV, // GPIO04 IR or RF receiver (optional) (Arilux LC10)
|
||||
GPIO_PWM2, // GPIO05 RGB LED Green
|
||||
|
@ -1184,7 +1184,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
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
|
||||
GPIO_LED1, // GPIO15 Led (1 = On, 0 = Off)
|
||||
GPIO_LED1, // GPIO15 Led (1 = On, 0 = Off) - Link and Power status
|
||||
0,
|
||||
GPIO_FLAG_ADC0 // ADC0 A0 Analog input
|
||||
},
|
||||
|
@ -1201,7 +1201,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
|
||||
// GPIO11 (SD_CMD Flash)
|
||||
GPIO_NRG_SEL, // GPIO12 HLW8012 SEL (1 = Voltage)
|
||||
GPIO_LED1_INV, // GPIO13 Green Led
|
||||
GPIO_LED1_INV, // GPIO13 Green Led - Link and Power status
|
||||
GPIO_REL1, // GPIO14 Relay
|
||||
0, 0, 0
|
||||
},
|
||||
|
@ -1260,7 +1260,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
GPIO_KEY1, // GPIO10 Button on casing
|
||||
// GPIO11 (SD_CMD Flash)
|
||||
GPIO_REL1, // GPIO12 Relay 1 (0 = Off, 1 = On)
|
||||
GPIO_LED1_INV, // GPIO13 Blue Led (0 = On, 1 = Off)
|
||||
GPIO_LED1_INV, // GPIO13 Blue Led (0 = On, 1 = Off) - Link and Power status
|
||||
0, 0, 0, 0
|
||||
},
|
||||
{ "Arilux LC06", // Arilux AL-LC06 (ESP8285)
|
||||
|
@ -1296,7 +1296,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
|
||||
// GPIO11 (SD_CMD Flash)
|
||||
GPIO_REL1, // GPIO12 Red Led and Relay (0 = Off, 1 = On)
|
||||
GPIO_LED1_INV, // GPIO13 Green Led (0 = On, 1 = Off)
|
||||
GPIO_LED1_INV, // GPIO13 Green Led (0 = On, 1 = Off) - Link and Power status
|
||||
0, 0, 0, 0
|
||||
},
|
||||
{ "Zengge WF017", // Zenggee ZJ-WF017-A (ESP12S))
|
||||
|
@ -1331,7 +1331,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
|
||||
// GPIO11 (SD_CMD Flash)
|
||||
GPIO_REL1, // GPIO12 Red Led and Relay (0 = Off, 1 = On)
|
||||
GPIO_LED1_INV, // GPIO13 Blue Led (0 = On, 1 = Off)
|
||||
GPIO_LED1_INV, // GPIO13 Blue Led (0 = On, 1 = Off) - Link and Power status
|
||||
0, 0, 0, 0
|
||||
},
|
||||
{ "Sonoff iFan02", // Sonoff iFan02 (ESP8285)
|
||||
|
@ -1348,7 +1348,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
GPIO_KEY3, // GPIO10 WIFI_KEY2 Virtual button 3 as feedback from RC
|
||||
// GPIO11 (SD_CMD Flash)
|
||||
GPIO_REL1, // GPIO12 WIFI_O0 Relay 1 (0 = Off, 1 = On) controlling the light
|
||||
GPIO_LED1_INV, // GPIO13 WIFI_CHK Blue Led on PCA (0 = On, 1 = Off)
|
||||
GPIO_LED1_INV, // GPIO13 WIFI_CHK Blue Led on PCA (0 = On, 1 = Off) - Link and Power status
|
||||
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
|
||||
0, 0
|
||||
|
@ -1358,9 +1358,9 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
// https://www.amazon.de/Steckdose-Homecube-intelligente-Verbrauchsanzeige-funktioniert/dp/B076Q2LKHG/ref=sr_1_fkmr0_1
|
||||
// https://www.amazon.de/Intelligente-Stromverbrauch-Fernsteurung-Schaltbare-Energieklasse/dp/B076WZQS4S/ref=sr_1_1
|
||||
// https://www.aliexpress.com/store/product/BlitzWolf-BW-SHP6-EU-Plug-Metering-Version-WIFI-Smart-Socket-220V-240V-10A-Work-with-Amazon/1965360_32945504669.html
|
||||
GPIO_LED2_INV, // GPIO00 Red Led (1 = On, 0 = Off)
|
||||
GPIO_LED2_INV, // GPIO00 Red Led (1 = On, 0 = Off) - Power status
|
||||
GPIO_USER, // GPIO01 Serial RXD and Optional sensor
|
||||
GPIO_LED1_INV, // GPIO02 Blue Led (1 = On, 0 = Off)
|
||||
GPIO_LED1_INV, // GPIO02 Blue Led (1 = On, 0 = Off) - Link status
|
||||
GPIO_USER, // GPIO03 Serial TXD and Optional sensor
|
||||
0,
|
||||
GPIO_HJL_CF, // GPIO05 BL0937 or HJL-01 CF power
|
||||
|
@ -1424,7 +1424,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
{ "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,
|
||||
GPIO_LED1_INV, // GPIO04 Red Led (0 = On, 1 = Off)
|
||||
GPIO_LED1_INV, // GPIO04 Red Led (0 = On, 1 = Off) - Link and Power status
|
||||
0,
|
||||
// GPIO06 (SD_CLK Flash)
|
||||
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
|
||||
|
@ -1461,7 +1461,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
GPIO_USER, // GPIO01 Serial RXD
|
||||
0,
|
||||
GPIO_USER, // GPIO03 Serial TXD
|
||||
GPIO_LED1, // GPIO04 Blue LED
|
||||
GPIO_LED1, // GPIO04 Blue LED - Link and Power status
|
||||
GPIO_REL1, // GPIO05 (Relay OFF, but used as Relay Switch)
|
||||
// GPIO06 (SD_CLK Flash)
|
||||
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
|
||||
|
@ -1480,7 +1480,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
0,
|
||||
GPIO_KEY1, // GPIO01 Serial TXD and Button
|
||||
0,
|
||||
GPIO_LED2_INV, // GPIO03 Serial RXD and Red Led (0 = On, 1 = Off)
|
||||
GPIO_LED2_INV, // GPIO03 Serial RXD and Red Led (0 = On, 1 = Off) - Power status
|
||||
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)
|
||||
|
@ -1490,7 +1490,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
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_INV, // GPIO13 Blue Led (0 = On, 1 = Off)
|
||||
GPIO_LED1_INV, // GPIO13 Blue Led (0 = On, 1 = Off) - Link status
|
||||
GPIO_REL1, // GPIO14 Relay (0 = Off, 1 = On)
|
||||
0, 0, 0
|
||||
},
|
||||
|
@ -1507,7 +1507,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
|
||||
// GPIO11 (SD_CMD Flash)
|
||||
GPIO_NRG_SEL_INV, // GPIO12 HLW8012 CF Sel output (0 = Voltage)
|
||||
GPIO_LED1_INV, // GPIO13 LED (0 = On, 1 = Off)
|
||||
GPIO_LED1_INV, // GPIO13 LED (0 = On, 1 = Off) - Link and Power status
|
||||
GPIO_REL1, // GPIO14 Relay SRU 5VDC SDA (0 = Off, 1 = On )
|
||||
0, 0, 0
|
||||
},
|
||||
|
@ -1534,7 +1534,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
},
|
||||
{ "Gosund SP1 v23", // https://www.amazon.de/gp/product/B0777BWS1P
|
||||
0,
|
||||
GPIO_LED1_INV, // GPIO01 Serial RXD and LED1 (blue) inv
|
||||
GPIO_LED1_INV, // GPIO01 Serial RXD and LED1 (blue) inv - Link status
|
||||
0,
|
||||
GPIO_KEY1, // GPIO03 Serial TXD and Button
|
||||
GPIO_HJL_CF, // GPIO04 BL0937 or HJL-01 CF power
|
||||
|
@ -1546,7 +1546,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
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_LED2_INV, // GPIO13 LED2 (red) inv
|
||||
GPIO_LED2_INV, // GPIO13 LED2 (red) inv - Power status
|
||||
GPIO_REL1, // GPIO14 Relay (0 = Off, 1 = On)
|
||||
0, 0, 0
|
||||
},
|
||||
|
@ -1584,8 +1584,8 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
|
||||
// GPIO11 (SD_CMD Flash)
|
||||
GPIO_NRG_SEL_INV, // GPIO12 HLW8012 CF Sel output (0 = Voltage)
|
||||
GPIO_LED2_INV, // GPIO13 Red Led (0 = On, 1 = Off)
|
||||
GPIO_LED1_INV, // GPIO14 Blue Led (0 = On, 1 = Off)
|
||||
GPIO_LED2_INV, // GPIO13 Red Led (0 = On, 1 = Off) - Power status
|
||||
GPIO_LED1_INV, // GPIO14 Blue Led (0 = On, 1 = Off) - Link status
|
||||
GPIO_REL1, // GPIO15 Relay (0 = Off, 1 = On)
|
||||
0, 0
|
||||
},
|
||||
|
@ -1604,7 +1604,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
|
||||
// GPIO11 (SD_CMD Flash)
|
||||
GPIO_USER,
|
||||
GPIO_LED1, // GPIO13 WiFi LED
|
||||
GPIO_LED1, // GPIO13 WiFi LED - Link and Power status
|
||||
GPIO_USER,
|
||||
GPIO_USER,
|
||||
GPIO_USER,
|
||||
|
@ -1613,9 +1613,9 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
{ "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
|
||||
GPIO_LED2_INV, // GPIO00 Red Led (1 = On, 0 = Off)
|
||||
GPIO_LED2_INV, // GPIO00 Red Led (1 = On, 0 = Off) - Power status
|
||||
0,
|
||||
GPIO_LED1_INV, // GPIO02 Blue Led (1 = On, 0 = Off)
|
||||
GPIO_LED1_INV, // GPIO02 Blue Led (1 = On, 0 = Off) - Link status
|
||||
0,
|
||||
GPIO_REL1, // GPIO04 Relay (0 = Off, 1 = On)
|
||||
GPIO_HJL_CF, // GPIO05 BL0937 or HJL-01 CF power
|
||||
|
@ -1659,7 +1659,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
|
||||
{ "KA10", // SMANERGY KA10 (ESP8285 - BL0937 Energy Monitoring) - https://www.amazon.es/dp/B07MBTCH2Y
|
||||
0, // GPIO00
|
||||
GPIO_LED1_INV, // GPIO01 Blue LED
|
||||
GPIO_LED1_INV, // GPIO01 Blue LED - Link status
|
||||
0, // GPIO02
|
||||
GPIO_KEY1, // GPIO03 Button
|
||||
GPIO_HJL_CF, // GPIO04 BL0937 CF power
|
||||
|
@ -1671,7 +1671,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
|
||||
// GPIO11 (SD_CMD Flash)
|
||||
GPIO_NRG_SEL_INV, // GPIO12 BL0937 Sel output (1 = Voltage)
|
||||
GPIO_LED2, // GPIO13 Red LED
|
||||
GPIO_LED2, // GPIO13 Red LED - Power status
|
||||
GPIO_REL1, // GPIO14 Relay 1
|
||||
0, 0, 0
|
||||
}
|
||||
|
@ -1689,8 +1689,8 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
0, // GPIO09 (SD_DATA2 Flash QIO or ESP8285)
|
||||
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
|
||||
// GPIO11 (SD_CMD Flash)
|
||||
GPIO_LED1, // GPIO12 Green LED
|
||||
GPIO_LED2, // GPIO13 Red LED
|
||||
GPIO_LED1, // GPIO12 Green LED - Link status
|
||||
GPIO_LED2, // GPIO13 Red LED - Power status
|
||||
0, 0, 0, 0
|
||||
}
|
||||
|
||||
|
@ -1698,7 +1698,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
// 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
|
||||
GPIO_LED1_INV, // GPIO02 Blue onboard LED
|
||||
GPIO_LED1_INV, // GPIO02 Blue onboard LED - Link and Power status
|
||||
GPIO_USER, // GPIO03 Serial TXD and Optional sensor
|
||||
GPIO_USER, // GPIO04 IR receiver (optional)
|
||||
GPIO_PWM2, // GPIO05 RGB LED Green
|
||||
|
@ -1767,13 +1767,13 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
// GPIO11 (SD_CMD Flash)
|
||||
GPIO_KEY1, // GPIO12 Button
|
||||
0, 0,
|
||||
GPIO_LED1, // GPIO15 Led (1 = On, 0 = Off)
|
||||
GPIO_LED1, // GPIO15 Led (1 = On, 0 = Off) - Link and Power status
|
||||
0, 0
|
||||
}
|
||||
|
||||
{ "SMPW701E", // SM-PW701E WLAN Socket (#1190)
|
||||
0, 0, 0, 0,
|
||||
GPIO_LED1_INV, // GPIO04 Blue Led (0 = On, 1 = Off)
|
||||
GPIO_LED1_INV, // GPIO04 Blue Led (0 = On, 1 = Off) - Link and Power status
|
||||
0, // GPIO05 IR or RF receiver (optional)
|
||||
// GPIO06 (SD_CLK Flash)
|
||||
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
|
||||
|
@ -1791,7 +1791,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
GPIO_USER, // GPIO01
|
||||
0,
|
||||
GPIO_USER, // GPIO03
|
||||
GPIO_LED1_INV, // GPIO04 Blue LED
|
||||
GPIO_LED1_INV, // GPIO04 Blue LED - Link and Power status
|
||||
GPIO_REL1, // GPIO05 Red LED and relay
|
||||
// GPIO06 (SD_CLK Flash)
|
||||
// GPIO07 (SD_DATA0 Flash QIO/DIO/DOUT)
|
||||
|
@ -1807,7 +1807,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
|
||||
{ "MagicHome v2.3", // Magic Home (aka Flux-light) (ESP8266) (#1353)
|
||||
0, 0,
|
||||
GPIO_LED1_INV, // GPIO02 Blue onboard LED
|
||||
GPIO_LED1_INV, // GPIO02 Blue onboard LED - Link and Power status
|
||||
0,
|
||||
GPIO_USER, // GPIO04 IR receiver (optional)
|
||||
GPIO_PWM2, // GPIO05 RGB LED Green
|
||||
|
@ -1855,7 +1855,7 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
|
|||
0, // GPIO10 (SD_DATA3 Flash QIO or ESP8285)
|
||||
// GPIO11 (SD_CMD Flash)
|
||||
GPIO_REL1, // GPIO12 Red Led and Relay (0 = Off, 1 = On)
|
||||
GPIO_LED1_INV, // GPIO13 Green Led (0 = On, 1 = Off)
|
||||
GPIO_LED1_INV, // GPIO13 Green Led (0 = On, 1 = Off) - Link and Power status
|
||||
0, 0, 0, 0
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue