Hello. I had built the Rpi gateway serial and it was working fine in core installation in homeassistant. Now i decided to make installation of homeassistant in docker and although i map the port as dev/ttyUSB020:/dev/ttyUSB020 it is impossible to connect in gateway. The gateway is starting fine and create the port /dev/ttyUSB020. Maybe its something to do with pty option in gateway? My configuration is ./configuration --my-transport=rf24 --my-gateway=serial --my-serial-is-pty --my-serial-port=/dev/ttyUSB020 --my-rf24-ce-pin=22 --my-rf24-cs-pin=24 --my-rf24-irq-pin=15
How do you think i can fix it?
Posts made by badisensors
-
RE: 💬 Building a Raspberry Pi Gateway
-
Homeassistant in docker dont connect with serial gateway
I have installed homeassistant with docker and i have made the RPi serial gateway in port /dev/ttyUSB020 . I also have map the port in docker-compose.yml
devices:
- /dev/serial/by-id/usb-0658_0200-if00:/dev/serial/by-id/usb-0658_0200-if00
- /dev/ttyUSB020:/dev/ttyUSB020When i try to add the mysensors integration in homeassistant it cant see the port. How can i fix that?
Thanks -
RE: Never been able to get MySensors to work
Make a last try and change the RF POWER parameter when you build the gateway. If it is at high power set it to low power or the opposite. Did you try with other RF24 module?
-
RE: Never been able to get MySensors to work
Is your power supply enough to supply the right current? Also play with the RF POWER when you build the gateway.
-
RE: Mysensors RF command send node
Thank you skywatch for your answer. I am talking about RF 433MHz and i have succesfully decode and resend RF commands by connecting RF transmitter and receiver on arduino like this project here: http://www.libremechanics.com/?q=node/31
How can i combine these sketches to make a mysensor node which will be able to read and send the RF commands? -
Mysensors RF command send node
Hi,
I want to make a node to send RF codes to control different devices (alarm system, some switches) which already are controlled from RF remote control. I saw in examples only RF receive decode node. Can anybody help me with RF send?
Thank you. -
Node 2 is unknown warning in Homeassistant.
Hi everybody.
I am running homeassistant on raspberrypi and i have serial gateway on raspberry. I have made 2 nodes with temp hum sensor and they are working fine but i see this warning everytime i reboot homeassistant ''Node 2 is unknown'' the same also for node3. What that means and should i just ignore it?
Also i see this warning ''child_id 1 already exists in children of node 3, cannot add child''Thank you.
-
RE: 💬 Temperature-Humidity-Pressure Sensor
The one chip U4 is high accurancy temperature and humidity sensor. I think its better temperature sensor than the internal temperature sensor of BMP180.
-
RE: Problem with light control between mysensors and HA
Try persistence: false
-
RE: [SOLVED] Raspberry Pi serial gateway NRF24 - !TSM:INIT:TSP FAIL
If we use pin 22 for CE and pin 24 for CS it is not necessery to declare as you said. But if we want to use other pins we need to declare. I havent try though with other pins.
-
RE: [SOLVED] Raspberry Pi serial gateway NRF24 - !TSM:INIT:TSP FAIL
Because in 1.5-2 years many things are changing. Did you try my config?
-
RE: [SOLVED] Raspberry Pi serial gateway NRF24 - !TSM:INIT:TSP FAIL
2 years ago were you using version 2.3.1 ?
-
RE: [SOLVED] Raspberry Pi serial gateway NRF24 - !TSM:INIT:TSP FAIL
As kebibg said you must also configure the pins for CE and CS. The configure i used was :
--my-transport=rf24 --my-rf24-pa-level=RF24_PA_LOW --my-gateway=serial --my-serial-is-pty --my-serial-port=/dev/ttyUSB020 --my-rf24-ce-pin=22 --my-rf24-cs-pin=24 --my-rf24-irq-pin=15 --my-leds-err-pin=12 --my-leds-rx-pin=16 --my-leds-tx-pin=18
Also you must connect MISO to pin 21, Mosi to pin 19 and CLK to pin 23 on raspberry
-
RE: WiFi Gateway on raspberry
I have problem to verify the sketch of Sonoff and i tried also ESP8266 gateway and also i cant verify. Arduino IDE returns the error:
Arduino: 1.8.7 (Windows Store 1.8.15.0) (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, 4M (1M SPIFFS), v2 Higher Bandwidth, Disabled, None, Only Sketch, 115200" In file included from \Arduino\libraries\MySensors/MySensors.h:405:0, from \Arduino\libraries\MySensors\examples\GatewayESP8266\GatewayESP8266.ino:132: \Arduino\libraries\MySensors/hal/architecture/ESP8266/MyMainESP8266.cpp:57:53: error: declaration of C function 'void ets_update_cpu_frequency(int)' conflicts with extern "C" void ets_update_cpu_frequency(int freqmhz); ^ In file included from \ArduinoData\packages\esp8266\hardware\esp8266\2.4.2\cores\esp8266/pgmspace.h:10:0, from \ArduinoData\packages\esp8266\hardware\esp8266\2.4.2\cores\esp8266/Arduino.h:256, from sketch\GatewayESP8266.ino.cpp:1: \ArduinoData\packages\esp8266\hardware\esp8266\2.4.2/tools/sdk/include/ets_sys.h:218:6: error: previous declaration 'void ets_update_cpu_frequency(uint32_t)' here void ets_update_cpu_frequency(uint32_t ticks_per_us);
What its wrong?
-
RE: WiFi Gateway on raspberry
Ok i will give it a try and i will tell you. Thanks
-
RE: WiFi Gateway on raspberry
I think i am little confused. I just want to control my wifi Sonoff switch with my homeassistant. I saw these instructions https://www.mysensors.org/build/sonoff
where i can reprogramm the Sonoff ESP but i dont understand how it will communicate with homeassistant. Do i need also a separate wifi gateway or the Sonoff switch will be able to communicate with my controller through my LAN?
Thank you for your time to answer me. -
RE: WiFi Gateway on raspberry
Yes, but i already have made a serial gateway on raspberry with these instructions. Can i have serial and ethernet gateway at the same time?
-
WiFi Gateway on raspberry
Hi,
I saw the ESP8266 wifi gateway and i was wondering if i can use the on board wifi of raspberry as a wifi gateway. I have a new Sonoff wifi switch and i would like to control it through home assistant in raspberry if it is possible.
Thank you. -
RE: Raspberry gateway cant communicate with Home assistant.
OK SOLVED!
I reinstalled the last version of mysensors library and i uploaded again the sketch to arduino node and now i can see my light sensor!Thank you very much for your help.
Best Regards -
RE: Raspberry gateway cant communicate with Home assistant.
I have something new. Homeassistant write now that node 1 is unknown in the info section and i still dont see the sensor in UI
So the gateway not connected to USB020 port :
2018-12-04 12:37:29 INFO (MainThread) [mysensors] Connected to Serial<id=0xb0c1cf30, open=True>(port='/dev/ttyUSB020', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False)and then:
2018-12-04 12:37:44 WARNING (MainThread) [homeassistant.components.mysensors.gateway] Gateway /dev/ttyUSB020 not ready after 15.0 secs so continuing with setup
and later:
18-12-04 12:39:45 WARNING (MainThread) [mysensors] Node 1 is unknown
-
RE: Raspberry gateway cant communicate with Home assistant.
I did it and i made a reboot, but nothing changed. Again i see the error about port unable to connect in USB020 in homeassistant. Any other idea?
PS: when i run the test gateway command i see:
Dec 04 12:22:01 INFO Starting gateway...
Dec 04 12:22:01 INFO Protocol version - 2.3.0
Dec 04 12:22:01 DEBUG Serial port /dev/ttyUSB020 (115200 baud) created
Dec 04 12:22:01 DEBUG MCO:BGN:INIT GW,CP=RNNGL-Q-,VER=2.3.0
Dec 04 12:22:01 DEBUG TSF:LRT:OK
Dec 04 12:22:01 DEBUG TSM:INIT
Dec 04 12:22:01 DEBUG TSF:WUR:MS=0
Dec 04 12:22:01 DEBUG TSM:INIT:TSP OK
Dec 04 12:22:01 DEBUG TSM:INIT:GW MODE
Dec 04 12:22:01 DEBUG TSM:READY:ID=0,PAR=0,DIS=0
Dec 04 12:22:01 DEBUG MCO:REG:NOT NEEDED
Dec 04 12:22:01 DEBUG MCO:BGN:STP
Dec 04 12:22:01 DEBUG MCO:BGN:INIT OK,TSP=1
Dec 04 12:22:20 DEBUG TSF:MSG:READ,1-1-0,s=0,c=1,t=23,pt=2,l=2,sg=0:68
Dec 04 12:22:55 NOTICE RF24: Recovered from a bad interrupt trigger. -
RE: Raspberry gateway cant communicate with Home assistant.
Thank you very much. I followed the instructions here:
https://www.home-assistant.io/docs/installation/raspberry-pi/
to manually install the homeassistant so if i understood well the user is homeassistant and groups ''dialout'' and ''gpio'' added with command :
$ sudo useradd -rm homeassistant -G dialout,gpioSo do i need to build again the gateway adding --my-serial-groupname=<gpio> ?
-
Raspberry gateway cant communicate with Home assistant.
Hi,
I am running homeassistant in raspberry (manuall installataion on rasbian) and i had a serial usb gateway with arduino working fine with my first test node. I saw i could make gateway directly on raspberry so i decided to do it for more compact design. I built the raspberry gateway following these instructions https://www.mysensors.org/build/raspberry
with configuration of serial port
--my-gateway=serial --my-serial-is-pty --my-serial-port=/dev/ttyUSB020
All tests passed and communication from node to gateway established and working fine (i saw from debugging that node was sending values and gateway reaceiving the values. The problem is that Homeassistant cant open port ttyUSB020 with error:
''Unable to connect to /dev/ttyUSB020
util/async_.py (ERROR)''
How can i make the homeassistant to open port ,so get the data and show me the sensor on the UI?
Thank you.