Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. #### Normal use: start at 6:00 am
  2.  
  3. [rest]
  4. host = "openhab.example.com"
  5. port = 8080
  6.  
  7. [monitor]
  8. item = "morning_alarm_running"
  9. initialize = "ON"
  10. stop_on = "OFF"
  11. finalize = "OFF"
  12.  
  13. ### Phase 1 - 6:00
  14. ##
  15. ## Gradually brighten lights, hitting target brightness at 6:15.
  16. ##
  17. ## Target is 50% for room light, 75% for nightstand, since the nightstand
  18. ## light is less bright overall. Similarly, don't start the room light
  19. ## until 6:05, letting the nightstand start things off very gently.
  20. ##
  21. ## At the same time, shift the nightstand color temperature from 2500K up
  22. ## to about 5000K, simulating sunrise.
  23.  
  24. [[changes]]
  25. item = "phil_nightstand_color_temperature"
  26. end_value = 100
  27.  
  28. [[changes]]
  29. item = "phil_nightstand_light"
  30. start_value = [0, 0, 0]
  31. duration = 900
  32. end_value = [0, 0, 75]
  33.  
  34. [[changes]]
  35. item = "bedroom_light"
  36. start_value = 0
  37. start_time = 300
  38. duration = 600
  39. end_value = 50
  40.  
  41. [[changes]]
  42. item = "phil_nightstand_color_temperature"
  43. start_time = 300
  44. duration = 600
  45. end_value = 62
  46.  
  47. ### Phase 1.5 - 6:30
  48. ##
  49. ## Bring all of the lights up to full brightness.
  50.  
  51. [[changes]]
  52. item = "bedroom_lights"
  53. start_time = 1800
  54. end_value = 100
  55.  
  56. ### Phase 2 - 7:10
  57. ##
  58. ## Turn the nightstand green, indicating time to definitely be out of bed.
  59. ## Gradually shift toward red, hitting full red at 7:50 (ten minutes after
  60. ## target departure time).
  61.  
  62. [[changes]]
  63. item = "phil_nightstand_light"
  64. start_time = 4200
  65. duration = 2400
  66. start_value = [120, 50, 100]
  67. end_value = [0, 100, 100]
  68.  
  69. ### Phase 3 - 8:00
  70. ##
  71. ## Turn everything off. Reset nightstand to 0% saturation (white light).
  72.  
  73. [[changes]]
  74. item = "bedroom_lights"
  75. start_time = 7200
  76. end_value = "OFF"
  77.  
  78. [[changes]]
  79. item = "phil_nightstand_light"
  80. start_time = 7200
  81. end_value = [0, 0, 0]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement