pimatic / pimatic-homeduino

Pimatic plugin for using 433mhz devices and sensors with a connected Arduino with homeduino sketch
https://pimatic.org/
GNU General Public License v2.0
37 stars 29 forks source link

Improved support for customized homeduino sketches #69

Open PSi86 opened 7 years ago

PSi86 commented 7 years ago

Hi folks,

first of all thanks for this great pimatic framework and the homeduino plugin!

The thing is that although I try to dig into coffeescript and nodejs Î am not able to quickly add own functionality.

The homeduino sketch for arduino is quite easy to extend by adding a serial "identifier" for the new function and creating a function which will be called when the corresponding identifier is received over serial. The idea for the pimatic-homeduino plugin would be to add a device class where you can configure the serial identifier and it's parameters directly in the pimatic interface. This is already done in a quite comparable way for the mqtt plugin where you simply create the attributes list according to the data which will be received in a message from the device.

Difference is that mqtt will mostly receive JSON formatted messages while homduino splits the parameters with a space.

We would need two device classes:

Do you think this would be a lot of work? This is of course no issue but it could push the homeduino-pimatic plugin from "super" to "awesome" :)

Best regards, Peter