mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 08:46:51 +00:00
Mqtt configurable state encoding for sensor and binary_sensor platform (#20469)
This commit is contained in:
parent
b0c7969a73
commit
b6a54f69ec
@ -119,6 +119,7 @@ Supported abbreviations:
|
|||||||
'dev_cla': 'device_class',
|
'dev_cla': 'device_class',
|
||||||
'dock_t': 'docked_topic',
|
'dock_t': 'docked_topic',
|
||||||
'dock_tpl': 'docked_template',
|
'dock_tpl': 'docked_template',
|
||||||
|
'e': 'encoding',
|
||||||
'err_t': 'error_topic',
|
'err_t': 'error_topic',
|
||||||
'err_tpl': 'error_template',
|
'err_tpl': 'error_template',
|
||||||
'fanspd_t': 'fan_speed_topic',
|
'fanspd_t': 'fan_speed_topic',
|
||||||
|
@ -109,6 +109,11 @@ enabled_by_default:
|
|||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
|
encoding:
|
||||||
|
description: The encoding of the payload received at `state_topic`. Set to `""` to disable decoding.
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: "utf-8"
|
||||||
entity_category:
|
entity_category:
|
||||||
description: The [category](https://developers.home-assistant.io/docs/core/entity#generic-properties) of the entity.
|
description: The [category](https://developers.home-assistant.io/docs/core/entity#generic-properties) of the entity.
|
||||||
required: false
|
required: false
|
||||||
|
@ -101,6 +101,11 @@ enabled_by_default:
|
|||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
|
encoding:
|
||||||
|
description: The encoding of the payload received at `state_topic`. Set to `""` to disable decoding.
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: "utf-8"
|
||||||
entity_category:
|
entity_category:
|
||||||
description: The [category](https://developers.home-assistant.io/docs/core/entity#generic-properties) of the entity.
|
description: The [category](https://developers.home-assistant.io/docs/core/entity#generic-properties) of the entity.
|
||||||
required: false
|
required: false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user