Hello,
I’m new to Openhab and Linux/Raspi and just tried the “hassle free installation” on a Raspi without success.
Here’s the short version:
It took a while to get things started (probably a defect Raspi) and now it seems to be set up (more or less), but:
- I can’t add addons/bindings
- I can’t connect via wifi (don’t know how)
I’d be grateful for help.
Here some info on my efforts concerning wifi:
openhabian@openhabian:~ $ sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
openhabian@openhabian:~ $ sudo iwlist wlan0 scan
wlan0 Interface doesn’t support scanning : Network is down
openhabian@openhabian:~ $ rfkill list
0: phy0: Wireless LAN
Soft blocked: yes
Hard blocked: no
1: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
openhabian@openhabian:~ $ rfkill unblock 0
openhabian@openhabian:~ $ rfkill list
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
1: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
openhabian@openhabian:~ $ sudo iwlist wlan0 scan
wlan0 Scan completed :
…
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
openhabian@openhabian:~ $ sudo service networking restart
openhabian@openhabian:~ $ iwconfig
wlan0 IEEE 802.11 ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=31 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
eth0 no wireless extensions.
lo no wireless extensions.
openhabian@openhabian:~ $ openhabian.config
-bash: openhabian.config: command not found
← then tried to open openhabian.config and enter NetworkID/Password there, but don’t know which command to use
Now the longer version (mostly for my own documentation, probably not relevant to the problem, so you can ignore it, I think:
for some reason, Beginners can’t use hyperlinks in this forum , so I changed/deleted them;
- My Problem: Can’t install openhab on Raspi
- My system: Raspberry Pi 4 Modell B; 4 GB - 32GB SD-Card – Router: Fritzbox 7490
What I’ve done (so far)
I) Tried to install the hassle free setup
- Downloaded the latest “openHABian” SD card image file (this one: openhabian-pi-raspios32-v1.6.3.img.xz)
- Wrote an image to SD-card using etcher
- Plugged SD-card into Raspi, connected to Router via LAN (LAN 2) and switched it on.
RESULTS
- only red LED
- Doesn’t show in router software. Under LAN 2 I expected something like “raspi”, “openhab” or “openhabiandevice”; but there still is the old “Phillips hue”, even after refresh of router-site
- No surprise: openhabiandevice/ shows “website not available”
II) Looks like the router doesn’t notice the Raspi. Possible reasons I can think of: Raspi, SD-Card, LAN-cable or router is defect. So here are my next steps:
- Switched the new Raspi 4 with an old Raspi3 (which I use to run a wallbox-software ‘openwb’): Same cable, same port, different raspi, different sd-card Results: Raspi 3 appears as ‘raspberrypi’on LAN 2 and gets an ip-adress (192.168.178.23) via which I can address it using Putty. (and also via WLAN via 192.168.178.25). so router and LAN-cable can’t be defect.
(side note: could only see red led, opened casing and destroyed SD card, well done …; created another SD card with openhab as above (4GB this time)) - Put old sd card (openWB) in new Raspi 4 doesn’t show in router so Raspi4 is defect??
Raspi LED is red
III) Put openhab SD card (4GB now) in Raspi 3
- showing in router (LAN 2) as ‘openhabian’ (IP 192.168.178.23);
- waited for 1 hour (green led still occasionally blinking, not much internet traffic) – here’s what I get
- (still) can’t access via ip (192.168.178.23) or “openhabiandevice” in browser (neither Chrome nor Firefox)
- openhabian:8080 works entered new admin, password, language etc; couldn’t choose addons (e.g. mqtt nothing found; kodi nothing found) so I skipped it for now;
IV)
login as: openhabian
openhabian@192.168.178.23’s password:
Linux openhabian 5.4.83-v7+ #1379 SMP Mon Dec 14 13:08:57 GMT 2020 armv7l
…
Last login: Sun Jan 31 08:41:06 2021 from 192.168.178.128
Wi-Fi is currently blocked by rfkill.
Use raspi-config to set the country before use.
###############################################################################
############### openhabian ##################################################
###############################################################################
Ip = 192.168.178.23
Release = Raspbian GNU/Linux 10 (buster)
Kernel = Linux 5.4.83-v7+
Platform = Raspberry Pi 3 Model B Rev 1.2
Uptime = 0 day(s). 0:37:52
CPU Usage = 0% avg over 4 cpu(s) (4 core(s) x 1 socket(s))
CPU Load = 1m: 0.00, 5m: 0.01, 15m: 0.00
Memory = Free: 0.47GB (50%), Used: 0.47GB (50%), Total: 0.95GB
Swap = Free: 0.29GB (100%), Used: 0.00GB (0%), Total: 0.29GB
Root = Free: 0.63GB (19%), Used: 2.59GB (81%), Total: 3.41GB
Updates = 10 apt updates available.
Sessions = 1 session(s)
Processes = 108 running processes of 32768 maximum processes
###############################################################################
…
|_| 3.0.1 - Release Build
Looking for a place to get started? Check out ‘sudo openhabian-config’ and the
documentation at …
The openHAB dashboard can be reached at …
To interact with openHAB on the command line, execute: ‘openhab-cli --help’