mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-15 17:12:59 +00:00
Remove bed_led. It was nice while it lasted
This commit is contained in:
@@ -1,44 +0,0 @@
|
||||
mqtt:
|
||||
light:
|
||||
- name: "Bed LED"
|
||||
state_topic: "z2m_deconz/bed_led"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
brightness: true
|
||||
color_temp: true
|
||||
xy: true
|
||||
schema: "json"
|
||||
command_topic: "z2m_deconz/bed_led/set"
|
||||
brightness_scale: 254
|
||||
sensor:
|
||||
- name: "Bed LED LQI"
|
||||
state_topic: "z2m_deconz/bed_led"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
device_class: "signal_strength"
|
||||
unit_of_measurement: "lqi"
|
||||
value_template: "{{ value_json.linkquality }}"
|
||||
|
||||
script:
|
||||
bed_led_on:
|
||||
sequence:
|
||||
- delay: "00:00:01"
|
||||
- service: light.turn_on
|
||||
entity_id: light.bed_led
|
||||
- delay: "00:00:03"
|
||||
- service: light.turn_on
|
||||
entity_id: light.bed_led
|
||||
data_template:
|
||||
brightness_pct: "{{ brightness_pct | default(100) }}"
|
||||
|
||||
bed_led_toggle:
|
||||
sequence:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: light.bed_led
|
||||
state: "off"
|
||||
sequence:
|
||||
- service: script.bed_led_on
|
||||
|
||||
default:
|
||||
- service: light.turn_off
|
||||
entity_id: light.bed_led
|
||||
@@ -52,14 +52,12 @@ automation:
|
||||
- service: light.turn_off
|
||||
entity_id:
|
||||
- light.bedside
|
||||
- light.bed_led
|
||||
|
||||
button_2_triple:
|
||||
- service: light.turn_on
|
||||
data_template:
|
||||
entity_id:
|
||||
- light.bedside
|
||||
- light.bed_led
|
||||
brightness_pct: "{{ is_state('input_select.bedroom_mode', 'day') | iif(100, 40) }}"
|
||||
|
||||
button_3_single:
|
||||
|
||||
@@ -30,10 +30,6 @@ automation:
|
||||
{% endif %}
|
||||
brightness_pct: 100
|
||||
|
||||
# - service: script.bed_led_toggle
|
||||
# data_template:
|
||||
# brightness_pct: "{{ is_state('input_select.bedroom_mode', 'night') | iif(40, 100)}}"
|
||||
|
||||
double_click:
|
||||
- service: light.toggle
|
||||
entity_id: light.bedside
|
||||
|
||||
@@ -31,10 +31,6 @@ automation:
|
||||
{% endif %}
|
||||
brightness_pct: 100
|
||||
|
||||
# - service: script.bed_led_toggle
|
||||
# data_template:
|
||||
# brightness_pct: "{{ is_state('input_select.bedroom_mode', 'night') | iif(40, 100)}}"
|
||||
|
||||
double_click:
|
||||
- service: media_player.media_play_pause
|
||||
entity_id: media_player.master_bedroom
|
||||
|
||||
@@ -1,15 +1,10 @@
|
||||
script:
|
||||
apply_bedroom_ambient_neon:
|
||||
sequence:
|
||||
- service: light.turn_off
|
||||
entity_id: light.bed_led
|
||||
- delay: "00:00:03"
|
||||
- service: scene.turn_on
|
||||
entity_id: scene.bedroom_ambient_neon
|
||||
apply_bedroom_neon:
|
||||
sequence:
|
||||
- service: light.turn_off
|
||||
entity_id: light.bed_led
|
||||
- service: light.turn_on
|
||||
entity_id: light.master_bedroom_main
|
||||
- delay: "00:00:01"
|
||||
@@ -23,8 +18,6 @@ script:
|
||||
entity_id: scene.bedroom_ambient_neon
|
||||
apply_bedroom_pink:
|
||||
sequence:
|
||||
- service: light.turn_off
|
||||
entity_id: light.bed_led
|
||||
- service: light.turn_on
|
||||
entity_id: light.master_bedroom_main
|
||||
- delay: "00:00:01"
|
||||
@@ -49,10 +42,6 @@ scene:
|
||||
state: "on"
|
||||
rgb_color: [0, 255, 190]
|
||||
brightness: 230
|
||||
light.bed_led:
|
||||
state: "on"
|
||||
xy_color: [0.66, 0.28]
|
||||
brightness: 254
|
||||
|
||||
- name: Bedroom Ambient Neon
|
||||
icon: "mdi:weather-night"
|
||||
@@ -61,10 +50,6 @@ scene:
|
||||
state: "on"
|
||||
rgb_color: [0, 255, 190]
|
||||
brightness: 230
|
||||
light.bed_led:
|
||||
state: "on"
|
||||
xy_color: [0.66, 0.28]
|
||||
brightness: 254
|
||||
|
||||
- name: Bedroom Pink
|
||||
icon: "mdi:weather-night"
|
||||
@@ -77,10 +62,6 @@ scene:
|
||||
state: "on"
|
||||
rgb_color: [255, 36, 145]
|
||||
brightness: 230
|
||||
light.bed_led:
|
||||
state: "on"
|
||||
xy_color: [0.66, 0.28]
|
||||
brightness: 254
|
||||
|
||||
- name: Bedroom Ambient Pink
|
||||
icon: "mdi:weather-night"
|
||||
@@ -89,10 +70,6 @@ scene:
|
||||
state: "on"
|
||||
rgb_color: [255, 36, 145]
|
||||
brightness: 230
|
||||
light.bed_led:
|
||||
state: "on"
|
||||
xy_color: [0.66, 0.28]
|
||||
brightness: 254
|
||||
|
||||
- name: Bedroom Ambient Default
|
||||
icon: "mdi:weather-sunny"
|
||||
@@ -101,10 +78,6 @@ scene:
|
||||
state: "on"
|
||||
color_temp: 359
|
||||
brightness: 255
|
||||
light.bed_led:
|
||||
state: "on"
|
||||
color_temp: 500
|
||||
brightness: 255
|
||||
|
||||
- name: Bedroom Default
|
||||
icon: "mdi:weather-sunny"
|
||||
@@ -117,10 +90,6 @@ scene:
|
||||
state: "on"
|
||||
color_temp: 359
|
||||
brightness: 255
|
||||
light.bed_led:
|
||||
state: "on"
|
||||
color_temp: 500
|
||||
brightness: 255
|
||||
|
||||
automation:
|
||||
- alias: Lighting · Bedroom · Door open
|
||||
|
||||
@@ -64,7 +64,6 @@ automation:
|
||||
brightness_pct: 40
|
||||
- service: light.turn_on
|
||||
entity_id:
|
||||
- light.bed_led
|
||||
- light.light_lohas_2 # living room ambient Secondary
|
||||
- light.hue_1 # Hallway
|
||||
- light.neo_1 # Kitchen
|
||||
|
||||
@@ -104,7 +104,6 @@ light:
|
||||
entities:
|
||||
- light.master_bedroom_main
|
||||
- light.bedside
|
||||
- light.bed_led
|
||||
|
||||
- platform: group
|
||||
name: Kitchen
|
||||
|
||||
@@ -29,7 +29,6 @@ automation:
|
||||
- light.hallway_entrance
|
||||
- light.hallway_main
|
||||
- light.master_bedroom_main
|
||||
- light.bed_led
|
||||
- light.kitchen_main
|
||||
- light.kitchen_secondary
|
||||
- service: light.turn_off
|
||||
@@ -45,7 +44,6 @@ automation:
|
||||
- service: light.turn_off
|
||||
entity_id:
|
||||
- light.master_bedroom_main
|
||||
- light.bed_led
|
||||
- light.kitchen_main
|
||||
- light.kitchen_secondary
|
||||
|
||||
|
||||
@@ -40,7 +40,6 @@ homekit:
|
||||
- light.master_bedroom
|
||||
- light.master_bedroom_main
|
||||
- light.bedside
|
||||
- light.bed_led
|
||||
- binary_sensor.bedroom_door
|
||||
- binary_sensor.bedroom_left_window
|
||||
- binary_sensor.bedroom_right_window
|
||||
@@ -108,8 +107,6 @@ homekit:
|
||||
name: Bedroom Main
|
||||
light.bedside:
|
||||
name: Bedside Lamp
|
||||
light.bed_led:
|
||||
name: Bed LED
|
||||
sensor.bedroom_weather_temperature:
|
||||
linked_battery_sensor: sensor.bedroom_weather_battery
|
||||
low_battery_threshold: 20
|
||||
|
||||
@@ -23,7 +23,6 @@ script:
|
||||
- service: light.turn_on
|
||||
entity_id:
|
||||
- light.bedside
|
||||
- light.bed_led
|
||||
|
||||
- service: light.turn_off
|
||||
entity_id: light.master_bedroom_main
|
||||
|
||||
@@ -11,12 +11,6 @@ script:
|
||||
# data:
|
||||
# message: "Entering night mode. Good night!"
|
||||
|
||||
# Prepare Bed LED brightness to be turned on during night time
|
||||
- service: light.turn_on
|
||||
entity_id: light.bed_led
|
||||
data:
|
||||
brightness_pct: 40
|
||||
|
||||
- service: fan.turn_on
|
||||
entity_id: fan.philips_airpurifier
|
||||
- service: input_select.select_option
|
||||
|
||||
@@ -63,7 +63,6 @@ script:
|
||||
- delay: 00:00:01
|
||||
- service: light.turn_on
|
||||
entity_id:
|
||||
- light.bed_led
|
||||
- light.bedside
|
||||
- service: script.routine_morning_briefing
|
||||
|
||||
|
||||
Reference in New Issue
Block a user