mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-18 11:16:37 +00:00
You can find the entire repo here.
This commit is contained in:
49
config/packages/triggers/last_message.yaml
Executable file
49
config/packages/triggers/last_message.yaml
Executable file
@@ -0,0 +1,49 @@
|
||||
#-------------------------------------------
|
||||
# @CCOSTAN
|
||||
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
||||
#-------------------------------------------
|
||||
homeassistant:
|
||||
customize:
|
||||
input_boolean.lastmsg:
|
||||
friendly_name: 'Repeat Message'
|
||||
icon: mdi:repeat-once
|
||||
|
||||
hidden: False
|
||||
#-------------------------------------------
|
||||
input_boolean:
|
||||
lastmsg:
|
||||
name: Last Message
|
||||
initial: off
|
||||
#-------------------------------------------
|
||||
sensor:
|
||||
- platform: mqtt
|
||||
state_topic: "polly/lastmsg"
|
||||
name: "Last Message"
|
||||
##############################################################################
|
||||
### Automations -
|
||||
##############################################################################
|
||||
|
||||
automation:
|
||||
- alias: 'Repeat Last Message'
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_boolean.lastmsg
|
||||
to: 'on'
|
||||
|
||||
action:
|
||||
- service: tts.amazon_polly_say
|
||||
entity_id:
|
||||
- media_player.livingroomCC
|
||||
- media_player.entry_alarm_panel
|
||||
- media_player.bedroom_alarm_panel
|
||||
data_template:
|
||||
message: >
|
||||
<speak>
|
||||
{{states.sensor.last_message.state}}
|
||||
</speak>
|
||||
cache: true
|
||||
|
||||
- service: input_boolean.turn_off
|
||||
entity_id:
|
||||
- input_boolean.lastmsg
|
23
config/packages/triggers/mqtt_screens.yaml.disabled
Executable file
23
config/packages/triggers/mqtt_screens.yaml.disabled
Executable file
@@ -0,0 +1,23 @@
|
||||
#-------------------------------------------
|
||||
# @CCOSTAN
|
||||
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
||||
# More information : https://github.com/SmilyOrg/screenmqtt
|
||||
#-------------------------------------------
|
||||
homeassistant:
|
||||
customize:
|
||||
switch.computer_screens:
|
||||
friendly_name: 'Computer Screens'
|
||||
icon: mdi:monitor-multiple
|
||||
emulated_hue_hidden: False
|
||||
hidden: False
|
||||
homebridge_hidden: False
|
||||
|
||||
#-------------------------------------------
|
||||
switch:
|
||||
- platform: mqtt
|
||||
name: computer_screens
|
||||
state_topic: 'carlo-ultra/monitor/all/power/state'
|
||||
command_topic: 'carlo-ultra/monitor/all/power/command'
|
||||
|
||||
#-------------------------------------------
|
||||
#group - Added to group.interior_switches
|
66
config/packages/triggers/self_destruct.yaml
Executable file
66
config/packages/triggers/self_destruct.yaml
Executable file
@@ -0,0 +1,66 @@
|
||||
#-------------------------------------------
|
||||
# @CCOSTAN
|
||||
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
||||
#-------------------------------------------
|
||||
homeassistant:
|
||||
customize:
|
||||
input_boolean.self_destruct:
|
||||
friendly_name: 'Self Destruct'
|
||||
icon: mdi:skull
|
||||
|
||||
hidden: False
|
||||
#-------------------------------------------
|
||||
input_boolean:
|
||||
self_destruct:
|
||||
name: Self Destruct
|
||||
initial: off
|
||||
|
||||
#-------------------------------------------
|
||||
##############################################################################
|
||||
### Pretend to blow up the house..
|
||||
##############################################################################
|
||||
|
||||
automation:
|
||||
- alias: 'Self Destruct sequence'
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_boolean.self_destruct
|
||||
to: 'on'
|
||||
|
||||
action:
|
||||
- service: media_player.turn_on
|
||||
entity_id: media_player.livingroomCC
|
||||
|
||||
- service: switch.turn_on
|
||||
entity_id: switch.living_room_amp
|
||||
- delay: '00:00:05'
|
||||
|
||||
- service: media_player.volume_set
|
||||
entity_id:
|
||||
- media_player.livingroomCC
|
||||
data:
|
||||
volume_level: 0.22
|
||||
|
||||
- service: media_player.play_media
|
||||
entity_id:
|
||||
- media_player.livingroomCC
|
||||
- media_player.entry_alarm_panel
|
||||
- media_player.bedroom_alarm_panel
|
||||
data_template:
|
||||
media_content_id: >
|
||||
"https://raw.githubusercontent.com/CCOSTAN/Home-AssistantConfig/master/sounds/speechcons/self_destruct.mp3"
|
||||
media_content_type: audio/mp4
|
||||
- service: light.turn_on
|
||||
entity_id:
|
||||
- group.all_lights
|
||||
data:
|
||||
flash: long
|
||||
- service: switch.turn_off
|
||||
entity_id:
|
||||
- group.all_switches
|
||||
- service: light.turn_off
|
||||
entity_id:
|
||||
- group.all_lights
|
||||
- service: input_boolean.turn_off
|
||||
entity_id:
|
||||
- input_boolean.self_destruct
|
49
config/packages/triggers/sleepy_dog.yaml
Executable file
49
config/packages/triggers/sleepy_dog.yaml
Executable file
@@ -0,0 +1,49 @@
|
||||
#-------------------------------------------
|
||||
# @CCOSTAN
|
||||
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
||||
#-------------------------------------------
|
||||
homeassistant:
|
||||
customize:
|
||||
input_boolean.sleepy_dog:
|
||||
friendly_name: 'Sleepy Dog'
|
||||
icon: mdi:bell-sleep
|
||||
|
||||
hidden: False
|
||||
#-------------------------------------------
|
||||
input_boolean:
|
||||
sleepy_dog:
|
||||
name: Sleep Dog
|
||||
initial: off
|
||||
|
||||
#-------------------------------------------
|
||||
##############################################################################
|
||||
### Automations - Detect when things are not right. Like any Good Watchdog.
|
||||
##############################################################################
|
||||
|
||||
automation:
|
||||
- alias: 'Snooze the Dog for 30 minutes'
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_boolean.sleepy_dog
|
||||
to: 'on'
|
||||
|
||||
action:
|
||||
# Disable automation for 30 minutes
|
||||
- service: automation.turn_off
|
||||
entity_id: automation.guard_dog
|
||||
- service: input_boolean.turn_off
|
||||
entity_id: input_boolean.sleepy_dog
|
||||
- service: script.speech_engine
|
||||
data_template:
|
||||
call_no_announcement: 1
|
||||
value1: >
|
||||
{{ [
|
||||
"The dogs have been put away for the next 30 minutes.",
|
||||
"I will let sleeping dogs lie for the next 30 minutes.",
|
||||
"You will not be bothered by the sound of dogs barking for at least 30 minutes.",
|
||||
"Sleepy Dog activated. Molly is our only watch cat for the next 30 minutes."
|
||||
] |random }}
|
||||
- delay:
|
||||
minutes: 30
|
||||
- service: automation.turn_on
|
||||
entity_id: automation.guard_dog
|
Reference in New Issue
Block a user