The hole handling of the bluethooth connection is done by the Linux system. I’ve got one sensor already running with this setup. (An arduino mini pro 3,3v with an hc06 bluethooth module and an dht22 temp sensor, no 433MHz stuff)
Now I would like to add an second arduino with homeduino sketch to the system. The question is how this could be handled in the pimatic system. Maybe I just copy the homeduino plugin an rename the plugin in homeduino2. Than I add the following code to the plugin section:
{
“plugin”: “homeduino”,
“driver”: “serialport”,
“driverOptions”: {
“serialDevice”: “/dev/ttyUSB0”,
“baudrate”: 115200
},
“receiverPin”: 0,
“transmitterPin”: 4,
“dstSearchAddressPin”: 12
},
{
“plugin”: “homeduino2”,
“driver”: “serialport”,
“driverOptions”: {
“serialDevice”: “/dev/ttyUSB1”,
“baudrate”: 115200
},
“receiverPin”: 0,
“transmitterPin”: 4,
“dstSearchAddressPin”: 12
}
But actual I’ve no idea where I have to do the renaming.