- List item
Hi all,
Unfortunately I can’t manage the hue’s scene from input_select, could you help me?
this is the error: ERROR (MainThread) [homeassistant.core] Invalid service data for scene.turn_on: Entity ID is an invalid entity id for dictionary value @ data[‘entity_id’]. Got ‘’
Below my configuration:
- alias: Scene Camera da Letto
trigger:
platform: state
entity_id: input_select.scene_cdl
action:
- service: scene.turn_on
data_template:
entity_id: >
{% if is_state( "input_select.scene_cdl", "Luce Notturna" ) %}
scene.cdl_luce_notturna
{%-elif is_state( "input_select.scene_cdl", "Dimmed" ) %}
scene.cdl_dimmed
{%-elif is_state( "input_select.scene_cdl", "Relax" ) %}
scene.cdl_relax
{%-elif is_state( "input_select.scene_cdl", "Lettura" ) %}
scene.cdl_lettura
{%-elif is_state( "input_select.scene_cdl", "Concentrazione" ) %}
scene.cdl_concentrazione
{%-elif is_state( "input_select.scene_cdl", "Off" ) %}
scene.cdl_off
{% endif %}
- service: input_select.select_option
data:
entity_id: input_select.scene_cdl
option: "-"
scene_cdl:
name: Scene
icon: mdi:brightness-auto
initial: "-"
options:
- "-"
- "Off"
- Luce Notturna
- Dimmed
- Relax
- Lettura
- Concentrazione
scene.cdl_luce_notturna:
friendly_name: 'Luce Notturna'
icon: mdi:brightness-4
scene.cdl_dimmed:
friendly_name: 'Dimmed'
icon: mdi:brightness-7
scene.cdl_relax:
friendly_name: 'Relax'
icon: mdi:brightness-6
scene.cdl_lettura:
friendly_name: 'Lettura'
icon: mdi:brightness-5
scene.cdl_concentrazione:
friendly_name: 'Concentrazione'
icon: mdi:star-circle
scene.cdl_off:
friendly_name: 'Off'
icon: mdi:flashlight-off
Thanks in advances.