Home Assistent - Loxone Daten auslesen

Einklappen
X
 
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge
  • Wzvnn
    Smart Home'r
    • 03.01.2024
    • 85

    #1

    Home Assistent - Loxone Daten auslesen

    Hallo zusammen,

    ich hoffe, ihr könnt mir etwas auf die Sprünge helfen. 😊

    Ich bin gerade dabei, Home Assistant mit Loxone zu verbinden. Die Kommunikation funktioniert grundsätzlich schon ganz gut. Ich kann meinen Roborock aus Loxone heraus starten und Befehle an Home Assistant senden.

    Was ich allerdings nicht hinbekomme, ist der umgekehrte Weg: Sensorwerte von Home Assistant in Loxone anzeigen.

    Als Beispiel würde ich gerne den Akkustand meines Roborock S8 in Loxone darstellen. Der Sensor existiert in Home Assistant ganz normal:


    sensor.roborock_a51_0f05_battery_level

    Ich nutze das Blueprint gigatexel/loxone_inputs.yaml und der Sensor ist dort bereits eingetragen. Trotzdem bekomme ich beim Zugriff über /dev/sps/io/... nur einen 404-Fehler und in Loxone kommt kein Wert an.

    Da ich kein Programmierer bin, wären praktische Beispiele für mich Gold wert. Quelltexte kopieren und einfügen, mehr geht leider nicht 😊 Am besten wirklich Schritt für Schritt und mit Screenshots.

    Besonders interessieren würde mich, wie euer virtueller Eingang in Loxone aussieht. Also ein Screenshot oder Beispiel vom virtuellen Eingang inklusive Befehl (z. B. wie der Befehl aufgebaut ist und wie ihr ihn konfiguriert habt). Ich vermute, dass mein Fehler genau an dieser Stelle liegt.

    Falls jemand sogar einen Roborock oder ein ähnliches Gerät eingebunden hat und Akku-, Wasserstand oder andere Sensoren nach Loxone überträgt, würde ich mich sehr über ein konkretes Beispiel freuen.

    Vielen Dank schon mal für eure Hilfe! 😊
  • duncan
    LoxBus Spammer
    • 28.08.2015
    • 364

    #2
    i use mqtt statestream in home assistant to send some data to a loxberry mqtt server, then use the loxberry gateway to send the mqtt data to virtual inputs in loxone - i was already using a loxberry so this was a simple step for me to use it to send HA data as well

    you have to:
    -configure statestream in the homeassistant configuration.yaml to tell is what to send out via mqtt
    -add the loxberry/mqtt server settings in the homeassistant mqtt
    -create virtual inputs in loxone to match the loxberry gateway name of the data you want to sent to loxone
    -in the case of loxberry4 / gateway 2, choose which fields in the gatway you wish to send to loxone, in loxberry gateway v1 all fields are sent whether there is a matching virtual input in loxone or not

    it seems complicated but once set up its really easy to add other data fields
    the loxberry can filter and separate out data so command recognition isnt required in loxone


    if you are interested in using this method i can post step by step examples
    Zuletzt geändert von duncan; vor 2 Tagen.

    Kommentar

    • Meista
      LoxBus Spammer
      • 20.10.2015
      • 289

      #3
      Da hänge ich mich mal dran, ich hab bisher weder die eine, noch die andere Richtung hinbekommen.
      Habe auch schon div. Bluprints, oder pyloxone versucht. Letzter legt in HA einfach 1000 neue Entitäten an, nutzt mir aber leider nix :-)
      Mir geht es ähnlich, ich finde auch keine echten beispiele, die ich erstmal nachbauen kann.
      Wenn da "Sensor" steht, ich aber einen komplexeren Thermostat habe, der nicht nur Anzeige sondern auch Bedienung ist, komme ich nicht weiter.

      Bin gespannt, Oliver
      Gruß, Oliver

      Loxone seit 2012, 4x Miniserver (Gateway-Client), 7x Extension, 1x Relay, 3x Muti Extension Air, 3x Dimmer Ext., 2x Air Base, 2x 1-Wire/NFC, Tree mit 3x Code-Touch V2, DMX, KNX Wetterstation und div. KNX (heizungs)-Aktoren, Anbindung Denon HEOS, Mitsubishi Multisplit Klimaanlage, Daikin Klimaanlage, Dimplex WP, Zehnder Lüftung, div. Kostal PV Wechselrichter + BYD HV und HVM Batterie, Fritzbox, Loxberry, Bayrol Poolsteuerung, Tuya Anbindung

      Kommentar

      • duncan
        LoxBus Spammer
        • 28.08.2015
        • 364

        #4
        ok to connect HA to loxone via a loxberry / mqtt, in this example i have used loxberry4 and the gateway v2 and the loxberry has the address 192.168.2.201

        1) configure loxberry to connect to your miniserver using an admin account or account with permissions to adjust the virtual inputs you want to update
        Klicke auf die Grafik für eine vergrößerte Ansicht

Name: image.png
Ansichten: 66
Größe: 138,8 KB
ID: 4880202) configure the loxberry mqtt server with a username and password that HA can use to upload to the mqtt server
        Klicke auf die Grafik für eine vergrößerte Ansicht

Name: image.png
Ansichten: 61
Größe: 139,1 KB
ID: 4880223) configure HA mqtt to point to the loxberry mqtt server:
        settings / devices and services / mqtt - use the ip address and user/password of the loxberry mqtt server
        Klicke auf die Grafik für eine vergrößerte Ansicht

Name: image.png
Ansichten: 64
Größe: 95,9 KB
ID: 488023
        4) configure the HA configuration.yaml to tell it what items to send using mqtt statestream - its added automatically once you save the configuration.yaml and restart
        file editor / configuration.yaml:
        entities are individual values, entity_globs are more of a wild card
        Klicke auf die Grafik für eine vergrößerte Ansicht

Name: image.png
Ansichten: 60
Größe: 84,8 KB
ID: 488024
        in this example im sending all the autodoor and cover elements​ and by example a few specific entities
        when these values get updated in HA they should get posted to the mqtt server on the loxberry

        5) configure the loxbery mqtt gateway, im using http inputs so any chosen values need matching virtual inputs in your loxone config


        Angehängte Dateien

        Kommentar

        • duncan
          LoxBus Spammer
          • 28.08.2015
          • 364

          #5
          5) configure the loxbery mqtt gateway, im using http inputs so any chosen values need matching virtual inputs in your loxone config

          Klicke auf die Grafik für eine vergrößerte Ansicht

Name: image.png
Ansichten: 90
Größe: 149,7 KB
ID: 488026


          6) use the gateway subscriptions tab to expand and choose which elements to send to loxone

          7) in the loxberry gateway traffic tab you can see the names of the virtual inputs you need to create in your loxone config - you can copy from here and paste in the name of a new virtual input in loxone - green shows that the data has been updated in loxone, ,red shows there is no matching virtual input in loxone (or there may be permission errors)

          ​​

          Kommentar


          • Meista
            Meista kommentierte
            Kommentar bearbeiten
            Thank you so much, i will try all of this.
        • Wzvnn
          Smart Home'r
          • 03.01.2024
          • 85

          #6
          Thanks for taking the time to explain this and for the detailed screenshots.

          From what I understand, your solution uses LoxBerry as an MQTT bridge between Home Assistant and Loxone. However, for my use case, this seems like a lot of additional complexity, especially since I only want to transfer a few values from Home Assistant (e.g. my Roborock status, battery level, water tank level, etc.) to Loxone.

          Is there a way to achieve this without using LoxBerry? I was hoping there might be a more direct solution between Home Assistant and Loxone.

          I'd really appreciate any advice. Thanks!

          Kommentar

          • duncan
            LoxBus Spammer
            • 28.08.2015
            • 364

            #7
            there probably is but unfortunately i cant help with that - i was running a loxberry anyway so it was an easy choice

            maybe try this? https://community.home-assistant.io/...-loxone/625396

            Kommentar

            • gerhardwallnoefer
              Azubi
              • 20.03.2026
              • 6

              #8
              Hallo zusammen, habe folgende Anleitung befolgt und habe damit meinen Roborock Status (aktuelle Raum, Batterie, aktueller Modus, restliche Reinigungszeit, etc.) in Loxone eingebunden.

              Bei Fragen gerne schreiben.



              Kommentar

              • Wzvnn
                Smart Home'r
                • 03.01.2024
                • 85

                #9


                Hallo,

                vielen Dank für deinen Beitrag. Genau das versuche ich aktuell auch umzusetzen.

                Ich habe die Anleitung aus dem LoxWiki schon Schritt für Schritt ausprobiert, aber leider bekomme ich die Werte trotzdem nicht richtig in Loxone. Irgendwo habe ich wohl noch einen Denkfehler.

                Hättest du vielleicht die Möglichkeit, ein paar Screenshots von deiner Konfiguration zu machen?

                Mich würden vor allem die virtuellen Eingänge in Loxone interessieren – besonders die Befehlserkennung bzw. der Befehl. Falls es möglich ist, wären auch ein oder zwei Screenshots aus Home Assistant super, damit ich die Konfiguration einmal vergleichen kann.

                Das würde mir bestimmt weiterhelfen. Vielen Dank schon mal! 😊

                Kommentar

                • gerhardwallnoefer
                  Azubi
                  • 20.03.2026
                  • 6

                  #10
                  Anbei 1 Screenshot vom virtuellen Eingang (in dem Fall ein Texteingang). da ist wichtig dass der genau gleich heißt wie im Homeassistant der rest_command. Hab dir auch einen Screenshot vom Restcommand und von der Automation (die ist wichtig, weil die die Daten dann wirklich schreibt) beigefügt. Bei der Aktion in der Automation ist es wichtig auf "in YAML bearbeiten" zu klicken.
                  Zuletzt geändert von gerhardwallnoefer; vor 3 Stunden.

                  Kommentar

                  Lädt...