minor changes.

This commit is contained in:
Mahasri Kalavala
2020-09-26 21:20:27 -04:00
parent c252626d3a
commit f9b1c6ec4f
27 changed files with 566 additions and 384 deletions

View File

@@ -12,22 +12,18 @@ homeassistant:
input_boolean:
twenty_five_percent:
name: "25%"
initial: "off"
icon: mdi:radiobox-blank
fifty_percent:
name: "50%"
initial: "off"
icon: mdi:brightness-3
seventy_five_percent:
name: "75%"
initial: "off"
icon: mdi:brightness-2
hundred_percent:
name: "100%"
initial: "off"
icon: mdi:brightness-1
power_off_when_complete:
@@ -88,7 +84,12 @@ sensor:
sensors:
print_completion:
value_template: >
{{ (now().strftime('%s') |int + states('sensor.octoprint_time_remaining')|int ) | timestamp_custom("%A %D %H:%M %p") }}
{% set seconds = states('sensor.octoprint_time_remaining')|int %}
{% if now().strftime('%s')|int | timestamp_custom("%A %D") == (now().strftime('%s') |int + seconds) | timestamp_custom("%A %D") %}
Today at {{- now().strftime('%s')|int | timestamp_custom("%l:%M %p") }}
{% else %}
{{ (now().strftime('%s') |int + seconds) | timestamp_custom("%A %D %l:%M %p") }}
{% endif %}
- platform: template
sensors:
@@ -199,6 +200,7 @@ automation:
platform: state
entity_id: input_boolean.twenty_five_percent, input_boolean.fifty_percent, input_boolean.seventy_five_percent, input_boolean.hundred_percent
to: "on"
from: "off"
action:
- service: script.notify_me
data_template:

View File

@@ -214,8 +214,6 @@ automation:
entity_id: light.master_bedroom_2
brightness: 25
color_temp: 366
- service: switch.turn_on
entity_id: switch.zwave_smart_switch_switch
- service: switch.turn_on
entity_id: switch.kids_bed_accent
- service: switch.turn_on

View File

@@ -271,7 +271,6 @@
# - switch.office_room
# - switch.smart_outlet_1
# - switch.kitchen
# - switch.zwave_smart_switch_switch
# - switch.rf_switch_five
# - switch.rf_switch_four
# - switch.rf_switch_one

View File

@@ -29,10 +29,6 @@ sensor:
name: Home Assistant Up Time
unit_of_measurement: hours
- platform: whois
domain: !secret namecheap_domain_name
name: My Domain
- platform: rest
resource: http://icanhazip.com
name: external_ip

View File

@@ -36,13 +36,6 @@ homeassistant:
emulated_hue_name: Guest Bedroom 2
homebridge_name: Guest Bedroom 2
switch.zwave_smart_switch_switch:
friendly_name: Office Room Accent Lights
emulated_hue_name: Office Room Accent Lights
homebridge_name: Office Room Accent Lights
assumed_state: false
icon: mdi:lightbulb
switch.kids_bed_accent:
friendly_name: Hasika's Bed Accent Lights
assumed_state: false

View File

@@ -64,8 +64,6 @@ automation:
entity_id: switch.office_room
- condition: template
value_template: "{{ states('sun.sun') == 'below_horizon' }}"
- service: homeassistant.turn_on
entity_id: switch.zwave_smart_switch_switch
- alias: Officeroom Timer Elapsed
initial_state: true
@@ -77,8 +75,6 @@ automation:
action:
- service: switch.turn_off
entity_id: switch.office_room
- service: homeassistant.turn_off
entity_id: switch.zwave_smart_switch_switch
# # Front Room:
# # Motion Detected - Turn ON the light and extend timer
@@ -95,28 +91,9 @@ automation:
entity_id: timer.timer_frontroom
- condition: template
value_template: "{{ states('sun.sun') == 'below_horizon' }}"
- service: homeassistant.turn_on
entity_id: switch.zwave_smart_switch_switch
- service: switch.turn_on
entity_id: switch.front_room
# Front Room:
# Timer Elapsed - Turn OFF lights
###############################################################################
- alias: Frontroom Timer Elapsed
initial_state: true
trigger:
- platform: event
event_type: timer.finished
event_data:
entity_id: timer.timer_frontroom
condition:
- condition: template
value_template: "{{ states('input_boolean.working_in_office_room') == 'off' }}"
action:
- service: homeassistant.turn_off
entity_id: switch.zwave_smart_switch_switch
# Kitchen:
# Motion Detected - Turn ON the light and extend timer
###############################################################################

View File

@@ -1,32 +1,5 @@
homeassistant:
customize:
binary_sensor.tesla_model_3_charger_sensor:
friendly_name: Charger
binary_sensor.tesla_model_3_parking_brake_sensor:
friendly_name: Parking Break
climate.tesla_model_3_hvac_climate_system:
friendly_name: Tesla Climate
device_tracker.mahasri_tesla_location_tracker:
friendly_name: Tesla
lock.tesla_model_3_charger_door_lock:
friendly_name: Tesla Door Lock
sensor.tesla_model_3_battery_sensor:
friendly_name: Battery Percentage
icon: mdi:battery
sensor.tesla_model_3_mileage_sensor:
friendly_name: Total Mileage
sensor.tesla_model_3_range_sensor:
friendly_name: Battery Range
sensor.tesla_model_3_temperature_sensor_inside:
friendly_name: Temperature Inside
sensor.tesla_model_3_temperature_sensor_outside:
friendly_name: Temperature Outside
switch.tesla_model_3_charger_switch:
friendly_name: Charger Switch
switch.tesla_model_3_maxrange_switch:
friendly_name: Max Range Switch
switch.tesla_model_3_update_switch:
friendly_name: Update Tesla
# customize:
# The scan_interval is now set to 6 hours
# Leaving it to the default (which is 5 minutes, or 300 seconds) will drain battery at a rate of
@@ -36,7 +9,6 @@ tesla:
username: !secret tesla_username
password: !secret tesla_password
scan_interval: 21600
###############################################################################
# _ _ _
# /\ | | | | (_)

View File

@@ -1,23 +0,0 @@
###############################################################################
# @author : Mahasri Kalavala
# @date : 02/05/2020
# @package : Tile
# @description : Tile Package
###############################################################################
homeassistant:
customize:
device_tracker.tile_08beea8370ec23b7:
friendly_name: Back Pack
device_tracker.tile_43a0d518532978f8:
friendly_name: Passport Bag
device_tracker.tile_49318f5ab14343a5:
friendly_name: Suresh's Laptop Bag
device_tracker.tile_63ca05b6a3619232:
friendly_name: Mallika's Purse
device_tracker.tile_p_32c03dc7f21001d36d16b47646e4c421:
friendly_name: Tile Tracker
device_tracker:
- platform: tile
username: !secret tile_username
password: !secret tile_password

View File

@@ -111,7 +111,6 @@ automation:
- switch.kitchen
- switch.prayer_room
- switch.upstairs_fragrance
- switch.zwave_smart_switch_switch
- light.hue_color_lamp_1
- light.hue_color_lamp_2
- light.hue_color_lamp_3

View File

@@ -81,11 +81,10 @@ homeassistant:
friendly_name: Hasika's Bedroom Cube (Xiaomi)
binary_sensor.cube_158d00027cf60d:
friendly_name: Srinika's Bedroom Cube (Xiaomi)
xiaomi_aqara:
discovery_retry: 5
gateways:
- key: !secret xiaomi_key
# xiaomi_aqara:
# discovery_retry: 5
# gateways:
# - key: !secret xiaomi_key
# - service: xiaomi_aqara.play_ringtone
# gw_mac: !secret xiaomi_mac
# ringtone_id: 8

View File

@@ -121,19 +121,6 @@ automation:
- service_template: switch.toggle
entity_id: switch.front_room
# Flip 180: Toggle Office Room Accent Lights
- alias: Front Room Cube Event flip180
initial_state: true
trigger:
platform: event
event_type: xiaomi_aqara.cube_action
event_data:
entity_id: binary_sensor.cube_158d00027c0276
action_type: flip180
action:
- service: switch.toggle
entity_id: switch.zwave_smart_switch_switch
# Move: Toggle Office Room Light
- alias: Front Room Cube Event Move
initial_state: true

View File

@@ -21,6 +21,13 @@ input_label:
two_car_garage_door_tilt_sensor:
upstairs_multi_sensor:
wallmote:
ecolink_motion_detector:
ecolink_firefighter:
ecolink_door_window_sensor_2:
aeon_labs_zw100_multisensor_6_2:
aeon_labs_zw100_multisensor_6:
ecolink_door_window_sensor:
ecolink_garage_door_tilt_sensor:
suresh_battery:
mallika_battery: