You can find the entire repo here.

This commit is contained in:
ccostan
2018-02-28 19:43:00 -05:00
parent ddcf503781
commit 40f8fd2edc
263 changed files with 0 additions and 194 deletions

View 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

View 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

View 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

View 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