Remove bed_led. It was nice while it lasted

This commit is contained in:
2022-06-22 00:54:13 +03:00
parent 9b527b4eaf
commit 423489df69
20 changed files with 4 additions and 151 deletions
@@ -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