Skip to content

Commit

Permalink
fix(platform): disable motion polling by default
Browse files Browse the repository at this point in the history
- switch default behaviour of motion sensors to `PUSH`
- should help with #151, reduce the load on the devices
  • Loading branch information
johannrichard committed Nov 30, 2020
1 parent b9570fb commit 710a6e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"motionPoller": {
"title": "Poll dingz Motion Sensor",
"type": "boolean",
"default": true,
"description": "By default, the dingz will be polled every 2.5 seconds for the motion state. If you disable this, the dingz will push a trigger event when motion begins and reset the motion event when the motion timer of the dingz fires at the end of the period defined in the dingz Web UI (default: 180s). While the pull puts additional strain on the dingz *and* introduces a certain lag, the push mode is dependent on the timer setting which might not be what you want."
"default": false,
"description": "By default, motion events will be triggered via the callback action. With this setting, you can change this behaviour to a `polling` mode of operation. If checked, the dingz will be polled every 2.5 seconds for the motion state. If you disable this, the dingz will push a trigger event when motion begins and reset the motion event when the motion timer of the dingz fires at the end of the period defined in the dingz Web UI (default: 180s). While the pull puts additional strain on the dingz *and* introduces a certain lag, the push mode is dependent on the timer setting which might not be what you want."
},
"autoDiscover": {
"title": "Auto-discovery of devices",
Expand Down

0 comments on commit 710a6e6

Please sign in to comment.