Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias: Shower Events
- description: ""
- triggers:
- - trigger: template
- value_template: "{{ (states('sensor.bathroom_rate_of_change') | float ) >= 0.5 }}"
- id: shower-started
- - trigger: template
- value_template: "{{ (states('sensor.bathroom_rate_of_change') | float | abs) <= 0.3 }}"
- for:
- minutes: 10
- alias: Humidity Stable
- id: humidity-stable
- conditions: null
- actions:
- - choose:
- - conditions:
- - condition: trigger
- id:
- - shower-started
- - condition: state
- entity_id: light.bathroom_ceiling_light
- state: "on"
- sequence:
- - action: mqtt.publish
- metadata: {}
- data:
- qos: 0
- topic: ithohru/cmd
- payload: "{ rfremotecmd: 'high' }"
- alias: Set Fan to High
- - action: input_boolean.turn_on
- metadata: {}
- data: {}
- target:
- entity_id: input_boolean.shower_fan
- - condition: numeric_state
- entity_id: light.bathroom_ceiling_light
- attribute: brightness
- below: 50
- - action: light.turn_on
- metadata: {}
- data:
- transition: 120
- brightness_pct: 75
- target:
- entity_id: light.bathroom_ceiling_light
- - conditions:
- - condition: trigger
- id:
- - humidity-stable
- - condition: state
- entity_id: input_boolean.shower_fan
- state: "on"
- sequence:
- - alias: Set Fan to Auto
- action: mqtt.publish
- metadata: {}
- data:
- qos: 0
- topic: ithohru/cmd
- payload: "{ rfremotecmd: \"{{ states('input_select.fan_mode') }}\" }"
- - action: input_boolean.turn_off
- metadata: {}
- data: {}
- target:
- entity_id: input_boolean.shower_fan
- mode: single
- alias: Auto-Autonight - Fan Mode
- description: ""
- triggers:
- - at: "23:00:00"
- id: autonight-on
- trigger: time
- - at: "07:00:00"
- id: autonight-off
- trigger: time
- conditions: []
- actions:
- - choose:
- - conditions:
- - condition: trigger
- id:
- - autonight-on
- sequence:
- - choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.shower_fan
- state: "off"
- sequence:
- - action: mqtt.publish
- metadata: {}
- data:
- qos: 0
- topic: ithohru/cmd
- payload: "{ rfremotecmd: 'autonight' }"
- - action: input_select.select_option
- metadata: {}
- data:
- option: autonight
- target:
- entity_id: input_select.fan_mode
- - conditions:
- - condition: state
- entity_id: input_boolean.shower_fan
- state: "on"
- sequence:
- - action: input_select.select_option
- metadata: {}
- data:
- option: autonight
- target:
- entity_id: input_select.fan_mode
- - conditions:
- - condition: trigger
- id:
- - autonight-off
- sequence:
- - choose:
- - conditions:
- - condition: state
- entity_id: input_boolean.shower_fan
- state: "off"
- sequence:
- - action: mqtt.publish
- metadata: {}
- data:
- qos: 0
- topic: ithohru/cmd
- payload: "{ rfremotecmd: 'auto' }"
- - action: input_select.select_option
- metadata: {}
- data:
- option: auto
- target:
- entity_id: input_select.fan_mode
- - conditions:
- - condition: state
- entity_id: input_boolean.shower_fan
- state: "on"
- sequence:
- - action: input_select.select_option
- metadata: {}
- data:
- option: auto
- target:
- entity_id: input_select.fan_mode
- mode: single
Advertisement
Add Comment
Please, Sign In to add comment