From fb3dc5a4bbdcae92108a97149d6ccaca4b86498d Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Sat, 24 Aug 2024 22:07:22 +0200 Subject: [PATCH] add cod.m Zigbee --- raw/esp32/cod.m_Zigbee_CZC-1.0/autoexec.be | 12 ++++++++++++ raw/esp32/cod.m_Zigbee_CZC-1.0/init.bat | 6 ++++++ 2 files changed, 18 insertions(+) create mode 100644 raw/esp32/cod.m_Zigbee_CZC-1.0/autoexec.be create mode 100644 raw/esp32/cod.m_Zigbee_CZC-1.0/init.bat diff --git a/raw/esp32/cod.m_Zigbee_CZC-1.0/autoexec.be b/raw/esp32/cod.m_Zigbee_CZC-1.0/autoexec.be new file mode 100644 index 00000000..9c967776 --- /dev/null +++ b/raw/esp32/cod.m_Zigbee_CZC-1.0/autoexec.be @@ -0,0 +1,12 @@ +# Ethernet Network Flipper - checks every 30 seconds if ethernet if up +# if Ethernet is up, Wifi is turned off to avoid interference with Zigbee +# if Ethernet is down, Wifi is turned back on to allow fallback connection +def netflip() + var eth = tasmota.eth('up') #1 + if tasmota.wifi('up') == eth #2 + tasmota.cmd('Wifi ' + (eth ? '0' : '1')) #3 + end + tasmota.set_timer(30000,netflip) #4 +end +tasmota.set_timer(30000,netflip) #5 + diff --git a/raw/esp32/cod.m_Zigbee_CZC-1.0/init.bat b/raw/esp32/cod.m_Zigbee_CZC-1.0/init.bat new file mode 100644 index 00000000..78b4d2fd --- /dev/null +++ b/raw/esp32/cod.m_Zigbee_CZC-1.0/init.bat @@ -0,0 +1,6 @@ +Template {"NAME":"cod.m Zigbee CZC-1.0","GPIO":[0,0,1,0,3552,5536,0,0,576,1,288,1,5792,0,5600,1,1,1,1,5568,1,1,1,1,0,0,0,0,5793,1,1,32,3584,1,1,1],"FLAG":0,"BASE":1} +Module 0 +EthType 0 +EthAddress 0 +EthClockMode 3 +