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] Raum aus Aufzählung übernehmen

NEWS

  • Neuer ioBroker-Blog online: Monatsrückblick März/April 2026
    BluefoxB
    Bluefox
    6
    1
    229

  • Verwendung von KI bitte immer deutlich kennzeichnen
    HomoranH
    Homoran
    8
    1
    222

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

[gelöst] Raum aus Aufzählung übernehmen

Scheduled Pinned Locked Moved Blockly
15 Posts 3 Posters 975 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.
  • S Spitfire4all

    @paul53
    Hm finde nicht Funktion mit ID nicht:

    de62284d-3396-4ded-85b7-49b26740f6c5-image.png

    Gruß
    HDM

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

    @spitfire4all sagte: finde nicht Funktion mit ID nicht

    Blockly_temp.JPG

    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

    S 1 Reply Last reply
    0
    • paul53P paul53

      @spitfire4all sagte: finde nicht Funktion mit ID nicht

      Blockly_temp.JPG

      S Offline
      S Offline
      Spitfire4all
      wrote on last edited by
      #5

      @paul53

      Eine Idee, warum da bei mir 0 herauskommt?

      e53c0787-855b-405a-9035-e420b9ffd983-image.png

      225edd5a-d526-4566-b933-d5f4b800d6a2-image.png

      Ansonsten schon einmal vielen Dank.

      Gruß
      Hans-Dieter

      paul53P 1 Reply Last reply
      0
      • S Spitfire4all

        @paul53

        Eine Idee, warum da bei mir 0 herauskommt?

        e53c0787-855b-405a-9035-e420b9ffd983-image.png

        225edd5a-d526-4566-b933-d5f4b800d6a2-image.png

        Ansonsten schon einmal vielen Dank.

        Gruß
        Hans-Dieter

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

        @spitfire4all sagte: Idee, warum da bei mir 0 herauskommt?

        Du hast auch in der Javascript-Funktion ID groß 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

        S 1 Reply Last reply
        0
        • paul53P paul53

          @spitfire4all sagte: Idee, warum da bei mir 0 herauskommt?

          Du hast auch in der Javascript-Funktion ID groß geschrieben?

          S Offline
          S Offline
          Spitfire4all
          wrote on last edited by
          #7

          @paul53
          OK ich nehme scheinbar auch jedes Fett Näpfchen mit.

          Geht aber trotzdem nicht.
          Weiss nicht, ob es was damit zu tun hat, dass Objekt das gar nicht beinhaltet.

          e9f45c19-05ca-415f-bf13-befeda3d3093-image.png

          Gruß
          HDM

          HomoranH paul53P 2 Replies Last reply
          0
          • S Spitfire4all

            @paul53
            OK ich nehme scheinbar auch jedes Fett Näpfchen mit.

            Geht aber trotzdem nicht.
            Weiss nicht, ob es was damit zu tun hat, dass Objekt das gar nicht beinhaltet.

            e9f45c19-05ca-415f-bf13-befeda3d3093-image.png

            Gruß
            HDM

            HomoranH Do not disturb
            HomoranH Do not disturb
            Homoran
            Global Moderator Administrators
            wrote on last edited by
            #8

            @spitfire4all sagte in Raum aus Aufzählung übernehmen:

            OK ich nehme scheinbar auch jedes Fett Näpfchen mit.

            und warum zeigst du nicht was du da getippt hast?

            kein Support per PN! - Fragen im Forum stellen -
            Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.
            Das Forum freut sich über eine Spende. Benutzt dazu den Spendenbutton oben rechts. Danke!
            der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

            1 Reply Last reply
            0
            • S Spitfire4all

              @paul53
              OK ich nehme scheinbar auch jedes Fett Näpfchen mit.

              Geht aber trotzdem nicht.
              Weiss nicht, ob es was damit zu tun hat, dass Objekt das gar nicht beinhaltet.

              e9f45c19-05ca-415f-bf13-befeda3d3093-image.png

              Gruß
              HDM

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

              @spitfire4all sagte: Objekt das gar nicht beinhaltet.

              Dann versuche es mal mit Kanal ID anstelle von Objekt ID.

              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

              S 1 Reply Last reply
              0
              • paul53P paul53

                @spitfire4all sagte: Objekt das gar nicht beinhaltet.

                Dann versuche es mal mit Kanal ID anstelle von Objekt ID.

                S Offline
                S Offline
                Spitfire4all
                wrote on last edited by Spitfire4all
                #10

                @paul53

                Sorry, leider auch nicht.
                Scheinbar taucht der Wert Raum nirgends auf.

                28144076-f64c-4e0d-a6da-f2f665526a81-image.png

                Gruß
                HDM

                paul53P 1 Reply Last reply
                0
                • S Spitfire4all

                  @paul53

                  Sorry, leider auch nicht.
                  Scheinbar taucht der Wert Raum nirgends auf.

                  28144076-f64c-4e0d-a6da-f2f665526a81-image.png

                  Gruß
                  HDM

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

                  @spitfire4all sagte: leider auch nicht.

                  Poste bitte den Inhalt der Javascript-Funktion in Code tags.

                  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

                  S 1 Reply Last reply
                  0
                  • paul53P paul53

                    @spitfire4all sagte: leider auch nicht.

                    Poste bitte den Inhalt der Javascript-Funktion in Code tags.

                    S Offline
                    S Offline
                    Spitfire4all
                    wrote on last edited by
                    #12

                    @paul53

                    var id;
                    
                    // Beschreibe diese Funktion …
                    async function romName(id) {
                        return 0;
                    }
                    
                    
                    on({ id: [].concat(['deconz.0.Lights.10.on']), change: 'ne' }, async (obj) => {
                      let value = obj.state.val;
                      let oldValue = obj.oldState.val;
                      console.warn((await romName(obj.id)));
                      console.warn(obj.channelId);
                    });
                    
                    paul53P 1 Reply Last reply
                    0
                    • S Spitfire4all

                      @paul53

                      var id;
                      
                      // Beschreibe diese Funktion …
                      async function romName(id) {
                          return 0;
                      }
                      
                      
                      on({ id: [].concat(['deconz.0.Lights.10.on']), change: 'ne' }, async (obj) => {
                        let value = obj.state.val;
                        let oldValue = obj.oldState.val;
                        console.warn((await romName(obj.id)));
                        console.warn(obj.channelId);
                      });
                      
                      paul53P Offline
                      paul53P Offline
                      paul53
                      wrote on last edited by paul53
                      #13

                      @spitfire4all
                      Die Funktion romName(id) enthält nur

                      return 0;
                      

                      Gehe auf die 3 Punkte rechts und trage die richtige Javascript-Funktion ein:

                      const room = getObject(id, 'rooms').enumNames[0];
                      if(typeof room == 'object') return room.de;
                      return room;
                      

                      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

                      S 1 Reply Last reply
                      0
                      • paul53P paul53

                        @spitfire4all
                        Die Funktion romName(id) enthält nur

                        return 0;
                        

                        Gehe auf die 3 Punkte rechts und trage die richtige Javascript-Funktion ein:

                        const room = getObject(id, 'rooms').enumNames[0];
                        if(typeof room == 'object') return room.de;
                        return room;
                        
                        S Offline
                        S Offline
                        Spitfire4all
                        wrote on last edited by
                        #14

                        @paul53

                        OK, das funktioniert.
                        Danke das du solchen dummis wie mir weiter hilfst.
                        Hab halt noch nie Funktionen benutzt und versuche mich an anderen Dingen außer Licht an, Licht aus.

                        Gruß und 1000 Dank.

                        HDM

                        HomoranH 1 Reply Last reply
                        0
                        • S Spitfire4all

                          @paul53

                          OK, das funktioniert.
                          Danke das du solchen dummis wie mir weiter hilfst.
                          Hab halt noch nie Funktionen benutzt und versuche mich an anderen Dingen außer Licht an, Licht aus.

                          Gruß und 1000 Dank.

                          HDM

                          HomoranH Do not disturb
                          HomoranH Do not disturb
                          Homoran
                          Global Moderator Administrators
                          wrote on last edited by
                          #15

                          @spitfire4all sagte in [gelöst] Raum aus Aufzählung übernehmen:

                          Hab halt noch nie Funktionen benutzt

                          umso wichtiger ist es immer alles zu zeigen!
                          https://forum.iobroker.net/topic/51555/hinweise-für-gute-forenbeiträge/1

                          kein Support per PN! - Fragen im Forum stellen -
                          Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.
                          Das Forum freut sich über eine Spende. Benutzt dazu den Spendenbutton oben rechts. Danke!
                          der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

                          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

                          623

                          Online

                          32.8k

                          Users

                          82.8k

                          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