So I have moved to Deconz recently and whilst it’s been working great I have been suffering with too many false positives because the sensitivity of the Hue motion sensors is too high.
So what I did to remedy this was:
-
Discover the API key which Home Assistant is using to access Deconz. This can be found in the config/.storage/core.config_entries file. Search for "deconz"
and then you’ll find the "api_key"
. You could of course create a new api key in Deconz but for me I only needed to make this change once.
-
Download a REST tool for Chrome - I am using YARC - Yet Another Rest Client
-
Open YARC and in the URL field type http://<deconz-ip-address>:<deconz-http-port-number>/api/<api_key>/sensors
and make a GET request.
-
You’ll then be presented with a list of sensors. Search the JSON output for “sensitivity”. Mine were al lset to 2. Make note of the id number in the example below it is sensor id 5.
"5": {
"config": {
"alert": "none",
"battery": 100,
"delay": 0,
"ledindication": false,
"on": true,
"pending": [],
"reachable": true,
"sensitivity": 2,
"sensitivitymax": 2,
"usertest": false
},
"ep": 2,
"etag": "<removed>",
"manufacturername": "Philips",
"modelid": "SML001",
"name": "Landing Motion Sensor",
"state": {
"lastupdated": "2019-09-17T08:45:54",
"presence": false
},
"swversion": "6.1.1.27575",
"type": "ZHAPresence",
"uniqueid": "<removed>"
},
- Change the URL to h
ttp://<deconz-ip-address>:<deconz-http-port-number>/api/<api_key>/sensors/<sensor_id>/config
, add the JSON payload and choose a PUT request.
{
"sensitivity": 1,
}
- Verify the change has been made by making a GET request to
http://<deconz-ip-address>:<deconz-http-port-number>/api/<api_key>/sensors/<sensor_id>
{
"config": {
"alert": "none",
"battery": 100,
"delay": 0,
"ledindication": false,
"on": true,
"pending": [],
"reachable": true,
"sensitivity": 1,
"sensitivitymax": 2,
"usertest": false
},
"ep": 2,
"etag": "<removed>",
"manufacturername": "Philips",
"modelid": "SML001",
"name": "Landing Motion Sensor",
"state": {
"lastupdated": "2019-09-17T08:55:52",
"presence": false
},
"swversion": "6.1.1.27575",
"type": "ZHAPresence",
"uniqueid": "<removed>"
}
I hope this helps other people on the forums.