-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
Add sensor as entity platform on MQTT subentries #139899
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
Conversation
Hey there @emontnemery, @bdraco, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
b310ba3
to
dcce889
Compare
c264bfd
to
2d4a62e
Compare
7967a3d
to
b002d8d
Compare
b002d8d
to
89aa5cc
Compare
Frontend PR was merged |
…uded from reconfig
"device_class_sensor": { | ||
"options": { | ||
"apparent_power": "[%key:component::sensor::entity_component::apparent_power::name%]", | ||
"area": "[%key:component::sensor::entity_component::area::name%]", | ||
"aqi": "[%key:component::sensor::entity_component::aqi::name%]", | ||
"atmospheric_pressure": "[%key:component::sensor::entity_component::atmospheric_pressure::name%]", | ||
"battery": "[%key:component::sensor::entity_component::battery::name%]", | ||
"blood_glucose_concentration": "[%key:component::sensor::entity_component::blood_glucose_concentration::name%]", | ||
"carbon_dioxide": "[%key:component::sensor::entity_component::carbon_dioxide::name%]", | ||
"carbon_monoxide": "[%key:component::sensor::entity_component::carbon_monoxide::name%]", | ||
"conductivity": "[%key:component::sensor::entity_component::conductivity::name%]", | ||
"current": "[%key:component::sensor::entity_component::current::name%]", | ||
"data_rate": "[%key:component::sensor::entity_component::data_rate::name%]", | ||
"data_size": "[%key:component::sensor::entity_component::data_size::name%]", | ||
"date": "[%key:component::sensor::entity_component::date::name%]", | ||
"distance": "[%key:component::sensor::entity_component::distance::name%]", | ||
"duration": "[%key:component::sensor::entity_component::duration::name%]", | ||
"energy": "[%key:component::sensor::entity_component::energy::name%]", | ||
"energy_distance": "[%key:component::sensor::entity_component::energy_distance::name%]", | ||
"energy_storage": "[%key:component::sensor::entity_component::energy_storage::name%]", | ||
"enum": "Enumeration", | ||
"frequency": "[%key:component::sensor::entity_component::frequency::name%]", | ||
"gas": "[%key:component::sensor::entity_component::gas::name%]", | ||
"humidity": "[%key:component::sensor::entity_component::humidity::name%]", | ||
"illuminance": "[%key:component::sensor::entity_component::illuminance::name%]", | ||
"irradiance": "[%key:component::sensor::entity_component::irradiance::name%]", | ||
"moisture": "[%key:component::sensor::entity_component::moisture::name%]", | ||
"monetary": "[%key:component::sensor::entity_component::monetary::name%]", | ||
"nitrogen_dioxide": "[%key:component::sensor::entity_component::nitrogen_dioxide::name%]", | ||
"nitrogen_monoxide": "[%key:component::sensor::entity_component::nitrogen_monoxide::name%]", | ||
"nitrous_oxide": "[%key:component::sensor::entity_component::nitrous_oxide::name%]", | ||
"ozone": "[%key:component::sensor::entity_component::ozone::name%]", | ||
"ph": "[%key:component::sensor::entity_component::ph::name%]", | ||
"pm1": "[%key:component::sensor::entity_component::pm1::name%]", | ||
"pm10": "[%key:component::sensor::entity_component::pm10::name%]", | ||
"pm25": "[%key:component::sensor::entity_component::pm25::name%]", | ||
"power": "[%key:component::sensor::entity_component::power::name%]", | ||
"power_factor": "[%key:component::sensor::entity_component::power_factor::name%]", | ||
"precipitation": "[%key:component::sensor::entity_component::precipitation::name%]", | ||
"precipitation_intensity": "[%key:component::sensor::entity_component::precipitation_intensity::name%]", | ||
"pressure": "[%key:component::sensor::entity_component::pressure::name%]", | ||
"reactive_power": "[%key:component::sensor::entity_component::reactive_power::name%]", | ||
"signal_strength": "[%key:component::sensor::entity_component::signal_strength::name%]", | ||
"sound_pressure": "[%key:component::sensor::entity_component::sound_pressure::name%]", | ||
"speed": "[%key:component::sensor::entity_component::speed::name%]", | ||
"sulphur_dioxide": "[%key:component::sensor::entity_component::sulphur_dioxide::name%]", | ||
"temperature": "[%key:component::sensor::entity_component::temperature::name%]", | ||
"timestamp": "[%key:component::sensor::entity_component::timestamp::name%]", | ||
"volatile_organic_compounds": "[%key:component::sensor::entity_component::volatile_organic_compounds::name%]", | ||
"volatile_organic_compounds_parts": "[%key:component::sensor::entity_component::volatile_organic_compounds::name%]", | ||
"voltage": "[%key:component::sensor::entity_component::voltage::name%]", | ||
"volume": "[%key:component::sensor::entity_component::volume::name%]", | ||
"volume_flow_rate": "[%key:component::sensor::entity_component::volume_flow_rate::name%]", | ||
"volume_storage": "[%key:component::sensor::entity_component::volume_storage::name%]", | ||
"water": "[%key:component::sensor::entity_component::water::name%]", | ||
"weight": "[%key:component::sensor::entity_component::weight::name%]", | ||
"wind_direction": "[%key:component::sensor::entity_component::wind_direction::name%]", | ||
"wind_speed": "[%key:component::sensor::entity_component::wind_speed::name%]" | ||
} | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have a plan for how we can avoid having to add this list to integrations? Can we maybe allow a translation_domain or something on selector?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have asked @joostlek if he had an idea, else I'll pick up this up in a follow up PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, it has to be done in a separate PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ready for review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @jbouwh 👍
Thanks! |
Proposed change
Add the MQTT sensor platform to subentry support.
Based on/needed:
Follow up PR's:
Needs:
home-assistant/frontend#24733Type of change
Additional information
Checklist
ruff format homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
.To help with the load of incoming pull requests: