mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-15 09:12:57 +00:00
Add bedside yeelight. Add alarm scripts. Tweak routines
This commit is contained in:
@@ -55,6 +55,10 @@ amcrest:
|
||||
- motion_detected
|
||||
- online
|
||||
|
||||
discovery:
|
||||
ignore:
|
||||
- yeelight
|
||||
|
||||
media_player:
|
||||
- platform: androidtv
|
||||
name: nvidia shield
|
||||
@@ -141,6 +145,9 @@ webostv:
|
||||
# - makotv
|
||||
# - netflix
|
||||
|
||||
yeelight:
|
||||
devices: !secret yeelights
|
||||
|
||||
# https://www.home-assistant.io/integrations/zeroconf
|
||||
zeroconf:
|
||||
|
||||
|
||||
@@ -27,6 +27,22 @@ cards:
|
||||
white_icon: file-word-box
|
||||
white_value: true
|
||||
|
||||
- type: "custom:light-entity-card"
|
||||
brightness: true
|
||||
brightness_icon: weather-sunny
|
||||
color_picker: true
|
||||
color_temp: true
|
||||
color_wheel: true
|
||||
effects_list: true
|
||||
entity: light.bedside_light
|
||||
full_width_sliders: false
|
||||
group: false
|
||||
show_slider_percent: true
|
||||
smooth_color_wheel: true
|
||||
temperature_icon: thermometer
|
||||
white_icon: file-word-box
|
||||
white_value: true
|
||||
|
||||
- type: "custom:mini-graph-card"
|
||||
animate: true
|
||||
entities:
|
||||
@@ -59,4 +75,24 @@ cards:
|
||||
points_per_hour: 1
|
||||
hours_to_show: 72
|
||||
|
||||
- type: entities
|
||||
entities:
|
||||
- binary_sensor.lumi_lumi_vibration_aq1_b8c6c402_ias_zone
|
||||
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: button
|
||||
tap_action:
|
||||
action: call-service
|
||||
service: script.alarm_start
|
||||
name: start
|
||||
icon: mdi:home-alert
|
||||
|
||||
- type: button
|
||||
tap_action:
|
||||
action: call-service
|
||||
service: script.alarm_stop
|
||||
name: stop
|
||||
icon: mdi:home
|
||||
|
||||
- type: custom:gui-sandbox
|
||||
|
||||
@@ -55,6 +55,32 @@ script:
|
||||
- service: camera.turn_off
|
||||
entity_id: camera.amcrest_camera
|
||||
|
||||
alarm_start:
|
||||
sequence:
|
||||
- service: media_player.play_media
|
||||
data:
|
||||
entity_id: media_player.master_bedroom
|
||||
media_content_id: "https://raw.githubusercontent.com/saeedsohi/siren/master/FireTrucksSirens.mp3"
|
||||
media_content_type: music
|
||||
- service: light.turn_on
|
||||
entity_id: light.bedside_light
|
||||
data:
|
||||
brightness_pct: 100
|
||||
- service: light.turn_on
|
||||
entity_id: light.bedside_light
|
||||
data:
|
||||
effect: Police
|
||||
|
||||
alarm_stop:
|
||||
sequence:
|
||||
- service: media_player.media_stop
|
||||
entity_id: media_player.master_bedroom
|
||||
- service: light.turn_on
|
||||
entity_id: light.bedside_light
|
||||
data:
|
||||
brightness_pct: 60
|
||||
kelvin: 2400
|
||||
|
||||
# Hack - the switch.camera initial state is wrong (ON) when the server starts.
|
||||
automation:
|
||||
- id: camera_turn_off_on_startup
|
||||
|
||||
@@ -8,10 +8,12 @@ script:
|
||||
entity_id: fan.philips_airpurifier
|
||||
- service: media_player.turn_off
|
||||
entity_id:
|
||||
- media_player.nvidia_shield
|
||||
- media_player.living_room_tv
|
||||
- media_player.living_room_tv_2
|
||||
- service: light.turn_off
|
||||
entity_id: light.living_room_all_lights
|
||||
entity_id:
|
||||
- light.living_room_all_lights
|
||||
- light.bedside_light
|
||||
- delay: "00:00:02"
|
||||
- service: media_player.volume_set
|
||||
entity_id: media_player.master_bedroom
|
||||
|
||||
@@ -26,13 +26,14 @@ script:
|
||||
data:
|
||||
source: Evening Chill
|
||||
# - service: media_player.turn_on
|
||||
# entity_id: media_player.living_room_tv_2
|
||||
# entity_id: media_player.nvidia_shield
|
||||
# - delay: "00:00:10"
|
||||
# - service: spotcast.start
|
||||
# data:
|
||||
# device_name: "Living Room TV"
|
||||
# uri: "spotify:playlist:1dstTefWFQaBFTC6CjcEHd"
|
||||
# random_song: true
|
||||
|
||||
coming_home_say_welcome:
|
||||
alias: Routine - Coming home - Say welcome
|
||||
sequence:
|
||||
|
||||
@@ -7,11 +7,13 @@ script:
|
||||
- service: script.security_camera_on
|
||||
- service: media_player.turn_off
|
||||
entity_id:
|
||||
- media_player.nvidia_shield
|
||||
- media_player.living_room_tv
|
||||
- media_player.living_room_tv_2
|
||||
- service: media_player.media_stop
|
||||
entity_id: media_player.master_bedroom
|
||||
- service: light.turn_off
|
||||
entity_id: light.living_room_all_lights
|
||||
entity_id:
|
||||
- light.living_room_all_lights
|
||||
- light.bedside_light
|
||||
- service: input_boolean.turn_off
|
||||
entity_id: input_boolean.speech_notifications
|
||||
|
||||
Reference in New Issue
Block a user