Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 647aee0

Browse files
author
Dmitry Brigadirov
committed
Readme update and some spelling fixes
1 parent 80662c7 commit 647aee0

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

README.md

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,36 @@
11
# homebridge-trigger
2+
23
Homeridge Plugin for Automations Triggering
34

4-
# Why?
5+
## Why
6+
57
Devices within HomeKit newtwork can trigger actions - switches, motion and security sensors, thermostats.
68
These are value triggers including: power, brightness, contact, temperature, humidity, heating mode, battery level and so on.
79

8-
Unfortunately custom values can not be used as triggers - "Turn the lights off then power consumption exceeds 100w".
9-
But they can be used as trigger conditions! So you can make a rule like "Turn the lights off when temperature changes its value and power consumption exceeds 100w".
10+
Unfortunately custom values can not be used as triggers - "Turn the lights off when power consumption exceeds 100w".
11+
But they can be used as trigger conditions! So you can make a rule like "Turn the lights off when the temperature changes its value and power consumption exceeds 100w".
1012

11-
It lookes quite trashy and inreliable - if the temperature value does not change - the rule is not executed.
13+
It looks quite trashy and inreliable - if the temperature value does not change - the rule is not executed.
14+
15+
## How
1216

13-
# How?
1417
This is more like a hack to overcome the limitation of HomeKit not able to trigger actions on custom values. It works like that:
18+
1519
* Add a fake contact sensor that automatically triggers every n-seconds
1620
* Make a rule "Turn the lights off when FakeTrigger changes state and power consumption exceeds 100w"
1721

1822
Lets set n to 60 seconds and HomeKit will run your rule every minute.
19-
Now the cons. Need to check the impact on the iPhone's battery as it's the place where HomeKit lives (if you don't have an Apple TV).
23+
24+
Now the cons. Need to check the impact on the iPhone's battery as it's where HomeKit lives (if you don't have an Apple TV).
2025
Even with Apple TV not sure if it doesn't make you phone process the trigger every single time (hope it doesn't)
26+
Upd: after 3 months of usage I did not notice any battery lifetime change.
27+
28+
## Configuration
2129

22-
# Configuration
2330
Install homebridge-trigger plugin and add accessories to your config.json `accessories` section. Example:
24-
```
25-
"accessories": [
31+
32+
```json
33+
"accessories": [
2634
{
2735
"accessory": "FakeTrigger",
2836
"name": "Trigger every 60 sec",

0 commit comments

Comments
 (0)