Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Entwicklung
    4. States im Adapter richtig für Cloud Adapter erstellen

    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

    States im Adapter richtig für Cloud Adapter erstellen

    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      JoJ123 last edited by

      Ich entwickle gerade einen neuen Adapter.

      Bisher erzeuge ich meine States immer mit folgendem Code:

      adapter.setObjectNotExists('test1', {
          type: 'state',
          common: {
            name: 'test1,
            type: 'boolean',
            role: 'state',
            read: true,
            write: true
          }
        });
      

      Diesen State kann ich aber nicht ohne weiteres in den Cloud Adapter einbinden.

      Was muss ich alles in das common Objekt reinschreiben, um direkt states erstellen zu können, die vom Cloud Adapter verwendet werden können?

      Kann ich auf direkt aus meinem Adapter ein Smart Home Gerät im Cloud Adapter erstellen? Das würde das ganze natürlich noch besser machen.

      1 Reply Last reply Reply Quote 0
      • carsten04
        carsten04 Developer last edited by

        Schau mal unter folgendem Link nach, da ist eigentlich alles sehr gut beschrieben.

        <url url="https://github.com/ioBroker/ioBroker.cloud">[](</s><br/>
        https://github.com/ioBroker/ioBroker.cloud<br/>
        )
        [https://github.com/ioBroker/ioBroker.cloud](</s><br/>
        https://github.com/ioBroker/ioBroker.cloud<br/>
        )</url>

        1 Reply Last reply Reply Quote 0
        • apollon77
          apollon77 last edited by

          Sehr wichtig (neben cloud auch für material als Beispiel) ist die role!!

          https://github.com/ioBroker/ioBroker/bl … E_ROLES.md

          1 Reply Last reply Reply Quote 0
          • J
            JoJ123 last edited by

            Danke für die Links.

            Ich habe es damit "versucht", komme jedoch zu keinem wirklichen Ergebnis.

            In keinem Fall konnte ich die Smart Geräte "im Cloud Adapter" hinzufügen.

            Nachdem auswählen ist weiter nichts passiert.

            Daraufhin habe ich dann den State bearbeitet und unter "common" folgendes hinzugefügt:

                "smartName": {
                  "de": "Schlafzimmer Luftfilter Favorit"
                }
            
            

            Daraufhin hatte ich das Gerät auch im Cloud Adapter und anschließend in Alexa.

            Warum erkennt er den State nicht über den Cloud Adapter? 😞

            1 Reply Last reply Reply Quote 0
            • apollon77
              apollon77 last edited by

              Da gibt es wohl gerade nen bug. Auf plus klicken. Auswählenndann in Admin konfig den tab wechseln und zurück. Dann kommt der zweite Dialog.

              Oder was genauestens denn überhaupt dein Problem?

              Gesendet vom Handy …

              1 Reply Last reply Reply Quote 0
              • J
                JoJ123 last edited by

                Ich konnte den Bug damit nicht umgehen, aber es klappt ja, wenn ich den Smart Namen selber hinzufüge zum Datenpunkt.

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

                Support us

                ioBroker
                Community Adapters
                Donate

                493
                Online

                31.9k
                Users

                80.2k
                Topics

                1.3m
                Posts

                3
                6
                498
                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