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. Script problem bei abfrage von HM Systemvariablen

NEWS

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

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

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.1k

Script problem bei abfrage von HM Systemvariablen

Scheduled Pinned Locked Moved Skripten / Logik
4 Posts 2 Posters 667 Views
  • 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.
  • B Offline
    B Offline
    blueled
    wrote on last edited by
    #1

    Hallo zusammen,

    ich habe das Problem, das der script mir den status der HM-Systemvariablen immer mit "true" zurück gibt… obwohl ich im Reiter Objekte sehe das sie false sind. Was mache ich falsch ?

    on ({id: "hm-rega.0.7728" }, function (obj) {  /*TERASSE = motion2 */
    
    var today = new Date() ;
    var msgdate = formatDate(today, "TT.MM.JJJJ - SS:mm:ss") ; 
    
    // console.log(msgdate);
    
    var value = obj.state.val ;         // Status von motion2 ermitteln
    
    console.log("Terasse Value: "+value+" Timestamp:"+msgdate);
    
    if (value=== true) {
    
        setState("hm-rega.0.12369",msgdate);      // hm-rega systemvariable lc_motion2 Zeitstempel
    
        var zust = getObject("hm-rega.0.5778").val ;      // Systemvariable Fensteralarme abfragen
        var zustand = obj.state.val ;      
        console.log("Push-Meldungen: "+zustand);
    
        var zust1 = getObject("hm-rega.0.12271").val ;      // Systemvariable Sprachausgabe abfragen
        var zustand1 = obj.state.val ;      
        console.log("Sprachausgabe: "+zustand1);
    
      }
    });
    
    

    Vielen Dank schon mal im vorraus.

    1 Reply Last reply
    0
    • paul53P Offline
      paul53P Offline
      paul53
      wrote on last edited by
      #2

      @blueled:

          var zust = getObject("hm-rega.0.5778").val ;      // Systemvariable Fensteralarme abfragen
          var zustand = obj.state.val ;     
      ```` `  
      

      –>

          var zustand = getState("hm-rega.0.5778").val ;      // Systemvariable Fensteralarme abfragen
      

      @blueled:

          var zust1 = getObject("hm-rega.0.12271").val ;      // Systemvariable Sprachausgabe abfragen
          var zustand1 = obj.state.val ;     
      ```` `  
      

      –>

          var zustand1 = getState("hm-rega.0.12271").val ;      // Systemvariable Sprachausgabe abfragen
      

      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

      1 Reply Last reply
      0
      • B Offline
        B Offline
        blueled
        wrote on last edited by
        #3

        Hallo und Danke.

        So hatte ich es auch schon probiert…

        Die Konsolenausgabe schreibt dann: Sprachausgabe: undefined

        1 Reply Last reply
        0
        • B Offline
          B Offline
          blueled
          wrote on last edited by
          #4

          Hallo Paul53,

          es funktioniert.

          1000 Dank.

          ich war wohl schon zu müde um zu lesen. :-)

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          Support us

          ioBroker
          Community Adapters
          Donate

          790

          Online

          32.6k

          Users

          82.1k

          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