Guest User

Untitled

a guest
Nov 6th, 2024
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.65 KB | None | 0 0
  1. alias: Shower Events
  2. description: ""
  3. triggers:
  4. - trigger: template
  5. value_template: "{{ (states('sensor.bathroom_rate_of_change') | float ) >= 0.5 }}"
  6. id: shower-started
  7. - trigger: template
  8. value_template: "{{ (states('sensor.bathroom_rate_of_change') | float | abs) <= 0.3 }}"
  9. for:
  10. minutes: 10
  11. alias: Humidity Stable
  12. id: humidity-stable
  13. conditions: null
  14. actions:
  15. - choose:
  16. - conditions:
  17. - condition: trigger
  18. id:
  19. - shower-started
  20. - condition: state
  21. entity_id: light.bathroom_ceiling_light
  22. state: "on"
  23. sequence:
  24. - action: mqtt.publish
  25. metadata: {}
  26. data:
  27. qos: 0
  28. topic: ithohru/cmd
  29. payload: "{ rfremotecmd: 'high' }"
  30. alias: Set Fan to High
  31. - action: input_boolean.turn_on
  32. metadata: {}
  33. data: {}
  34. target:
  35. entity_id: input_boolean.shower_fan
  36. - condition: numeric_state
  37. entity_id: light.bathroom_ceiling_light
  38. attribute: brightness
  39. below: 50
  40. - action: light.turn_on
  41. metadata: {}
  42. data:
  43. transition: 120
  44. brightness_pct: 75
  45. target:
  46. entity_id: light.bathroom_ceiling_light
  47. - conditions:
  48. - condition: trigger
  49. id:
  50. - humidity-stable
  51. - condition: state
  52. entity_id: input_boolean.shower_fan
  53. state: "on"
  54. sequence:
  55. - alias: Set Fan to Auto
  56. action: mqtt.publish
  57. metadata: {}
  58. data:
  59. qos: 0
  60. topic: ithohru/cmd
  61. payload: "{ rfremotecmd: \"{{ states('input_select.fan_mode') }}\" }"
  62. - action: input_boolean.turn_off
  63. metadata: {}
  64. data: {}
  65. target:
  66. entity_id: input_boolean.shower_fan
  67. mode: single
  68.  
  69.  
  70. alias: Auto-Autonight - Fan Mode
  71. description: ""
  72. triggers:
  73. - at: "23:00:00"
  74. id: autonight-on
  75. trigger: time
  76. - at: "07:00:00"
  77. id: autonight-off
  78. trigger: time
  79. conditions: []
  80. actions:
  81. - choose:
  82. - conditions:
  83. - condition: trigger
  84. id:
  85. - autonight-on
  86. sequence:
  87. - choose:
  88. - conditions:
  89. - condition: state
  90. entity_id: input_boolean.shower_fan
  91. state: "off"
  92. sequence:
  93. - action: mqtt.publish
  94. metadata: {}
  95. data:
  96. qos: 0
  97. topic: ithohru/cmd
  98. payload: "{ rfremotecmd: 'autonight' }"
  99. - action: input_select.select_option
  100. metadata: {}
  101. data:
  102. option: autonight
  103. target:
  104. entity_id: input_select.fan_mode
  105. - conditions:
  106. - condition: state
  107. entity_id: input_boolean.shower_fan
  108. state: "on"
  109. sequence:
  110. - action: input_select.select_option
  111. metadata: {}
  112. data:
  113. option: autonight
  114. target:
  115. entity_id: input_select.fan_mode
  116. - conditions:
  117. - condition: trigger
  118. id:
  119. - autonight-off
  120. sequence:
  121. - choose:
  122. - conditions:
  123. - condition: state
  124. entity_id: input_boolean.shower_fan
  125. state: "off"
  126. sequence:
  127. - action: mqtt.publish
  128. metadata: {}
  129. data:
  130. qos: 0
  131. topic: ithohru/cmd
  132. payload: "{ rfremotecmd: 'auto' }"
  133. - action: input_select.select_option
  134. metadata: {}
  135. data:
  136. option: auto
  137. target:
  138. entity_id: input_select.fan_mode
  139. - conditions:
  140. - condition: state
  141. entity_id: input_boolean.shower_fan
  142. state: "on"
  143. sequence:
  144. - action: input_select.select_option
  145. metadata: {}
  146. data:
  147. option: auto
  148. target:
  149. entity_id: input_select.fan_mode
  150. mode: single
  151.  
  152.  
Advertisement
Add Comment
Please, Sign In to add comment