Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Cloud Dienste
    4. Abgleich Alexa Shopping Liste mit Lovelace

    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

    Abgleich Alexa Shopping Liste mit Lovelace

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

      Hallo zusammen,

      ich bin erst seit 2 Wochen bei iobroker / lovelace angekommen. Ich habe seit Jahren im Backend FHEM laufen und nutze Homekit als Frontend. Jedoch bin ich von Lovelace sehr angetan und bin mittlerweile komplett auf iobroker/lovelace fürs frontend umgestiegen.

      Ich nutze die Shopping List von Alexa (habe auch den Alexa2 Adapter aktiviert). jetzt würde ich gerne die Shopping List auch mit Lovelace darstellen. Ich habe gesehen, dass lovelace den Datenpunkt lovelace.0.control.shopping_list im JSON format nutzt. Gibt es ein script/andere Möglichkeit, dass ein Abgleich zwischen diesen beiden Datenpunkten stattfindet?

      Danke und Gruss
      danihell

      Garfonso 1 Reply Last reply Reply Quote 0
      • Garfonso
        Garfonso Developer @danihell last edited by

        @danihell
        Ja, geht, mit diesem Skript:
        https://gist.github.com/Garfonso/16a7978e50b5d18b98bf408c2ff82060
        (Auch den Kommentar beachten)

        D 1 Reply Last reply Reply Quote 0
        • D
          danihell last edited by

          Boah, super! Vielen, vielen Dank!

          1 Reply Last reply Reply Quote 0
          • D
            danihell @Garfonso last edited by danihell

            @garfonso
            Bis vor kurzem lief dein js code einwandfrei. Neuerdings bekomme ich folgenden Fehler:

            javascript.0
            2021-08-23 10:48:22.238 warn at script.js.syncShoppingLists:137:3
            javascript.0
            2021-08-23 10:48:22.238 warn at script.js.syncShoppingLists:134:1
            javascript.0
            2021-08-23 10:48:22.238 warn at doSync (script.js.syncShoppingLists:119:21)
            javascript.0
            2021-08-23 10:48:22.238 warn at syncLists (script.js.syncShoppingLists:86:17)
            javascript.0
            2021-08-23 10:48:22.237 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1439:20)
            javascript.0
            2021-08-23 10:48:22.236 warn State "alexa2.0.Lists.SHOPPING_LIST.items.0d417d86-51d6-4226-8803-71a0b5ba013e.#delete" not found
            javascript.0
            2021-08-23 10:48:22.235 warn at script.js.syncShoppingLists:137:3
            javascript.0
            2021-08-23 10:48:22.235 warn at script.js.syncShoppingLists:134:1
            javascript.0
            2021-08-23 10:48:22.234 warn at doSync (script.js.syncShoppingLists:119:21)
            javascript.0
            2021-08-23 10:48:22.234 warn at syncLists (script.js.syncShoppingLists:86:17)
            javascript.0
            2021-08-23 10:48:22.233 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1439:20)
            javascript.0
            2021-08-23 10:48:22.229 warn State "alexa2.0.Lists.SHOPPING_LIST.items.a8530a22-a339-46c9-ae2c-be7a04516e37.#delete" not found

            Das sind zwar nur Warnungen, jedoch klappt der sync nicht mehr

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

              @danihell

              du kannst mal den alexa2 adapter neu staren, damit sich die datenpunkte neu setzen - evtl geht das script dann wieder

              1 Reply Last reply Reply Quote 0
              • Garfonso
                Garfonso Developer @danihell last edited by Garfonso

                @danihell
                ja, kann ich auch nix zu sagen... hm... irgendwas ist da wohl auseinander gelaufen. 🤷 Alexa Adapter neustarten ist immer eine gute Idee. 😉

                Das #delete gibt es bei mir jedenfalls noch bei den Einträgen in der Liste.

                Wenn du da keine Einträge in den Alexa-Objekten hast, wo das #delete fehlt (also wenn z.B. der ganze Ordner schon weg ist, wenn du mal guckst, wo das schief geht), vielleicht mal

                • das skript anhalten
                • list itemdie Lovelace-Shoppingliste leer machen (also lovelace.0.control.shopping_list auf [] setzen)
                • das skript starten

                Aber besser merken, was auf der Liste drauf steht... ich übernehme keine Garantie dafür, dass dabei nicht alle Einträge gelöscht werden hust

                Achja, und was bei Alexa auch immer hilfreich ist, erledigte Punkte löschen (also in der App).

                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

                840
                Online

                31.8k
                Users

                80.0k
                Topics

                1.3m
                Posts

                alexa
                3
                6
                517
                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