Hemandk
(Jonas Rohde)
1
So this is driving me nuts.
Basicly I’m trying to convert the hook lights blueprint, so I can use an input_select contain two lights instead of one specific light.
Input:
input_light:
name: (Required) Input select
description: Select list of lights
selector:
entity:
domain: input_select
Variables:
input_light_val: !input 'input_light'
light: '{{ states(input_light_val.entity_id) }}'
Then I want to save what ever entity light that is currently selected in the input_select into a variable:
But I cannot get this to work, any pointer or help here?
AntonH
2
the target selector will allow you to choose multiple entities. You can also set the entity type to only allow users to select lights.
input:
input_light:
name: Target lights
selector:
target:
entity:
domain: light
variables:
input_light_val: !input input_light
Hemandk
(Jonas Rohde)
3
I have this input_select in my config that I use to select a light using a button:
#Input light selector
input_select:
remote_controlled_led_strips:
name: Hvilken LED strip skal styres
options:
- light.fireplace1
- light.fireplace2
initial: light.fireplace1
When I pres a specfic button then it toogle the input_select:
action_button_center_double:
- service: input_select.select_next
data: {}
target:
entity_id: input_select.remote_controlled_led_strips
- service: light.turn_on
data:
flash: short
data_template:
entity_id: '{{ states.input_select.remote_controlled_led_strips.state }}'