Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [iot] Alexa schaltet true/false statt on/off

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    [iot] Alexa schaltet true/false statt on/off

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

      Gibt es keine andere Lösung?

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

        @tcj sagte in [iot] Alexa schaltet true/false statt on/off:

        Benötigt wird on/off.

        Warum unbedingt on/off.
        Erklär doch mal.

        Mit true/false kannst du doch genauso weiterarbeiten.

        mfg

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

          @bahnuhr Die "tasmotisierten" sonoff und shelly-Module hören eigentlich auf on/off - sowohl in der Konsole der Weboberfläche als auch per mqtt- egal ob Adapter oder eigenständige mosquitto Installation.

          Ich nehme mal an, dass der sonoff-Adapter diese intern umsetzt.

          Mir ist es aber lieber, mqtt im "Original" zu nutzen um evtl. auch andere Hardware als tasmotisierte darüber zu verbinden.

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

            Du willst doch über Alexa die Stehlampe anschalten.
            Oder hab ich das falsch gelesen 😉

            Dann schreibe dir doch ein kleines Script.

            Also:
            wenn DP von Alexa true -> dann stehlampe on.

            Oder funktioniert sowas nicht ?

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

              Scheint wohl doch nicht so einfach zu sein.
              Hast ja in dem anderen thread auch schon geantwortet.

              Aber mit sonoff bin ich raus; hab ich nicht.

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

                @bahnuhr Mit dem iot Adapter verbindet man ja den DP des Gerätes direkt mit Alexa.
                "Alexa, Stehlampe ein" schreibt eben ein TRUE in den DP.
                Ich (und andere wohl auch) brauchen hier aber ein ON.

                foxriver76 dslraser 2 Replies Last reply Reply Quote 0
                • foxriver76
                  foxriver76 Developer @tcj last edited by foxriver76

                  @tcj mMn sollte ein DP der nur zwei Zustände kennt, ein Boolean sein. Vermutlich wurde es nach der Logik auch in IoT implementiert.

                  Mindestens vorübergehende Lösung:
                  Erstelle einen boolschen Dummy DP und lasse diesen schalten statt deines echten DPs. Höre auf Änderung des Dummy DP's -> wenn true dann schreibe on in deinen korrekten DP, sonst off.

                  tcj 1 Reply Last reply Reply Quote 0
                  • dslraser
                    dslraser Forum Testing Most Active @tcj last edited by

                    @tcj sagte in [iot] Alexa schaltet true/false statt on/off:

                    @bahnuhr Mit dem iot Adapter verbindet man ja den DP des Gerätes direkt mit Alexa.
                    "Alexa, Stehlampe ein" schreibt eben ein TRUE in den DP.
                    Ich (und andere wohl auch) brauchen hier aber ein ON.

                    Warum sollte das nicht per Blockly/Script gehen ?
                    Einen eigenen Datenpunkt erstellen (so wie Du ihn brauchst) und mit einem Blockly/Script mit Deiner Lampe triggern.
                    Dann fügst Du diesen eigenen Datenpunkt in iot ein und schaltest diesen Datenpunkt, damit wird dann die Lampe per Alexa geschaltet.
                    Oder verstehe ich was falsch ?

                    tcj 1 Reply Last reply Reply Quote 0
                    • tcj
                      tcj @foxriver76 last edited by

                      @foxriver76 der DP würde auch noch andere Befehle kennen

                      Control the corresponding Relay (enumerated) power state and also restart PulseTime<x>
                      0 / off = turn OFF
                      1 / on = turn ON
                      2 / toggle = if relay is ON switch to OFF and vice versa
                      3 / blink = toggle power for BlinkCount times each BlinkTime duration (at the end of blink, relay power is returned to pre-blink state)
                      4 / blinkoff = stop blink sequence and return relay power to pre-blink state
                      
                      1 Reply Last reply Reply Quote 0
                      • tcj
                        tcj @dslraser last edited by

                        @dslraser Dann muss ich für jedes tasmota-Gerät ein solches Script schreiben.

                        foxriver76 1 Reply Last reply Reply Quote 0
                        • foxriver76
                          foxriver76 Developer @tcj last edited by

                          @tcj Also wenn du von der Skript-Lösung nicht abgeneigt bist, bekommt man das auf jeden Fall in einem Skript hin. Holst dir alle nötigen DP's, z. B. via CacheSelector. Iterierst drüber und erstellst somit dynamisch deine benötigten boolschen DPs und deine Listener.

                          tcj 1 Reply Last reply Reply Quote 1
                          • tcj
                            tcj @foxriver76 last edited by

                            @foxriver76 Ohne Script wäre es IMHO intuitiver im Zusammenspiel von Alexa, iobroker und Tasmota per Standard MQTT
                            Mit dem "alten" cloud Adapter ging es doch auch - so jedenfalls meine Erinnerung.

                            1 Reply Last reply Reply Quote 0
                            • P
                              pfuhsy last edited by

                              Ich hatte das tatsächlich mit einen kleinen Script gelöst. Wenn true dann on, eine kleine Verzögerung rein und alles in einen DP. Wen ich drann denke kann ich die Tage das Script hochladen....BTW, für jeden Teilnehmer einzeln, ja.

                              1 Reply Last reply Reply Quote 0
                              • P
                                prinz-ip last edited by

                                Hallo zusammen,

                                hat schon jemand eine elegantere Lösung gefunden? Ich habe das gleiche Problem und möchte sehr sehr ungern für jedes Tasmota-Gerät ein script anlegen. Es gibt hier einen Fred, der eine Lösung über den Rules Befehl in der Tasmota Konsole aufzeigt. Funktioniert bei mir jedoch leider nicht.
                                https://github.com/arendst/Tasmota/issues/3769

                                VG

                                madjack84 created this issue in arendst/Tasmota

                                closed insert true/false for tasmota to accept for POWER control #3769

                                foxriver76 1 Reply Last reply Reply Quote 0
                                • foxriver76
                                  foxriver76 Developer @prinz-ip last edited by

                                  @prinz-ip neue Alias Funktion mit Konvertierung nutzen.

                                  1 Reply Last reply Reply Quote 0
                                  • H
                                    Hhjung16 last edited by Hhjung16

                                    Moin,

                                    In Tasmota kann man doch eine Belkin Emulation einschalten und einen Namen vergeben, dann kannst du bei Alexa einen Suchvorgang starten und schon taucht dein Gerät auf und lässt sich problemlos steuern.
                                    tasmota.JPG
                                    Hilft dir das evtl. weiter?

                                    1 Reply Last reply Reply Quote 0
                                    • P
                                      prinz-ip last edited by

                                      @foxriver76 danke, mittlerweile hat der Tasmota Entwickler reagiert und schaltet auch bei true/false. Aber aus Interesse, welche Alias Funktion meinst du? Wo finde ich die?

                                      @Hhjung16 nein, hilft mir nicht. Ich möchte ja mqtt nutzen.

                                      foxriver76 1 Reply Last reply Reply Quote 0
                                      • foxriver76
                                        foxriver76 Developer @prinz-ip last edited by

                                        @prinz-ip schau mal z. B. Hier rein https://forum.iobroker.net/topic/25772/fragen-antworten-rund-um-die-neue-alias-funktion

                                        P 1 Reply Last reply Reply Quote 0
                                        • P
                                          prinz-ip @foxriver76 last edited by

                                          @foxriver76 ah, danke! kannte ich noch nicht.

                                          1 Reply Last reply Reply Quote 0
                                          • C
                                            Chuckwallas last edited by

                                            Hallo, ich muss nochmal einhaken und das Problem fortführen.
                                            Ich nutze einen Shelly 1 aber mit org. Firmware, nicht mit Tasmota. Der ist über den MQTT Adapter verbunden und reagiert auch nur auf die Befehle on/off - Alexa setzt aber true/false.

                                            Ich nehme an das lässt sich nicht ändern, wie ich das hier oben herausgelesen habe. Wie bekomme ich denn jetzt trotzdem die Steuerung per Alexa hin?!

                                            vg

                                            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

                                            513
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            alexa iot sonoff tasmota
                                            10
                                            26
                                            2239
                                            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