Added in Some Garadget Goodness!

This commit is contained in:
CCOSTAN
2016-11-21 19:42:06 +00:00
parent 3c5756a766
commit bcac19ab69
12 changed files with 117 additions and 80 deletions

View File

@@ -1,16 +1,3 @@
- alias: turn_it_off_after_10m
trigger:
- platform: state
entity_id: light.bedroom
state: 'on'
for: '00:10:00'
condition:
...
action:
- service: light.turn_off
data_template:
entity_id: "{{ trigger.entity_id }}"
- alias: 'Get Random Time' - alias: 'Get Random Time'
trigger: trigger:

View File

@@ -0,0 +1,21 @@
##############################################################################
### Detect when things are on and forgotten about.
##############################################################################
- alias: Printer on for more than 35 minutes
trigger:
- platform: state
entity_id: switch.printer_outlet
state: 'on'
for: '00:35:00'
#Turn it off twice for good measure!
action:
- service: switch.turn_off
data_template:
entity_id: "{{ trigger.entity_id }}"
- delay: 00:01:00
- service: switch.turn_off
data_template:
entity_id: "{{ trigger.entity_id }}"

26
automation/ifttt_printer.yaml Executable file
View File

@@ -0,0 +1,26 @@
###################################
## Turn on/off Printer via ALexa/IFTTT event. Turn off automatically after 20 minutes
###################################
- alias: 'IFTTT Turn Printer on'
trigger:
- platform: event
event_type: printer_on
action:
- service: switch.turn_on
entity_id: switch.printer_outlet
- delay: 00:20:00
- service: switch.turn_off
entity_id: switch.printer_outlet
- alias: 'IFTTT Turn Printer off'
trigger:
- platform: event
event_type: printer_off
action:
- service: switch.turn_off
entity_id: switch.printer_outlet

8
automation/switches.yaml Executable file
View File

@@ -0,0 +1,8 @@
Switches:
entities:
- switch.halloween_lights_den
- switch.halloween_lights_dining_room
- switch.foyer_outlet
- switch.kitchen_Accents
- switch.printer_outlet

View File

@@ -77,6 +77,18 @@ media_player:
platform: cast platform: cast
host: 192.168.10.105 host: 192.168.10.105
cover:
platform: garadget
covers:
3c003a001151353338363333:
username: !secret garadget_username
password: !secret garadget_password
name: Garadget Large
2a003f001751353432393433:
username: !secret garadget_username
password: !secret garadget_password
name: Garadget Small
sensor: !include_dir_merge_list sensor sensor: !include_dir_merge_list sensor
automation: !include_dir_merge_list automation automation: !include_dir_merge_list automation
scene: !include_dir_merge_list scene scene: !include_dir_merge_list scene

8
customize/garadget.yaml Executable file
View File

@@ -0,0 +1,8 @@
sensor.garadget_small_time_in_state:
icon: mdi:timer-sand
sensor.garadget_small_wifi_signal_strength:
icon: mdi:wifi
sensor.garadget_large_time_in_state:
icon: mdi:timer-sand
sensor.garadget_large_wifi_signal_strength:
icon: mdi:wifi

View File

@@ -16,4 +16,4 @@ Interior Lights:
Outdoor Lights: Outdoor Lights:
entities: entities:
- light.outdoor_foyer - light.outdoor_foyer
- light.Outdoor_bathroom - light.outdoor_bathroom

11
group/garage.yaml Executable file
View File

@@ -0,0 +1,11 @@
garage_doors:
name: Garage doors
entities:
- cover.garadget_large
- sensor.garadget_large_status
- sensor.garadget_large_time_in_state
- sensor.garadget_large_wifi_signal_strength
- cover.garadget_small
- sensor.garadget_small_status
- sensor.garadget_small_time_in_state
- sensor.garadget_small_wifi_signal_strength

View File

@@ -1,26 +0,0 @@
Holiday lights:
entities:
- switch.halloween_lights_den
- switch.halloween_lights_dining_room
- switch.foyer_outlet
#########################################
### Pumpkin lights used in ###
### holiday / late night helper & ###
### Good_night ###
#########################################
Halloween_Flasher:
entities:
- light.couch_1
- light.couch_2
- light.couch_tv
- light.den_lamp
- light.foyer_door
- light.foyer
- light.office_lamp
- light.sconce_1
- light.sconce_2
- light.sconce_3
- light.sconce_4

View File

@@ -8,10 +8,8 @@ default_view:
- group.family - group.family
- group.weather - group.weather
- group.amps - group.amps
- group.holiday
- group.Bedroom_lights - group.Bedroom_lights
- group.Kitchen_lights - group.Kitchen_lights
- switch.kitchen_accents
- group.Dinette_lights - group.Dinette_lights
- group.living_room_lights - group.living_room_lights
- group.living_room_accents - group.living_room_accents
@@ -24,6 +22,8 @@ default_view:
- group.garage_lights - group.garage_lights
- group.outdoor_pool_lights - group.outdoor_pool_lights
- group.outdoor_lights - group.outdoor_lights
- group.switches
- group.garage_doors
Lights: Lights:
view: yes view: yes
@@ -33,10 +33,8 @@ Lights:
- group.amps - group.amps
- group.interior_lights - group.interior_lights
- group.outdoor_lights - group.outdoor_lights
- group.holiday_lights
- group.Bedroom_lights - group.Bedroom_lights
- group.Kitchen_lights - group.Kitchen_lights
- switch.kitchen_accents
- group.Dinette_lights - group.Dinette_lights
- group.living_room_lights - group.living_room_lights
- group.living_room_accents - group.living_room_accents
@@ -47,7 +45,7 @@ Lights:
- group.office_lights - group.office_lights
- group.garage_lights - group.garage_lights
- group.outdoor_pool_lights - group.outdoor_pool_lights
- group.switches
Info: Info:
view: yes view: yes
@@ -57,6 +55,7 @@ Info:
- group.home_modes - group.home_modes
- group.network - group.network
- group.sensors - group.sensors
- group.garage_doors
- sun.sun - sun.sun
- media_player.roku_1gj361038190 - media_player.roku_1gj361038190
- media_player.roku_1gs3ac111661 - media_player.roku_1gs3ac111661

View File

@@ -1,34 +0,0 @@
###################################
## Guest Mode Override
###################################
# Medicine_Reminder:
# name: Medicine Reminder
# icon: mdi:pill
# initial: off
Trash_Reminder:
Name: Trash Day Reminder
icon: mdi:delete
initial: off
Chore_Reminder:
name: Chore Day Reminder
icon: mdi:human-male-female
initial: off
###################################
## School Vacation Override
###################################
no_school:
name: No School
icon: mdi:school
initial: off
###################################
## Guest Mode Override
###################################
guest_mode:
name: Guest Mode
icon: mdi:account-alert
initial: off

25
sensor/garadget.yaml Executable file
View File

@@ -0,0 +1,25 @@
- platform: template
sensors:
garadget_small_status:
friendly_name: 'State of the door'
value_template: '{{ states.cover.garadget_small.state }}'
garadget_small_time_in_state:
friendly_name: 'Since'
value_template: '{{ states.cover.garadget_small.attributes["time in state"] }}'
garadget_small_wifi_signal_strength:
friendly_name: 'WiFi strength'
value_template: '{{ states.cover.garadget_small.attributes["wifi signal strength (dB)"] }}'
unit_of_measurement: 'dB'
- platform: template
sensors:
garadget_large_status:
friendly_name: 'State of the door'
value_template: '{{ states.cover.garadget_large.state }}'
garadget_large_time_in_state:
friendly_name: 'Since'
value_template: '{{ states.cover.garadget_large.attributes["time in state"] }}'
garadget_large_wifi_signal_strength:
friendly_name: 'WiFi strength'
value_template: '{{ states.cover.garadget_large.attributes["wifi signal strength (dB)"] }}'
unit_of_measurement: 'dB'