Wondering what the status of this is. Would love to try it out as I have migrated to hassio and would love to integrate mysensors gateway back on the same rpi.
Posts made by rusg323
RE: Invalid configuration on hassio
I am having the same issue with Hass.io. I have tried defining the persistence file location as '/core/config/mysensors1.json', '/config/mysensors1.json', 'congif/mysensors1.json', ... I have tried having it within quotes, double quotes, and without.
Any thoughts would be appreciated.
RE: [Solved] Building RPi Gateway - No Support for nRF24 radio on this platform
@gohan Thanks so much! As soon as I went into raspi-config and enabled spi I was able to run the configurations and build the gateway! Now that its built I'm getting a failure to connect to the nrf24 radio messages when I have debug on so Ill have to start working through that, but this thread can be closed!
@rozpruwacz I didn't realize that I could combine multiple configuration change with one go, I thought they had to be run separately, but now I see that using the "--" combines multiple configuration changes.
Thanks for all your help!
[Solved] Building RPi Gateway - No Support for nRF24 radio on this platform
Hello All! I am very excited about getting into MySensors but have gotten stuck just trying to get the gateway going. I would really appreciate some help! Thanks in advance.
Here's my problem, I have been following the steps on the website to build a raspberry pi gateway but when I go to configure Transport and build the gateway I get an error stating "SPI.h: No such file or directory". I will layout more details below.
- Raspberry Pi 2
- The RPi is running Home Assistant v45.1. I installed Home Assistant using the Raspberry Pi All-In-One Installer
- 315 mhz receiver and transmitter hooked up to the GPIO pins (I have since taken them off in the course of debugging)
- NRF24 Radio connected to the GPIO pins
Steps taken to build the RPi Gateway:
- Downloaded the Master branch of the MySensors repository
./configure --my-transport=nrf24to configure the transports to the nrf24 radio. This gave me the following output:
[SECTION] Detecting target machine. [OK] machine detected: SoC=unknown, Type=unknown, CPU=armv7l. [SECTION] Checking GPIO Sysfs. [OK] /sys/class/gpio/export found [SECTION] Detecting SPI driver. [WARNING] No supported SPI driver detected. [SECTION] Detecting init system. [OK] init system detected: systemd. [SECTION] Saving configuration. [SECTION] Cleaning previous builds. [OK] Finished.
./configure --my-gateway=ethernet --my-controller-ip-address=YOUR-CONTROLLER-IPand using my RPi IP address and got the exact same output as above.
- At this point i knew something was wrong, but I figured I would tried to build the gateway by running
makeand got the following error:
In file included from examples_linux/mysgw.cpp:74:0: ./MySensors.h:254:2: error: #error No support for nRF24 radio on this platform #error No support for nRF24 radio on this platform ^ In file included from ./drivers/RF24/RF24.cpp:23:0, from ./MySensors.h:290, from examples_linux/mysgw.cpp:74: ./drivers/RF24/RF24.h:52:17: fatal error: SPI.h: No such file or directory #include <SPI.h> ^ compilation terminated. Makefile:114: recipe for target 'build/examples_linux/mysgw.o' failed make: *** [build/examples_linux/mysgw.o] Error 1
Steps taken to Troubleshoot:
- Lots of reading of the Home Assistant and MySensors forums. I have seen a few posts that seem similar to my issue, but I have not been able get the solution yet.
- Removed and re-downloaded MySensors master repository.
- Checked configuration options - SPI driver options looked promising, but I am not sure what they do or how I could change them.
- Checked and rechecked that the nrf24 radio is connected properly.
- Included and removed a capacitor between vcc and ground of the radio.
- Tried with 5 different nrf24 radios.
- Disconnected the 315mhz receiver and transmitter.
- Checked the serial group name of the serial device of the GPIO's.
- Searched through directories and files to see if I could find the file or directory and see if there was a slight name change causing it not to be found (Had this issue when setting up Open zwave).
- I probably tried a few more things I am not remembering now.
- Reached out to the MySensors Community via the forum!