drthanwho
(Thanasis)
June 15, 2021, 1:52pm
21
Sure it could. It says it’s using http to trigger the relays so can definitely use a command line switch and the equivalent URLs to trigger them. These are supposed to also have a URL that returns the state for each relay but unclear whether that exists for this one.
http://192.168.1.4/30000/00 : Relay-01 OFF
http://192.168.1.4/30000/01 : Relay-01 ON
ALso unclear what these are
http://192.168.1.4/30000/41 : Enter
http://192.168.1.4/30000/40 : Exit
http://192.168.1.4/30000/42 : Next Page
http://192.168.1.4/30000/43 : Next Page
ThaNerd
(Turbo Tronix)
June 16, 2021, 11:55am
23
So something like this:
switch:
platform: command_line
switches:
zswitch1:
command_on: http://192.168.1.4/30000/01
command_off: http://192.168.1.4/30000/00
friendly_name: Zone 01
drthanwho
(Thanasis)
June 16, 2021, 4:20pm
24
Probably yes. The way is definitely correct but might be that you need to put some actuall command in front that calls the url
ThaNerd
(Turbo Tronix)
June 16, 2021, 5:41pm
25
OK cool I placed an order for a web relay board, once I get it I’ll start playing with it. I wonder if I can also get the state out of it as well…
ThaNerd
(Turbo Tronix)
July 1, 2021, 4:32pm
26
Hmm weird. His website is down. I remeber in the past his SSL certs expired. So not sure what’s happened to his website
ThaNerd
(Turbo Tronix)
July 2, 2021, 8:48pm
28
That sux…got all the parts wanted to check his schematics.
axemann
(Axemann)
July 6, 2021, 1:23am
29
@ThaNerd
It looks like this may be what you’re looking for:
https://github.com/selfhostedhome/smart-sprinkler
Full disclaimer: Not my repo, and haven’t built any of the circuitry, so I can’t comment on the accuracy.
1 Like
ThaNerd
(Turbo Tronix)
July 6, 2021, 1:42am
30
Thanks! Yes that was what i was looking for.
ThaNerd
(Turbo Tronix)
July 6, 2021, 6:23pm
31
Also, can’t figure out how to flash the nodemcu…is there a place to find out? I did it a few years back but can’t figure out how…
ThaNerd
(Turbo Tronix)
July 6, 2021, 10:20pm
32
I find the Ethernet controller way more stable than the esp. It even has the capabilities to send the state of each relay back. Already implemented the state into my code, there is a small delay but nothing crazy. We shall see in the long run how it holds up.