Skip to content

Commit

Permalink
Add two modules
Browse files Browse the repository at this point in the history
* Add support for OBI Power Socket 2 (arendst#4829)
* Add support for YTF IR Bridge (arendst#4855)
  • Loading branch information
arendst committed Jan 8, 2019
1 parent fe4ac03 commit 722293c
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 18 deletions.
2 changes: 2 additions & 0 deletions sonoff/_changelog.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* Add command SetOption62 1 to force no Button/Switch pullup on dedicated modules. Currently only supported on Shelly2 (#4841)
* Fix Display exception 28 when JSON value is NULL received
* Fix Home Assistant Sensor Discovery Software Watchdog restart (#4831)
* Add support for OBI Power Socket 2 (#4829)
* Add support for YTF IR Bridge (#4855)
*
* 6.4.1.7 20190106
* Fix HLW8012, HJL01 and BL0937 based energy sensors low Power (below 10W) measurement regression from 6.4.1.6
Expand Down
57 changes: 39 additions & 18 deletions sonoff/sonoff_template.h
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ enum SupportedModules {
PS_16_DZ,
TECKIN_US,
MANZOKU_EU_4,
OBI2,
YTF_IR_BRIDGE,
MAXMODULE };

/********************************************************************************************/
Expand Down Expand Up @@ -544,6 +546,7 @@ const uint8_t kModuleNiceList[MAXMODULE] PROGMEM = {
SK03_TUYA,
NEO_COOLCAM, // Socket Relay Devices
OBI,
OBI2,
MANZOKU_EU_4,
ESP_SWITCH, // Switch Devices
TUYA_DIMMER, // Dimmer Devices
Expand All @@ -559,6 +562,7 @@ const uint8_t kModuleNiceList[MAXMODULE] PROGMEM = {
KMC_70011,
AILIGHT, // Light Bulbs
PHILIPS,
YTF_IR_BRIDGE,
WITTY, // Development Devices
WEMOS
};
Expand Down Expand Up @@ -1654,6 +1658,41 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
0,
GPIO_USER, // GPIO16
0
},
{ "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)
GPIO_LED1, // GPIO12 Green LED - Link status
GPIO_LED2, // GPIO13 Red LED - Power status
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
}
};

Expand All @@ -1679,24 +1718,6 @@ const mytmplt kModules[MAXMODULE] PROGMEM = {
0, 0, 0
}
{ "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)
GPIO_LED1, // GPIO12 Green LED - Link status
GPIO_LED2, // GPIO13 Red LED - Power status
0, 0, 0, 0
}
{ "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,
Expand Down

0 comments on commit 722293c

Please sign in to comment.