From 88cd28d99f651d7757bfe65e8495a097624869cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Lov=C3=A9n?= Date: Thu, 21 Feb 2019 08:25:32 +0100 Subject: [PATCH] Added remote control to ventilation fan --- lovelace/floorplan.yaml | 4 ++++ packages/hvac.yaml | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 packages/hvac.yaml diff --git a/lovelace/floorplan.yaml b/lovelace/floorplan.yaml index 1208378..e2ae837 100644 --- a/lovelace/floorplan.yaml +++ b/lovelace/floorplan.yaml @@ -51,6 +51,10 @@ cards: # Tvättstuga {{ lamp('light.skotbord', 21, 15) }} + - type: state-icon + entity: switch.ventilation + tap_action: { action: toggle } + style: { left: 30%, top: 30% } # Utomhus {{ dimlamp('light.baksida', 35, 5) }} diff --git a/packages/hvac.yaml b/packages/hvac.yaml new file mode 100644 index 0000000..adc735f --- /dev/null +++ b/packages/hvac.yaml @@ -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