New Automations

This commit is contained in:
Philipp 2022-08-08 19:22:56 +02:00
parent 2d9bb60b57
commit a62d41d3eb
8 changed files with 183 additions and 44 deletions

View File

@ -10,7 +10,34 @@
icon: "mdi:lightbulb" #OPTIONAL
name: LivingRoom
color: "blue"
entity_2:
entity_id: sensor.livingroom_temp_temperature
icon: "mdi:lightbulb" #OPTIONAL
name: Temp
color: "green"
- type: horizontal-stack
cards:
- type: "custom:button-card"
template: card_person
entity: device_tracker.pfsense_blutwurst1_de_galaxy_s21_ultra_5g_blutwurst1_de
variables:
ulm_card_person_entity: device_tracker.pfsense_blutwurst1_de_galaxy_s21_ultra_5g_blutwurst1_de
ulm_card_person_use_entity_picture: true
ulm_card_person_icon: mdi:face-man
#ulm_card_person_zone1: zone.home
#ulm_address: sensor.s10_mike_gegeocodeerde_locatie
- type: "custom:button-card"
template: card_person
entity: person.toni
variables:
ulm_card_person_entity: person.toni
ulm_card_person_use_entity_picture: true
ulm_card_person_icon: mdi:face-woman
#ulm_card_person_zone1: zone.home
#ulm_address: sensor.s10_mike_gegeocodeerde_locatie
- type: custom:weather-card
entity: weather.pirateweather

View File

@ -19,6 +19,15 @@
ulm_card_light_force_background_color: true
ulm_card_light_name: Bedroom
ulm_card_light_enable_collapse: true
- type: "custom:button-card"
template: card_light
entity: light.ikea_of_sweden_tradfri_driver_10w_light
variables:
ulm_card_light_enable_slider: true
ulm_card_light_enable_color: true
ulm_card_light_force_background_color: true
ulm_card_light_name: Office Led
ulm_card_light_enable_collapse: true
- type: "horizontal-stack"
cards:

View File

@ -2,48 +2,56 @@
template: card_title
name: ZigBee
label: Sensors
- type: 'custom:button-card'
template: card_binary_sensor_alert
variables:
ulm_card_binary_sensor_alert: true
ulm_show_last_changed: true
ulm_card_binary_sensor_alert_name : "Garden Door"
entity: binary_sensor.livingroom_door_garden_iaszone
- type: 'custom:button-card'
template: card_binary_sensor_alert
variables:
ulm_card_binary_sensor_alert: true
ulm_show_last_changed: true
ulm_card_binary_sensor_alert_name : "Freezer"
entity: binary_sensor.livingroom_freezer_iaszone
- type: 'custom:button-card'
template: card_binary_sensor_alert
variables:
ulm_card_binary_sensor_alert: true
ulm_show_last_changed: true
ulm_card_binary_sensor_alert_name : "Bathroom Window"
entity: binary_sensor.bathroom_window_iaszone
- type: 'custom:button-card'
template: card_binary_sensor_alert
variables:
ulm_card_binary_sensor_alert: true
ulm_show_last_changed: true
ulm_card_binary_sensor_alert_name : "Mailbox"
entity: binary_sensor.mailbox_door_iaszone
- type: 'custom:button-card'
template: card_binary_sensor_alert
variables:
ulm_card_binary_sensor_alert: true
ulm_show_last_changed: true
ulm_card_binary_sensor_alert_name : "Hallway Motion"
entity: binary_sensor.hallway_motion_iaszone
- type: 'custom:button-card'
template: card_binary_sensor_alert
variables:
ulm_card_binary_sensor_alert: true
ulm_show_last_changed: true
ulm_card_binary_sensor_alert_name : "Mailbox Motion"
entity: binary_sensor.mailbox_motion_iaszone
- type: horizontal-stack
cards:
- type: 'custom:button-card'
template: card_binary_sensor_alert
variables:
ulm_card_binary_sensor_alert: true
ulm_show_last_changed: true
ulm_card_binary_sensor_alert_name : "Garden Door"
entity: binary_sensor.livingroom_door_garden_iaszone
- type: 'custom:button-card'
template: card_binary_sensor_alert
variables:
ulm_card_binary_sensor_alert: true
ulm_show_last_changed: true
ulm_card_binary_sensor_alert_name : "Freezer"
entity: binary_sensor.livingroom_freezer_iaszone
- type: horizontal-stack
cards:
- type: 'custom:button-card'
template: card_binary_sensor_alert
variables:
ulm_card_binary_sensor_alert: true
ulm_show_last_changed: true
ulm_card_binary_sensor_alert_name : "Bathroom Window"
entity: binary_sensor.bathroom_window_iaszone
- type: 'custom:button-card'
template: card_binary_sensor_alert
variables:
ulm_card_binary_sensor_alert: true
ulm_show_last_changed: true
ulm_card_binary_sensor_alert_name : "Mailbox"
entity: binary_sensor.mailbox_door_iaszone
- type: horizontal-stack
cards:
- type: 'custom:button-card'
template: card_binary_sensor_alert
variables:
ulm_card_binary_sensor_alert: true
ulm_show_last_changed: true
ulm_card_binary_sensor_alert_name : "Hallway Motion"
entity: binary_sensor.hallway_motion_iaszone
- type: 'custom:button-card'
template: card_binary_sensor_alert
variables:
ulm_card_binary_sensor_alert: true
ulm_show_last_changed: true
ulm_card_binary_sensor_alert_name : "Mailbox Motion"
entity: binary_sensor.mailbox_motion_iaszone
- type: 'custom:button-card'
template: card_graph
entity: sensor.livingroom_temp_temperature

View File

@ -0,0 +1,48 @@
automation:
#bathroom window opened for 10 min
- alias: bathroom_window_ventilating
trigger:
- device_id: 85dbfa4e5a7ad4dcc73d74b8f051647b
domain: binary_sensor
type: opened
platform: device
entity_id: binary_sensor.bathroom_window_iaszone
for:
hours: 0
minutes: 10
seconds: 0
action:
- service: notify.notify #mobile_app_sm_g998b
data:
message: reicht auch mit dem lüften!
title: Badezimmer
#- service: notify.mobile_app_tonis_iphone
# data:
# message: reicht auch mit dem lüften!
# title: Badezimmer
- service: persistent_notification.create
data:
message: "Your message goes here"
title: "Custom subject"
notification_id: 1
#freezer open for 5 min
- alias: livingroom_freezer_opened
trigger:
- device_id: b8119ef2d21afde8394d70373bb9621e
domain: binary_sensor
type: opened
platform: device
entity_id: binary_sensor.bathroom_window_iaszone
for:
hours: 0
minutes: 5
seconds: 0
action:
- service: notify.mobile_app_sm_g998b
data:
message: ist noch offen!
title: Freezer
- service: notify.mobile_app_tonis_iphone
data:
message: ist noch offen!
title: Freezer

View File

@ -0,0 +1,7 @@
# Example configuration.yaml entry
notify:
- platform: html5
name: web_notify
vapid_pub_key: !secret vapid_pub_key
vapid_prv_key: !secret vapid_prv_key
vapid_email: !secret vapid_email

View File

@ -1,4 +1,4 @@
#Guest Room Light
#Guest Room Button Light
automation:
- alias: guestroom_light_button
trigger:
@ -11,4 +11,30 @@ automation:
- type: toggle
device_id: 1fcba92f6a53183e10c1dc35a9bb82ce
entity_id: light.guestroom_switch_lamp
domain: light
#Bedroom Button Light
- alias: bedroom_light_button
trigger:
- device_id: 5eaa44bd80bff72ec68727486d1259cd
domain: zha
platform: device
type: remote_button_short_press
subtype: button
action:
- type: toggle
device_id: e0e71e574631d1fd7ebf960b883d1b6f
entity_id: light.bedroom_bulb_light
domain: light
# Office Button Light
- alias: office_light_button
trigger:
- device_id: ab68a51751fcc28c6576ba467a77581d
domain: zha
platform: device
type: remote_button_short_press
subtype: button
action:
- type: toggle
device_id: ce016fbf6d9602740bbabe1fe9915c88
entity_id: light.office_bulb
domain: light

14
packages/sockets/socket.yaml Executable file
View File

@ -0,0 +1,14 @@
#Office Steckdosenleiste
automation:
- alias: office_light_socket
trigger:
- device_id: ab68a51751fcc28c6576ba467a77581d
domain: zha
platform: device
type: remote_button_long_press
subtype: button
action:
- type: toggle
device_id: 343b205f3ed48a715e59c5490050150f
entity_id: light.office_switch_socket
domain: light