Skip to content

Add Checkbox to Distinguish Sensor Reference in "Value" Field #37

@desarrollador-06

Description

@desarrollador-06

When configuring a iconify widget, I encountered an issue where entering certain text in the "Value" field resulted in the icon not rendering. After extensive debugging, I discovered that if the value matched the name of a selectable sensor, the draw function wouldn't receive the expected value. This behavior is controlled by the sensor boolean property in the configuration file. Disabling this property allowed the icon to render correctly.

To improve usability and avoid confusion:

  1. Add a checkbox next to the "Value" field to indicate whether the entered text is a sensor reference or not.
    • If the user types a custom text, the checkbox should default to unchecked.
    • If the user selects a value from the sensor list, the checkbox should default to checked.
  2. Allow users to manually toggle this checkbox to switch between using the field as a sensor reference or a plain text input.

This enhancement would make the behavior more intuitive and reduce the need for manual configuration changes in the underlying JSON file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions