Relays come in handy for a lot of automation applications. I use the ETH008 from Robot Electronics for several applications including control of water shut-off valves and DC motor control. One of the members of the forum is working on a plug-in for the board, which will be the way to integrate it with HomeSeer, but the board will respond to commands sent directly from an event. After a bit of trial and error I was able to work out the proper syntax. I put these command into events by using the "Execute immediate script command" option.
&hs.geturl("http://192.168.x.xxx/io.cgi?DOI5=100","",TRUE,80)
IP address of the ETH008
Relay state you wish to initiate - Use "I" for Inactive or "A" for active.
Number of the relay you wish to control
Timeout =100 activates or deactivates the relay for 10 seconds; =150 for 15 second and so on. No entry/ No timeout
This solution does not create devices for the relays themselves and will not retrieve status, but a workaround would be to use virtual devices to do that job. It'll do until the plugin is published.
Should anyone have a need to control a three-wire DC load such as a motor or a bi-directional LED, here is a simple circuit that provides a fail-safe way of doing so using two Form C relays such as those on the ETH008.

This circuit mechanically isolates the NO contacts and eliminates the possibility of voltage being applied to both poles/anodes at the same time. There are quite a few older devices (drapes, skylights and so on) where a circuit like this may come in handy.
&hs.geturl("http://192.168.x.xxx/io.cgi?DOI5=100","",TRUE,80)
IP address of the ETH008
Relay state you wish to initiate - Use "I" for Inactive or "A" for active.
Number of the relay you wish to control
Timeout =100 activates or deactivates the relay for 10 seconds; =150 for 15 second and so on. No entry/ No timeout
This solution does not create devices for the relays themselves and will not retrieve status, but a workaround would be to use virtual devices to do that job. It'll do until the plugin is published.
Should anyone have a need to control a three-wire DC load such as a motor or a bi-directional LED, here is a simple circuit that provides a fail-safe way of doing so using two Form C relays such as those on the ETH008.
This circuit mechanically isolates the NO contacts and eliminates the possibility of voltage being applied to both poles/anodes at the same time. There are quite a few older devices (drapes, skylights and so on) where a circuit like this may come in handy.
Comment