This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Modbus/TCP
Would it be possible to implement Modbus/TCP? This would open-up the possibility of a lot of PLC based controllers working together with Homey
Don't know if it could be of use, but found the following Json script on Github:
https://github.com/dresende/node-modbus-tcp/blob/master/package.json
Don't know if it could be of use, but found the following Json script on Github:
https://github.com/dresende/node-modbus-tcp/blob/master/package.json
Comments
https://github.com/Cloud-Automation/modbus
I'm currently working on a project to upgrade a 1928 inner-watership to today's domotica capabilities. In the engine room already a PLC is in use and it would be great if Homey could talk with it to report status via voice, the Knightrider under the ships
Anyway, that's not the question, if the PLC only has modbus, you can say there are better options but, if it is the only one, there aren't.....
But I agree that that's not the question. What brand and type if PLC do you have?
I use for example Siemens PLC S7 or CCC Series5/Series6 (Turbine/Compressor Control System) controllers which are slaves to SCADA systems. They to the calculations on their own and just tell the SCADA on request of the SCADA what they are doing. The SCADA can also give manual commandos as in setpoints or valve control.
My vriend is also used the CCC equipment and we can get them relatively cheap. It would be nice to have a "simple" interface like Homey for his wife to be able to control everything
If there's a Modbus NodeJS lib, then its possible to add it to Homey. The biggest challenge will be homey talk to the PLC.
I use 2 Modbus device in my homey (1x Kamstrup 162, 1x Kamstrup Multical) and I use 2 arduino's with on one end IR-Head and on the other end an EthernetShield. Arduino uses the IR-Head to talk to the meters and translates it to a URL and post it to my SQLite database.
Here are some low cost Modbus I/O modules and Modbus Touch Screen PLC's in case you need anything like that.
Low Cost Modbus I/O: http://www.icpdas-usa.com/tmseries.php
Low Cost Modbus Touch Screen Controllers: http://www.icpdas-usa.com/touch_pad_controller.html
I would also like a similar app for FINS protocol (Omron PLC) so I could connect my PLC to it.
FINS is very similar to Modbus TCP, it is only a different string and different port nr but the rest is the same.
No idea if he is still on the Athom ship....
I saw that and there could be multiple reasons to keep that on a profile.
Emile confirmed Reinier is not fully available.
for me FINS and also Modbus?
I would love to have the connection to my PLC.
You have nothing to lose, but only to gain.
It'll take some time to learn and you'll maybe have to start with an very simple app and later start for modbus
any news?
Any news?
Would you please tell How do you add a NodeJS lib to Homey?!
Thanks
I didn't try it, but in Node-Red there are installable nodes which can be installed to interact with a Siemens S7;
https://flows.nodered.org/node/node-red-contrib-s7
https://flows.nodered.org/node/node-red-contrib-s7comm
For ModBus there are a lot of available nodes for installation, so that should also be a probability.
Just a suggestion. Could be nice for testing and easy to setup?
There is a Dru fireplace app on Github. The fireplace is controlled via ModBus TCP. It works, however there is a memory leak or something inside which makes it crash after 1-2 days. I was not able to fix this. The app is not being supported anymore.
SolarEdge's API shouldn't be polled to often, but with Modbus I can poll the inverter every five minutes (or every second).
I have been using this from Github: https://github.com/tjko/sunspec-monitor to play with, and since I have the Modbus Meter there are a lot of information available. Excerpt below (using my mac).