Inital Commit
This commit is contained in:
21
automations/main_viera_tv_automations.yaml
Normal file
21
automations/main_viera_tv_automations.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
- id: "1630652622875"
|
||||
alias: Turn off Main TV
|
||||
description: ""
|
||||
trigger:
|
||||
- platform: mqtt
|
||||
topic: viewroad-commands/maintv/action
|
||||
payload: "OFF"
|
||||
condition: []
|
||||
action:
|
||||
#- type: toggle
|
||||
# device_id: d75c9f1db62bd7d599394dfcacedfa61
|
||||
# entity_id: remote.viera_gt30_series
|
||||
# domain: remote
|
||||
- alias: "Send remote command (Power) to TV"
|
||||
service: remote.send_command
|
||||
data:
|
||||
command: "Power"
|
||||
target:
|
||||
#device_id: d75c9f1db62bd7d599394dfcacedfa61
|
||||
entity_id: remote.viera_gt30_series
|
||||
mode: single
|
10
automations/quiet_time_settings.yaml
Normal file
10
automations/quiet_time_settings.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
- id: quiet_time_settings_to_mqtt
|
||||
alias: Publish quiet time value to mqtt
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: input_boolean.quiet_time
|
||||
action:
|
||||
service: mqtt.publish
|
||||
data_template:
|
||||
payload: "{{trigger.to_state.state}}"
|
||||
topic: viewroad-status/homeassistant/quiet-time
|
26
automations/random_actions_security.yaml
Normal file
26
automations/random_actions_security.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
- id: do_random_actions_when_away
|
||||
alias: Activate Random Actions for Security
|
||||
mode: parallel # Enable parallel executions
|
||||
trigger:
|
||||
- platform: time_pattern
|
||||
minutes: /5
|
||||
condition:
|
||||
alias: "Away routine active, nearly sunset, and all family not home"
|
||||
condition: and
|
||||
conditions:
|
||||
- condition: sun
|
||||
after: sunset
|
||||
after_offset: -00:30:00 #30 mins before
|
||||
- condition: state
|
||||
entity_id: input_boolean.away_occupied_routine
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: group.family_away
|
||||
state: "not_home"
|
||||
action:
|
||||
service: script.light_duration
|
||||
data:
|
||||
# Pass randomly selected light from "group.simulation_lights" as script variable "light"
|
||||
light: "{{states.group.simulation_lights.attributes.entity_id | random}}"
|
||||
# random value between 5 & 29
|
||||
duration: "00:{{ '{:02}'.format(range(5,29) | random | int) }}:00"
|
15
automations/weekly_battery_notifications_check.yaml
Normal file
15
automations/weekly_battery_notifications_check.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
- id: "1635929281159"
|
||||
alias: Weekly Low battery level detection
|
||||
description: ""
|
||||
use_blueprint:
|
||||
path: sbyx/low-battery-level-detection-notification-for-all-battery-sensors.yaml
|
||||
input:
|
||||
day: 1
|
||||
time: "21:00:00"
|
||||
actions:
|
||||
- service: notify.pushover_notifications
|
||||
data:
|
||||
message: >
|
||||
Weekly Battery Check. Low Devices:
|
||||
{{sensors}}
|
||||
title: View Road Sensors
|
32
automations/zigbee_low_battery_notifications_2.yaml
Normal file
32
automations/zigbee_low_battery_notifications_2.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
- id: notify_if_batteries_are_low
|
||||
alias: Daily alert that zigbee batteries Are Low
|
||||
initial_state: true
|
||||
trigger:
|
||||
- platform: time
|
||||
at: "19:00:00"
|
||||
condition:
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: template
|
||||
value_template: >
|
||||
{% set min_battery_level = 20 -%}
|
||||
{% set ns = namespace(found=false) -%}
|
||||
{% for entity_id in states.group.battery_levels.attributes.entity_id -%}
|
||||
{% set parts = entity_id.split('.') -%}
|
||||
{% if (states(entity_id) | replace("%","") | int) < min_battery_level -%}
|
||||
{% set ns.found = true -%}
|
||||
{% endif -%}
|
||||
{% endfor -%}
|
||||
{{ ns.found }}
|
||||
action:
|
||||
- service: notify.pushover_notifications
|
||||
data:
|
||||
title: View Road Sensors
|
||||
message: >
|
||||
{%- set min_battery_level = 20 -%}
|
||||
{%- for entity_id in states.group.battery_levels.attributes.entity_id -%}
|
||||
{%- set parts = entity_id.split('.') -%}
|
||||
{%- if (states(entity_id) | replace("%","") | int) < min_battery_level -%}
|
||||
{{ states[parts[0]][parts[1]].name }} level is {{ states(entity_id) }}%.{{ '\n' }}
|
||||
{%- endif -%}
|
||||
{%- endfor -%}
|
Reference in New Issue
Block a user