@ghiglie Here's an add-on that uses a pi gpio pin. Maybe it will help.
https://github.com/pantomax/hassio-addons/tree/master/rpi-rf-receiver
It's discussed in this thread:
https://community.home-assistant.io/t/rpi-rf-receiver-addon/32947
@ghiglie Here's an add-on that uses a pi gpio pin. Maybe it will help.
https://github.com/pantomax/hassio-addons/tree/master/rpi-rf-receiver
It's discussed in this thread:
https://community.home-assistant.io/t/rpi-rf-receiver-addon/32947
@ghiglie said in Gateway Addon for Hass.io:
git-noob mistake! updated!
Haha! I forgot to tell you that I have no idea what I'm doing
The 'run chmod' command is still missing in the dockerfile.
@ghiglie It shows the last commit as 14 days ago...
@giorgio-gilestro said in gateway on hass.io - not getting the sensors:
Not sure how to intercept the serial log from the gateway, though. I've used socat for this purpose in the past but I doubt I can do from within a hassio instance.
I think you can see that if you SSH to the host.
Have a look at this thread. Maybe the latest release will show some logging for you?
https://community.home-assistant.io/t/mysensors-mqtt-gateway-integration/39743/3
@ghiglie hmm, not sure. Would you please update your repo with the latest and I'll try a reinstall and have a closer look?
Add...
"host_network": true,
and for port 5003, what about this?
"ports": {
"5003/tcp": 5003
},
Or put the port as an option so it could be configured by the user. I'm not sure what else would be needed for this to work.
"options": {
"port": 5003,
Try setting permissions on run.sh.
RUN chmod a+x /run.sh
CMD [ "/run.sh" ]
Is this the error you're taking about?
[services.d] starting services
[services.d] done.
ifelse: fatal: unable to exec /run.sh: Permission denied
[cmd] /run.sh exited 111
[cont-finish.d] executing container finish scripts...
[cont-finish.d] 99-message.sh: executing...
-----------------------------------------------------------
Oops! Something went wrong.
We are so sorry, but something went terribly wrong when
starting or running this add-on.
Be sure to check the log above, line by line, for hints.
-----------------------------------------------------------
[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
@ghiglie I presume you've seen this. Tried them all?
Privilege for access to hardware/system. Available access: NET_ADMIN, SYS_ADMIN, SYS_RAWIO, SYS_TIME, SYS_NICE
Yeah, I hear ya...
I'm thinking indoor use here and not using the solar panel or circuitry for anything--just use the plastic and lens and pack it with PIR and temp/humidity. Mounted up high on a wall, any holes could be drilled on the top as that side wouldn't be seen.
I'm going to try one out...
These chargers are looking really good... Great job on this!
Has anyone used these garden lights? They look like they'd be ready to go as a PIR/multi-sensor considering there's already a AA holder and plenty of room under the lens. Maybe they could be tucked up by the ceiling. It wouldn't quite be flush because of the sloping top, but it may not be bad.
Searching around I see at least two different variations--one has a smoother, cleaner look to the lens and the other looks more "knobby." Some come with a battery and some do not.
Ah yes... Thanks, folks!
I got my sketches mixed up and was using a 1.5 version.
I'm running the development branch and am getting the following when uploading a sketch:
Arduino: 1.6.4 (Mac OS X), Board: "Arduino Nano, ATmega328"
In file included from motion.ino:30:0:
/Users/..../Documents/Arduino3dev/libraries/MySensors/MySensor.h:285:4: error: #error No forward link or gateway feature activated. This means nowhere to send messages! Pretty pointless.
#error No forward link or gateway feature activated. This means nowhere to send messages! Pretty pointless.
^
motion:38: error: 'MySensor' does not name a type
motion.ino: In function 'void setup()':
motion:44: error: 'gw' was not declared in this scope
motion.ino: In function 'void loop()':
motion:61: error: 'gw' was not declared in this scope
'MySensor' does not name a type
Where can I find some documentation on configuring sensors running the v2 beta release?
Thanks
I was originally using a Vilros UNO and a "MEGA compatible" W5100 shield. I switched to a Vilros shield and got "avrdude: stk500_recv (): programmer is not responding" errors when trying to upload.
I then tried a Sunfounder UNO + "MEGA compatible" shield and bingo, problem solved!
DHCP is getting an address, but not the one I set in a static lease on my router, but that's okay. At least I can move forward!
In my troubleshooting I ran across this post that describes a fix on the HanRun boards that involves jumping two 100 ohm resistors between RJ45 pins 1-2 and 3-6. I didn't have any 100 ohm resistors on hand so I didn't try it...
https://forum.arduino.cc/index.php?topic=351477.msg2662072#msg2662072
I just tried the dev release to be able to use DHCP and define a static lease on my router, but that doesn't get me connected either.
With an IP defined in GatewayW5100.ino I get a response showing an IP of 0.0.0.0:
#define MY_IP_ADDRESS 10,10,10,231 // If this is disabled, DHCP is used to retrieve address
// Renewal period if using DHCP
//#define MY_IP_RENEWAL_INTERVAL 60000
// The port to keep open on node server mode / or port to contact in client mode
#define MY_PORT 5003
0;255;3;0;9;Starting gateway (RNNGA-, 2.0.0-beta)
0;255;3;0;9;Radio init successful.
IP: 0.0.0.0
0;255;3;0;9;Init complete, id=0, parent=0, distance=0
With the IP not defined, I get no IP info, similar to the results with the 1.5 release:
//#define MY_IP_ADDRESS 10,10,10,231 // If this is disabled, DHCP is used to retrieve address
// Renewal period if using DHCP
#define MY_IP_RENEWAL_INTERVAL 60000
// The port to keep open on node server mode / or port to contact in client mode
#define MY_PORT 5003
0;255;3;0;9;Starting gateway (RNNGA-, 2.0.0-beta)
0;255;3;0;9;Radio init successful.
I'd be happy with either option working. Any ideas on what to try next?
Thanks
Howdy,
I'm trying to set up a new ethernet gateway with the W5100 shield and cannot get on my network. The compile works and the serial monitor shows the following:
0;0;3;0;9;gateway started, id=0, parent=0, distance=0
Here's the setup function from EthernetGateway.ino. After perusing the forum and reading about various network-related issues, it looks like gw.begin is missing a key piece. No?
void setup()
{
Ethernet.begin(mac, myIp);
// give the Ethernet interface a second to initialize
delay(1000);
setupGateway(INCLUSION_MODE_PIN, INCLUSION_MODE_TIME, output);
// Add interrupt for inclusion button to pin
PCintPort::attachInterrupt(pinInclusion, startInclusionInterrupt, RISING);
// Initialize gateway at maximum PA level, channel 70 and callback for write operations
gw.begin(incomingMessage, 0, true, 0);
// start listening for clients
server.begin();
}
Thanks
I read through the site again starting with the "Tell me more!" button on the front page (I love this site!) and see a good number of misspellings and spots with missing words. Should I post corrections here, send them directly to someone, or keep them to myself?
@hek, thanks for the correction. I didn't try very hard, but here's 75 ready to ship.
@jerry said:
184 units are produced. ..for we can only find 184 Si7021-A20-GM1 all over the world.
Mouser has 3,091 in stock for immediate shipment, though probably not at a price you're interested in
Nice... I'm about to mod my motion sensor flood lights in a similar manner, but will reuse the lens and also have a relay for the lighting. Then any motion sensor could trigger any number of relay-enabled lights, like if motion is detected by any sensor on the back of the house all lights on the back could power on instead of just the one that detected motion..
Since this board can take both a NRF24l01+ module and ESP8266 ESP-01 it could be an ethernet gateway?
When you go to Setup > Devices and click All Devices does it show?