after I bought my Google Home enabled light switches I noticed, that they send their stuff through a chinese cloud. This bothered me a lot, and so, after some googling I found this neat little software named Easyesp. After trying it out on a NodeMCU, I've decided, that this is the way to go. So far I like it very much. I made some progress, but now I got some problems, assuming it has something to do with the rules.
I am using some "Kesen" dual switches, namely KS-601, which are eqipped with an ESP 8285 (I plan to add them to the wiki). So far I've figured out, that the relays are sitting on pin 5 and 12, while the buttons are using pin 0 and 9. The wifi status led is sitting on pin 13.
I've created two tasks, touch0 and touch1, where I've assigned the according pins as input (see screenshots). My ruleset is looking like this
Code: Select all
on touch0#switch do if [touch0#switch]=1 gpio,12,1 else gpio,12,0 endif endon on touch1#switch do if [touch1#switch]=1 gpio,5,1 else gpio,5,0 endif endon