changes related to lights

This commit is contained in:
Mahasri Kalavala 2021-03-21 21:56:34 -04:00
parent b9b9f14ead
commit acb40cdb7a
8 changed files with 86 additions and 40 deletions

View File

@ -40,8 +40,8 @@ cards:
domain: script domain: script
action: toggle_climate action: toggle_climate
- type: entity-filter - type: entities
title: Device Trackers title: Kalavala Family
show_header_toggle: false show_header_toggle: false
entities: entities:
- entity: device_tracker.life360_suresh - entity: device_tracker.life360_suresh
@ -54,8 +54,10 @@ cards:
name: Hasika name: Hasika
- entity: device_tracker.mahasri_tesla_location_tracker - entity: device_tracker.mahasri_tesla_location_tracker
name: Tesla name: Tesla
state_filter: - entity: sensor.yo_mama_geocoded_location
- "home" name: Suresh
- entity: sensor.mallika_geocoded_location
name: Mallika
card: card:
type: glance type: glance
title: Kalavala Family title: Kalavala Family
@ -247,7 +249,6 @@ cards:
show_header_toggle: false show_header_toggle: false
entities: entities:
- sensor.plex_mahasri_nas - sensor.plex_mahasri_nas
- media_player.plex_plex_web_chrome_windows
- type: entities - type: entities
title: Luminance title: Luminance

View File

@ -22,20 +22,36 @@ cards:
name: Master Bathroom Lights name: Master Bathroom Lights
- type: entities - type: entities
title: Downstairs title: Office Room
show_header_toggle: true show_header_toggle: true
entities: entities:
- switch.front_room
- switch.basement_left
- switch.basement_right
- switch.kitchen
- switch.office_room - switch.office_room
- entity: switch.wemoswitch1
name: Office Room Accent Lights
- type: entities
title: Family Room
show_header_toggle: true
entities:
- switch.kitchen
- light.family_room_lights - light.family_room_lights
- light.hue_color_lamp_1 - light.hue_color_lamp_1
- light.hue_color_lamp_2 - light.hue_color_lamp_2
- light.hue_color_lamp_3 - light.hue_color_lamp_3
- entity: switch.wemoswitch1
name: Office Room Accent Lights - type: entities
title: Basement
show_header_toggle: true
entities:
- switch.basement_left
- switch.basement_right
- type: entities
title: Front Room
show_header_toggle: true
entities:
- switch.front_room
- light.gateway_light_34ce008ad65d
- type: entities - type: entities
title: TV Power Strip title: TV Power Strip
@ -49,7 +65,16 @@ cards:
name: Bose Audio name: Bose Audio
- type: entities - type: entities
title: Tasmota Outlet title: Outdoor Strip (Kasa)
show_header_toggle: true
entities:
- entity: switch.left
name: Left
- entity: switch.right
name: Right
- type: entities
title: Outdoor Strip (Tasmota)
show_header_toggle: true show_header_toggle: true
entities: entities:
- entity: switch.tasmota_outlet_1 - entity: switch.tasmota_outlet_1
@ -71,12 +96,6 @@ cards:
- switch.garage - switch.garage
- switch.garage_shop_lights - switch.garage_shop_lights
- type: entities
title: Always On
show_header_toggle: false
entities:
- light.gateway_light_34ce008ad65d
- type: entities - type: entities
title: Outdoor Lights title: Outdoor Lights
show_header_toggle: true show_header_toggle: true

View File

@ -135,6 +135,8 @@ automation:
action: action:
- service: switch.turn_off - service: switch.turn_off
entity_id: switch.kitchen entity_id: switch.kitchen
- service: switch.turn_off
entity_id: switch.front_room
# ÛÛÛÛÛÛÛÛÛÛ ÛÛÛ # ÛÛÛÛÛÛÛÛÛÛ ÛÛÛ
# °°ÛÛÛ°°°°°Û °°° # °°ÛÛÛ°°°°°Û °°°
@ -296,3 +298,34 @@ automation:
value_template: "{{ states('input_boolean.nightly_report') == 'on' }}" value_template: "{{ states('input_boolean.nightly_report') == 'on' }}"
action: action:
- service: script.good_night_tts - service: script.good_night_tts
###############################################################################
# TOGGLE WORKING IN OFFICE BOOLEAN
###############################################################################
- alias: Suresh Working in Office Start
initial_state: true
trigger:
platform: time
at: "08:00:00"
condition:
- condition: state
entity_id: "binary_sensor.workday_sensor"
state: "on"
action:
- service: input_boolean.turn_on
entity_id: input_boolean.working_in_office_room
- alias: Suresh Working in Office End
initial_state: true
trigger:
platform: time
at: "18:00:00"
condition:
- condition: state
entity_id: "binary_sensor.workday_sensor"
state: "on"
action:
- service: input_boolean.turn_off
entity_id: input_boolean.working_in_office_room

View File

@ -50,6 +50,8 @@ automation:
condition: condition:
- condition: template - condition: template
value_template: "{{ states('sensor.holiday') != 'unknown' }}" value_template: "{{ states('sensor.holiday') != 'unknown' }}"
- condition: template
value_template: "{{ states('sensor.holiday') != 'unavailable' }}"
- condition: template - condition: template
value_template: "{{ states('sensor.holiday') | trim != '' }}" value_template: "{{ states('sensor.holiday') | trim != '' }}"
action: action:

View File

@ -93,9 +93,9 @@ tplink:
discovery: false discovery: false
switch: switch:
# In-wall switches # In-wall switches
- host: !secret tplink_kids_bedroom - host: !secret tplink_hasika_bedroom
- host: !secret tplink_guest_bedroom_1 - host: !secret tplink_srinika_bedroom
- host: !secret tplink_guest_bedroom_2 - host: !secret tplink_guest_bedroom
- host: !secret tplink_garage - host: !secret tplink_garage
- host: !secret tplink_garage_shoplights - host: !secret tplink_garage_shoplights
- host: !secret tplink_basement_left - host: !secret tplink_basement_left
@ -106,8 +106,6 @@ tplink:
# Smart Outlets # Smart Outlets
- host: !secret tplink_smart_outlet1 - host: !secret tplink_smart_outlet1
#name: Downstairs Fragrance Outlet #name: Downstairs Fragrance Outlet
- host: !secret tplink_smart_outlet2
#name: Downstairs 3d printer Outlet
- host: !secret tplink_smart_outlet3 - host: !secret tplink_smart_outlet3
#name: Upstairs Fragrance Outlet #name: Upstairs Fragrance Outlet
- host: !secret tplink_kids_bed_accent_light - host: !secret tplink_kids_bed_accent_light
@ -116,6 +114,7 @@ tplink:
- host: !secret tplink_bathroom_lights - host: !secret tplink_bathroom_lights
strip: strip:
- host: !secret tplink_smart_strip - host: !secret tplink_smart_strip
- host: !secret tplink_outdoor_plug
wemo: wemo:
discovery: false discovery: false
@ -123,7 +122,6 @@ wemo:
- !secret wemo_switch_1 - !secret wemo_switch_1
- !secret wemo_switch_2 - !secret wemo_switch_2
- !secret wemo_switch_3 - !secret wemo_switch_3
- !secret wemo_sharp_tv
input_boolean: input_boolean:
animate_upstairs_lights: animate_upstairs_lights:

View File

@ -118,6 +118,9 @@ automation:
- condition: state - condition: state
entity_id: input_boolean.light_automations entity_id: input_boolean.light_automations
state: "on" state: "on"
- condition: state
entity_id: input_boolean.working_in_office_room
state: "off"
action: action:
- service_template: > - service_template: >
{{ 'switch.turn_off' if states('binary_sensor.motion_sensor_158d000272bfd7') != 'on' else 'timer.start' }} {{ 'switch.turn_off' if states('binary_sensor.motion_sensor_158d000272bfd7') != 'on' else 'timer.start' }}

View File

@ -132,10 +132,6 @@ automation:
event_data: event_data:
entity_id: binary_sensor.cube_158d00027c0276 entity_id: binary_sensor.cube_158d00027c0276
action_type: flip90 action_type: flip90
condition:
- condition: state
entity_id: input_boolean.light_automations
state: "on"
action: action:
- service_template: switch.toggle - service_template: switch.toggle
entity_id: switch.front_room entity_id: switch.front_room
@ -149,13 +145,11 @@ automation:
event_data: event_data:
entity_id: binary_sensor.cube_158d00027c0276 entity_id: binary_sensor.cube_158d00027c0276
action_type: move action_type: move
condition:
- condition: state
entity_id: input_boolean.light_automations
state: "on"
action: action:
- service: switch.toggle - service: switch.toggle
entity_id: switch.office_room entity_id: switch.office_room
- service: switch.toggle
entity_id: switch.left
# Shake: Toggle Do Not Disturb Mode # Shake: Toggle Do Not Disturb Mode
- alias: Front Room Cube Event Shake - alias: Front Room Cube Event Shake
@ -166,10 +160,6 @@ automation:
event_data: event_data:
entity_id: binary_sensor.cube_158d00027c0276 entity_id: binary_sensor.cube_158d00027c0276
action_type: shake_air action_type: shake_air
condition:
- condition: state
entity_id: input_boolean.light_automations
state: "on"
action: action:
- service: script.toggle_do_not_disturb - service: script.toggle_do_not_disturb

View File

@ -169,9 +169,9 @@ mallika_birthday: "mm-dd"
philips_hue_ipaddress: 192.xxx.x.xxx philips_hue_ipaddress: 192.xxx.x.xxx
tplink_garage: 192.xxx.1.xxx tplink_garage: 192.xxx.1.xxx
tplink_kids_bedroom: 192.xxx.1.xxx tplink_hasika_bedroom: 192.xxx.1.xxx
tplink_guest_bedroom_1: 192.xxx.1.xxx tplink_srinika_bedroom: 192.xxx.1.xxx
tplink_guest_bedroom_2: 192.xxx.1.xxx tplink_guest_bedroom: 192.xxx.1.xxx
lifx_broadcast_ip: 192.xxx.1.xxx lifx_broadcast_ip: 192.xxx.1.xxx