Compare commits
	
		
			2 commits
		
	
	
		
			
				e708ef69cf
			
			...
			
				f5e99a06d1
			
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| f5e99a06d1 | |||
| 139c8002f2 | 
					 11 changed files with 118 additions and 16 deletions
				
			
		|  | @ -6,10 +6,10 @@ This may be the case in the bedroom. | ||||||
| 
 | 
 | ||||||
| The on and off buttons work as expected. | The on and off buttons work as expected. | ||||||
| 
 | 
 | ||||||
| Pressing the on button longer toggles color and temperature mode. | Pressing the on button longer cycles temperature, color, and saturisation mode. | ||||||
| 
 | 
 | ||||||
| Pressing the brightness buttons change the brightness, | Pressing the brightness buttons change the brightness, | ||||||
| holding the brightness buttons change the color or temperature accordingly. | holding the brightness buttons change the temperature, color, and saturisation respectively. | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| ## Devices | ## Devices | ||||||
|  |  | ||||||
|  | @ -3,8 +3,8 @@ | ||||||
| 	"conditions": [ | 	"conditions": [ | ||||||
| 		{ | 		{ | ||||||
| 			"address": "/sensors/MEMORY/state/status", | 			"address": "/sensors/MEMORY/state/status", | ||||||
| 			"operator": "gt", | 			"operator": "lt", | ||||||
| 			"value": "0" | 			"value": "1" | ||||||
| 		}, | 		}, | ||||||
| 		{ | 		{ | ||||||
| 			"address": "/sensors/DIMMER/state/buttonevent", | 			"address": "/sensors/DIMMER/state/buttonevent", | ||||||
|  |  | ||||||
|  | @ -3,7 +3,7 @@ | ||||||
| 	"conditions": [ | 	"conditions": [ | ||||||
| 		{ | 		{ | ||||||
| 			"address": "/sensors/MEMORY/state/status", | 			"address": "/sensors/MEMORY/state/status", | ||||||
| 			"operator": "lt", | 			"operator": "eq", | ||||||
| 			"value": "1" | 			"value": "1" | ||||||
| 		}, | 		}, | ||||||
| 		{ | 		{ | ||||||
|  |  | ||||||
							
								
								
									
										29
									
								
								DimmerBed/dn-hold-sat.rule.json
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								DimmerBed/dn-hold-sat.rule.json
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,29 @@ | ||||||
|  | { | ||||||
|  | 	"name": "BASENAME.dn-hold-sat", | ||||||
|  | 	"conditions": [ | ||||||
|  | 		{ | ||||||
|  | 			"address": "/sensors/MEMORY/state/status", | ||||||
|  | 			"operator": "gt", | ||||||
|  | 			"value": "1" | ||||||
|  | 		}, | ||||||
|  | 		{ | ||||||
|  | 			"address": "/sensors/DIMMER/state/buttonevent", | ||||||
|  | 			"operator": "eq", | ||||||
|  | 			"value": "3001" | ||||||
|  | 		}, | ||||||
|  | 		{ | ||||||
|  | 			"address": "/sensors/DIMMER/state/lastupdated", | ||||||
|  | 			"operator": "dx" | ||||||
|  | 		} | ||||||
|  | 	], | ||||||
|  | 	"actions": [ | ||||||
|  | 		{ | ||||||
|  | 			"address": "/groups/GROUP/action", | ||||||
|  | 			"method": "PUT", | ||||||
|  | 			"body": { | ||||||
|  | 				"transitiontime": 1, | ||||||
|  | 				"sat_inc": -25 | ||||||
|  | 			} | ||||||
|  | 		} | ||||||
|  | 	] | ||||||
|  | } | ||||||
|  | @ -4,7 +4,7 @@ | ||||||
| 		{ | 		{ | ||||||
| 			"address": "/sensors/MEMORY/state/status", | 			"address": "/sensors/MEMORY/state/status", | ||||||
| 			"operator": "gt", | 			"operator": "gt", | ||||||
| 			"value": "0" | 			"value": "1" | ||||||
| 		}, | 		}, | ||||||
| 		{ | 		{ | ||||||
| 			"address": "/sensors/DIMMER/state/buttonevent", | 			"address": "/sensors/DIMMER/state/buttonevent", | ||||||
|  | @ -21,9 +21,8 @@ | ||||||
| 			"address": "/groups/GROUP/action", | 			"address": "/groups/GROUP/action", | ||||||
| 			"method": "PUT", | 			"method": "PUT", | ||||||
| 			"body": { | 			"body": { | ||||||
| 				"bri": 203, | 				"transitiontime": 1, | ||||||
| 				"hue": 60000, | 				"ct_inc": 96 | ||||||
| 				"sat": 240 |  | ||||||
| 			} | 			} | ||||||
| 		}, | 		}, | ||||||
| 		{ | 		{ | ||||||
|  |  | ||||||
|  | @ -21,8 +21,9 @@ | ||||||
| 			"address": "/groups/GROUP/action", | 			"address": "/groups/GROUP/action", | ||||||
| 			"method": "PUT", | 			"method": "PUT", | ||||||
| 			"body": { | 			"body": { | ||||||
| 				"bri": 203, | 				"transitiontime": 1, | ||||||
| 				"ct": 357 | 				"hue_inc": 40000, | ||||||
|  | 				"sat_inc": 100 | ||||||
| 			} | 			} | ||||||
| 		}, | 		}, | ||||||
| 		{ | 		{ | ||||||
|  |  | ||||||
							
								
								
									
										36
									
								
								DimmerBed/on-long-sat.rule.json
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								DimmerBed/on-long-sat.rule.json
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,36 @@ | ||||||
|  | { | ||||||
|  | 	"name": "BASENAME.on-long-sat", | ||||||
|  | 	"conditions": [ | ||||||
|  | 		{ | ||||||
|  | 			"address": "/sensors/MEMORY/state/status", | ||||||
|  | 			"operator": "eq", | ||||||
|  | 			"value": "1" | ||||||
|  | 		}, | ||||||
|  | 		{ | ||||||
|  | 			"address": "/sensors/DIMMER/state/buttonevent", | ||||||
|  | 			"operator": "eq", | ||||||
|  | 			"value": "1003" | ||||||
|  | 		}, | ||||||
|  | 		{ | ||||||
|  | 			"address": "/sensors/DIMMER/state/lastupdated", | ||||||
|  | 			"operator": "dx" | ||||||
|  | 		} | ||||||
|  | 	], | ||||||
|  | 	"actions": [ | ||||||
|  | 		{ | ||||||
|  | 			"address": "/groups/GROUP/action", | ||||||
|  | 			"method": "PUT", | ||||||
|  | 			"body": { | ||||||
|  | 				"transitiontime": 1, | ||||||
|  | 				"sat_inc": -100 | ||||||
|  | 			} | ||||||
|  | 		}, | ||||||
|  | 		{ | ||||||
|  | 			"address": "/sensors/MEMORY/state", | ||||||
|  | 			"method": "PUT", | ||||||
|  | 			"body": { | ||||||
|  | 				"status": 2 | ||||||
|  | 			} | ||||||
|  | 		} | ||||||
|  | 	] | ||||||
|  | } | ||||||
|  | @ -3,8 +3,8 @@ | ||||||
| 	"conditions": [ | 	"conditions": [ | ||||||
| 		{ | 		{ | ||||||
| 			"address": "/sensors/MEMORY/state/status", | 			"address": "/sensors/MEMORY/state/status", | ||||||
| 			"operator": "gt", | 			"operator": "lt", | ||||||
| 			"value": "0" | 			"value": "1" | ||||||
| 		}, | 		}, | ||||||
| 		{ | 		{ | ||||||
| 			"address": "/sensors/DIMMER/state/buttonevent", | 			"address": "/sensors/DIMMER/state/buttonevent", | ||||||
|  |  | ||||||
|  | @ -3,7 +3,7 @@ | ||||||
| 	"conditions": [ | 	"conditions": [ | ||||||
| 		{ | 		{ | ||||||
| 			"address": "/sensors/MEMORY/state/status", | 			"address": "/sensors/MEMORY/state/status", | ||||||
| 			"operator": "lt", | 			"operator": "eq", | ||||||
| 			"value": "1" | 			"value": "1" | ||||||
| 		}, | 		}, | ||||||
| 		{ | 		{ | ||||||
|  |  | ||||||
							
								
								
									
										29
									
								
								DimmerBed/up-hold-sat.rule.json
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								DimmerBed/up-hold-sat.rule.json
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,29 @@ | ||||||
|  | { | ||||||
|  | 	"name": "BASENAME.up-hold-sat", | ||||||
|  | 	"conditions": [ | ||||||
|  | 		{ | ||||||
|  | 			"address": "/sensors/MEMORY/state/status", | ||||||
|  | 			"operator": "gt", | ||||||
|  | 			"value": "1" | ||||||
|  | 		}, | ||||||
|  | 		{ | ||||||
|  | 			"address": "/sensors/DIMMER/state/buttonevent", | ||||||
|  | 			"operator": "eq", | ||||||
|  | 			"value": "2001" | ||||||
|  | 		}, | ||||||
|  | 		{ | ||||||
|  | 			"address": "/sensors/DIMMER/state/lastupdated", | ||||||
|  | 			"operator": "dx" | ||||||
|  | 		} | ||||||
|  | 	], | ||||||
|  | 	"actions": [ | ||||||
|  | 		{ | ||||||
|  | 			"address": "/groups/GROUP/action", | ||||||
|  | 			"method": "PUT", | ||||||
|  | 			"body": { | ||||||
|  | 				"transitiontime": 1, | ||||||
|  | 				"sat_inc": 25 | ||||||
|  | 			} | ||||||
|  | 		} | ||||||
|  | 	] | ||||||
|  | } | ||||||
							
								
								
									
										12
									
								
								LampShade.md
									
										
									
									
									
								
							
							
						
						
									
										12
									
								
								LampShade.md
									
										
									
									
									
								
							|  | @ -2,6 +2,14 @@ | ||||||
| 
 | 
 | ||||||
| * [Disco Red](http://lampshade.io/share?AfHHAAAAAKAAAA8AmACAAgBQAGTyL34AXkM-ivtAAICa_Icfl7aHr78fHACgJv_jpyDv4cvIwQAAqMn_-eS6rnkxpDIAAAowABMQZBAEKZGmULFU5QIiJQmWETFQ7AAGbRm2AIAH) | * [Disco Red](http://lampshade.io/share?AfHHAAAAAKAAAA8AmACAAgBQAGTyL34AXkM-ivtAAICa_Icfl7aHr78fHACgJv_jpyDv4cvIwQAAqMn_-eS6rnkxpDIAAAowABMQZBAEKZGmULFU5QIiJQmWETFQ7AAGbRm2AIAH) | ||||||
| 
 | 
 | ||||||
| * [Timer 20 min](http://lampshade.io/share?AQKgAWkA6A4AAAAIFoCKAXAIANIA0B0ADgFIAwCkAUACAwDQyT_4QmtT-NGmawEAdPIPvl-4Or53Nk8AAJ38g5_LYoovrJkOAEABDaJEihYxaiRoEKBAXLpQqYIti5RpxIpBiAAAAA==) | * [Off slow 2 min](http://lampshade.io/share?AQFAAQAAgC8AmABAZAA4BIACAwCTyVH54eip-SYsHgCYACAACQUNLRRIYAAAAA==) | ||||||
| 
 | 
 | ||||||
| * [Wake up 10 min](http://lampshade.io/share?AQRAAAAA4BAAFQOANABk8nm-He9bvg1bagCHmFyLH44DhG8DchGgOyb_4wuwMuBLepgDII3JsfixKQL4huBKAUgDQMBMBAkAAAA=) | * [Timer 05 min](http://lampshade.io/share?AQJAABwCgDQAAACgOwB48g8-ikUK3jcyIAAADQwAQCf_4OeymOILa6YDAFCAQCkgMpAIqwUAAA==) | ||||||
|  | 
 | ||||||
|  | * [Timer 10 min](http://lampshade.io/share?AQLAAGkA0B0AAADgEACkASANAHjyDz6KRQreNzIgAAANDABAJ__g57KY4gtrpgMAUIBBKAgGmgWjA4mgUgAAAA==) | ||||||
|  | 
 | ||||||
|  | * [Timer 20 min](http://lampshade.io/share?AQKgAWkA6A4AAAAIFoCKAXAIANIA0B0ADgFIAwCkAUAm_-CjWKTgfSMDAgDQwAAAdPIPvtDaFH606VoAAJ38g5_LYoovrJkOAEABDZIkSpYwaSJkCJAgHDpQqIAtg4RpxIpBigQAAA==) | ||||||
|  | 
 | ||||||
|  | * [Wake up 05 min](http://lampshade.io/share?AQHAAXAIAAAASANAGgAgDQBpANIAQCb_4wuwMuBLepgDII3JtfjhOED4NiAXAUhjcix-bIoAviG4UgBIm7yQb4f0mG_O0QFAGgABFEJGLFUJNGQRNm3ZtjFw0OABAAAA) | ||||||
|  | 
 | ||||||
|  | * [Wake up 10 min](http://lampshade.io/share?AQHAAWkAAAAASANAGgCQBiANADgEQCbH4semCOAbgisFQJrJC_l2SI_55hwdANJgci1-OA4Qvg3IRQBpmPyPL8DKgC_pYQ5AGgABBCIGlCRo8mALJUuVLgETFmwYAAAA) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue