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. Blocky hängt sich auf (sporadischer Fehler?)

NEWS

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

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

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

Blocky hängt sich auf (sporadischer Fehler?)

Scheduled Pinned Locked Moved Blockly
2 Posts 2 Posters 268 Views 2 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.
  • H Offline
    H Offline
    Hyperbit
    wrote on last edited by
    #1

    Hallo gemeinde,

    ich habe eine Treppenlicht-Steuerung, welche auch bis zu dem letzten IOBroker Update gut geklappt hat.
    Nun kommt es immer öfters vor, dass die Steuerung versagt. Die Werte vom Bewegungssensor liegen in IOBroker vor
    aber das Script stellt sporadisch immer den Dienst ein (Bewegungssensor und Lichtschalter immer erreichbar)

    c1432e81-68cb-42a3-953b-1ec5b74157f9-image.png

    var timeout;
    
    
    on({id: new RegExp('sonoff\\.0\\.DVES_Treppenlichtsensor\\.POWER' + "$|" + 'sonoff\\.0\\.SONOFF_Treppenlich_C48C2D\\.POWER2' + "$"), change: "ne"}, async function (obj) {
        if (getState("sonoff.0.SONOFF_Treppenlich_C48C2D.POWER2").val == true) {
        setState("sonoff.0.SONOFF_Treppenlich_C48C2D.POWER"/*SONOFF_Treppenlich_C48C2D POWER*/, true);
        (function () {if (timeout) {clearTimeout(timeout); timeout = null;}})();
        console.log('Taster gedrückt, licht daueran');
      } else if (getState("sonoff.0.DVES_Treppenlichtsensor.POWER").val == true && getState("sonoff.0.SONOFF_Treppenlich_C48C2D.POWER").val == false) {
        setState("sonoff.0.SONOFF_Treppenlich_C48C2D.POWER"/*SONOFF_Treppenlich_C48C2D POWER*/, true);
        console.log('Bewegung Erkannt -> Treppenlicht AN');
      } else if (getState("sonoff.0.DVES_Treppenlichtsensor.POWER").val == true && getState("sonoff.0.SONOFF_Treppenlich_C48C2D.POWER").val == true) {
        (function () {if (timeout) {clearTimeout(timeout); timeout = null;}})();
        console.log('Bewegung wiederholt erkannt -> Timer angehalten');
      } else if (getState("sonoff.0.DVES_Treppenlichtsensor.POWER").val == false && getState("sonoff.0.SONOFF_Treppenlich_C48C2D.POWER").val == true) {
        timeout = setTimeout(async function () {
          setState("sonoff.0.SONOFF_Treppenlich_C48C2D.POWER"/*SONOFF_Treppenlich_C48C2D POWER*/, false);
          console.log('Bewegung nicht mehr Vorhanden -> Aus!');
        }, 16000);
        console.log('Bewegung nicht mehr Vorhanden -> Aus in 15 Sekunden');
      }
    });
    
    
    

    Ich erinnere mich, dass beim IOBroker-Update irgend ein Hinweis ausgegeben wurde zu Scripten.. aber ich finde diesen nicht mehr.

    Weiß jemand rat?

    M 1 Reply Last reply
    0
    • H Hyperbit

      Hallo gemeinde,

      ich habe eine Treppenlicht-Steuerung, welche auch bis zu dem letzten IOBroker Update gut geklappt hat.
      Nun kommt es immer öfters vor, dass die Steuerung versagt. Die Werte vom Bewegungssensor liegen in IOBroker vor
      aber das Script stellt sporadisch immer den Dienst ein (Bewegungssensor und Lichtschalter immer erreichbar)

      c1432e81-68cb-42a3-953b-1ec5b74157f9-image.png

      var timeout;
      
      
      on({id: new RegExp('sonoff\\.0\\.DVES_Treppenlichtsensor\\.POWER' + "$|" + 'sonoff\\.0\\.SONOFF_Treppenlich_C48C2D\\.POWER2' + "$"), change: "ne"}, async function (obj) {
          if (getState("sonoff.0.SONOFF_Treppenlich_C48C2D.POWER2").val == true) {
          setState("sonoff.0.SONOFF_Treppenlich_C48C2D.POWER"/*SONOFF_Treppenlich_C48C2D POWER*/, true);
          (function () {if (timeout) {clearTimeout(timeout); timeout = null;}})();
          console.log('Taster gedrückt, licht daueran');
        } else if (getState("sonoff.0.DVES_Treppenlichtsensor.POWER").val == true && getState("sonoff.0.SONOFF_Treppenlich_C48C2D.POWER").val == false) {
          setState("sonoff.0.SONOFF_Treppenlich_C48C2D.POWER"/*SONOFF_Treppenlich_C48C2D POWER*/, true);
          console.log('Bewegung Erkannt -> Treppenlicht AN');
        } else if (getState("sonoff.0.DVES_Treppenlichtsensor.POWER").val == true && getState("sonoff.0.SONOFF_Treppenlich_C48C2D.POWER").val == true) {
          (function () {if (timeout) {clearTimeout(timeout); timeout = null;}})();
          console.log('Bewegung wiederholt erkannt -> Timer angehalten');
        } else if (getState("sonoff.0.DVES_Treppenlichtsensor.POWER").val == false && getState("sonoff.0.SONOFF_Treppenlich_C48C2D.POWER").val == true) {
          timeout = setTimeout(async function () {
            setState("sonoff.0.SONOFF_Treppenlich_C48C2D.POWER"/*SONOFF_Treppenlich_C48C2D POWER*/, false);
            console.log('Bewegung nicht mehr Vorhanden -> Aus!');
          }, 16000);
          console.log('Bewegung nicht mehr Vorhanden -> Aus in 15 Sekunden');
        }
      });
      
      
      

      Ich erinnere mich, dass beim IOBroker-Update irgend ein Hinweis ausgegeben wurde zu Scripten.. aber ich finde diesen nicht mehr.

      Weiß jemand rat?

      M Online
      M Online
      MCU
      wrote on last edited by
      #2

      @hyperbit Welche Updates wurden denn gemacht? beta oder stable?
      Bitte alle Adapter-Updates auflisten.

      NUC i7 64GB mit Proxmox ---- Jarvis Infos Aktualisierungen der Doku auf Instagram verfolgen -> mcuiobroker Instagram
      Wenn Euch mein Vorschlag geholfen hat, bitte rechts "^" klicken.

      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

      483

      Online

      32.8k

      Users

      82.7k

      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