Page 1 of 1

Hardware device with serial monitor and LUA parser on input

Posted: Monday 19 December 2016 11:47
by mikkel75
Hi,

I'm missing a simple hardware device that attaches to a serial port (tty) where it listens for incoming data and on data calls a parser (LUA).
It should also be possible from virtual devices to transmit commands over the tty.

Background:
I have an Arduino connected to my Domoticz server, the Arduino has a simple 433 MHz transmitter and receiver connected to it. I'm using RCSwitch on the Arduino to send/receive on the 433 Mhz 'network'.
I have an RFLink connected as well - but my devices aren't supported, and the debug logs I mailed them don't get included - so I'm stuck with my own implementation using RCSwitch (which works!)...

Looking at the Domoticz code base, I guess it shouldn't be a huge task to write a hardware device like described based on e.g. ASyncSerial or MySensors?

Hope somebody (with the needed coding skills) can help :)
Thanks, M

Re: Hardware device with serial monitor and LUA parser on input

Posted: Friday 06 January 2017 10:43
by Gizmo
I found a very interesting project on github a few days ago, a port of pilight to nodemcu for connecting 433mhz receiver and transmitter.
I have tried it and it works really nice and should not be very hard to make a plugin for domoticz, i have looked at how to make a python plugin for domoticz but i would need a good example for a serial connected device to maybe be able to do it myself but i have very limited knowledge of python.
Maybe someone with experience in making python plugins for domoticz could do it?

https://github.com/puuu/ESPiLight