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. Hardware
  4. Homematic IP Präsenzmelder HmIP-SPI mit Hue

NEWS

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

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

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

Homematic IP Präsenzmelder HmIP-SPI mit Hue

Scheduled Pinned Locked Moved Hardware
15 Posts 3 Posters 1.3k 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.
  • C CyberMicha

    Wofür ist der Timer? Dachte das kann man am Präsenzmelder einstellen.

    LG Micha.

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

    @CyberMicha sagte:

    das kann man am Präsenzmelder einstellen.

    Den Präsenzmelder (dessen Eigenschaften) kenne ich nicht. Wenn man es an diesem einstellen kann, kann der Timer entfallen.

    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
    • C Offline
      C Offline
      CyberMicha
      wrote on last edited by CyberMicha
      #7

      HI,
      ich muss den Thread noch mal hoch holen.
      Wollte gerade das Skript schon mal vorbereiten.
      Er erkennt aber clearTimeout und setTimeout nicht.

      Wofür ist der Timeout generell gedacht?

      Oder gibt es vielleicht schon jemanden, der ein fertiges Script dafür hat?

      LG
      Micha

      1 Reply Last reply
      0
      • dslraserD dslraser

        @CyberMicha
        ich habe so einige Präsenzmelder und Hue laufen, funktioniert problemlos. (allerdings benutze ich lieber Blockly, aber die lassen sich ja auch in Scripte umwandeln)

        C Offline
        C Offline
        CyberMicha
        wrote on last edited by
        #8

        @dslraser sagte in Homematic IP Präsenzmelder HmIP-SPI mit Hue:

        @CyberMicha
        ich habe so einige Präsenzmelder und Hue laufen, funktioniert problemlos. (allerdings benutze ich lieber Blockly, aber die lassen sich ja auch in Scripte umwandeln)

        Magst du das vielleicht mal zur Verfügung stellen als Skript oder sonst als Blocky Export?

        dslraserD 1 Reply Last reply
        0
        • C CyberMicha

          @dslraser sagte in Homematic IP Präsenzmelder HmIP-SPI mit Hue:

          @CyberMicha
          ich habe so einige Präsenzmelder und Hue laufen, funktioniert problemlos. (allerdings benutze ich lieber Blockly, aber die lassen sich ja auch in Scripte umwandeln)

          Magst du das vielleicht mal zur Verfügung stellen als Skript oder sonst als Blocky Export?

          dslraserD Offline
          dslraserD Offline
          dslraser
          Forum Testing Most Active
          wrote on last edited by
          #9

          @CyberMicha
          Da sind jetzt zwei Präsenzmelder im Spiel

          Meine Einstellungen der Melder:

          Bildschirmfoto 2019-08-06 um 18.57.14.png

          Hier ein kleines Blockly (Licht geht nach 2 Minuten aus, wenn keine Bewegung)

          Bildschirmfoto 2019-08-06 um 18.58.49.png

          <xml xmlns="http://www.w3.org/1999/xhtml">
            <variables>
              <variable type="undefined" id="timeout">timeout</variable>
            </variables>
            <block type="on_ext" id="/XPPZ2Ef{Gp90PhxskTc" x="-288" y="-188">
              <mutation items="4"></mutation>
              <field name="CONDITION">ne</field>
              <field name="ACK_CONDITION"></field>
              <value name="OID0">
                <shadow type="field_oid" id="4UPB+Zu~xmksZA(^wyHG">
                  <field name="oid">hm-rpc.0.xxx.1.PRESENCE_DETECTION_STATE</field>
                </shadow>
              </value>
              <value name="OID1">
                <shadow type="field_oid" id="rCi-asJ((26g1B1@gB+V">
                  <field name="oid">hm-rpc.0.xxx.1.PRESENCE_DETECTION_STATE</field>
                </shadow>
              </value>
              <value name="OID2">
                <shadow type="field_oid" id="b^8It/ovFq7)f%Ns3._R">
                  <field name="oid">hm-rpc.0.xxx.1.PRESENCE_DETECTION_ACTIVE</field>
                </shadow>
              </value>
              <value name="OID3">
                <shadow type="field_oid" id="1D8d(d^fg,4RScZ6W;X0">
                  <field name="oid">hm-rpc.0.xxx.1.PRESENCE_DETECTION_ACTIVE</field>
                </shadow>
              </value>
              <statement name="STATEMENT">
                <block type="controls_if" id="r4;C-s:gJHryisv4KGb`">
                  <mutation elseif="1"></mutation>
                  <value name="IF0">
                    <block type="logic_operation" id="!DWFt=KrH@{HY^Irjo_{" inline="false">
                      <field name="OP">OR</field>
                      <value name="A">
                        <block type="logic_compare" id="TP1|rTU91ZRI%i,rHP=Y">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="get_value" id="-+W!thbV^s9%DVQB4rTU">
                              <field name="ATTR">val</field>
                              <field name="OID">hm-rpc.0.xxx.1.PRESENCE_DETECTION_STATE</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_boolean" id="QFRR*suCU^8L_oRHF,H;">
                              <field name="BOOL">TRUE</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_compare" id="?DWvJR#LVs]t9g_pCp2-">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="get_value" id="RTr:9XWbwVUXR4AopAVC">
                              <field name="ATTR">val</field>
                              <field name="OID">hm-rpc.0.xxx.1.PRESENCE_DETECTION_STATE</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_boolean" id="bW_Loan2HY5qw`xT1{Ih">
                              <field name="BOOL">TRUE</field>
                            </block>
                          </value>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="control" id="fA7]`Ch~(e,]2).;~%G#">
                      <mutation delay_input="false"></mutation>
                      <field name="OID">hue.0.HueBridge.Badezimmer.command</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="text" id="uw?fF)gAsM10ZM1_K};:">
                          <field name="TEXT">{"on":true,"level":100,"transitiontime":5}</field>
                        </block>
                      </value>
                      <next>
                        <block type="timeouts_cleartimeout" id="!B@KCYF|LU,_5DpFB5Hf">
                          <field name="NAME">timeout</field>
                        </block>
                      </next>
                    </block>
                  </statement>
                  <value name="IF1">
                    <block type="logic_operation" id="cgqIQN%kyd@zaj^gMS7(" inline="false">
                      <field name="OP">AND</field>
                      <value name="A">
                        <block type="logic_compare" id="rT={5M#SZ]Jlj7KHq0.{">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="get_value" id=".ocVQ1#eJDhQkDl]JYVV">
                              <field name="ATTR">val</field>
                              <field name="OID">hm-rpc.0.xxx.1.PRESENCE_DETECTION_ACTIVE</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_boolean" id="lrL!=Ro-+E+ylCCli9W=">
                              <field name="BOOL">TRUE</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_operation" id="LKbN+LPDq4Lm{~dd!ZI8" inline="false">
                          <field name="OP">AND</field>
                          <value name="A">
                            <block type="logic_compare" id="@)IC[L0N3Ls08=4B{fA/">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="C4oLI?66m-3#HKY_L,lU">
                                  <field name="ATTR">val</field>
                                  <field name="OID">hm-rpc.0.xxx.1.PRESENCE_DETECTION_ACTIVE</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="*rjrAzSy7HtSl6q{U5pE">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_operation" id="bM(yTZF=v*aK*unv-H}h" inline="false">
                              <field name="OP">AND</field>
                              <value name="A">
                                <block type="logic_operation" id="NGnZogX~#@ogfp2ySf@i" inline="false">
                                  <field name="OP">AND</field>
                                  <value name="A">
                                    <block type="logic_compare" id="!hh1N%kL*7hq9+1E-:=#">
                                      <field name="OP">EQ</field>
                                      <value name="A">
                                        <block type="get_value" id="04*}80jlf{1idn.[0-?`">
                                          <field name="ATTR">val</field>
                                          <field name="OID">hm-rpc.0.xxx.1.PRESENCE_DETECTION_STATE</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="logic_boolean" id="uVDty^,vSvL:AfTZ7Qeg">
                                          <field name="BOOL">FALSE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_compare" id="L]`/caqE3j6Y(r.=C}GN">
                                      <field name="OP">EQ</field>
                                      <value name="A">
                                        <block type="get_value" id="+|/!n9_brTM8Qh}opEfc">
                                          <field name="ATTR">val</field>
                                          <field name="OID">hm-rpc.xxx.1.PRESENCE_DETECTION_STATE</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="logic_boolean" id="S(a+i(w;~qeRpBSBXi7{">
                                          <field name="BOOL">FALSE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_compare" id="^*l0svFw;N3oZt@vsk,f">
                                  <field name="OP">NEQ</field>
                                  <value name="A">
                                    <block type="get_value" id="v)p]ndNn~t:5!Lwnd}fm">
                                      <field name="ATTR">val</field>
                                      <field name="OID">hue.0.HueBridge.Badezimmer.level</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="math_number" id="=fX3Go~iI~ip[alO,glF">
                                      <field name="NUM">0</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                            </block>
                          </value>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO1">
                    <block type="timeouts_settimeout" id="5h6itIX;TDkoxAkzeZo(">
                      <field name="NAME">timeout</field>
                      <field name="DELAY">120</field>
                      <field name="UNIT">sec</field>
                      <statement name="STATEMENT">
                        <block type="control" id="ftP!r*}f{K0X.R)Uax?:">
                          <mutation delay_input="false"></mutation>
                          <field name="OID">hue.0.HueBridge.Badezimmer.command</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="text" id="Roas``mxwmTae1f)q|xH">
                              <field name="TEXT">{"on":false,"transitiontime":100}</field>
                            </block>
                          </value>
                        </block>
                      </statement>
                    </block>
                  </statement>
                </block>
              </statement>
            </block>
          </xml>
          

          1 Reply Last reply
          1
          • C Offline
            C Offline
            CyberMicha
            wrote on last edited by
            #10

            Danke dir.
            Hier kommt auch die Fehlermeldung wenn ich es in JavaSkript umwandle. Werde es dennoch mal testen wenn der Melder da ist.

            LG Micha

            1 Reply Last reply
            0
            • C Offline
              C Offline
              CyberMicha
              wrote on last edited by CyberMicha
              #11

              Habe es mir jetzt so gebaut.
              Spricht da etwas dagegen? Als Erweiterung werde ich dann noch die Helligkeit mit abgreifen.

              on({id: 'hm-rpc.1.xxx.1.PRESENCE_DETECTION_STATE', change: "ne"}, 
              function (obj) {
                  if (getState("hm-rpc.1.xxx.1.PRESENCE_DETECTION_STATE").val == true) {
                    log("An");
                    setState("hue.0.Philips_hue.Licht_Küche.command", '{"on":true,"level":100,"transitiontime":5}');
                } else if (getState("hm-rpc.xxx.1.PRESENCE_DETECTION_STATE").val == false && 
                           getState("hue.0.Philips_hue.Licht_Küche.level").val != 0) {
                             setState("hue.0.Philips_hue.Licht_Küche.command", '{"on":false,"transitiontime":100}');
                             log("Aus")
                }
              });
              

              Wieso ein Timer verstehe ich nicht. Bei mir reagiert es mit Hue so top.

              dslraserD 1 Reply Last reply
              0
              • C CyberMicha

                Habe es mir jetzt so gebaut.
                Spricht da etwas dagegen? Als Erweiterung werde ich dann noch die Helligkeit mit abgreifen.

                on({id: 'hm-rpc.1.xxx.1.PRESENCE_DETECTION_STATE', change: "ne"}, 
                function (obj) {
                    if (getState("hm-rpc.1.xxx.1.PRESENCE_DETECTION_STATE").val == true) {
                      log("An");
                      setState("hue.0.Philips_hue.Licht_Küche.command", '{"on":true,"level":100,"transitiontime":5}');
                  } else if (getState("hm-rpc.xxx.1.PRESENCE_DETECTION_STATE").val == false && 
                             getState("hue.0.Philips_hue.Licht_Küche.level").val != 0) {
                               setState("hue.0.Philips_hue.Licht_Küche.command", '{"on":false,"transitiontime":100}');
                               log("Aus")
                  }
                });
                

                Wieso ein Timer verstehe ich nicht. Bei mir reagiert es mit Hue so top.

                dslraserD Offline
                dslraserD Offline
                dslraser
                Forum Testing Most Active
                wrote on last edited by
                #12

                @CyberMicha
                Das mit der Helligkeit (Wert von einem Bewegungsmelder draußen) und auch noch mit verschiedenen Licht Level zu anderen Uhrzeiten habe ich z.B. im Flur.
                Deine letzte Frage habe ich nicht verstanden.

                1 Reply Last reply
                0
                • C Offline
                  C Offline
                  CyberMicha
                  wrote on last edited by
                  #13

                  Meinte damit wieso da ein Timeout eingebaut ist.

                  dslraserD 1 Reply Last reply
                  0
                  • C CyberMicha

                    Meinte damit wieso da ein Timeout eingebaut ist.

                    dslraserD Offline
                    dslraserD Offline
                    dslraser
                    Forum Testing Most Active
                    wrote on last edited by
                    #14

                    @CyberMicha
                    achso, ja braucht man ja auch nicht wirklich,. Dann müsste ich halte die Melder anders einstellen.

                    C 1 Reply Last reply
                    0
                    • dslraserD dslraser

                      @CyberMicha
                      achso, ja braucht man ja auch nicht wirklich,. Dann müsste ich halte die Melder anders einstellen.

                      C Offline
                      C Offline
                      CyberMicha
                      wrote on last edited by
                      #15

                      @dslraser sagte in Homematic IP Präsenzmelder HmIP-SPI mit Hue:

                      ja braucht man ja auch nicht wirklich,. Dann müsste ich halte die Melder anders einstellen.

                      Hm mein Melder ist genauso eingestellt und das geht super. Naja egal. Danke für die Hilfe.

                      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

                      410

                      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