Ethernet / MQTT PoE gateway for 16 reed switches
tssk last edited by
few days ago I accidentally came across mysensors (how is it that I did not find it earlier as I am looking into rpi, arduino and home automation for about 2 years?) and I was exited from the first moment . For some time now I was working on several small sensors for my home but did not really like any of the solutions I met so far - my idea was ethernet + poe + rest api + simple progressive mobile UI. Closest I got was arduino pro mini with W5500 + 5V poe splitter + custom sketch using webduino to provide REST API + mozilla iot gateway.
I had (nearly) finished the HW for my window/door reed switches. But I got into trouble with REST API + mozilla iot gateway. Testing the REST API worked ok from browser but somehow the mozilla iot gateway was unable to load all the presented switches reliably. I have to say that until this problem I had quite a good experience with it - I had it connected to few thermometers and relays to operate heating.
I saw the sample sketches for mysensors + mycontroller.org and it "just clicked" to my idea. I edited the sketch and installed mycontroller and successfully tested both Ethernet Gateway and MQTT Gateway in few hours. I think I will stick with MQTT for more compatibility (I did not find any description about the mysensors communication protocol so I have no idea how standardized it is).
So I want to share my HW + say thanks for the great project!
Designed to be powered over usb micro (so it can run without poe) as these chargers are everywhere now.
The barrel connector is temporary until I modify the poe splitter output to usb micro.
Sample connection - I have such reed switches installed in my windows and doors.
Of course I will be happy for any constructive criticism and suggestions (I do not have any education in electronics so try not to be very harsh about my circuit design and soldering though ).
@tssk nice project! Some ideas that pop into mind: you could have used a nano (saves separate usb socket) and I wonder how you go with all the cabling from here? I usually prefer a more decentralized approach, where each (or maybe a couple) sensor has its own node. These can then be battery powered and cabling will be minimal.
tssk last edited by
@Yveaux Thanks for the tips
you could have used a nano (saves separate usb socket)
That is a good point, but I already bought 10x Pro Mini because I plan to also make some sensors where size matters (I would like to have sensors in standard light switch box). And my idea was to use the same HW as much as possible because of spare parts (I have no idea how reliable these things are - this is why did not solder it directly but used the headers) and also I can reuse experience from each sensor build for another (I expect that there are small details than might differ between different boards).
I wonder how you go with all the cabling from here? I usually prefer a more decentralized approach, where each (or maybe a couple) sensor has its own node. These can then be battery powered and cabling will be minimal.
I already have the wiring ready from the time when I build my house, actually these reed switches are drilled in to the window frame and all the cables lead to the same place - shed under stair that I call "server room" Original idea was that it will be connected to some standard alarm system like Paradox or Honeywell.
But with the planned room sensors I will most probably go for the battery powered sensors with some sort of radio connection (another aspect that mysensors solution will easily provide) as leading the cables now to each room would be very complicated and messy.