Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Licht einschalten mit javascript bzw vairable setzen

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Licht einschalten mit javascript bzw vairable setzen

    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      Biboxx last edited by

      Hallo zusammen,

      ich komme nicht drumrum zu fragen, da ich gefühlt schon eine Ewigkeit rumsuche. Ich bin mir sicher, das ist ganz einfach aber…

      der code:

      on('geofency.0.Wilde_Heide_10.entry', function(obj) {

      log('Neuer Geofency-Wert ' + obj.state.val);

      setState('hm-rpc.0.LEQ0216092.1', obj.state.val);

      });

      aber LEQ0216092.1 schaltet einfach nicht, auch kann ich keine variable setzten, das habe ich schon in einem anderen Thema gefragt... bitte, sagt mir was falsch ist, tausend Dank

      Biboxx

      1 Reply Last reply Reply Quote 0
      • P
        pix last edited by

        Hallo Biboxx,

        da fehlt noch ein STATE, wenn es ein Schaltaktor ist. Beim Dimmer sag nochmal bescheid.

        on('geofency.0.Wilde_Heide_10.entry', function(obj) {
        log('Neuer Geofency-Wert ' + obj.state.val);
        setState('hm-rpc.0.LEQ0216092.1.STATE', obj.state.val);
        });
        
        

        Gruß

        Pix

        PS: Bitte Code-Tags für Code im Forum benutzen

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        Support us

        ioBroker
        Community Adapters
        Donate

        642
        Online

        31.7k
        Users

        79.7k
        Topics

        1.3m
        Posts

        2
        2
        1039
        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