Very off topic, I am looking to circumvent openHAB altogether !!
I would like to mirror contacts across a LAN, directly from one little digital input box to another relay output box.
The actual application is to carry an alarm output provided by relay contacts, across an existing WiFi bridge between buildings, and reproduce with another relay. With minimal complication, being an alarm - a point to point installation.
Bi-directional would be useful, as would two-channel. WiFi or wired ethernet.
But there are many cheap LAN enabled relays (though not so many with input as well).
It seems like something a Tasmota loaded Sonoff should be perfectly capable of doing - set up one as “mirror master mode”, one as “mirror slave”, set up IP address targets, and have one GPIO control the other’s relay. But as far as I can tell, no such capability.
I don’t want to build and program my own solution from bits, a ready made module preferred.
Thanks, I will look at those. Price is in the same ballpark as other commercial possibles. I’d be pleased not to do any soldering or flashing
Bonus points for being able to inform openHAB as well as the primary remote relay job.
I am constrained here to use LAN, to exploit an existing radio LAN bridge between buildings.
There is WiFi at each end but on reflection, WiFi modules won’t do for me as at least one has to live inside a steel box. Wired ethernet instead.
Shame, as WiFi relays are cheap and plentiful and have enough processing power to do the job.
The Sonoff/Tasmota/rules/HTTP link idea looks perfectly viable, but I won’t be persuing that myself now.
I think youve figured out what you want now… So Im a bit late to the party, however, I believe this video shows various methods using rules in Tasmota for sending commands to other devices (both with and without a intermediate server). The bits to watch for those interested, are from about the 5:30 mark onwards.
Yes, I used a pair of dS1242 ethernet Relay/IO modules, from Robot Electronics.
These were easily configured to chat to each other directly - the relays on one following the digital inputs on the other, peer-to-peer.
This allowed the cross-linking of old fashioned wired intruder alarms in two buildings, where buildings already had ethernet LAN linked by a wireless bridge.
The modules are small enough to fit inside the alarm cases, and powered by the alarm’s 12V supply.
Fit and forget, not cheap, but very pleased…
I haven’t yet deployed an openHAB to that remote site, so they are working standalone just now.
I did have a play before install on the bench though, it looks to have no problem communicating with Modbus-TCP alongside the mirroring setup.
I’l be using Modbus for other purposes, but if you wanted something else there are other TCP services offered.