minor updates

This commit is contained in:
Mahasri Kalavala 2022-11-30 20:27:26 -05:00
parent 0911b1cf6e
commit dafef91d88
5 changed files with 60 additions and 22 deletions

View File

@ -156,10 +156,10 @@ cards:
show_state: true
title: Fitness
entities:
- entity: sensor.yo_mama_steps
- entity: sensor.suresh_steps
icon: "mdi:run"
name: Suresh Steps
- entity: sensor.yo_mama_floors_ascended
- entity: sensor.suresh_floors_ascended
icon: "mdi:run"
name: Suresh Floors Ascended
- entity: sensor.mallika_steps

View File

@ -171,6 +171,37 @@ automation:
- service: switch.turn_on
entity_id: switch.backyard_light
- alias: Christmas Lights ON (At Sunset)
trigger:
platform: sun
event: sunset
offset: "+00:00:00"
condition:
- condition: state
entity_id: input_boolean.light_automations
state: "on"
action:
- service: switch.turn_on
entity_id: switch.left
- service: switch.turn_on
entity_id: switch.backyard_light
- alias: Christmas Lights OFF (At Sunrise)
initial_state: true
trigger:
platform: sun
event: sunrise
offset: "00:15:00"
condition:
- condition: state
entity_id: input_boolean.light_automations
state: "on"
action:
- service: switch.turn_off
entity_id: switch.left
- service: switch.turn_off
entity_id: switch.backyard_light
###############################################################################
# Turn indoor lights on 30 minutes before sunset
###############################################################################

View File

@ -240,25 +240,26 @@ automation:
# When home security system is turned OFF or turned to Home mode from "away"
# means, someone reached home from outside
###############################################################################
- alias: Turn ON Thermostat upon reaching home
initial_state: true
trigger:
platform: state
entity_id: alarm_control_panel.home
condition:
- condition: template
value_template: >
{% if trigger.from_state.state == 'armed_away' and
(trigger.to_state.state == 'armed_home' or trigger.to_state.state == 'disarmed') %}
true
{% else %}
false
{% endif %}
action:
- service: climate.set_away_mode
data_template:
entity_id: climate.dining_room
away_mode: "false"
# - alias: Turn ON Thermostat upon reaching home
# initial_state: true
# trigger:
# platform: state
# entity_id: alarm_control_panel.home
# condition:
# - condition: template
# value_template: >
# {% if trigger.from_state.state == 'armed_away' and
# (trigger.to_state.state == 'armed_home' or trigger.to_state.state == 'disarmed') %}
# true
# {% else %}
# false
# {% endif %}
# action:
# - service: climate.set_preset_mode
# target:
# entity_id: climate.dining_room
# data:
# preset_mode: "eco"
###############################################################################
# TURN HOME SECURITY SYSTEM ON AT BED TIME

View File

@ -283,6 +283,8 @@ automation:
conditions:
- condition: template
value_template: "{{ states('input_boolean.trash_reminders') == 'on' }}"
- condition: template
value_template: "{{ states('input_boolean.home_mode_away') == 'off' }}"
- condition: or
conditions:
- condition: state

View File

@ -197,9 +197,13 @@ script:
- service: notify.android_tv_fire_tv
data:
message: "{{ message }}"
title: "Hello!"
title: Mahasri Bot
data:
color: red
duration: 10
transparency: 1%
icon:
path: /config/www/{{- [ "suresh.jpg", "srinika.jpg", "mallika.jpg", "hasika.jpg" ] | random -}}
good_night_tts:
sequence: