diff --git a/lovelace/00_myhome_view.yaml b/lovelace/00_myhome_view.yaml index 58db514..cc9154c 100644 --- a/lovelace/00_myhome_view.yaml +++ b/lovelace/00_myhome_view.yaml @@ -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 diff --git a/lovelace/01_lights_view.yaml b/lovelace/01_lights_view.yaml index 29cd4db..6269948 100644 --- a/lovelace/01_lights_view.yaml +++ b/lovelace/01_lights_view.yaml @@ -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 diff --git a/packages/daily_routines.yaml b/packages/daily_routines.yaml index dbbb9d0..02a2ca5 100644 --- a/packages/daily_routines.yaml +++ b/packages/daily_routines.yaml @@ -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 diff --git a/packages/holidays.yaml b/packages/holidays.yaml index 6c63edb..6c6a575 100644 --- a/packages/holidays.yaml +++ b/packages/holidays.yaml @@ -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: diff --git a/packages/lights_switches.yaml b/packages/lights_switches.yaml index 143b385..c3ea408 100644 --- a/packages/lights_switches.yaml +++ b/packages/lights_switches.yaml @@ -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: diff --git a/packages/motion_timers.yaml b/packages/motion_timers.yaml index 1e80641..b2486e4 100644 --- a/packages/motion_timers.yaml +++ b/packages/motion_timers.yaml @@ -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' }} diff --git a/packages/xiaomi_magic_cubes.yaml b/packages/xiaomi_magic_cubes.yaml index 15a072d..d0aea2b 100644 --- a/packages/xiaomi_magic_cubes.yaml +++ b/packages/xiaomi_magic_cubes.yaml @@ -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 diff --git a/secrets.example b/secrets.example index d0e466c..1a6f255 100644 --- a/secrets.example +++ b/secrets.example @@ -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