Problema en código entity_id de una automatización

¿Atascado con una automatización de Home Assistant? ¿Alguna configuración que no va? Plantea tu problema e intentaremos ayudarte
momo32
Mensajes: 1
Registrado: Sab Ago 08, 2020 7:07 pm

Problema en código entity_id de una automatización

Mensaje por momo32 » Sab Ene 30, 2021 10:04 pm

Buenas tardes.
Necesito ayuda, al menos para saber si es posible hacerlo o no. El caso es que en un automatización quiero realizar un action que dependiendo del valor de un select seleccione una entity_id u otra. El código siguiente genera un error en el log de ha, solo por el hecho de reiniciar las automatizaciones:

Código: Seleccionar todo

type: toggle
device_id: {{% if is_state('input_select.mi_posicion', 'Salon') %}
  863d0043543a8390a41d6505d870060c {% else %} 7f14f38259d0c4c6433c95e794a33121
  {% endif %}}
entity_id: {{% if is_state('input_select.mi_posicion', 'Salon') %}
  switch.0x00158d000444d5ef_l1 {% else %} switch.aseoprincipal_l2
  {% endif %}}
La parte del device_id se lo traga bien, pero la de la entity_id no, da error.
El error que da es el siguiente:

Código: Seleccionar todo

Invalid config for [automation]: Entity ID {{% if is_state('input_select.mi_posicion', 'Salon') %} switch.0x00158d000444d5ef_l1 {% else %} switch.aseoprincipal_l2 {% endif %}} is an invalid entity id for dictionary value @ data['entity_id']. Got None. (See /config/configuration.yaml, line 60).

dadag
Mensajes: 1512
Registrado: Mar Dic 05, 2023 11:37 am

Re: Problema en código entity_id de una automatización

Mensaje por dadag » Sab Dic 09, 2023 12:56 pm

Friday Night Lights is a great tv series, i love the game and i love the story~ 우리카지노

dadag
Mensajes: 1512
Registrado: Mar Dic 05, 2023 11:37 am

Re: Problema en código entity_id de una automatización

Mensaje por dadag » Sab Dic 09, 2023 2:47 pm

I don’t even know how I ended up here, but I thought this post was great. Fototapety I do not know who you are but certainly you’re going to a famous blogger if you aren’t already Cheers! تاسيس شركة في دبي

dadag
Mensajes: 1512
Registrado: Mar Dic 05, 2023 11:37 am

Re: Problema en código entity_id de una automatización

Mensaje por dadag » Dom Dic 10, 2023 7:19 am

very nice post, i definitely enjoy this amazing site, persist with it Mahitaji ya Visa ya Amerika

dadag
Mensajes: 1512
Registrado: Mar Dic 05, 2023 11:37 am

Re: Problema en código entity_id de una automatización

Mensaje por dadag » Dom Dic 10, 2023 1:57 pm

Aw, i thought this was quite a good post. In concept I would like to devote writing such as this moreover – spending time and actual effort to produce a great article… but exactly what do I say… I procrastinate alot by no means manage to get something done. Viking Gate Repair Los Filez

dadag
Mensajes: 1512
Registrado: Mar Dic 05, 2023 11:37 am

Re: Problema en código entity_id de una automatización

Mensaje por dadag » Lun Dic 11, 2023 8:44 am

Thanks for the auspicious writeup. It actually used to be a leisure account it. Glance complicated to more delivered agreeable from you! However, how can we be in contact? oxbetwin

dadag
Mensajes: 1512
Registrado: Mar Dic 05, 2023 11:37 am

Re: Problema en código entity_id de una automatización

Mensaje por dadag » Lun Dic 11, 2023 4:29 pm

I was just chatting with my coworker about this last week at the resturant. Don’t know how in the world we landed on the subject really, they Billig THCp

dadag
Mensajes: 1512
Registrado: Mar Dic 05, 2023 11:37 am

Re: Problema en código entity_id de una automatización

Mensaje por dadag » Lun Dic 11, 2023 4:42 pm

Hi my friend! I want to say that this post is amazing, great written and include almost all significant infos. I would like to see extra posts like this. bilbarnstol

dadag
Mensajes: 1512
Registrado: Mar Dic 05, 2023 11:37 am

Re: Problema en código entity_id de una automatización

Mensaje por dadag » Mar Dic 12, 2023 3:05 pm

Hello! I merely would like to provide a huge thumbs up for your excellent info you’ve got here during this post. I will be returning to your website for more soon. hoteles mexico

dadag
Mensajes: 1512
Registrado: Mar Dic 05, 2023 11:37 am

Re: Problema en código entity_id de una automatización

Mensaje por dadag » Mar Dic 12, 2023 3:08 pm

Both Will Ferrell and Mark Wahlberg play off of each other much better than you might expect as the titular characters, and Michael Keaton – once again, this summer – steals just about every scene that he’s in as the Guys’ more-calm-than-he-probably-should-be captain. sinais de opções binárias online

Responder