dresden-elektronik / phoscon-app-beta

Access to Phoscon app beta
78 stars 5 forks source link

Hue motion sensor light detection not respected #206

Closed max3-2 closed 3 years ago

max3-2 commented 3 years ago

Describe the question or issue you are having

Paired a Hue motion sensor with Phoscon. This is running in a room with a ceiling light. I want to only turn on the light when the ceiling light is off, e.g. the room is dark. I adjusted tholddark and tholdoffset so that the sensor shows dark : false and daylight : true If the ceiling light is on. Even though., the sensor triggers (icon in Phoscon) and the connected group lights up and starts the motion sensor mode.

Environment

Vanilla updated deconz (service), phoscon, RPi, RaspBee II

max3-2 commented 3 years ago

Attaching my GET sensors with the three elements form the sensor in a state where it should not trigger due to ambient light but it does...Also screenshots from the setup in phoscon. Hoping anyone can help or at least hast the same issue or setup?? ---removed clutter, see below---

  "17": {
    "config": {
      "alert": "none",
      "battery": 100,
      "ledindication": false,
      "on": true,
      "pending": [
      ],
      "reachable": true,
      "tholddark": 7500,
      "tholdoffset": 3000,
      "usertest": false
    },
    "ep": 2,
    "etag": "306f4c1ef7a87fe96a11da075271a3cf",
    "lastseen": "2020-09-19T09:17Z",
    "manufacturername": "Philips",
    "modelid": "SML001",
    "name": "Bewegungsmelder Bad",
    "state": {
      "dark": false,
      "daylight": true,
      "lastupdated": "2020-09-19T09:17:07.872",
      "lightlevel": 22521,
      "lux": 179
    },
    "swversion": "6.1.0.18912",
    "type": "ZHALightLevel",
    "uniqueid": "00:17:88:01:08:65:94:f5-02-0400"
  },
max3-2 commented 3 years ago

A last bump - I cant be the only one running Hue motion sensors .... still not finding any way forward. The sensor triggers as above but phoscon turns the group on even though daylight is true...

Mimiix commented 3 years ago

This is a Phoscon issue(mostly), not a deCONZ issue. Moving the issue.

max3-2 commented 3 years ago

This was actually a quite easy fix after some time looking into rules. When searching the created rules, identify the pir-......-start for the group in question and add the sensors values using PUT and eq as additional conditions. After deleting and (re-)creating a rule, this has to be done again. Edits from PHOSCON seem to be PUT and thus do not interfere with the custom edits performed.

I still think this might a an interesting feature like a checkbox "Consider local sensor light level" - Is this the place to submit sort of a feature request? The backend API command is easy as stated above if the sensor has ZHALuminance

YKO-de commented 3 years ago

I will include the idea in the future planning of the app. And you are welcome to contribute ideas under phoscon-app-beta.