The documented Valve script issue (GPIO out always HIGH) #2025
Replies: 2 comments 1 reply
-
OK, I finally had some control after modifying the output mode, from: But the function is inverted of what I need. On home app when the device is off, the relay is on state (pulled up) { |
Beta Was this translation helpful? Give feedback.
-
After a lot of tries, I somehow managed to make some progress but it is not optimal solution. { |
Beta Was this translation helpful? Give feedback.
-
Hi, my first time using HAA and I tried creating a valve switch with the default documented script on ESP8266 (nodemcu).
https://github.com/RavenSystem/esp-homekit-devices/wiki/Water-Valve
I succesfully installed HAA and add the script and add the accessory to Homekit, these were very simple and easy.
But when I power the ESP8266, it triggers the relay to ON and I can't change the state after that.
What am I missing? I tried adding Pull-up/down settings, actions on boot, initial state but none of them helped. The GPIO out is always HIGH and do not change by any way (from the Home APP). The app properly shows to turn on or off the valve but in reality the Relay is always pulled and in HIGH state after powering up the nodemcu.
Relay module is connected to GPIO12 (D6 on the nodemcu board)
Here is my MEPLHAA script at the moment with latest modifications:
{
"c": {
"io": [ [[12,13],2,0,0], [[0],6] ],
"l": 13, "b": [{ "g": 0, "t": 5 }]
},
"a": [{
"t": 20,
"0": { "r": [{ "g": 12, "v": 0 }] },
"1": { "r": [{ "g": 12, "v": 1 }] },
"b": [{ "g": 0, "t": 1 }],
"s": 0,
"w": 0,
"d": 60,
"xa": 0
}]
}
Beta Was this translation helpful? Give feedback.
All reactions