Skip to content

Instantly share code, notes, and snippets.

@Thomas-Vos
Created July 3, 2022 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Thomas-Vos/c8d9029aee793cc43926ffba8696e818 to your computer and use it in GitHub Desktop.
Save Thomas-Vos/c8d9029aee793cc43926ffba8696e818 to your computer and use it in GitHub Desktop.
"30": {
"actions": [
{
"address": "/sensors/335/state",
"body": {
"status": 1
},
"method": "PUT"
},
{
"address": "/groups/9/scenes/1/recall",
"body": {},
"method": "PUT"
}
],
"conditions": [
{
"address": "/sensors/335/state/status",
"operator": "lt",
"value": "3"
},
{
"address": "/sensors/332/state/dark",
"operator": "eq",
"value": "true"
},
{
"address": "/sensors/330/state/presence",
"operator": "eq",
"value": "true"
},
{
"address": "/sensors/330/state/presence",
"operator": "dx"
}
],
"created": "2022-07-03T14:46:33",
"etag": "32a519e881de9160e1a2fd3326a5c2e9",
"lasttriggered": "none",
"name": "Motion sensor 330 on",
"owner": "C2DA64EBCA",
"periodic": 0,
"status": "enabled",
"timestriggered": 0
},
@Thomas-Vos
Copy link
Author

/sensors/335

{
    "config": {
        "on": true,
        "reachable": true
    },
    "etag": "3a20d4fb2d15b929b570abf183fd0fdb",
    "manufacturername": "Hue Essentials",
    "modelid": "Motion sensor 330 state",
    "name": "Motion sensor 330 companion",
    "state": {
        "lastupdated": "2022-07-03T14:49:57.984",
        "status": 0
    },
    "swversion": "1.0",
    "type": "CLIPGenericStatus",
    "uniqueid": "Sb1BJYLqjExnsY0szrlNX2EpozR65Q1z"
}

/sensors/332

{
    "config": {
        "alert": "none",
        "battery": 100,
        "ledindication": false,
        "on": true,
        "pending": [],
        "reachable": true,
        "tholddark": 65534,
        "tholdoffset": 7000,
        "usertest": false
    },
    "ep": 2,
    "etag": "27f7498f17d8d6e18fbc7d4e42d6f1c5",
    "lastannounced": "2022-07-03T14:49:33Z",
    "lastseen": "2022-07-03T14:54Z",
    "manufacturername": "Philips",
    "modelid": "SML001",
    "name": "LightLevel 332",
    "state": {
        "dark": true,
        "daylight": false,
        "lastupdated": "2022-07-03T14:55:05.661",
        "lightlevel": 0,
        "lux": 0
    },
    "swversion": "6.1.1.27575",
    "type": "ZHALightLevel",
    "uniqueid": "00:17:88:01:02:13:9f:f9-02-0400"
}

/sensors/330 (this is the sensor I triggered motion)

{
    "config": {
        "alert": "none",
        "battery": 100,
        "delay": 0,
        "ledindication": false,
        "on": true,
        "pending": [],
        "reachable": true,
        "sensitivity": 2,
        "sensitivitymax": 2,
        "usertest": false
    },
    "ep": 2,
    "etag": "c9891aab730bc138b6308a908ff2035e",
    "lastannounced": "2022-07-03T14:49:33Z",
    "lastseen": "2022-07-03T14:58Z",
    "manufacturername": "Philips",
    "modelid": "SML001",
    "name": "Presence 330",
    "state": {
        "lastupdated": "2022-07-03T14:58:08.987",
        "presence": true
    },
    "swversion": "6.1.1.27575",
    "type": "ZHAPresence",
    "uniqueid": "00:17:88:01:02:13:9f:f9-02-0406"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment