alifend910 commited on
Commit
8e28e70
·
verified ·
1 Parent(s): 252109e

Create automation_rules.json

Browse files
Files changed (1) hide show
  1. automation_rules.json +23 -0
automation_rules.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "rule_id": 1,
4
+ "condition": {
5
+ "light_level_lux": "< 100",
6
+ "motion_detected": true,
7
+ "time_range": "18:00-06:00"
8
+ },
9
+ "action": {
10
+ "lamp_status": "ON",
11
+ "brightness_percent": 75
12
+ }
13
+ },
14
+ {
15
+ "rule_id": 2,
16
+ "condition": {
17
+ "light_level_lux": ">= 300"
18
+ },
19
+ "action": {
20
+ "lamp_status": "OFF"
21
+ }
22
+ }
23
+ ]