From f479b73b603a3c2dbf4441ae686bf1da75c0a774 Mon Sep 17 00:00:00 2001 From: darthsandmann Date: Mon, 8 Aug 2022 22:47:32 +0200 Subject: [PATCH] updates --- packages/light/night.yaml | 26 ++++++++++++++++++++++++++ packages/notifications.yaml | 6 ++++++ 2 files changed, 32 insertions(+) create mode 100644 packages/light/night.yaml create mode 100644 packages/notifications.yaml diff --git a/packages/light/night.yaml b/packages/light/night.yaml new file mode 100644 index 0000000..54ebb82 --- /dev/null +++ b/packages/light/night.yaml @@ -0,0 +1,26 @@ +input_boolean: + lights_needed: + name: Lights needed + initial: false + +automation: + - alias: lights_needed + mode: single + trigger: + - platform: time_pattern + minutes: "10" + action: + - if: + - condition: sun + before: sunrise + before_offset: "+01:00" + after: sunset + after_offset: "-01:00" + then: + - service: input_boolean.turn_on + target: + entity_id: input_boolean.lightsneeded + else: + - service: input_boolean.turn_off + target: + entity_id: input_boolean.lightsneeded \ No newline at end of file diff --git a/packages/notifications.yaml b/packages/notifications.yaml new file mode 100644 index 0000000..2d56b73 --- /dev/null +++ b/packages/notifications.yaml @@ -0,0 +1,6 @@ +notify: + - platform: html5 + name: browser + vapid_pub_key: !secret google_api_pub + vapid_prv_key: !secret google_api_priv + vapid_email: !secret google_api_email \ No newline at end of file