The following setup is not working on R103:
I have 1 nodemcu(Unit 1) with the following rule:
Code: Select all
on IR#Code=4294967295 do
sendTo 4,event,sonoff
endon
Code: Select all
66236634 : IR : Code ffffffff
66236635 : EVENT: IR#Code=4294967295
66236660 : ACT : sendTo 4,event,sonoff
66236703 : UDP : Send UDP message to 4
66236768 : UDP : Send UDP message to 1
66236801 : UDP : Send UDP message to 4
66237134 : HTTP : Delay 482 ms
On my sonoff(Unit 4) i have the following rules:
Code: Select all
on SW_1#switch do
if [SW_1#switch]=0
gpio,12,0
gpio,13,1
else
gpio,12,1
gpio,13,0
endif
endon
on sonoff do
if [SW_1#switch]=0
gpio,12,0
gpio,13,1
else
gpio,12,1
gpio,13,0
endif
endon
Code: Select all
EVENT: relais#switch=1.00
34321364 : UDP : Send UDP message to 1
34321396 : UDP : Send UDP message to 4
34321730 : HTTP : Delay 475 ms
Code: Select all
: event,sonoff
34450707 : EVENT: sonoff
34450843 : ACT : gpio,12,1
34450849 : SW : GPIO 12 Set to 1
34450864 : ACT : gpio,13,0
34450870 : SW : GPIO 13 Set to 0
Any idea why?
Regards
Hubert