mirror of
https://github.com/skalavala/mysmarthome.git
synced 2025-08-27 14:57:19 +00:00
changes related to lights
This commit is contained in:
@@ -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
|
||||
|
@@ -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:
|
||||
|
@@ -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:
|
||||
|
@@ -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' }}
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user