Skip to content
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

knx device_class value volatile_organic_compounds_parts shown as "not accepted" #3282

Open
wk2001 opened this issue Nov 7, 2024 · 1 comment
Labels

Comments

@wk2001
Copy link

wk2001 commented Nov 7, 2024

Here my yaml extract:

knx:
  sensor:
    - name: "VOC Bad 1. OG"
      state_address: "5/1/102"
      type: ppm
      sync_state: true
      state_class: measurement
      device_class: volatile_organic_compounds_parts

For device_class I get the error/warning in the Studio Code Server add on in Home Assistant:

Value is not accepted. Valid values: "apparent_power", "aqi", "atmospheric_pressure", "battery", "carbon_dioxide", "carbon_monoxide", "current", "data_rate", "data_size", "date", "distance", "duration", "energy", "energy_storage", "enum", "frequency", "gas", "humidity", "illuminance", "irradiance", "moisture", "monetary", "nitrogen_dioxide", "nitrogen_monoxide", "nitrous_oxide", "ozone", "pm1", "pm10", "pm25", "power", "power_factor", "precipitation", "precipitation_intensity", "pressure", "reactive_power", "signal_strength", "sound_pressure", "sulphur_dioxide", "temperature", "timestamp", "volatile_organic_compounds", "voltage", "volume", "volume_storage", "water", "weight", "wind_speed".yaml-schema: http://schemas.home-assistant.io/integration-homeassistant-packages(1)

Following https://www.home-assistant.io/integrations/knx#device_class volatile_organic_compounds_parts is a valid value and there are no issues in Home Assistant itself.

@lechercheur123
Copy link
Contributor

Hello,
I have the same issue for the device_class volume_flow_rate, so I made a PR to add both device_classes ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants