@Luc3as Okay, Again I found answer while after asking, I used dev branch of mysensors and it is working like a charm.
Luc3as
@Luc3as
Best posts made by Luc3as
-
RE: π¬ Building a Raspberry Pi Gateway
-
RS485 Gateway on Raspberry Pi
Re: RS485/RS232/Serial transport class for mysensors.org
Hello gentlemans,
I am strugling with crazy combination of RS485 adapter connected to Raspberry Pi, which is running Node-RED, and I would like to connect arduino sensors through RS485 to this gateway.
For start, I hope this configuration is possible. So I connected the MAX RS485 adapter to the pi like this
I installed the MySensors gateway , and I am able to run it without problem, I can even see gateway started successfully, but I think it doesn't know anything about status of RS485 in real.On the other side I burnt example of RS485 motion sensor to arduino pro mini, and watched serial console, It cannot Find parent so there has to be some communication issue.
I wanted to exclude Raspberry pi as gateway from this so I came with another setup, 2 arduinos with adapters together, one acting as Gateway, second one still with motion sensor example.
However the results are still the same, Gateway starts without problem, and node is looking for gateway, no presentation, nor sending any data.So I was searching through forums and sites day and night, I found some examples of test sketches from altasoft library. With this setup I flashed both and I got working communication, it was sender repeater node so when I wrote something to console it looped me back from another end. Actually I had DE pins connected to D10 as I found it in description.
When I tried to flash mysensors GW and Node again, can't get any data flowing. I tried to switch DE pins on both D10 and D2 pins as in sketch, I tried to change baudrate, switch roles with GW and Node, twist RX and TX pins, all combinations, nothing.
Do you guys have any clue what am I doing wrong with vanilla setup like this ?
Thanks
EDIT:
God, why is it , every time I am going to ask about some problem, moments later find solution.
Wish I found this tread earlier https://forum.mysensors.org/topic/5495/rs485-on-nano/12
So for future references, With use of RS485 wired network, there must be static node ID set for every node and for gateway too.
P.S. We should update the documentation, and maybe add wiring picture to the https://www.mysensors.org/build/rs485 -
RE: π¬ Building a Raspberry Pi Gateway
do you have SPI enabled through raspi-config ?
Latest posts made by Luc3as
-
[SOLVED] I_version spamming from GW
Hello, I donΒ΄t know if it is normal behavior, but I have ESP8266 GW with NRF240L , controller is homeassistant where I have version 2.0 in config of component.
When I connect to GW with MYScontroller, I can see there is a lot of messages about receiving internal version
Is this coming from HASS, or can I disable it somehow ? or it is completely normal and I should ignore it. thank you43 09.09.2017 18:12:22 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 44 09.09.2017 18:12:23 RX 6 INTERNAL C_INTERNAL NO I_HEARTBEAT_RESPONSE 39627 45 09.09.2017 18:12:32 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 46 09.09.2017 18:12:42 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 47 09.09.2017 18:12:52 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 48 09.09.2017 18:13:02 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 49 09.09.2017 18:13:09 RX 5 - Weather_Station INTERNAL C_INTERNAL NO I_HEARTBEAT_RESPONSE 47248 50 09.09.2017 18:13:12 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 51 09.09.2017 18:13:22 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 52 09.09.2017 18:13:27 RX 6 0 C_SET NO V_TEMP 21.4 53 09.09.2017 18:13:27 RX 6 INTERNAL C_INTERNAL NO I_HEARTBEAT_RESPONSE 41032 54 09.09.2017 18:13:32 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 55 09.09.2017 18:13:42 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 56 09.09.2017 18:13:52 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 57 09.09.2017 18:14:02 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 58 09.09.2017 18:14:11 RX 5 - Weather_Station INTERNAL C_INTERNAL NO I_HEARTBEAT_RESPONSE 48818 59 09.09.2017 18:14:12 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 60 09.09.2017 18:14:22 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 61 09.09.2017 18:14:30 RX 6 INTERNAL C_INTERNAL NO I_HEARTBEAT_RESPONSE 42430 62 09.09.2017 18:14:32 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 63 09.09.2017 18:14:42 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 64 09.09.2017 18:14:53 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 65 09.09.2017 18:15:02 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 66 09.09.2017 18:15:12 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 67 09.09.2017 18:15:14 RX 5 - Weather_Station INTERNAL C_INTERNAL NO I_HEARTBEAT_RESPONSE 50391 68 09.09.2017 18:15:22 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 69 09.09.2017 18:15:32 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 70 09.09.2017 18:15:34 RX 6 INTERNAL C_INTERNAL NO I_HEARTBEAT_RESPONSE 43829 71 09.09.2017 18:15:42 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 72 09.09.2017 18:15:52 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 73 09.09.2017 18:16:02 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 74 09.09.2017 18:16:12 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 75 09.09.2017 18:16:15 RX 5 - Weather_Station 5 - S_MULTIMETER C_SET NO V_VOLTAGE 3.58 76 09.09.2017 18:16:17 RX 5 - Weather_Station 2 - S_BARO C_SET NO V_PRESSURE 1001.7 77 09.09.2017 18:16:17 RX 5 - Weather_Station 2 - S_BARO C_SET NO V_UNIT_PREFIX hPa 78 09.09.2017 18:16:17 RX 5 - Weather_Station 6 - S_MOISTURE C_SET NO V_LEVEL 61.0 79 09.09.2017 18:16:17 RX 5 - Weather_Station 6 - S_MOISTURE C_SET NO V_UNIT_PREFIX % 80 09.09.2017 18:16:18 RX 5 - Weather_Station 1 - S_TEMP C_SET NO V_TEMP 22.3 81 09.09.2017 18:16:18 RX 5 - Weather_Station 0 - S_HUM C_SET NO V_HUM 65 82 09.09.2017 18:16:18 RX 5 - Weather_Station INTERNAL C_INTERNAL NO I_HEARTBEAT_RESPONSE 53594 83 09.09.2017 18:16:22 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 84 09.09.2017 18:16:32 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 85 09.09.2017 18:16:37 RX 6 INTERNAL C_INTERNAL NO I_HEARTBEAT_RESPONSE 45226 86 09.09.2017 18:16:42 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 87 09.09.2017 18:16:52 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 88 09.09.2017 18:17:02 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 89 09.09.2017 18:17:12 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 90 09.09.2017 18:17:21 RX 5 - Weather_Station INTERNAL C_INTERNAL NO I_HEARTBEAT_RESPONSE 55167 91 09.09.2017 18:17:22 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 92 09.09.2017 18:17:32 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 93 09.09.2017 18:17:41 RX 6 INTERNAL C_INTERNAL NO I_HEARTBEAT_RESPONSE 46623 94 09.09.2017 18:17:43 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 95 09.09.2017 18:17:52 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 96 09.09.2017 18:18:03 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 97 09.09.2017 18:18:12 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 98 09.09.2017 18:18:23 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 99 09.09.2017 18:18:23 RX 5 - Weather_Station INTERNAL C_INTERNAL NO I_HEARTBEAT_RESPONSE 56736 100 09.09.2017 18:18:33 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 101 09.09.2017 18:18:42 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1 102 09.09.2017 18:18:44 RX 6 INTERNAL C_INTERNAL NO I_HEARTBEAT_RESPONSE 48019 103 09.09.2017 18:18:53 RX 0 - Gateway INTERNAL C_INTERNAL NO I_VERSION 2.1.1
-
RE: π¬ Building a Raspberry Pi Gateway
do you have SPI enabled through raspi-config ?
-
RE: MySensors weather station
@dbemowsk yup, actually there are 8 of them, each providing nominal 0,5 volts, so to power up the lipo charger for battery I need at least 4 volts, in direct sunlight I think this will not be problem, but as @dbemowsk says, it will not have ideal position to sun every day and for whole time. but there is big enough reserve at battery , providing power for few days to weeks even without solar panel.
and I am also checking voltage on solar panel so if there would be some problem with charging I can set notifications or something from home automation system. -
RE: π¬ Building a Raspberry Pi Gateway
@Luc3as Okay, Again I found answer while after asking, I used dev branch of mysensors and it is working like a charm.
-
RE: MySensors weather station
Hello all,
I'd like to add to this discussion my bit,
here is code from my older project of arduino based, battery operated, solar panel charged weather station
https://github.com/Luc3as/MySensors-WeatherStation
I must finish all documentation, I have PCBs ready and manufactured and tested, and models ready for 3d prints too.
I am not measuring wind so I am also interested in nice work above.
for now it is still work in progress, here is little teaser of overall look
-
RE: π¬ Building a Raspberry Pi Gateway
Hello, did anyone tried gateway on pi with RS485 wired network ? It looks like node with ID set is looking for parrent and gateway does not respond to the node and therefore there is no succesfull presentation.
example from GW mysgw:TSF:MSG:SEND,0-0-5-5,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0 mysgw: TSF:MSG:READ,5-5-255,s=255,c=3,t=7,pt=0,l=0,sg=0: mysgw: TSF:MSG:BC mysgw: TSF:MSG:FPAR REQ,ID=5 mysgw: TSF:PNG:SEND,TO=0 mysgw: TSF:CKU:OK mysgw: TSF:MSG:GWL OK mysgw: TSF:MSG:SEND,0-0-5-5,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0 mysgw: TSF:MSG:READ,5-5-255,s=255,c=3,t=7,pt=0,l=0,sg=0: mysgw: TSF:MSG:BC mysgw: TSF:MSG:FPAR REQ,ID=5 mysgw: TSF:CKU:OK,FCTRL mysgw: TSF:MSG:GWL OK mysgw: TSF:MSG:SEND,0-0-5-5,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0 mysgw: TSF:MSG:READ,5-5-255,s=255,c=3,t=7,pt=0,l=0,sg=0: mysgw: TSF:MSG:BC mysgw: TSF:MSG:FPAR REQ,ID=5 mysgw: TSF:CKU:OK,FCTRL mysgw: TSF:MSG:GWL OK mysgw: TSF:MSG:SEND,0-0-5-5,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0 mysgw: TSF:MSG:READ,5-5-255,s=255,c=3,t=7,pt=0,l=0,sg=0: mysgw: TSF:MSG:BC mysgw: TSF:MSG:FPAR REQ,ID=5 mysgw: TSF:CKU:OK,FCTRL mysgw: TSF:MSG:GWL OK mysgw: TSF:MSG:SEND,0-0-5-5,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
and from node :
0 MCO:BGN:INIT NODE,CP=RSNNA--,VER=2.1.1 3 TSM:INIT 4 TSF:WUR:MS=0 5 TSM:INIT:TSP OK 7 TSM:INIT:STATID=5 9 TSF:SID:OK,ID=5 10 TSM:FPAR 27 TSF:MSG:SEND,5-5-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 2035 !TSM:FPAR:NO REPLY 2037 TSM:FPAR 2055 TSF:MSG:SEND,5-5-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 4063 !TSM:FPAR:NO REPLY 4065 TSM:FPAR 4082 TSF:MSG:SEND,5-5-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 6090 !TSM:FPAR:NO REPLY 6092 TSM:FPAR 6110 TSF:MSG:SEND,5-5-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 8118 !TSM:FPAR:FAIL 8119 TSM:FAIL:CNT=1
-
RS485 Gateway on Raspberry Pi
Re: RS485/RS232/Serial transport class for mysensors.org
Hello gentlemans,
I am strugling with crazy combination of RS485 adapter connected to Raspberry Pi, which is running Node-RED, and I would like to connect arduino sensors through RS485 to this gateway.
For start, I hope this configuration is possible. So I connected the MAX RS485 adapter to the pi like this
I installed the MySensors gateway , and I am able to run it without problem, I can even see gateway started successfully, but I think it doesn't know anything about status of RS485 in real.On the other side I burnt example of RS485 motion sensor to arduino pro mini, and watched serial console, It cannot Find parent so there has to be some communication issue.
I wanted to exclude Raspberry pi as gateway from this so I came with another setup, 2 arduinos with adapters together, one acting as Gateway, second one still with motion sensor example.
However the results are still the same, Gateway starts without problem, and node is looking for gateway, no presentation, nor sending any data.So I was searching through forums and sites day and night, I found some examples of test sketches from altasoft library. With this setup I flashed both and I got working communication, it was sender repeater node so when I wrote something to console it looped me back from another end. Actually I had DE pins connected to D10 as I found it in description.
When I tried to flash mysensors GW and Node again, can't get any data flowing. I tried to switch DE pins on both D10 and D2 pins as in sketch, I tried to change baudrate, switch roles with GW and Node, twist RX and TX pins, all combinations, nothing.
Do you guys have any clue what am I doing wrong with vanilla setup like this ?
Thanks
EDIT:
God, why is it , every time I am going to ask about some problem, moments later find solution.
Wish I found this tread earlier https://forum.mysensors.org/topic/5495/rs485-on-nano/12
So for future references, With use of RS485 wired network, there must be static node ID set for every node and for gateway too.
P.S. We should update the documentation, and maybe add wiring picture to the https://www.mysensors.org/build/rs485 -
RE: π¬ Atmospheric Pressure Sensor
I tried to modify the weather forecast script to run each 5 minutes instead of every minute but now I am getting strange forecasts and sometimes unknown conditions.
Doesn't anybody tried to accomplish this ? -
fail presentation
hello I am using latest Home Assistant with mysensors installed and I am getting this strange error in log after connecting humidity sensor node
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 192.168.1.10 Apr 17 21:46:51 luc3as-ha hass[11884]: INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 25-25-0 s=255,c=3,t=15,pt=2,l=2,sg=0:0 Apr 17 21:46:54 luc3as-ha hass[11884]: INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 25-25-0 s=255,c=3,t=11,pt=0,l=8,sg=0:Humidity Apr 17 21:46:54 luc3as-ha hass[11884]: INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 25-25-0 s=255,c=3,t=12,pt=0,l=3,sg=0:1.0 Apr 17 21:46:54 luc3as-ha hass[11884]: INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 25-25-0 s=0,c=0,t=7,pt=0,l=0,sg=0: Apr 17 21:47:00 luc3as-ha hass[11884]: Exception in thread Thread-2: Apr 17 21:47:00 luc3as-ha hass[11884]: Traceback (most recent call last): Apr 17 21:47:00 luc3as-ha hass[11884]: File "/usr/lib/python3.4/threading.py", line 920, in _bootstrap_inner Apr 17 21:47:00 luc3as-ha hass[11884]: self.run() Apr 17 21:47:00 luc3as-ha hass[11884]: File "/root/.homeassistant/lib/mysensors/mysensors.py", line 328, in run Apr 17 21:47:00 luc3as-ha hass[11884]: response = self.handle_queue() Apr 17 21:47:00 luc3as-ha hass[11884]: File "/root/.homeassistant/lib/mysensors/mysensors.py", line 233, in handle_queue Apr 17 21:47:00 luc3as-ha hass[11884]: reply = func(*args, **kwargs) Apr 17 21:47:00 luc3as-ha hass[11884]: File "/root/.homeassistant/lib/mysensors/mysensors.py", line 115, in logic Apr 17 21:47:00 luc3as-ha hass[11884]: self._handle_presentation(msg) Apr 17 21:47:00 luc3as-ha hass[11884]: File "/root/.homeassistant/lib/mysensors/mysensors.py", line 49, in _handle_presentation Apr 17 21:47:00 luc3as-ha hass[11884]: self.sensors[msg.node_id].add_child_sensor(msg.child_id, Apr 17 21:47:00 luc3as-ha hass[11884]: KeyError: 25 Apr 17 21:47:00 luc3as-ha hass[11884]: INFO:homeassistant.components.device_tracker.asuswrt:Checking ARP
-
RE: Mysensor-ing a thermostatic valve
@Sorg Hello, I am really interested in this topic, do you have any new informations or progress in this project ?