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?
badisensors
Posts
-
💬 Building a Raspberry Pi Gateway -
Homeassistant in docker dont connect with serial gatewayI 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 -
Never been able to get MySensors to workMake 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?
-
Never been able to get MySensors to workIs your power supply enough to supply the right current? Also play with the RF POWER when you build the gateway.
-
Mysensors RF command send nodeThank 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 nodeHi,
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.
-
💬 Temperature-Humidity-Pressure SensorThe one chip U4 is high accurancy temperature and humidity sensor. I think its better temperature sensor than the internal temperature sensor of BMP180.
-
Problem with light control between mysensors and HATry persistence: false
-
[SOLVED] Raspberry Pi serial gateway NRF24 - !TSM:INIT:TSP FAILIf 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.
-
[SOLVED] Raspberry Pi serial gateway NRF24 - !TSM:INIT:TSP FAILBecause in 1.5-2 years many things are changing. Did you try my config?
-
[SOLVED] Raspberry Pi serial gateway NRF24 - !TSM:INIT:TSP FAIL2 years ago were you using version 2.3.1 ?
-
[SOLVED] Raspberry Pi serial gateway NRF24 - !TSM:INIT:TSP FAILAs 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
-
WiFi Gateway on raspberryI 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?
-
WiFi Gateway on raspberryOk i will give it a try and i will tell you. Thanks
-
WiFi Gateway on raspberryI 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. -
WiFi Gateway on raspberryYes, 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 raspberryHi,
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. -
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 -
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