various tidyups
This commit is contained in:
@@ -36,7 +36,7 @@ input_number:
|
||||
step: 0.1
|
||||
mode: box
|
||||
unit_of_measurement: "s"
|
||||
initial: 1.5
|
||||
initial: 6
|
||||
|
||||
automation:
|
||||
- id: lounge_ir_remote_functions
|
||||
@@ -101,10 +101,36 @@ automation:
|
||||
|
||||
- alias: "Run the matching lounge command"
|
||||
choose:
|
||||
- alias: "Set both reading lights together"
|
||||
conditions:
|
||||
- condition: template
|
||||
value_template: "{{ ir_hash == '0x79fb9e54' }}"
|
||||
sequence:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: template
|
||||
value_template: >-
|
||||
{{
|
||||
is_state('light.esp_lounge6chdimmer_couch_spots_left', 'on')
|
||||
or is_state('light.esp_lounge6chdimmer_couch_spots_right', 'on')
|
||||
}}
|
||||
sequence:
|
||||
- action: light.turn_off
|
||||
target:
|
||||
entity_id:
|
||||
- light.esp_lounge6chdimmer_couch_spots_left
|
||||
- light.esp_lounge6chdimmer_couch_spots_right
|
||||
default:
|
||||
- action: light.turn_on
|
||||
target:
|
||||
entity_id:
|
||||
- light.esp_lounge6chdimmer_couch_spots_left
|
||||
- light.esp_lounge6chdimmer_couch_spots_right
|
||||
|
||||
- alias: "Scene commands"
|
||||
conditions:
|
||||
- condition: template
|
||||
value_template: "{{ ir_hash in scene_map }}"
|
||||
value_template: "{{ ir_hash in scene_map and ir_hash != '0x79fb9e54' }}"
|
||||
sequence:
|
||||
- action: script.lounge_set_scene
|
||||
data:
|
||||
@@ -169,7 +195,7 @@ automation:
|
||||
data:
|
||||
channels: "sony_tv_lounge"
|
||||
title: "View Road"
|
||||
short_announcement: "Surround Amplifier"
|
||||
short_announcement: "Surround Amp {{ new_state_text }}"
|
||||
long_announcement: ""
|
||||
payload: "{{ new_state_text }}"
|
||||
indicator: ""
|
||||
|
||||
Reference in New Issue
Block a user