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

View File

@ -22,20 +22,36 @@ cards:
name: Master Bathroom Lights
- type: entities
title: Downstairs
title: Office Room
show_header_toggle: true
entities:
- switch.front_room
- switch.basement_left
- switch.basement_right
- switch.kitchen
- 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.hue_color_lamp_1
- light.hue_color_lamp_2
- 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
title: TV Power Strip
@ -49,7 +65,16 @@ cards:
name: Bose Audio
- 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
entities:
- entity: switch.tasmota_outlet_1
@ -71,12 +96,6 @@ cards:
- switch.garage
- switch.garage_shop_lights
- type: entities
title: Always On
show_header_toggle: false
entities:
- light.gateway_light_34ce008ad65d
- type: entities
title: Outdoor Lights
show_header_toggle: true

View File

@ -135,6 +135,8 @@ automation:
action:
- service: switch.turn_off
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' }}"
action:
- 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: template
value_template: "{{ states('sensor.holiday') != 'unknown' }}"
- condition: template
value_template: "{{ states('sensor.holiday') != 'unavailable' }}"
- condition: template
value_template: "{{ states('sensor.holiday') | trim != '' }}"
action:

View File

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

View File

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

View File

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

View File

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