pimatic-mysensors controller plugin
-
@fets Yes, indeed, I made some progress during the last weeks. Today I finally found a way to display these debug messages. Took me months. See this thread: http://forum.mysensors.org/topic/2392/how-to-properly-debug-serial-gateway-nrf24l01
I think my serial gateway was somehow badly connected. During the past weeks I verified everything, re-soldered, tested various power supplies and radio modules, etc. Now it seems to work usually stable. But not always. Now I am playing around with increasing the sending power of the radio modules.I am using a pi 2.
Interesting, your problem sounds very similar. Unfortunately I do not really have any advice. Maybe try to build a duplicate and see if this works better?
-
@fets Yes, indeed, I made some progress during the last weeks. Today I finally found a way to display these debug messages. Took me months. See this thread: http://forum.mysensors.org/topic/2392/how-to-properly-debug-serial-gateway-nrf24l01
I think my serial gateway was somehow badly connected. During the past weeks I verified everything, re-soldered, tested various power supplies and radio modules, etc. Now it seems to work usually stable. But not always. Now I am playing around with increasing the sending power of the radio modules.I am using a pi 2.
Interesting, your problem sounds very similar. Unfortunately I do not really have any advice. Maybe try to build a duplicate and see if this works better?
-
Hi everyone,
I installed Pimatic and it looks work just fine.
In the Config menu I added the codes below.
Saved and restarted the Pimatic.
I see "Light Unknown%" on the frontpage.
How can I fix that? Thanks....{ "plugin": "mysensors", "driver": "serialport", "protocols": "1.5.1", "startingNodeId": 1, "driverOptions": { "//": "'/dev/ttyUSB0' if using serial Gateway", "serialDevice": "/dev/ttyMySensorsGateway", "baudrate": 115200 } }],
"devices": [
{
"id": "Light",
"name": "Light",
"class": "MySensorsLight",
"nodeid": 15,
"batterySensor": false,
"sensorid": 2
}
], -
Hi everyone,
I installed Pimatic and it looks work just fine.
In the Config menu I added the codes below.
Saved and restarted the Pimatic.
I see "Light Unknown%" on the frontpage.
How can I fix that? Thanks....{ "plugin": "mysensors", "driver": "serialport", "protocols": "1.5.1", "startingNodeId": 1, "driverOptions": { "//": "'/dev/ttyUSB0' if using serial Gateway", "serialDevice": "/dev/ttyMySensorsGateway", "baudrate": 115200 } }],
"devices": [
{
"id": "Light",
"name": "Light",
"class": "MySensorsLight",
"nodeid": 15,
"batterySensor": false,
"sensorid": 2
}
],@fahrettine How does your sketch look? Does pimatic receive anything in de log?
-
Hi,
Thanks for the answer.
1-I installed Pimatic.
2-I installed Serial Gateway on the Arduino Nano.
3-I installed the Light sketch from MySensors on the Nano.Pimatic logs look like below. It seems it doesnt receive any signal.
I think there is someting wrong with the USB port...
Are my USB port settings coreect?
You can see MySensors plugin settings above.2016-04-05 19:23:46info [pimatic]: Listening for HTTP-request on port 80...
19:23:46info [pimatic-mobile-frontend]: rendering html finished
19:23:20info [pimatic-mobile-frontend]: rendering html
19:23:20info [pimatic-mobile-frontend]: packing static assets finished
19:23:18info [pimatic-mobile-frontend]: packing static assets
19:23:18info [pimatic]: New device "Light"...
19:23:08info [pimatic-cron]: the time is: Tue Apr 05 2016 14:23:08 GMT-0200 (GMT+2)
19:23:08info [pimatic]: Loading plugin: "pimatic-mysensors" (0.8.25)
19:23:02info [pimatic]: Loading plugin: "pimatic-mobile-frontend" (0.8.82)
19:22:59 -
@fahrettine said:
{ "plugin": "mysensors", "driver": "serialport", "protocols": "1.5.1", "startingNodeId": 1, "driverOptions": { "//": "'/dev/ttyUSB0' if using serial Gateway", "serialDevice": "/dev/ttyMySensorsGateway", "baudrate": 115200 } }You may want to double check that config.
It should be more like:{ "plugin": "mysensors", "driver": "serialport", "protocols": "1.5.1", "startingNodeId": 1, "driverOptions": { "serialDevice": "/dev/ttyUSB0", "baudrate": 115200 } }if, ttyUSB0 is your connected arduino nano.
-
I plugged the controller and light sensor on my pc.
The controller receives and the sensor transmits signals.
So, the hardware is OK.
I changed the USB setting as "serialDevice": "/dev/ttyUSB0"
But still no signal.
Because I am new on RPi I cant set the USB corectly.
My USB settings (lsusb -t) are like below:
What is my USB port? USB0 or USB1 or other else?pi@raspberrypi:~ $ lsusb -t
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/5p, 480M
|__ Port 1: Dev 3, If 0, Class=Vendor Specific Class, Driver=smsc95xx, 480M
|__ Port 2: Dev 4, If 0, Class=Wireless, Driver=btusb, 12M
|__ Port 2: Dev 4, If 1, Class=Wireless, Driver=btusb, 12M
|__ Port 3: Dev 5, If 0, Class=Vendor Specific Class, Driver=rtl8192cu, 480M
|__ Port 5: Dev 7, If 0, Class=Vendor Specific Class, Driver=ch341, 12M -
@fahrettine said:
What is my USB port? USB0 or USB1 or other else?
dmesg | grep ttyWill give you an output like:
ch341-uart converter now attached to ttyUSBXX -
Oitzu thank you very much.
I solved the problem.
It was the nodeID. I set the nodeID to on the sketch to 15 and the problem solved.
Thanks for your help... -
Hi everyone,
I installed Pimatic. It works fine...
I installed light sensor code from MySensor: http://www.mysensors.org/build/light
Light sensor works fine...
After that I intalled the Relay code: http://www.mysensors.org/build/relay
The relay doesnt work!!! Any idea for the problem???
When I turn the buton On/Off I can see the sending messages on debug.
Thanks!!!
Below are my Pimatic Config codes and debug messages:{ "id": "Switch", "name": "Switch", "class": "MySensorsSwitch", "nodeid": 10, "sensorid": 1 }
debug [pimatic-mysensors]: -> Sending 10;1;1;1;2;1
21:21:09debug [pimatic-mysensors]: -> Sending 10;1;1;1;2;0
21:21:01debug [pimatic-mysensors]: -> Sending 10;1;1;1;2;1
21:20:56debug [pimatic-mysensors]: -> Sending 10;1;1;1;2;0
21:20:26info [pimatic]: Listening for HTTP-request on port 80...
21:20:26info [pimatic-mobile-frontend]: rendering html finished -
Hi everyone,
I installed Pimatic. It works fine...
I installed light sensor code from MySensor: http://www.mysensors.org/build/light
Light sensor works fine...
After that I intalled the Relay code: http://www.mysensors.org/build/relay
The relay doesnt work!!! Any idea for the problem???
When I turn the buton On/Off I can see the sending messages on debug.
Thanks!!!
Below are my Pimatic Config codes and debug messages:{ "id": "Switch", "name": "Switch", "class": "MySensorsSwitch", "nodeid": 10, "sensorid": 1 }
debug [pimatic-mysensors]: -> Sending 10;1;1;1;2;1
21:21:09debug [pimatic-mysensors]: -> Sending 10;1;1;1;2;0
21:21:01debug [pimatic-mysensors]: -> Sending 10;1;1;1;2;1
21:20:56debug [pimatic-mysensors]: -> Sending 10;1;1;1;2;0
21:20:26info [pimatic]: Listening for HTTP-request on port 80...
21:20:26info [pimatic-mobile-frontend]: rendering html finished@fahrettine said:
check whether you received any message ( serialport output ) on relay sensor node.
-
I've seen the "protocol" line. Is it suitable for 2.0.0beta sketches ?
-
I've seen the "protocol" line. Is it suitable for 2.0.0beta sketches ?
@rollercontainer the plug-in works fine with 2.0. You dont have to change the protocol value in the plug-in.
-
Do you plan to continue to develop this plugin? I will very pleased to see a mysensors button. Thank you!
@ricardot said in pimatic-mysensors controller plugin:
Do you plan to continue to develop this plugin? I will very pleased to see a mysensors button. Thank you!
I second this. And also see if we can lose the dependency on serialport 2.0.6 so that we can use Node.js > 4.9.1