Hardware device with serial monitor and LUA parser on input

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
mikkel75
Posts: 39
Joined: Thursday 08 December 2016 20:50
Target OS: Linux
Domoticz version:
Contact:

Hardware device with serial monitor and LUA parser on input

Post 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
Gizmo
Posts: 8
Joined: Monday 11 November 2013 18:35
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest