So, I’ve always wanted to get out to the shower, where a warm room temperature will be waiting for me without me needing to turn on the air conditioner manually, here’s my go on it :
- I assembled a multi sensor using the great instructions made by @bruhautomation
- I wrote the following automation to detect high humidity (hence a shower is in progress) and start the air cond
- Within 15 minutes the air cond is automatically shutdown
- Please note the condition for automation last trigger - this is to avoid false triggers caused by humidity remaining high after a shower
- alias: Turn Bedroom Air conditioner upon Shower
trigger:
- platform: template
value_template: >-
{% if states.sensor.shower_humidity %}
{% if states.sensor.shower_humidity.state | int > 95 %}
true
{% endif %}
{% endif %}
condition:
condition: and
conditions:
- condition: template
value_template: "{%if is_state_attr('climate.master_bedroom_ac', 'aux_heat', 'off') %}true{%endif%}"
- condition: template
value_template: >-
{% if states.automation.turn_bedroom_air_conditioner_upon_shower.attributes.last_triggered==None%}
true
{% else %}
{%if as_timestamp(now()) - as_timestamp(states.automation.turn_bedroom_air_conditioner_upon_shower.attributes.last_triggered) | int > 1200 %}
true
{% endif %}
{% endif %}
- condition: template
value_template: >-
{% if states.sensor.master_bedroom_current_temp %}
{% if states.sensor.master_bedroom_current_temp.state | int < 23 %}
true
{% endif %}
{% endif %}
action:
- service: climate.set_aux_heat
data:
entity_id: climate.master_bedroom_ac
aux_heat: true
- delay: '00:15:00'
- service: climate.set_aux_heat
data:
entity_id: climate.master_bedroom_ac
aux_heat: false
- platform: mqtt
state_topic: "benita/sensornode2"
name: "Shower Humidity"
unit_of_measurement: "%"
value_template: '{{ value_json.humidity | round(1) }}'