added automations and shopping list alert
This commit is contained in:
parent
fb1ad1eca7
commit
7fa8929e8f
7
Makefile
7
Makefile
@ -1,4 +1,4 @@
|
|||||||
.PHONY: default all ui-minimalist config sensors
|
.PHONY: default all ui-minimalist config sensors automations
|
||||||
|
|
||||||
NAMESPACE := home-assistant
|
NAMESPACE := home-assistant
|
||||||
POD_ID := $(shell kubectl -n home-assistant get pod --selector=app.kubernetes.io/name=home-assistant --template "{{range .items}}{{.metadata.name}}{{\"\n\"}}{{end}}")
|
POD_ID := $(shell kubectl -n home-assistant get pod --selector=app.kubernetes.io/name=home-assistant --template "{{range .items}}{{.metadata.name}}{{\"\n\"}}{{end}}")
|
||||||
@ -6,7 +6,7 @@ CONFIG_FILES := configuration.yaml secrets.yaml input_boolean.yaml ui-lovelace.y
|
|||||||
|
|
||||||
default: all
|
default: all
|
||||||
|
|
||||||
all: ui-minimalist config sensors
|
all: ui-minimalist config sensors automations
|
||||||
|
|
||||||
config:
|
config:
|
||||||
for FILE in $(CONFIG_FILES); do \
|
for FILE in $(CONFIG_FILES); do \
|
||||||
@ -18,3 +18,6 @@ ui-minimalist:
|
|||||||
|
|
||||||
sensors:
|
sensors:
|
||||||
kubectl cp sensors $(NAMESPACE)/$(POD_ID):/config
|
kubectl cp sensors $(NAMESPACE)/$(POD_ID):/config
|
||||||
|
|
||||||
|
automations:
|
||||||
|
kubectl cp automations $(NAMESPACE)/$(POD_ID):/config
|
||||||
|
11
automations/shoppinglist.yaml
Normal file
11
automations/shoppinglist.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
alias: shopping list alert
|
||||||
|
trigger:
|
||||||
|
- platform: zone
|
||||||
|
zone: zone.coop
|
||||||
|
entity_id:
|
||||||
|
- person.jonas
|
||||||
|
action:
|
||||||
|
- service: notify.gotify_1
|
||||||
|
data:
|
||||||
|
title: Inköpslitan!
|
||||||
|
message: Glöm inte bort att kolla inköpslistan
|
@ -54,8 +54,18 @@ http:
|
|||||||
mqtt:
|
mqtt:
|
||||||
discovery_prefix: homeassistant
|
discovery_prefix: homeassistant
|
||||||
|
|
||||||
|
notify:
|
||||||
|
- name: gotify_1
|
||||||
|
platform: rest
|
||||||
|
resource: http://gotify/message
|
||||||
|
method: POST_JSON
|
||||||
|
headers:
|
||||||
|
X-Gotify-Key: !secret gotify_app_key
|
||||||
|
message_param_name: message
|
||||||
|
title_param_name: title
|
||||||
|
|
||||||
zone: !secret zones
|
zone: !secret zones
|
||||||
automation: !include automations.yaml
|
automation: !include_dir_list automations
|
||||||
script: !include scripts.yaml
|
script: !include scripts.yaml
|
||||||
scene: !include scenes.yaml
|
scene: !include scenes.yaml
|
||||||
input_boolean: !include input_boolean.yaml
|
input_boolean: !include input_boolean.yaml
|
||||||
|
Loading…
Reference in New Issue
Block a user