Skip to content

boolean fields/values in scripts not formated as such, only as simple text fields #1142

Description

@Brun059

Checklist

  • I checked for similar existing issues (both open and closed) before posting.
  • I will participate in further discussion about this issue and can help by testing (if requested).

Card Version

v4.0.17

Component Version

No response

Bug description

I created a script with fields such as
fields: valve_1: name: EntranceEast description: "Entrance / East" default: false selector: boolean: {}

The fields formatted correctly in run script and in developer-actions
The fields are shown on the schedule card when adding a schedule, yet they only formatted as "plain" text field (the numeric slider field was displayed correctly) I used all (Gemini suggested ;-), and there were many ) approaches to somehow make the fields displayed as boolean, no luck.

Steps to reproduce

script's fields were shown correctly in Run Script and in developer-actions
not even manual configuration in scheduler card made them format as boolean
`type: custom:scheduler-card
include:

  • script.irrigation_t2
    customize:
    script.irrigation_t2:
    actions:
    • service: script.irrigation_t2
      name: Run Irrigation
      variables:
      valve_1:
      name: Valve East
      type: boolean`

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    StalebugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions