Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. (Gelöst) Zeichenkette in Zahl umwandeln (Aqara/Deconz/Vibrationssensor/Winkel)

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    18
    1
    648

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    18
    1
    5.7k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.5k

(Gelöst) Zeichenkette in Zahl umwandeln (Aqara/Deconz/Vibrationssensor/Winkel)

Scheduled Pinned Locked Moved Blockly
blockly
32 Posts 5 Posters 4.1k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M muckel

    @paul53
    00:04:59.382 info javascript.0 script.js.Garage_Offen_Zu: object

    {
    "from": "system.adapter.deconz.0",
    "user": "system.user.admin",
    "ts": 1556892868113,
    "common": {
    "name": "Garagentor orientation",
    "type": "string",
    "read": true,
    "write": false
    },
    "native": {},
    "acl": {
    "object": 1636,
    "owner": "system.user.admin",
    "ownerGroup": "system.group.administrator",
    "state": 1636
    },
    "_id": "deconz.0.Sensors.34.orientation",
    "type": "state"
    }

    paul53P Offline
    paul53P Offline
    paul53
    wrote on last edited by
    #21

    @muckel sagte:

    object

    Dann enthält er schon ein Array und muss nicht mehr gesplittet werden. Damit vereinfacht sich die Umwandlung:
    setze Winkel auf nach Zahl in der Liste Wert nimm das 2. Element.

    Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
    Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

    M 1 Reply Last reply
    0
    • paul53P paul53

      @muckel sagte:

      object

      Dann enthält er schon ein Array und muss nicht mehr gesplittet werden. Damit vereinfacht sich die Umwandlung:
      setze Winkel auf nach Zahl in der Liste Wert nimm das 2. Element.

      M Offline
      M Offline
      muckel
      wrote on last edited by
      #22

      @paul53

      Perfekt! Das wars! :relaxed:
      Auf das wäre ich im Leben nicht gekommen. Danke schön.
      Ich stelle es auf gelöst.

      CU and good night!

      paul53P 1 Reply Last reply
      0
      • M muckel

        @paul53
        00:04:59.382 info javascript.0 script.js.Garage_Offen_Zu: object

        {
        "from": "system.adapter.deconz.0",
        "user": "system.user.admin",
        "ts": 1556892868113,
        "common": {
        "name": "Garagentor orientation",
        "type": "string",
        "read": true,
        "write": false
        },
        "native": {},
        "acl": {
        "object": 1636,
        "owner": "system.user.admin",
        "ownerGroup": "system.group.administrator",
        "state": 1636
        },
        "_id": "deconz.0.Sensors.34.orientation",
        "type": "state"
        }

        paul53P Offline
        paul53P Offline
        paul53
        wrote on last edited by
        #23

        @muckel sagte:

        "type": "string",

        Das garantiert nicht, dass der Wert tatsächlich einen String enthält. Wodurch wird der Wert des Datenpunktes geschrieben ?

        Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
        Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

        M 1 Reply Last reply
        0
        • paul53P paul53

          @muckel sagte:

          "type": "string",

          Das garantiert nicht, dass der Wert tatsächlich einen String enthält. Wodurch wird der Wert des Datenpunktes geschrieben ?

          M Offline
          M Offline
          muckel
          wrote on last edited by
          #24

          @paul53
          Vom Deconz Adapter (Vibrationssensor von Aqara)

          paul53P 2 Replies Last reply
          0
          • M muckel

            @paul53
            Vom Deconz Adapter (Vibrationssensor von Aqara)

            paul53P Offline
            paul53P Offline
            paul53
            wrote on last edited by
            #25

            @muckel sagte:

            Vom Deconz Adapter

            Dann erstelle auf Github ein Issue, damit der Adapter-Entwickler es korrigiert.

            Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
            Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

            M 1 Reply Last reply
            0
            • paul53P paul53

              @muckel sagte:

              Vom Deconz Adapter

              Dann erstelle auf Github ein Issue, damit der Adapter-Entwickler es korrigiert.

              M Offline
              M Offline
              muckel
              wrote on last edited by
              #26

              @paul53
              Mach ich!
              Danke für deine Unterstützung

              1 Reply Last reply
              0
              • M muckel

                @paul53

                Perfekt! Das wars! :relaxed:
                Auf das wäre ich im Leben nicht gekommen. Danke schön.
                Ich stelle es auf gelöst.

                CU and good night!

                paul53P Offline
                paul53P Offline
                paul53
                wrote on last edited by paul53
                #27

                @muckel Wenn das Array bereits Zahlen enthält, kann die Konvertierung nach Zahl entfallen. Teste bitte:
                setze Winkel auf in der Liste Wert nimm das 2. Element
                debug output Typ von Winkel

                Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                M 1 Reply Last reply
                0
                • paul53P paul53

                  @muckel Wenn das Array bereits Zahlen enthält, kann die Konvertierung nach Zahl entfallen. Teste bitte:
                  setze Winkel auf in der Liste Wert nimm das 2. Element
                  debug output Typ von Winkel

                  M Offline
                  M Offline
                  muckel
                  wrote on last edited by
                  #28

                  @paul53

                  Ja, funktioniert!

                  dbb77e59-881d-4ea3-988f-922aa0b7dd74-image.png

                  Das Endergebnis :relaxed:

                  BBTownB 1 Reply Last reply
                  0
                  • M muckel

                    @paul53
                    Vom Deconz Adapter (Vibrationssensor von Aqara)

                    paul53P Offline
                    paul53P Offline
                    paul53
                    wrote on last edited by paul53
                    #29

                    @muckel sagte:

                    Vom Deconz Adapter

                    Welche Version ?
                    Ich habe gesehen, dass in Version 1.1.0 bereits an einer Stelle "orientation" mit common.type: 'array' eingearbeitet wurde.

                    Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                    Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                    M 1 Reply Last reply
                    0
                    • M muckel

                      @paul53

                      Ja, funktioniert!

                      dbb77e59-881d-4ea3-988f-922aa0b7dd74-image.png

                      Das Endergebnis :relaxed:

                      BBTownB Offline
                      BBTownB Offline
                      BBTown
                      wrote on last edited by
                      #30

                      @muckel und was passiert wenn der Winkel "> 20 aber < 70" ist?

                      ioBroker auf NUC (VM debian v13 (Trixie ), node v22.21.0 npm v10.9.4, js-controller v7.1.0 jsonl/jsonl / HomeMatic CCU-2 (Wired und Funk) / Philips HUE / echo.DOT / Broadlink RM pro / SONOS

                      M 1 Reply Last reply
                      0
                      • paul53P paul53

                        @muckel sagte:

                        Vom Deconz Adapter

                        Welche Version ?
                        Ich habe gesehen, dass in Version 1.1.0 bereits an einer Stelle "orientation" mit common.type: 'array' eingearbeitet wurde.

                        M Offline
                        M Offline
                        muckel
                        wrote on last edited by
                        #31

                        @paul53
                        Den Issue hat der Entwickler heute erledigt. Ich glaube, ab 1.1.1

                        1 Reply Last reply
                        0
                        • BBTownB BBTown

                          @muckel und was passiert wenn der Winkel "> 20 aber < 70" ist?

                          M Offline
                          M Offline
                          muckel
                          wrote on last edited by
                          #32

                          @BBTown
                          So genau Funktioniert der Sensor nicht.
                          Das ist die Unschärfe. Möglicher Fehler: Garage nicht komplett zu oder auf.
                          Damit kann ich allerdings leben.
                          Ich könnte noch eine Abfrage machen mit dem Ergebnis „Nicht offen/nicht zu“
                          Aber das kommt nicht vor, da ich die Garage entweder ganz zu, oder ganz auf fahre.

                          1 Reply Last reply
                          0

                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                          With your input, this post could be even better 💗

                          Register Login
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          252

                          Online

                          32.7k

                          Users

                          82.6k

                          Topics

                          1.3m

                          Posts
                          Community
                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                          ioBroker Community 2014-2025
                          logo
                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Home
                          • Recent
                          • Tags
                          • Unread 0
                          • Categories
                          • Unreplied
                          • Popular
                          • GitHub
                          • Docu
                          • Hilfe