Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Alias best practices - Wie kann man es besser machen?

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Alias best practices - Wie kann man es besser machen?

    This topic has been deleted. Only users with topic management privileges can see it.
    • liv-in-sky
      liv-in-sky @bahnuhr last edited by

      @bahnuhr

      Image 15.png

      1 Reply Last reply Reply Quote 0
      • bahnuhr
        bahnuhr Forum Testing Most Active @liv-in-sky last edited by

        @liv-in-sky sagte in Alias best practices - Wie kann man es besser machen?:

        @bahnuhr hast du den device adapter installiert ?

        Hatte ich Mal. Brauch ich aber eigentlich nicht.
        Aktuell hab ich diesen gelöscht.
        Ist dieser Voraussetzung?

        liv-in-sky paul53 2 Replies Last reply Reply Quote 0
        • liv-in-sky
          liv-in-sky @bahnuhr last edited by

          @bahnuhr

          ja

          1 Reply Last reply Reply Quote 0
          • paul53
            paul53 @bahnuhr last edited by

            @bahnuhr sagte:

            Ist dieser Voraussetzung?

            Nein. Wenn noch kein Datenpunkt unter alias.0 existiert, wird alias.0 nicht als Ordner dargestellt und befindet sich im Objektbaum weiter unten.

            bahnuhr liv-in-sky 2 Replies Last reply Reply Quote 0
            • bahnuhr
              bahnuhr Forum Testing Most Active @paul53 last edited by

              @paul53

              War nur?
              Mir fehlt alias.0
              Und auch Geräte im baum links.

              paul53 liv-in-sky 2 Replies Last reply Reply Quote 0
              • paul53
                paul53 @bahnuhr last edited by

                @bahnuhr sagte:

                Mir fehlt alias.0

                Welche Version des js-controllers (Host) ?

                bahnuhr 1 Reply Last reply Reply Quote 0
                • liv-in-sky
                  liv-in-sky @paul53 last edited by

                  @paul53 ich meinte es ist voraussetzung um "geräte" tab anzuzeigen !

                  paul53 1 Reply Last reply Reply Quote 0
                  • paul53
                    paul53 @liv-in-sky last edited by

                    @liv-in-sky sagte:

                    es ist voraussetzung um "geräte" tab anzuzeigen !

                    Ja, das ist richtig. Der Tab "Geräte" ist aber für die Darstellung und Bearbeitung von alias.0 nicht erforderlich.

                    1 Reply Last reply Reply Quote 0
                    • bahnuhr
                      bahnuhr Forum Testing Most Active @paul53 last edited by

                      @paul53 sagte in Alias best practices - Wie kann man es besser machen?:

                      @bahnuhr sagte:

                      Mir fehlt alias.0

                      Welche Version des js-controllers (Host) ?

                      a9e0facd-afb2-47ec-aa06-7c5735072401-image.png

                      NUC ist der Master

                      paul53 1 Reply Last reply Reply Quote 0
                      • paul53
                        paul53 @bahnuhr last edited by paul53

                        @bahnuhr
                        In Version 3.1.4 muss es ein Objekt alias.0 geben.

                        1 Reply Last reply Reply Quote 0
                        • liv-in-sky
                          liv-in-sky @bahnuhr last edited by liv-in-sky

                          @bahnuhr

                          bei meiner windows testmaschine schaut es so aus:

                          Image 17.png

                          ist ziemlich weit unten, wenn du viele ordner hast

                          bahnuhr 1 Reply Last reply Reply Quote 0
                          • bahnuhr
                            bahnuhr Forum Testing Most Active @liv-in-sky last edited by

                            @liv-in-sky sagte in Alias best practices - Wie kann man es besser machen?:

                            ist ziemlich weit unten, wenn du viele ordner hast

                            Ja, den hab ich.
                            Aber das ist doch kein Ordner?
                            Sieht zumindest anders aus.

                            liv-in-sky paul53 2 Replies Last reply Reply Quote 0
                            • liv-in-sky
                              liv-in-sky @bahnuhr last edited by

                              @bahnuhr wenn du darunter ein alias erzeugst wird das zum ordner

                              1 Reply Last reply Reply Quote 1
                              • paul53
                                paul53 @bahnuhr last edited by paul53

                                @bahnuhr sagte:

                                Aber das ist doch kein Ordner?
                                Sieht zumindest anders aus.

                                Es wird erst zum Ordner-Symbol, wenn mind. ein Objekt darunter existiert. Dann rutscht er auch im Baum nach oben.

                                1 Reply Last reply Reply Quote 1
                                • bahnuhr
                                  bahnuhr Forum Testing Most Active last edited by

                                  @liv-in-sky
                                  @paul53

                                  Danke euch beiden für den Input.

                                  K 1 Reply Last reply Reply Quote 0
                                  • K
                                    Kueppert @bahnuhr last edited by

                                    Hallo zusammen,
                                    ich klinke mich mal mit ein. Habe auch so ziemlich alles auf alias umgestellt (Tür-/Fenstersensoren, Licht, Steckdosen). Jetzt möchte ich gern anfangen, Werte im Alias-DP umzurechnen.
                                    Beispiel: Zigbee-Geräte
                                    Hier erfolgt die Ausgabe des Batterie-Zustandes in % (0-100 %). Das würde ich im ALias gern auf "VOLL" oder "LEER" switchen. Ein RAW-Datenpunkt sieht zB wie folgt aus:

                                    {
                                      "from": "system.adapter.zigbee.0",
                                      "user": "system.user.admin",
                                      "ts": 1588595645515,
                                      "common": {
                                        "name": "EG Kueche Wand Fernbedienung Battery percent",
                                        "type": "number",
                                        "unit": "%",
                                        "role": "battery.percent",
                                        "min": 0,
                                        "max": 100,
                                        "read": true,
                                        "write": false,
                                        "icon": "img/battery_p.png"
                                      },
                                      "native": {},
                                      "acl": {
                                        "object": 1636,
                                        "owner": "system.user.admin",
                                        "ownerGroup": "system.group.administrator",
                                        "state": 1636
                                      },
                                      "_id": "zigbee.0.000d6f000edc34f1.battery",
                                      "type": "state"
                                    }
                                    

                                    Für die Erzeugung hab ich das Skript von paul53 benutzt: Link

                                    Was müsste ich für eine "Übersetzung" unter states = {true: 'geöffnet', false: 'geschlossen'} erfassen, wenn ich zB bis 26% = VOLL und ab 25% = LEER haben möchte? Aus der readme bzgl. Alias bin ich absolut nicht schlau geworden...
                                    Danke euch und vG, Thorsten

                                    paul53 W 2 Replies Last reply Reply Quote 0
                                    • paul53
                                      paul53 @Kueppert last edited by paul53

                                      @Kueppert sagte:

                                      ab 25% = LEER haben möchte?

                                      typeAlias = 'boolean'; // oder 'number'
                                      read = "val < 26"; // Erkennung "Aus" --> false erfolgt automatisch  
                                      // write = "val ? 'Ein' : 'Aus'";
                                      role = 'indicator.lowbat';
                                      // min = 0; // nur Zahlen
                                      // max = 100; // nur Zahlen
                                      // unit = '%'; // nur für Zahlen
                                      states = {false: 'VOLL', true: 'LEER'}; // Zahlen (Multistate) oder Logikwert (z.B. Aus/Ein)
                                      
                                      1 Reply Last reply Reply Quote 1
                                      • W
                                        WarHammer @Kueppert last edited by

                                        @Kueppert

                                        kannst du mal den fertigen Datenpunkt posten für die Zigbee Geräte ich komme auf keinen Nenner. Hab gesehen du verwendest auch das Script von DLSRacer hast du nachdem die Dp da waren einfach die RAW geändert oder hast du es im Script selber geändert?

                                        K 1 Reply Last reply Reply Quote 0
                                        • K
                                          Kueppert @WarHammer last edited by

                                          @WarHammer möchtest du gern das Skript für bestimmte DPs? Oder das RAW von einem Zigbee-Device sehen?
                                          Ich erstelle jeden Alias-DP mit einem Skript. Hab mir je "Art" eines zurecht gelegt, zB AN/AUS, Helligkeit etc

                                          W 1 Reply Last reply Reply Quote 0
                                          • W
                                            WarHammer @Kueppert last edited by

                                            @Kueppert

                                            kannst ja mal das script posten wenns nicht zuviel Aufwand ist. Möchte auch meine ganzen Zigbee Geräte mit in die LowbatListe aufnehmen.

                                            K 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            639
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            alias best practices
                                            12
                                            67
                                            9501
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo