Run bathroom fan on humidity levels
This commit is contained in:
parent
ee7de3f423
commit
e515c0e07a
@ -2,12 +2,13 @@ homeassistant:
|
|||||||
customize:
|
customize:
|
||||||
package.node_anchors:
|
package.node_anchors:
|
||||||
hvac_switch: &hvac_switch switch.ventilation
|
hvac_switch: &hvac_switch switch.ventilation
|
||||||
|
hvac_sensor: &hvac_sensor sensor.badrum_humidity
|
||||||
common: &common
|
common: &common
|
||||||
package: hvac
|
package: hvac
|
||||||
|
|
||||||
automation:
|
automation:
|
||||||
- alias: HVAC - Auto off
|
- alias: HVAC - Timer off
|
||||||
initial_state: True
|
initial_state: False
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: *hvac_switch
|
entity_id: *hvac_switch
|
||||||
@ -20,3 +21,30 @@ automation:
|
|||||||
entity_id: *hvac_switch
|
entity_id: *hvac_switch
|
||||||
- service: script.info_message
|
- service: script.info_message
|
||||||
data: { message: "Stänger av takfläkt"}
|
data: { message: "Stänger av takfläkt"}
|
||||||
|
|
||||||
|
- alias: HVAC - Auto on
|
||||||
|
initial_state: True
|
||||||
|
trigger:
|
||||||
|
- platform: numeric_state
|
||||||
|
entity_id: *hvac_sensor
|
||||||
|
above: 50
|
||||||
|
action:
|
||||||
|
- service: homeassistant.turn_on
|
||||||
|
data:
|
||||||
|
entity_id: *hvac_switch
|
||||||
|
- service: script.info_message
|
||||||
|
data: { message: "Fuktigt - takfläkt på" }
|
||||||
|
- alias: HVAC - Auto off
|
||||||
|
initial_state: True
|
||||||
|
trigger:
|
||||||
|
- platform: numeric_state
|
||||||
|
entity_id: *hvac_sensor
|
||||||
|
below: 50
|
||||||
|
for:
|
||||||
|
minutes: 15
|
||||||
|
action:
|
||||||
|
- service: homeassistant.turn_off
|
||||||
|
data:
|
||||||
|
entity_id: *hvac_switch
|
||||||
|
- service: script.info_message
|
||||||
|
data: { message: "Torrt - takfläkt av" }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user