esphome pelmet LEDs, lounge scenes and other fixes
This commit is contained in:
@@ -74,107 +74,120 @@ script:
|
||||
#####################################################################
|
||||
scene_settings:
|
||||
Bright:
|
||||
light.esp_lounge6chdimmer_couch_spots_left: 00
|
||||
light.esp_lounge6chdimmer_couch_spots_right: 00
|
||||
light.esp_lounge6chdimmer_couch_spots_left: 0
|
||||
light.esp_lounge6chdimmer_couch_spots_right: 0
|
||||
#light.esp_lounge6chdimmer_dining_table_light: 100
|
||||
light.esp_lounge6chdimmer_lounge_downlights_centre: 100 # Centre Downlights (x6, dimmable)
|
||||
light.esp_lounge6chdimmer_lounge_downlights_south: 100 # South Downlights (x4, dimmable)
|
||||
light.esp_lounge6chdimmer_lounge_rafter_buttons: 100 # Buttons in Rafters (x3, dimmable)
|
||||
switch.esp_loungemiddleswitch_relay_3_downlights_north: "on" # North Downlights (x2 over stairs, non dimmable)
|
||||
light.esp_lounge6chdimmer_lounge_downlights_centre: 100
|
||||
light.esp_lounge6chdimmer_lounge_downlights_south: 100
|
||||
light.esp_lounge6chdimmer_lounge_rafter_buttons: 100
|
||||
switch.esp_loungemiddleswitch_relay_3_downlights_north: "on"
|
||||
light.esp_breakfastbarleds_breakfast_bar_leds: 90
|
||||
light.esp_loungecabinetleds2_lounge_cabinet_leds: 90
|
||||
light.esp_loungebookshelfleds_lounge_bookshelf_leds: 90
|
||||
light.tasmo_h801_loungeled1_6180_a: 90
|
||||
light.tasmo_h801_loungeled1_6180_b: 90
|
||||
switch.lounge_cupboard_dual_usb_xus09_l2: on
|
||||
switch.esp_loungesouthleftswitch_relay_1_wall_washer_left: on # Back wall wallwasher Left
|
||||
switch.esp_loungesouthrightswitch_relay_2_wall_washer_right: on # Back wall wallwasher right
|
||||
switch.tasmo_ks811t_0702_lounge_3c: on # North Downlights (x2 over stairs, non dimmable)
|
||||
switch.esp_loungenorthswitch_relay_1_main_lights: on # Single switch to hallway relay output (Pelmet LEDs)
|
||||
switch.lounge_cupboard_dual_usb_xus09_l2: "on"
|
||||
switch.esp_loungesouthleftswitch_relay_1_wall_washer_left: "on"
|
||||
switch.esp_loungesouthrightswitch_relay_2_wall_washer_right: "on"
|
||||
switch.tasmo_ks811t_0702_lounge_3c: "on"
|
||||
#switch.esp_loungenorthswitch_relay_1_main_lights: "on"
|
||||
number.esp_loungepelmetleds2_lounge_pelmet_leds_a_output_set_0_100: 100
|
||||
number.esp_loungepelmetleds2_lounge_pelmet_leds_b_output_set_0_100: 100
|
||||
|
||||
TV General:
|
||||
light.esp_lounge6chdimmer_couch_spots_left: 60
|
||||
light.esp_lounge6chdimmer_couch_spots_right: 60
|
||||
#light.esp_lounge6chdimmer_dining_table_light: 100
|
||||
light.esp_lounge6chdimmer_lounge_downlights_centre: 60
|
||||
light.esp_lounge6chdimmer_lounge_downlights_south: 60
|
||||
light.esp_lounge6chdimmer_lounge_rafter_buttons: 40
|
||||
light.esp_breakfastbarleds_breakfast_bar_leds: 60
|
||||
light.esp_loungecabinetleds2_lounge_cabinet_leds: 60
|
||||
light.esp_loungebookshelfleds_lounge_bookshelf_leds: 60
|
||||
switch.esp_loungemiddleswitch_relay_3_downlights_north: "off" # non-dimmable pair
|
||||
switch.lounge_cupboard_dual_usb_xus09_l2: "on"
|
||||
switch.esp_loungesouthleftswitch_relay_1_wall_washer_left: "off"
|
||||
switch.esp_loungesouthrightswitch_relay_2_wall_washer_right: "off"
|
||||
#switch.esp_loungenorthswitch_relay_1_main_lights: "on"
|
||||
number.esp_loungepelmetleds2_lounge_pelmet_leds_a_output_set_0_100: 60
|
||||
number.esp_loungepelmetleds2_lounge_pelmet_leds_b_output_set_0_100: 60
|
||||
|
||||
Movie:
|
||||
#light.esp_lounge6chdimmer_couch_spots_left: 40
|
||||
#light.esp_lounge6chdimmer_couch_spots_right: 40
|
||||
light.esp_lounge6chdimmer_couch_spots_left: 20
|
||||
light.esp_lounge6chdimmer_couch_spots_right: 20
|
||||
#light.esp_lounge6chdimmer_dining_table_light: 100
|
||||
light.esp_lounge6chdimmer_lounge_downlights_centre: 20 # Centre Downlights (x6, dimmable)
|
||||
light.esp_lounge6chdimmer_lounge_downlights_south: 20 # South Downlights (x4, dimmable)
|
||||
light.esp_lounge6chdimmer_lounge_rafter_buttons: 20 # Buttons in Rafters (x3, dimmable)
|
||||
light.esp_lounge6chdimmer_lounge_downlights_centre: 20
|
||||
light.esp_lounge6chdimmer_lounge_downlights_south: 20
|
||||
light.esp_lounge6chdimmer_lounge_rafter_buttons: 20
|
||||
light.esp_breakfastbarleds_breakfast_bar_leds: 40
|
||||
light.esp_loungecabinetleds2_lounge_cabinet_leds: 40
|
||||
light.esp_loungebookshelfleds_lounge_bookshelf_leds: 40
|
||||
light.tasmo_h801_loungeled1_6180_a: 60
|
||||
light.tasmo_h801_loungeled1_6180_b: 60
|
||||
switch.esp_loungemiddleswitch_relay_3_downlights_north: off # North Downlights (x2 over stairs, non dimmable) switch.lounge_cupboard_dual_usb_xus09_l2: "on"
|
||||
switch.esp_loungesouthleftswitch_relay_1_wall_washer_left: off # Back wall wallwasher Left
|
||||
switch.esp_loungesouthrightswitch_relay_2_wall_washer_right: off # Back wall wallwasher right
|
||||
switch.esp_loungenorthswitch_relay_1_main_lights: on # Single switch to hallway relay output (Pelmet LEDs)
|
||||
|
||||
Night Light:
|
||||
#light.esp_lounge6chdimmer_couch_spots_left: 40
|
||||
#light.esp_lounge6chdimmer_couch_spots_right: 40
|
||||
#light.esp_lounge6chdimmer_dining_table_light: 100
|
||||
light.esp_lounge6chdimmer_lounge_downlights_centre: 5 # Centre Downlights (x6, dimmable)
|
||||
#light.esp_lounge6chdimmer_lounge_downlights_south: 20 # South Downlights (x4, dimmable)
|
||||
light.esp_lounge6chdimmer_lounge_rafter_buttons: 5 # Buttons in Rafters (x3, dimmable)
|
||||
switch.esp_loungesouthleftswitch_relay_1_wall_washer_left: off # Back wall wallwasher Left
|
||||
switch.esp_loungesouthrightswitch_relay_2_wall_washer_right: off # Back wall wallwasher right
|
||||
switch.esp_loungemiddleswitch_relay_3_downlights_north: "off"
|
||||
switch.lounge_cupboard_dual_usb_xus09_l2: "on"
|
||||
switch.esp_loungesouthleftswitch_relay_1_wall_washer_left: "off"
|
||||
switch.esp_loungesouthrightswitch_relay_2_wall_washer_right: "off"
|
||||
#switch.esp_loungenorthswitch_relay_1_main_lights: "on"
|
||||
number.esp_loungepelmetleds2_lounge_pelmet_leds_a_output_set_0_100: 40
|
||||
number.esp_loungepelmetleds2_lounge_pelmet_leds_b_output_set_0_100: 40
|
||||
|
||||
Reading On/Off:
|
||||
light.esp_lounge6chdimmer_couch_spots_left: toggle_75
|
||||
light.esp_lounge6chdimmer_couch_spots_right: toggle_75
|
||||
light.esp_lounge6chdimmer_couch_spots_left: "toggle_75"
|
||||
light.esp_lounge6chdimmer_couch_spots_right: "toggle_75"
|
||||
#light.esp_lounge6chdimmer_dining_table_light: 60
|
||||
#light.esp_lounge6chdimmer_lounge_downlights_centre: 45
|
||||
#light.esp_lounge6chdimmer_lounge_downlights_south: 35
|
||||
#light.esp_lounge6chdimmer_lounge_rafter_buttons: 20
|
||||
#switch.tasmo_ks811t_0702_lounge_3c: on
|
||||
#switch.tasmo_ks811t_0702_lounge_3c: "on"
|
||||
|
||||
Night Light:
|
||||
#light.esp_lounge6chdimmer_couch_spots_left: 20
|
||||
#light.esp_lounge6chdimmer_couch_spots_right: 20
|
||||
#light.esp_lounge6chdimmer_dining_table_light: 100
|
||||
light.esp_lounge6chdimmer_lounge_downlights_centre: 0
|
||||
light.esp_lounge6chdimmer_lounge_downlights_south: 0
|
||||
light.esp_lounge6chdimmer_lounge_rafter_buttons: 0
|
||||
light.esp_breakfastbarleds_breakfast_bar_leds: 5
|
||||
light.esp_loungecabinetleds2_lounge_cabinet_leds: 5
|
||||
light.esp_loungebookshelfleds_lounge_bookshelf_leds: 5
|
||||
switch.esp_loungemiddleswitch_relay_3_downlights_north: "off"
|
||||
switch.lounge_cupboard_dual_usb_xus09_l2: "off"
|
||||
switch.esp_loungesouthleftswitch_relay_1_wall_washer_left: "off"
|
||||
switch.esp_loungesouthrightswitch_relay_2_wall_washer_right: "off"
|
||||
#switch.esp_loungenorthswitch_relay_1_main_lights: "on"
|
||||
number.esp_loungepelmetleds2_lounge_pelmet_leds_a_output_set_0_100: 5
|
||||
number.esp_loungepelmetleds2_lounge_pelmet_leds_b_output_set_0_100: 5
|
||||
|
||||
Warm Cozy:
|
||||
light.esp_lounge6chdimmer_couch_spots_left: 30
|
||||
light.esp_lounge6chdimmer_couch_spots_right: 30
|
||||
light.esp_lounge6chdimmer_couch_spots_left: 20
|
||||
light.esp_lounge6chdimmer_couch_spots_right: 20
|
||||
light.esp_lounge6chdimmer_lounge_rafter_buttons: 15
|
||||
light.esp_breakfastbarleds_breakfast_bar_leds: 25
|
||||
light.esp_loungecabinetleds2_lounge_cabinet_leds: 30
|
||||
light.esp_loungebookshelfleds_lounge_bookshelf_leds: 30
|
||||
light.tasmo_h801_loungeled1_6180_a: 25
|
||||
light.tasmo_h801_loungeled1_6180_b: 25
|
||||
switch.lounge_cupboard_dual_usb_xus09_l2: on
|
||||
switch.esp_loungesouthleftswitch_relay_1_wall_washer_left: on # Back wall wallwasher Left
|
||||
switch.esp_loungesouthrightswitch_relay_2_wall_washer_right: on # Back wall wallwasher right
|
||||
|
||||
TV General:
|
||||
light.esp_lounge6chdimmer_couch_spots_left: 50
|
||||
light.esp_lounge6chdimmer_couch_spots_right: 50
|
||||
#light.esp_lounge6chdimmer_dining_table_light: 100
|
||||
light.esp_lounge6chdimmer_lounge_downlights_centre: 40 # Centre Downlights (x6, dimmable)
|
||||
light.esp_lounge6chdimmer_lounge_downlights_south: 40 # South Downlights (x4, dimmable)
|
||||
light.esp_lounge6chdimmer_lounge_rafter_buttons: 40 # Buttons in Rafters (x3, dimmable)
|
||||
light.esp_breakfastbarleds_breakfast_bar_leds: 60
|
||||
light.esp_loungecabinetleds2_lounge_cabinet_leds: 60
|
||||
light.esp_loungebookshelfleds_lounge_bookshelf_leds: 60
|
||||
light.tasmo_h801_loungeled1_6180_a: 60
|
||||
light.tasmo_h801_loungeled1_6180_b: 60
|
||||
switch.esp_loungemiddleswitch_relay_3_downlights_north: off # North Downlights (x2 over stairs, non dimmable) switch.lounge_cupboard_dual_usb_xus09_l2: "on"
|
||||
switch.esp_loungesouthleftswitch_relay_1_wall_washer_left: off # Back wall wallwasher Left
|
||||
switch.esp_loungesouthrightswitch_relay_2_wall_washer_right: off # Back wall wallwasher right
|
||||
switch.esp_loungenorthswitch_relay_1_main_lights: on # Single switch to hallway relay output (Pelmet LEDs)
|
||||
switch.lounge_cupboard_dual_usb_xus09_l2: "on"
|
||||
switch.esp_loungesouthleftswitch_relay_1_wall_washer_left: "on"
|
||||
switch.esp_loungesouthrightswitch_relay_2_wall_washer_right: "on"
|
||||
#switch.esp_loungenorthswitch_relay_1_main_lights: "on"
|
||||
number.esp_loungepelmetleds2_lounge_pelmet_leds_a_output_set_0_100: 20
|
||||
number.esp_loungepelmetleds2_lounge_pelmet_leds_b_output_set_0_100: 20
|
||||
|
||||
All Off:
|
||||
light.esp_lounge6chdimmer_couch_spots_left: 0
|
||||
light.esp_lounge6chdimmer_couch_spots_right: 0
|
||||
light.esp_lounge6chdimmer_dining_table_light: 0
|
||||
light.esp_lounge6chdimmer_lounge_downlights_centre: 0 # Centre Downlights (x6, dimmable)
|
||||
light.esp_lounge6chdimmer_lounge_downlights_south: 0 # South Downlights (x4, dimmable)
|
||||
light.esp_lounge6chdimmer_lounge_rafter_buttons: 0 # Buttons in Rafters (x3, dimmable)
|
||||
switch.esp_loungemiddleswitch_relay_3_downlights_north: "off" # North Downlights (x2 over stairs, non dimmable)
|
||||
light.esp_lounge6chdimmer_lounge_downlights_centre: 0
|
||||
light.esp_lounge6chdimmer_lounge_downlights_south: 0
|
||||
light.esp_lounge6chdimmer_lounge_rafter_buttons: 0
|
||||
switch.esp_loungemiddleswitch_relay_3_downlights_north: "off"
|
||||
light.esp_breakfastbarleds_breakfast_bar_leds: 0
|
||||
light.esp_loungecabinetleds2_lounge_cabinet_leds: 0
|
||||
light.esp_loungebookshelfleds_lounge_bookshelf_leds: 0
|
||||
light.tasmo_h801_loungeled1_6180_a: 0
|
||||
light.tasmo_h801_loungeled1_6180_b: 0
|
||||
switch.lounge_cupboard_dual_usb_xus09_l2: off
|
||||
switch.esp_loungesouthleftswitch_relay_1_wall_washer_left: off # Back wall wallwasher Left
|
||||
switch.esp_loungesouthrightswitch_relay_2_wall_washer_right: off # Back wall wallwasher right
|
||||
switch.esp_loungenorthswitch_relay_1_main_lights: off # Single switch to hallway relay output (Pelmet LEDs)
|
||||
switch.lounge_cupboard_dual_usb_xus09_l2: "off"
|
||||
switch.esp_loungesouthleftswitch_relay_1_wall_washer_left: "off"
|
||||
switch.esp_loungesouthrightswitch_relay_2_wall_washer_right: "off"
|
||||
#switch.esp_loungenorthswitch_relay_1_main_lights: "on"
|
||||
number.esp_loungepelmetleds2_lounge_pelmet_leds_a_output_set_0_100: 0
|
||||
number.esp_loungepelmetleds2_lounge_pelmet_leds_b_output_set_0_100: 0
|
||||
|
||||
#####################################################################
|
||||
#####################################################################
|
||||
@@ -202,8 +215,17 @@ script:
|
||||
is_toggle: "{{ (not is_num) and (vstr|lower).startswith('toggle') }}"
|
||||
toggle_pct: "{{ (vstr.split('_')|last)|int if ('_' in vstr) else 100 }}"
|
||||
currently_on: "{{ is_state(ent, 'on') }}"
|
||||
is_number_ent: "{{ ent.startswith('number.') }}" # 🔹 NEW
|
||||
|
||||
- choose:
|
||||
# 0) Numbers: set numeric value (e.g. 0..100)
|
||||
- conditions: "{{ is_number_ent and is_num }}" # 🔹 NEW
|
||||
sequence:
|
||||
- service: number.set_value
|
||||
data:
|
||||
entity_id: "{{ ent }}"
|
||||
value: "{{ val|float }}"
|
||||
|
||||
# 1) Lights: toggle[_NN] -> if on turn off, else turn on to NN (default 100)
|
||||
- conditions: "{{ is_light and is_toggle }}"
|
||||
sequence:
|
||||
|
||||
Reference in New Issue
Block a user