Skip to content

Sample sentences do not respect entity's domain/device_class #3102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jose1711 opened this issue Mar 21, 2025 · 0 comments
Open

Sample sentences do not respect entity's domain/device_class #3102

jose1711 opened this issue Mar 21, 2025 · 0 comments
Assignees

Comments

@jose1711
Copy link
Contributor

Command such as

python3 -m script.intentfest sample --language en --intents HassLightSet

generates sentences disregarding the domain/device_class of the entity. Example:

{"intent": "HassLightSet", "text": "set the Powerwall stored energy brightness to 48%"}

Powerwall stored energy is a sensor classified as energy_storage:

  - name: "Powerwall stored energy"
    id: "sensor.powerwall_stored_energy"
    state: "6"
    attributes:
      device_class: energy_storage
      unit_of_measurement: "kWh"

and the generate action would be ignored:

$ python3 -m script.intentfest parse --language en --sentence 'set the Powerwall stored energy brightness to 48%'
$ (empty output)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants