Raspberry Pi3 WiFi setup

Edit /etc/network/interfaces

sudo nano /etc/network/interfaces

Add the following

auto lo
iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
wpa-ssid "ssid"
wpa-psk "password"

I was finding that my Pi was seemingly going to “sleep” and would stop responding

Although the Pi itself doesn’t have a sleep mode, individual devices in Linux (including the network adapters) can

I ran the following to check the WiFI power save mode:

iw wlan0 get power_save

That confirmed power_save mode was indeed turned on for my WiFi so I did the following:

Edited /etc/network/interfaces

sudo nano /etc/network/interfaces

Added wireless-power off after iface wlan0 inet dhcp

Saved, exited and issued the following command

sudo ifdown wlan0 && sudo ifup wlan0

Since then, everything is fine and the network connection stays active, and I’m able to ssh into my Pi after it’s been idle for a while


RaZberry2 Setup, Tips, Hints and Tweaks

Follow the setup here to ensure your Raspberry Pi is setup correctly to integrate with Domoticz

Step 1: Raspberry Pi Prep

  • sudo nano /boot/config.txt
    • add to end of the file: dtoverlay=pi3-disable-bt
    • removing: ‘console=serial0,115200’ from cmdline.txt
  • sudo nano /boot/cmdline.txt
  • sudo systemctl disable hciuart
  • sudo stty -F /dev/ttyAMA0 9600
  • sudo reboot

Domoticz integration

The RaZberry is connected to the GPIO pins on the Raspberry Pi and installs as a device on the “ttyAMA0” port. Domoticz can only access “ttyUSBX” ports so we’ll be adding a rule that creates a link on boot to a port that Domoticz can use

  • sudo nano -w /etc/udev/rules.d/09-tty.rules
  • KERNEL==”ttyAMA0″, SYSLINK+=”ttyUSB20″
  • sudo reboot

Open http://IP:8080

  • Click “Setup” on the Domoticz menu, followed by “Hardware
  • Click “Enabled” is ticked, then type a descriptive name in the “Name” field
  • From the dropdown “Type” list, select “OpenZWave USB
  • From the dropdown “Serial Port” list, select “/dev/ttyUSB20
  • Click the “Add” button

Your RaZberry device should now be shown in the list – click on the “Setup” button next to it

Issue 1:

An error can occur during the firmware/software upgrade installation producing the following message when connecting to Razberry to http://IP:8084

“Webif is switched off. You can switch it on from Z-Way UI or box shell” is displayed

Enter the following at the CLI and try again:

  • sudo echo 900 > /opt/z-way-server/automation/storage/8084AccessTimeout-6b497208061ec7faae003cdd7f9a035e.json