Skip to content

Commit

Permalink
new device
Browse files Browse the repository at this point in the history
  • Loading branch information
blakadder committed Sep 22, 2021
1 parent 8e9c6dd commit d1c6f72
Show file tree
Hide file tree
Showing 12 changed files with 146 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _templates/ESP12F_Relay_X4
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ date_added: 2020-12-29
title: ESP-12F 5V/7-30V/220V 4 Channel
model: ESP12F_Relay_X4
image: /assets/images/ESP12F_Relay_X4.jpg
template9: '{"NAME":"ESP12F_Relay_X4","GPIO":[1,1,1,1,320,1,1,1,226,227,225,1,224,1],"FLAG":0,"BASE":18}'
template9: '{"NAME":"ESP12F_Relay_X4","GPIO":[1,1,320,1,1,321,1,1,226,227,225,1,224,1],"FLAG":0,"BASE":18}'
link: https://www.aliexpress.com/item/1005001644477508.html
link2: https://www.banggood.com/AC-or-DC-Power-Supply-ESP8266-WIFI-Four-way-Relay-Module-ESP-12F-Development-Board-Secondary-Development-p-1794113.html
mlink:
Expand Down
15 changes: 15 additions & 0 deletions _templates/ZLD-12USA-W
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
date_added: 2021-09-20
title: Zhilde Dual USB
model: ZLD-12USA-W
image: /assets/images/ZLD-12USA-W.jpg
template9: '{"NAME":"ZLD-12USA-W","GPIO":[0,0,0,0,320,321,0,0,224,225,32,0,0,0],"FLAG":0,"BASE":18}'
link: https://www.xgecaftec.top/index.php?main_page=product_info&products_id=483256
link2:
mlink: https://www.made-in-china.com/showroom/my668888/product-detaildyhnXIYMAzWU/China-Micro-Smart-Wall-Socket-with-Dual-USB-Ports-Adapter-Wi-Fi-Power-Plug-Smart-Power-Strip-Smart-Home.html
flash: tuya-convert
category: plug
type: Plug
standard: us
---
2 USB Power ports toggle together with button double click
14 changes: 14 additions & 0 deletions _templates/armtronix_BA011
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
date_added: 2021-09-21
title: Armtronix NodeMCU Four Relay Board
model: BA011
image: /assets/images/armtronix_BA011.jpg
template9: '{"NAME":"Armtronix Wifi Four Relay Board","GPIO":[1,0,0,0,224,1,0,0,225,226,227,0,1,0],"FLAG":0,"BASE":7}'
link: https://www.tindie.com/products/armtronix/ba011-wifi-bt-quad-relay-board/
link2:
mlink: https://armtronix.in/products.html
flash: serial
category: diy
type: Relay Board
standard: global
---
80 changes: 80 additions & 0 deletions _templates/ewelink_ZB-GW03
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
---
date_added: 2020-08-20
title: eWeLink Zigbee Ethernet Gateway
model: ZB-GW03-V1.2
image: /assets/images/sonoff_ZBBridge.jpg
template: '{"NAME":"ZB-GW03-V1.2","GPIO":[1,1,3552,1,3584,1,1,1,5793,5792,320,544,5536,1,5600,1,0,1,1,5568,0,1,1,1,0,0,0,0,608,640,32,1,1,0,0,1],"FLAG":0,"BASE":1}'
link: https://www.aliexpress.com/item/1005003065061179.html
link2: https://www.amazon.de/dp/B094JKVLNR
mlink: https://www.itead.cc/sonoff-zbbridge.html
flash: serial
category: misc
type: Zigbee Gateway
standard: global
---
## Firmware build

Build firmware for Tasmota32 that includes ethernet and zigbee support:

user_config_override.h:
```c
#ifdef FIRMWARE_EWELINK
#warning **** Build: FIRMWARE FOR EWELINK ZB-GW03-V1.2 ****

#undef MY_LANGUAGE
#define MY_LANGUAGE en_GB

#undef SERIAL_LOG_LEVEL
#define SERIAL_LOG_LEVEL LOG_LEVEL_NONE

#define USE_ZIGBEE
#undef USE_ZIGBEE_ZNP
#define USE_ZIGBEE_EZSP
#define USE_UFILESYS
#define USE_ZIGBEE_EEPROM // T24C512A
#define USE_TCP_BRIDGE
#undef USE_ZIGBEE_CHANNEL
#define USE_ZIGBEE_CHANNEL 11 // (11-26)

#define USE_ETHERNET
#undef ETH_TYPE
#define ETH_TYPE 0 // ETH_PHY_LAN8720
#undef ETH_CLKMODE
#define ETH_CLKMODE 3 // ETH_CLOCK_GPIO17_OUT
#undef ETH_ADDRESS
#define ETH_ADDRESS 1 // PHY1
#endif
```

platformio_override.ini
```ini
[env:tasmota32-EWELINK]
extends = env:tasmota32
board_build.f_cpu = 240000000L
board_build.f_flash = 40000000L
build_flags = ${env:tasmota32_base.build_flags} -DFIRMWARE_EWELINK
```

## Flash Zigbee module

Download Zigbee module firmware (for example: [`ncp-uart-sw_6.7.8_115200.ota`](https://github.com/arendst/Tasmota/blob/development/tools/fw_SonoffZigbeeBridge_ezsp/ncp-uart-sw_6.7.8_115200.ota?raw=true)) from Tasmota GitHub located in [`Tasmota/tools/fw_SonoffZigbeeBridge_ezsp/`](https://github.com/arendst/Tasmota/blob/development/tools/fw_SonoffZigbeeBridge_ezsp).

Go to **Firmware Upgrade** and next to "Upgrade by file upload" use the _Choose File_ button and select Zigbee module firmware you downloaded f.e. (`ncp-uart-sw_6.7.8_115200.ota`).

![ZBBridge Zigbee module flash](/assets/images/sonoff_ZBBridge_ota.jpg)

Click on **Start upgrade**, be patient and wait for a few minutes until flashing is complete. Once it is done, Tasmota will reboot. If the flash was successful the console will show Zigbee2Tasmota starting:

```json
16:31:11 ZIG: Resetting EZSP device
16:31:12 RSL: tele/zbbridge/RESULT = {"ZbState":{"Status":1,"Message":"EFR32 booted","RestartReason":"Power-on","Code":2}}
16:31:12 RSL: tele/zbbridge/RESULT = {"ZbState":{"Status":55,"Version":"6.7.8.0","Protocol":8,"Stack":2}}
16:31:12 RSL: tele/zbbridge/RESULT = {"ZbState":{"Status":3,"Message":"Configured, starting coordinator"}}
16:31:13 RSL: tele/zbbridge/RESULT = {"ZbState":{"Status":56,"IEEEAddr":"0x80E423FFFE225691","ShortAddr":"0x0000","DeviceType":1}}
16:31:14 ZIG: Subscribe to group 0 'ZbListen0 0'
16:31:14 RSL: tele/zbbridge/RESULT = {"ZbState":{"Status":0,"Message":"Started"}}
16:31:14 ZIG: Zigbee started
16:31:14 ZIG: No zigbee devices data in Flash
```

Follow further instructions depending on your chosen method.
15 changes: 15 additions & 0 deletions _templates/liteedge_SW1SPST-WIFI-SCE
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
date_added: 2021-09-22
title: LITEdge Smart Power Strip
model: SW1SPST-WIFI-SCE
image: /assets/images/liteedge_SW1SPST-WIFI-SCE.jpg
template9: '{"NAME":"LITEEdge Power Strip","GPIO":[227,0,0,0,288,289,0,0,224,32,225,226,228,0],"FLAG":0,"BASE":18}'
link: https://www.amazon.com/gp/product/B07519PSGJ/
link2:
mlink:
flash: serial
category: plug
type: Power Strip
standard: us
---
Uses a standard ESP-12F; solder wires to Tx/Rx/VCC/Gnd/GPIO0 and flash using esptool.
4 changes: 2 additions & 2 deletions _templates/shelly_DUO
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
date_added: 2020-09-27
title: Shelly DUO 800lm
model:
title: Shelly Duo 800lm
model: DUO
image: /assets/images/shelly_DUO.jpg
template: '{"NAME":"Shelly DUO","GPIO":[0,0,0,0,38,37,0,0,0,0,0,0,0],"FLAG":0,"BASE":18}'
link: https://www.amazon.com/gp/product/B084KS23YZ/
Expand Down
19 changes: 19 additions & 0 deletions _templates/shelly_DUO_RGBW
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
date_added: 2021-09-18
title: Shelly Duo RGBW 9W 800lm
model: DUO-RGBW
image: /assets/images/shelly_DUO_RGBW.jpg
template9: '{"NAME":"Shelly Duo RGBW","GPIO":[0,0,0,0,0,419,0,0,417,416,418,0,0,0],"FLAG":0,"BASE":18}'
link: https://www.wesmartify.de/licht/schalten/574/shelly-duo-rgbw-e27/
link2: https://www.aliexpress.com/item/1005003036696733.html
link3: https://www.amazon.com/dp/B0851CJ29H
link4: https://www.amazon.de/dp/B087CBJG1M
mlink: https://shop.shelly.cloud/shelly-bulb-rgbw-e27-wifi-smart-home-automation#436
flash: mgos
category: bulb
type: RGBW
standard: e27
---
White blend mode: `SetOption105 1`

Virtual CT mode: `SetOption106 1` and `SetOption107 0`"
Binary file added assets/images/ZLD-12USA-W.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/armtronix_BA011.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/ewelink_ZB-GW03.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/liteedge_SW1SPST-WIFI-SCE.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/shelly_DUO_RGBW.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d1c6f72

Please sign in to comment.