Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. [gelöst] "Textabschnitt zurückgeben" ist ungehorsam

    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

    [gelöst] "Textabschnitt zurückgeben" ist ungehorsam

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

      @ptr sagte: Wunsch Etage & Raum aus dem Trigger zu gewinnen um daraus dann alle anderen Variablen zu bestimmen.

      Wie sehen die kompletten Datenpunkt-IDs aus?

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

        @paul53 kompletter Datenpunkt aus dem rausgeschnitten werden soll: -> in 3. Zeile des logs zu sehen

        1 Reply Last reply Reply Quote 0
        • P
          ptr @Homoran last edited by

          @homoran „setze raum“ wird falsch gemacht

          1 Reply Last reply Reply Quote 0
          • Homoran
            Homoran Global Moderator Administrators @ptr last edited by

            @ptr sagte in "Textabschnitt zurückgeben" ist ungehorsam:

            Wie zählt er nicht wirklich bis zum Punkt? Sondern bis zum Unterstrich?

            ich glaube ich weiß jetzt um welches Konstrukt es geht.
            Da hast du ei en Denkfehler

            von hinten 13 (soweit klar) + erstes Auftreten . (das ist jetzt nicht mehr von hinten. der erste Punkt kommt nach 5 Zeichen, +13 = 18 Zeichen von hinten

            P 1 Reply Last reply Reply Quote 0
            • P
              ptr @Homoran last edited by ptr

              @homoran verstehe. danke Dir. Jetzt stellt sich mir natürlich die Frage wie ich das Ziel trotzdem erreiche. Also "letztes Auftreten von '.'"...

              • moment: Würde es so machen: Gesamtlänge bestimmen und "bis letztes" davon abziehen... poste das gleich mal ob das dann geht
              Homoran 1 Reply Last reply Reply Quote 0
              • Homoran
                Homoran Global Moderator Administrators @ptr last edited by

                @ptr gibt es nicht "letztes" im Pulldown-Menü?

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

                  @ptr sagte: Etage & Raum aus dem Trigger zu gewinnen

                  Bild_2022-10-26_205825932.png

                  P 2 Replies Last reply Reply Quote 0
                  • P
                    ptr @Homoran last edited by

                    @homoran so geht es jetzt tatsächlich. Ja es gibt "letztes" (war zuerst in Gedanken bei "zähle von hinten" -> aber das habe ich jetzt so gelöst:
                    d5ec79c6-d903-450a-aae4-977af9808f5e-image.png
                    scheint etwas kompliziert, es geht aber.

                    Homoran 1 Reply Last reply Reply Quote 0
                    • P
                      ptr @paul53 last edited by

                      @paul53 Hallo Paul, das sieht wunderbar aus. Setze ich gleich um...

                      1 Reply Last reply Reply Quote 0
                      • Homoran
                        Homoran Global Moderator Administrators @ptr last edited by

                        @ptr sagte in "Textabschnitt zurückgeben" ist ungehorsam:

                        scheint etwas kompliziert, es geht aber.

                        ist kompliziert. Pauls Ansatz ist natürlich wie immer brilliant, aber wenn du mit dem Textschnipseln arbeiem willst, wieso dann zweimal um den heißen Brei?
                        nicht von hinten und nicht Gesamtlänge.

                        einfach bis letztes Auftreten von . (von vorne natürlich)

                        P 1 Reply Last reply Reply Quote 0
                        • P
                          ptr @Homoran last edited by

                          @homoran stimmt, wäre auch einfacher...

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

                            @paul53 ist umgesetzt und funktioniert!
                            3cd87938-6570-4bf4-9919-8e20c5076c00-image.png

                            21:05:09.579	info	javascript.0 (5687) script.js.exp.4_Szenenauslösung_Manipulation_-_8fach-Taster: alias.0.KG.Hobbyraum.Taster_Tuer.state
                            21:05:09.579	info	javascript.0 (5687) script.js.exp.4_Szenenauslösung_Manipulation_-_8fach-Taster: KG
                            21:05:09.579	info	javascript.0 (5687) script.js.exp.4_Szenenauslösung_Manipulation_-_8fach-Taster: Hobbyraum
                            21:05:09.580	info	javascript.0 (5687) script.js.exp.4_Szenenauslösung_Manipulation_-_8fach-Taster: Szene an
                            
                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post

                            Support us

                            ioBroker
                            Community Adapters
                            Donate

                            923
                            Online

                            31.9k
                            Users

                            80.2k
                            Topics

                            1.3m
                            Posts

                            3
                            14
                            284
                            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