|
196 | 196 | "component": "Select the entity you want to update."
|
197 | 197 | }
|
198 | 198 | },
|
| 199 | + "entity_platform_config": { |
| 200 | + "title": "Configure MQTT device \"{mqtt_device}\"", |
| 201 | + "description": "Please configure specific details for {platform} entity \"{entity}\":", |
| 202 | + "data": { |
| 203 | + "device_class": "Device class", |
| 204 | + "state_class": "State class", |
| 205 | + "unit_of_measurement": "Unit of measurement", |
| 206 | + "suggested_display_precision": "Suggested display precision", |
| 207 | + "options": "Options" |
| 208 | + }, |
| 209 | + "data_description": { |
| 210 | + "device_class": "The type/class of the {platform} entity to set the icon in the frontend. [Learn more..]({url}#device_class)", |
| 211 | + "state_class": "The [state_class](https://developers.home-assistant.io/docs/core/entity/sensor/#available-state-classes) of the sensor. [Learn more..]({url}#state_class)", |
| 212 | + "unit_of_measurement": "Defines the units of measurement of the sensor, if any.", |
| 213 | + "suggested_display_precision": "The number of decimals which should be used in the sensor’s state after rounding. [Learn more..]({url}#suggested_display_precision)", |
| 214 | + "options": "List of allowed sensor state value. The sensor’s device_class must be set to Enumeration. The options option cannot be used together with State Class or Unit of measurement." |
| 215 | + } |
| 216 | + }, |
199 | 217 | "mqtt_platform_config": {
|
200 | 218 | "title": "Configure MQTT device \"{mqtt_device}\"",
|
201 | 219 | "description": "Please configure MQTT specific details for {platform} entity \"{entity}\":",
|
202 | 220 | "data": {
|
203 | 221 | "command_topic": "Command topic",
|
204 | 222 | "command_template": "Command template",
|
| 223 | + "state_topic": "State topic", |
| 224 | + "value_template": "Value template", |
| 225 | + "last_reset_value_template": "Last reset value template", |
| 226 | + "expire_after": "Expire after", |
| 227 | + "force_update": "Force update", |
205 | 228 | "retain": "Retain",
|
206 | 229 | "qos": "QoS"
|
207 | 230 | },
|
208 | 231 | "data_description": {
|
209 |
| - "command_topic": "The publishing topic that will be used to control the {platform} entity.", |
| 232 | + "command_topic": "The publishing topic that will be used to control the {platform} entity. [Learn more..]({url}#command_topic)", |
210 | 233 | "command_template": "A [template](https://www.home-assistant.io/docs/configuration/templating/#using-command-templates-with-mqtt) to render the payload to be published at the command topic.",
|
| 234 | + "state_topic": "The MQTT topic subscribed to receive {platform} state values. [Learn more..]({url}#state_topic)", |
| 235 | + "value_template": "Defines a [template](https://www.home-assistant.io/docs/configuration/templating/#using-value-templates-with-mqtt) to extract the {platform} entity value.", |
| 236 | + "last_reset_value_template": "Defines a [template](https://www.home-assistant.io/docs/configuration/templating/#using-value-templates-with-mqtt) to extract the last reset. When Last reset temaplate is set, the State class option must be Total. [Learn more..]({url}#last_reset_value_template)", |
| 237 | + "expire_after": "If set, it defines the number of seconds after the sensor’s state expires, if it’s not updated. After expiry, the sensor’s state becomes unavailable. Default the sensors state never expires. [Learn more..]({url}#expire_after)", |
| 238 | + "force_update": "Sends update events even if the value hasn’t changed. Useful if you want to have meaningful value graphs in history. [Learn more..]({url}#force_update)", |
211 | 239 | "retain": "Select if values published by the {platform} entity should be retained at the MQTT broker.",
|
212 | 240 | "qos": "The QoS value {platform} entity should use."
|
213 | 241 | }
|
|
223 | 251 | "invalid_input": "Invalid value",
|
224 | 252 | "invalid_subscribe_topic": "Invalid subscribe topic",
|
225 | 253 | "invalid_template": "Invalid template",
|
226 |
| - "invalid_url": "Invalid URL" |
| 254 | + "invalid_uom": "The unit of measurement is not allowed with the selected device class, please use the correct device class, or pick a valid unit of measurement from the list", |
| 255 | + "invalid_url": "Invalid URL", |
| 256 | + "last_reset_not_with_state_class_total": "The last reset value template option should be used with state class 'Total' only", |
| 257 | + "options_not_allowed_with_state_class_or_uom": "The 'Options' setting is not allowed when state class or unit of measurement are used", |
| 258 | + "options_device_class_enum": "The 'Options' setting must be used with the Enumeration device class'" |
227 | 259 | }
|
228 | 260 | }
|
229 | 261 | },
|
|
340 | 372 | }
|
341 | 373 | },
|
342 | 374 | "selector": {
|
| 375 | + "device_class": { |
| 376 | + "options": { |
| 377 | + "apparent_power": "[%key:component::sensor::entity_component::apparent_power::name%]", |
| 378 | + "area": "[%key:component::sensor::entity_component::area::name%]", |
| 379 | + "aqi": "[%key:component::sensor::entity_component::aqi::name%]", |
| 380 | + "atmospheric_pressure": "[%key:component::sensor::entity_component::atmospheric_pressure::name%]", |
| 381 | + "battery": "[%key:component::sensor::entity_component::battery::name%]", |
| 382 | + "blood_glucose_concentration": "[%key:component::sensor::entity_component::blood_glucose_concentration::name%]", |
| 383 | + "carbon_dioxide": "[%key:component::sensor::entity_component::carbon_dioxide::name%]", |
| 384 | + "carbon_monoxide": "[%key:component::sensor::entity_component::carbon_monoxide::name%]", |
| 385 | + "conductivity": "[%key:component::sensor::entity_component::conductivity::name%]", |
| 386 | + "current": "[%key:component::sensor::entity_component::current::name%]", |
| 387 | + "data_rate": "[%key:component::sensor::entity_component::data_rate::name%]", |
| 388 | + "data_size": "[%key:component::sensor::entity_component::data_size::name%]", |
| 389 | + "date": "[%key:component::sensor::entity_component::date::name%]", |
| 390 | + "distance": "[%key:component::sensor::entity_component::distance::name%]", |
| 391 | + "duration": "[%key:component::sensor::entity_component::duration::name%]", |
| 392 | + "energy": "[%key:component::sensor::entity_component::energy::name%]", |
| 393 | + "energy_distance": "[%key:component::sensor::entity_component::energy_distance::name%]", |
| 394 | + "energy_storage": "[%key:component::sensor::entity_component::energy_storage::name%]", |
| 395 | + "enum": "Enumeration", |
| 396 | + "frequency": "[%key:component::sensor::entity_component::frequency::name%]", |
| 397 | + "gas": "[%key:component::sensor::entity_component::gas::name%]", |
| 398 | + "humidity": "[%key:component::sensor::entity_component::humidity::name%]", |
| 399 | + "illuminance": "[%key:component::sensor::entity_component::illuminance::name%]", |
| 400 | + "irradiance": "[%key:component::sensor::entity_component::irradiance::name%]", |
| 401 | + "moisture": "[%key:component::sensor::entity_component::moisture::name%]", |
| 402 | + "monetary": "[%key:component::sensor::entity_component::monetary::name%]", |
| 403 | + "nitrogen_dioxide": "[%key:component::sensor::entity_component::nitrogen_dioxide::name%]", |
| 404 | + "nitrogen_monoxide": "[%key:component::sensor::entity_component::nitrogen_monoxide::name%]", |
| 405 | + "nitrous_oxide": "[%key:component::sensor::entity_component::nitrous_oxide::name%]", |
| 406 | + "ozone": "[%key:component::sensor::entity_component::ozone::name%]", |
| 407 | + "ph": "[%key:component::sensor::entity_component::ph::name%]", |
| 408 | + "pm1": "[%key:component::sensor::entity_component::pm1::name%]", |
| 409 | + "pm10": "[%key:component::sensor::entity_component::pm10::name%]", |
| 410 | + "pm25": "[%key:component::sensor::entity_component::pm25::name%]", |
| 411 | + "power": "[%key:component::sensor::entity_component::power::name%]", |
| 412 | + "power_factor": "[%key:component::sensor::entity_component::power_factor::name%]", |
| 413 | + "precipitation": "[%key:component::sensor::entity_component::precipitation::name%]", |
| 414 | + "precipitation_intensity": "[%key:component::sensor::entity_component::precipitation_intensity::name%]", |
| 415 | + "pressure": "[%key:component::sensor::entity_component::pressure::name%]", |
| 416 | + "reactive_power": "[%key:component::sensor::entity_component::reactive_power::name%]", |
| 417 | + "signal_strength": "[%key:component::sensor::entity_component::signal_strength::name%]", |
| 418 | + "sound_pressure": "[%key:component::sensor::entity_component::sound_pressure::name%]", |
| 419 | + "speed": "[%key:component::sensor::entity_component::speed::name%]", |
| 420 | + "sulphur_dioxide": "[%key:component::sensor::entity_component::sulphur_dioxide::name%]", |
| 421 | + "temperature": "[%key:component::sensor::entity_component::temperature::name%]", |
| 422 | + "timestamp": "[%key:component::sensor::entity_component::timestamp::name%]", |
| 423 | + "volatile_organic_compounds": "[%key:component::sensor::entity_component::volatile_organic_compounds::name%]", |
| 424 | + "volatile_organic_compounds_parts": "[%key:component::sensor::entity_component::volatile_organic_compounds::name%]", |
| 425 | + "voltage": "[%key:component::sensor::entity_component::voltage::name%]", |
| 426 | + "volume": "[%key:component::sensor::entity_component::volume::name%]", |
| 427 | + "volume_flow_rate": "[%key:component::sensor::entity_component::volume_flow_rate::name%]", |
| 428 | + "volume_storage": "[%key:component::sensor::entity_component::volume_storage::name%]", |
| 429 | + "water": "[%key:component::sensor::entity_component::water::name%]", |
| 430 | + "weight": "[%key:component::sensor::entity_component::weight::name%]", |
| 431 | + "wind_direction": "[%key:component::sensor::entity_component::wind_direction::name%]", |
| 432 | + "wind_speed": "[%key:component::sensor::entity_component::wind_speed::name%]" |
| 433 | + } |
| 434 | + }, |
343 | 435 | "platform": {
|
344 | 436 | "options": {
|
345 |
| - "notify": "Notify" |
| 437 | + "notify": "Notify", |
| 438 | + "sensor": "Sensor" |
346 | 439 | }
|
347 | 440 | },
|
348 | 441 | "set_ca_cert": {
|
|
351 | 444 | "auto": "Auto",
|
352 | 445 | "custom": "Custom"
|
353 | 446 | }
|
| 447 | + }, |
| 448 | + "state_class": { |
| 449 | + "options": { |
| 450 | + "measurement": "[%key:component::sensor::entity_component::_::state_attributes::state_class::state::measurement%]", |
| 451 | + "total": "[%key:component::sensor::entity_component::_::state_attributes::state_class::state::total%]", |
| 452 | + "total_increasing": "[%key:component::sensor::entity_component::_::state_attributes::state_class::state::total_increasing%]" |
| 453 | + } |
354 | 454 | }
|
355 | 455 | },
|
356 | 456 | "services": {
|
|
0 commit comments