hmm only dependency i have is for utils
which is in the apps folder.
apps.yaml
utils:
class: utils
module: utils
#### TESTING #####
Tests:
class: tests
module: tests
Transition:
class: transition_lights
module: transition_lights
dependencies: utils
Intercom:
class: intercom
module: intercom
entities:
- intercom_input: input_text.intercom
notify: googleassistant
##################
Startup Events:
class: startup_events
module: startup_events
delay: 30
Battery Check:
module: battery_monitor
class: battery_monitor
dependencies: utils
run_time: "06:05:00"
always_send: '0'
persistent_notification: '1'
threshold: '25'
Hardware Check:
class: hardware_check
module: hardware_check
delay: '180'
log: 1
notify: 1
hue: light.mbr
zwave: light.entry_light_level
Home Assistant Events:
class: ha_event_notifier
module: ha_event_notifier
Zwave Events:
class: zwave_event_notifier
module: zwave_event_notifier
Playbar Volume Link:
class: volume_link
module: volume_link
entities:
- media_entity: media_player.sonos_playbar
input_entity: input_number.playbar_volume
Minimote 1:
class: MiniMote
module: minimote
device: zwave.minimote1
## Push
# scene_1_on:
# scene_1_off:
scene_1_toggle: light.batcave_light_level
scene_3_toggle: light.basement_hall_lights_level
scene_5_toggle: light.toy_room_lights_level
scene_7_toggle: light.tv_room_lights_level
## Hold
# scene_2_toggle: light.batcave_light
# scene_4_toggle: light.basement_hall_lights_level
# scene_6_toggle: light.toy_room_lights_level
# scene_8_toggle: light.tv_room_lights_level
monitor_notifier:
class: MonitorNotifier
module: monitor_notifier
constrain_input_boolean: input_boolean.entry_notifications
dependencies: utils
entities: group.binary_entries
reminder: '300'
ttl: '15'
Motion Notification:
class: MotionNotification
constrain_input_boolean: input_boolean.motion_notifications
constrain_presence: noone
mute_time: 3
module: motion_notification
sensors: group.binary_motion_sensors
#### Motion Lights #######################
Porch Motion PIR:
class: MotionLightSensor
module: motion_lights
binary_sensor: binary_sensor.front_porch_multisensor_motion
switch: switch.porch_lights_switch
delay: '120'
light_sensor: sensor.front_porch_multisensor_luminance
light_level: '15'
# light_slider:
constrain_start_time: "sunset - 00:15:00"
constrain_end_time: "23:00:00"
Porch Motion Doorbell:
class: MotionLightSensor
module: motion_lights
binary_sensor: binary_sensor.ring_front_door_motion
switch: switch.porch_lights_switch
delay: '120'
light_sensor: sensor.front_porch_multisensor_luminance
light_level: '15'
# light_slider:
constrain_start_time: "sunset - 00:15:00"
constrain_end_time: "23:00:00"
###############################################
LED Control:
class: GE_switch_led_control
module: GE_switch_led_control
entities:
- entity: fan.master_bedroom_fan_level
parameter: '3'
off_value: 'LED on when light on'
on_value: 'LED on when light off'
- entity: fan.living_room_fan_level
parameter: '3'
off_value: 'LED on when light on'
on_value: 'LED on when light off'
#### LIGH SCHEDULES ###########################
Lights Schedule V2 - General:
class: lights_v2
module: lights_v2
# constrain_input_boolean: input_boolean.holiday_season,off
lights:
- light: switch.eave_lights_switch
on_time: "sunset"
on_random_start: -5
on_random_end: 5
off_time: "23:00:00"
off_random_start: -5
# off_random_end: 0
## Disable if Holiday Season is 'On'
constrain_days: "mon,tue,wed,thu,fri,sat,sun"
- light: switch.eave_lights_switch
on_time: "05:40:00"
on_random_start: -5
on_random_end: 5
off_time: "sunrise"
off_random_start: -15
# off_random_end: 0
constrain_days: "mon,tue,wed,thu,fri"
- light: switch.side_door_light_switch
on_time: "sunset"
on_random_start: -5
on_random_end: 5
off_time: "21:15:00"
off_random_start: -5
# off_random_end: 0
constrain_days: "mon,tue,wed,thu,fri,sat,sun"
- light: switch.back_door_light_switch
on_time: "sunset"
on_random_start: -5
on_random_end: 5
off_time: "22:00:00"
off_random_start: -10
off_random_end: 5
constrain_days: "mon,tue,wed,thu,fri,sat,sun"
- light: switch.office_lamp_switch
on_time: "08:00:00"
off_time: "16:00:00"
constrain_days: "mon,tue,wed,thu,fri"
- light: switch.office_lamp_switch
off_time: "20:00:00"
constrain_days: "sat,sun"
### Holiday Lights #############################
Lights Schedule V2 - Holiday:
class: lights_v2
module: lights_v2
constrain_input_boolean: input_boolean.holiday_season
lights:
- light: switch.christmas_lights_switch
on_time: "sunset"
on_random_start: -5
on_random_end: 5
off_time: "23:00:00"
off_random_start: -5
# off_random_end: 0
constrain_days: "mon,tue,wed,thu,fri,sat,sun"
say_phrase: "Merry Christmas. The lights are on!"
- light: switch.christmas_tree_switch
on_time: "sunset"
on_random_start: -5
on_random_end: 5
off_time: "23:00:00"
off_random_start: -5
# off_random_end: 0
constrain_days: "mon,tue,wed,thu,fri,sat,sun"
- light: switch.christmas_tree_switch
on_time: "08:00:00"
on_random_start: -5
on_random_end: 5
off_time: "09:15:00"
off_random_start: -5
# off_random_end: 0
constrain_days: "mon,tue,wed,thu,fri,sat,sun"
###############################################
Double Tap Switch:
class: zwave_double_tap
module: zwave_double_tap
dependencies: utils
entities:
## Control Lamp on double tap
- entity: zwave.living_room_light
events:
- tap_up:
- action_entity: light.living_room_lamp_level
action: 'on'
- tap_down:
- action_entity: light.living_room_lamp_level
action: 'off'
## Control Lamps on double tap
- entity: zwave.master_bedroom_light
events:
- tap_up:
- action_entity: light.mbr
action: 'on'
- tap_down:
- action_entity: light.mbr
action: 'off'
## Step Fan Speed
- entity: zwave.living_room_fan
events:
- tap_up:
- action_entity: fan.living_room_fan_level
action: 'on'
- tap_down:
- action_entity: fan.living_room_fan_level
action: 'off'
##### Simply control the same light
- entity: zwave.island_lights
events:
- tap_up:
- action_entity: light.island_lights_level
action: 'on'
- tap_down:
- action_entity: light.island_lights_level
action: 'off'
- entity: zwave.dining_lights
events:
- tap_up:
- action_entity: light.dining_lights_level
action: 'on'
- tap_down:
- action_entity: light.dining_lights_level
action: 'off'
- entity: zwave.side_door_light
events:
- tap_up:
- action_entity: light.side_door_light_switch
action: 'on'
- tap_down:
- action_entity: light.side_door_light_switch
action: 'off'
###############################################
############################################### ###############################################
############################################### ###############################################
# Telegram Bot:
# class: TelegramBotEventListener
# module: telegram_bot_listener
# telegram_notifier:
# class: TelegramNotifier
# constrain_input_boolean: input_boolean.entry_notifications
# dependencies: utils
# entities: light.toy_room_lights
# module: telegram_notifier
# ttl: '1'
# RING Doorbell:
# class: ring_doorbell_video_download
# module: ring_doorbell_video_download
# entities:
# - entity: camera.front_door
# trigger_entity: sensor.ring_front_door_last_activity
# foscam_living_room:
# class: foscam_v2
# module: foscam_v2
# camsettings:
# camera_type: FI9821W V2
# camera_name: foscam_living_room_camera
# host: 192.168.1.50
# port: '88'
# user: 'admin'
# password: 'Flamingo1!'
# logsettings:
# loglevel: WARNING
# logsensorlevel: WARNING
# last_error_sensor: sensor.foscam_living_room_last_error
# picsettings:
# brightness_slider: input_number.foscam_living_room_brightness
# contrast_slider: input_number.foscam_living_room_contrast
# hue_slider: input_number.foscam_living_room_hue
# saturation_slider: input_number.foscam_living_room_saturation
# sharpness_slider: input_number.foscam_living_room_sharpness
# default_pic_settings_switch: input_boolean.foscam_living_room_default_picture_settings
# flip_switch: input_boolean.foscam_living_room_flip
# mirror_switch: input_boolean.foscam_living_room_mirror
# auto_infrared_switch: input_boolean.foscam_living_room_auto_infrared
# infrared_switch: input_boolean.foscam_living_room_infrared
# ptzsettings:
# left_right_slider: input_number.foscam_living_room_left_right
# up_down_slider: input_number.foscam_living_room_up_down
# start_cruise_select: input_select.foscam_living_room_preset_cruise
# stop_cruise_switch: input_boolean.foscam_living_room_stop_cruise
# zoom_slider: input_number.foscam_living_room_zoom
# preset_points_select: input_select.foscam_living_room_preset_points
# alarmsettings:
# motion_sensor: sensor.foscam_living_room_motion
# motion_switch: input_boolean.foscam_living_room_motion_detect
# soundalarm_sensor: sensor.foscam_living_room_sound_alarm
# sensor_update_time: '10'
# recordsettings:
# snap_picture_switch: input_boolean.foscam_living_room_snap_picture_now
# recording_sensor: sensor.foscam_living_room_recording
# save_snap_dir: /camera/foscam_living_room/
# dashboardsettings:
# use_dashboard: True
# create_dashboard: True
# create_alarm_dashboard: True
# dashboard_file_name: living_room
# alarm_dashboard_file_name: living_room_fullscreen
# screen_width: 1024
# screen_height: 600
# show_full_screen_dashboard: True
# full_screen_alarm_switch: input_boolean.foscam_living_room_toon_alarm_dash
# time_between_shows: 60
# show_time: 30