Script fields not show up in UI

Hi ,

I have two scripts, where both have the same fields.
These fields were added thru the UI from the first script.
In the second script I’ve copied the yaml and made changes to work similarly for other devices.

However, the field for one appears on UI, and the second no.

I’m considering this a defect or is there something I am missing here?

alias: Ar Quente Augusto (script)
description: |-
  liga ar quente, conforme temperatura de parametro
  muda pra ventilação/desliga , conforme temperatura de parametro
sequence:
.
.
.
fields:
  desligar_as:
    selector:
      datetime: {}
    name: Desligar as
  add_mais_1_hora:
    selector:
      number:
        min: 1
        max: 100
    name: Executa por +1 hora
mode: restart

alias: Boiler automatico v2 (script)
sequence:
.
.
.
mode: restart
icon: mdi:water-boiler-auto
fields:
  desligar_as:
    selector:
      datetime: {}
    name: Desligar as
  add_mais_1_hora:
    selector:
      number:
        min: 1
        max: 100
    name: Executa por +1 hora
description: >-
  Pode receber 2 parametros, data/hora ou se adiciona +1 hora. 

  Fica em loop conferindo a temperatura do boiler minuto a minuto até dar o
  tempo parametrizado

Probably the same bug as this:

What is the entity_id and does it match the script id?

1 Like

Hi @karwosts ,

The entity_id = script.boiler_automatico_v2_script
The “script id”, I’m not sure what you mean by it… is the script description name?

Checked the content of the issue report and not sure if is the same, since I didn’t copied the script by the UI, I’ve copied the yaml and pasted it over a new script skeleton.

Open the script in the scripts page in the UI. What is in the URL?

will be something like

URL:8123/config/script/edit/myscriptname

Sorry the delay ,

Appear to be ok :

http://ha:8123/config/script/edit/boiler_automatico_2_script
script.boiler_automatico_v2_script

Yeah this should be fixed by Fix script more-info when entity_id != unique_id by karwosts · Pull Request #21880 · home-assistant/frontend · GitHub

ok, thank you!

I don’t know about the flow of the development releases, I saw now the code was merged only 9 hours ago, so, is there any chance to be published on version 2024.9.2 ?

maybe, maybe not for a minor release. it will be in 2024.10 for sure.

2 Likes