Skip to content

Support script fields input when selecting script actions #1104

Description

@hellotohello

Checklist

  • I checked for similar existing requests (both open and closed) before posting.
  • My request is generic, other users may benefit from it too.
  • I will participate in further discussion about this feature and can test it (if requested) once it's done.

Proposal

Hello,

Thank you for the excellent Scheduler Card integration.

Currently when selecting a script entity as an action in Scheduler Card, the UI only allows executing the script directly. There is no way to provide values for script input fields.

However, Home Assistant scripts support parameters using the fields property. These fields allow scripts to receive dynamic input values when executed.

Additional info

Example script:

script:
output:
alias: Output
fields:
message:
description: Text to broadcast
required: true
sequence:
- service: notify.mobile_app
data:
message: "{{ message }}"

When selecting this script in Scheduler Card, the UI does not display any inputs for the defined fields. As a result, scripts that rely on parameters cannot be used effectively with Scheduler.

Feature request:

When a script entity is selected as an action, Scheduler Card could detect the script's fields definition and automatically generate appropriate input controls in the UI. These values would then be passed as service data when the script is executed.

Possible implementation behavior:

  1. Detect if the selected script defines fields
  2. Render input elements corresponding to each field (text, number, select, etc.)
  3. Pass the entered values as service data when executing the script

This would improve integration with Home Assistant's script system and allow parameterized scripts to be used directly within Scheduler tasks.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions