Ankündigung

Einklappen
Keine Ankündigung bisher.

Wlan openhab 4.3.5

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    Wlan openhab 4.3.5

    Hallo zusammen,

    ich habe mir eine frische SD Karte gekauft, mit der neuesten Stable OH versehehn und anschließend in meinen Raspberry 3 geschoben. Die Wlan Zugangsdaten habe ich von meinem OH 3 übernommen und in die conf Datei geschrieben, da wo es hingehört. WLan hat immer prima funktioniert in OH3. Nur jetzt nicht mehr Per Lan funktioniert alles bestens.

    Danke für Lösungsansätze
    VG

    #2
    Mutmaßlich hast Du vorher mit bullseye oder gar buster gearbeitet.
    Die aktuelle Version des openHABian Image nutzt bookworm (Nachfolger von bullseye), trixie ist das kommende Release (von debian, Raspberry Pi OS - und damit auch das openHABian Image - setzt auf debian auf).

    Der WLAN Stack hat sich in bookworm geändert.
    Wenn Du per LAN arbeiten kannst, bietet es sich an, den WLAN-Teil neu zu konfigurieren (also nicht einfach die entsprechenden Dateien zu übernehmen, sondern über die entsprechenden Tools SSID und und Passphrase neu einzutragen, dann sollte der WLAN-Teil auch wieder funktionieren. Wenn ich mich recht erinnere, sollte es in openhabian-config ein entsprechendes Menü geben.

    Es ist außerdem möglich, dass sich die WLAN MAC geändert hat und das Gerät deshalb eine andere IP zugewiesen bekommt.

    Für den Hinterkopf: openHAB5.0 (wird mutmaßlich Ende Juni stable) steht nur noch als reine 64-Bit-Version zur Verfügung, entsprechend müssen Betriebssystem und Java ebenfalls als 64-Bit-Version vorliegen. Der Raspberry Pi3 kann zwar auch mit 64 Bit OS laufen, aber der ohnehin dürftige Speicher wird damit noch knapper, Du solltest Dich also darauf vorbereiten, die Hardware zu erneuern - Pi4/5 mit 4 GByte RAM oder besser, alternativ ganz was anderes, aber auch mit mindestens 4 GByte RAM und 64-Bit-Architektur.

    Kommentar


      #3
      Vielen Dank.

      Also einfach die Zugangsdaten SSID und Passwort in die openhabian.conf Datei auf der SD-Karte eintragen? Das funktioniert nicht. Oder was meinst Du mit Tools?
      Was könnte ich noch tun, damit es klappt?

      So sah es in OH3 aus, wo es mit WLAN prima funktionierte:

      # Modify your openHABian settings
      # Handle with care, only touch if you need to!!

      hostname=openHABianPi
      username=openhabian
      userpw=openhabian

      # Language and time. Be sure to set these to valid values
      timeserver=0.pool.ntp.org
      locales="en_US.UTF-8 de_DE.UTF-8"
      system_default_locale="en_US.UTF-8"
      #timezone=Europe/Berlin

      # Wi-Fi settings. An ethernet connection is recommended
      # Requirement: RPi3, RPi0W, PineA64 or a supported external Wi-Fi dongle
      # Fill in your SSID and password below, leave empty to use ethernet
      wifi_ssid="FRITZ!Box 7590 FZ"
      wifi_psk="nichtfuerknxuserforum"

      # vim: filetype=sh

      Und so sieht es jetzt mit der 4.3.5 aus

      # Origin: openhabian.conf
      #
      # Modify your openHABian settings
      # Handle with care, only touch if you need to!
      # This file will only be used on unattended initial install.
      # If you want to change anything after unattended install completed, use menu in openhabian-config.

      # ATTENTION: to disable an option a line MUST be of the format '# option=value'
      # KEEP THE SPACE IT IS IMPORTANT !!

      # Hostname to set this one to
      hostname=openhabian
      # if it exists, the default user (with its working environment) will be renamed to this username given here ...
      username=openhabian
      # ... and given this password. The password will be removed from this file after completion for security reasons.
      userpw="openhabian"
      # set this to download a SSH key and authorize the owner to login as the admin user
      adminkeyurl=""

      # Language and timezone. See Debian documentation for valid values.
      timezone=Europe/Berlin
      locales="en_US.UTF-8 de_DE.UTF-8"
      system_default_locale="en_US.UTF-8"

      # Eventually disable all IPv6 e.g. on installation problems
      # values: "enable", "disable"
      ipv6=enable

      # the framebuffer on RPi is enabled by default
      framebuffer=enable

      # WiFi settings. An ethernet connection is recommended.
      # If you have a RPi3 or higher, RPi0W or a supported external WiFi dongle, the WiFi
      # interface can be setup and used for the initial installation.
      # Fill in your SSID and password below, leave empty or put comment in front to
      # have your WiFi remain unchanged/uninitialized. Make sure your Ethernet works.
      # ATTENTION: you need to escape these special characters: $, `, ", \, (newline)
      # 'Escaping' means to put an additional \ in front of that character
      wifi_ssid="FRITZ!Box 7590 FZ"
      wifi_psk="nichtfuerknxuserforum"

      # Wi-Fi setting. Select a two-letter country code suitable for your location
      # E.g. US (default), DE, AU, NZ...
      # You may infringe on local legislature otherwise
      # See https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 or /usr/share/zoneinfo/zone.tab
      wifi_country="DE"

      # repo and branch to clone from
      repositoryurl=https://github.com/openhab/openhabian
      clonebranch=openHAB

      # initial openHAB configuration to import (URL or filename)
      # the file needs to be a zip archive created from openhab-cli backup and placed
      # in the directory of the first SD partition
      # ATTENTION: keep /boot/firmware as the directory if you provide an absolute path
      # initialconfig=/boot/firmware/initial.zip

      # debug verbosity mode
      # off, on (verbose output in log) or maximum (show every command)
      debugmode=off

      # apt timeout to wait for lock with multiple install actions going on
      apttimeout=60

      # Java version to install
      # Valid arguments: 17, 21, Temurin17, Temurin21, 11 (legacy)
      java_opt=17

      # fake hardware
      # force treating your box as if it was a ...
      # pi5, pi4, pi4_8gb, cm4, pi400, pi3, cm3, pi3+, cm3+, pi2, pi1, cm1, pi0, pi0w, pi0w2, x86
      # hw=

      # Hardware architecture
      # x86_64, amd64, armv6l, armv7l, aarch64, arm64
      # hwarch=

      # OS distribution/release
      # Valid arguments: raspios, raspbian, debian, ubuntu, stretch, buster, bullseye, bookworm, bionic, focal
      # osrelease=

      # Remember user frontail choice
      # frontail_remove=true

      # install zram per default, set to "disable" to skip installation
      zraminstall=enable
      zram_reset=done # remove when zram is no longer needed to auto update

      # start comitup hotspot if internet is not reachable
      hotspot=enable
      hotspotpw=openhabian

      # external SD card device to backup and mirror the internal SD card to
      # backupdrive=/dev/sda
      storageconfig=openhab-dir
      storagedir=/storage
      storagetapes=15
      storagecapacity=1024

      # mail relay settings
      # adminmail=john.doe@foo.bar
      # relayuser=john.doe@foo.bar
      # relaypass=secret
      # smarthost=smtp.gmail.com
      # smartport=587

      # Network UPS Tools
      # nutmode=netserver
      # Settings for netserver:
      # nutupsdriver=usbhid-ups
      # nutupsdescr=""
      # Settings for netclient:
      # nutupsname=ups
      # nutupshost=xxx.xxx.xxx.xx
      # nutupsuser=monuser
      # nutupspw=secret

      # Tailscale VPN
      # preauthkey=tskey-xxxxxxxxxxxxxxxxx
      # tstags=tag:client

      # vim: filetype=sh

      Kommentar


        #4
        Nein, diese Einstellung wird meines Wissens nur bei der Installation ausgewertet.

        Ich habe gerade nachgeschaut. Ich habe keinen Pi mit WLAN und openHABian im Einsatz, kann also sein, dass das Menü bei Dir anders aussieht (ich gehe jetzt erst mal nicht davon aus...), aber openhabian-config bietet offensichtlich gar keine Option, das WLAN zu konfigurieren.

        Ich hatte das anders in Erinnerung, aber sei's drum, es gibt verschiedene Optionen, das WLAN zu konfigurieren.
        Der Einfachheit halber möchte ich auf die Seite https://www.elektronik-kompendium.de...pi/1912221.htm verweisen, da sind die Optionen meiner Meinung recht gut dargestellt.
        Wichtig wäre an dieser Stelle aber, zunächst die alte Konfiguration zu entfernen (mutmaßlich in /etc/network/interfaces). Anschließend kannst Du die Daten über wpa_supplicant konfigurieren.

        Da Deine SSID ein Sonderzeichen enthält: Es kann auch sein, dass die Daten lediglich falsch in die wpa_supplicant.conf eingetragen wurden, im deutschen Howto im Debianforum wird das explizit erwähnt (unter Manuelles Aufbauen einer WPA verschlüsselten Verbindung​): https://wiki.debianforum.de/WLAN_Einrichten

        Kommentar

        Lädt...
        X