Added remote control to ventilation fan

This commit is contained in:
Thomas Lovén 2019-02-21 08:25:32 +01:00
parent 7e460daf20
commit 88cd28d99f
2 changed files with 24 additions and 0 deletions

View File

@ -51,6 +51,10 @@ cards:
# Tvättstuga # Tvättstuga
{{ lamp('light.skotbord', 21, 15) }} {{ lamp('light.skotbord', 21, 15) }}
- type: state-icon
entity: switch.ventilation
tap_action: { action: toggle }
style: { left: 30%, top: 30% }
# Utomhus # Utomhus
{{ dimlamp('light.baksida', 35, 5) }} {{ dimlamp('light.baksida', 35, 5) }}

20
packages/hvac.yaml Normal file
View File

@ -0,0 +1,20 @@
homeassistant:
customize:
package.node_anchors:
hvac_switch: &hvac_switch switch.ventilation
common: &common
package: hvac
automation:
- alias: HVAC - Auto off
initial_state: True
trigger:
- platform: state
entity_id: *hvac_switch
to: 'on'
for:
hours: 1
action:
- service: homeassistant.turn_off
data:
entity_id: *hvac_switch