-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5c2850d
commit 9150bce
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Template {"NAME":"cod.m Zigbee CZC-1.0 (via TCP)","GPIO":[0,0,1,0,5472,5536,0,0,576,1,288,1,0,0,5600,1,1,1,1,5568,1,1,1,1,0,0,0,0,0,1,1,32,5504,1,1,1],"FLAG":0,"BASE":1} | ||
Module 0 | ||
EthType 0 | ||
EthAddress 0 | ||
EthClockMode 3 | ||
Backlog rule1 on system#boot do TCPStart 8888 endon ; rule1 1 ; TCPStart 8888 | ||
|