Skip to content

Commit

Permalink
add cod.m Zigbee
Browse files Browse the repository at this point in the history
  • Loading branch information
s-hadinger committed Aug 24, 2024
1 parent 8a92a24 commit fb3dc5a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
12 changes: 12 additions & 0 deletions raw/esp32/cod.m_Zigbee_CZC-1.0/autoexec.be
Original file line number Diff line number Diff line change
@@ -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

6 changes: 6 additions & 0 deletions raw/esp32/cod.m_Zigbee_CZC-1.0/init.bat
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit fb3dc5a

Please sign in to comment.