Added force_update flag (#4558)
Related to https://github.com/home-assistant/home-assistant/pull/12092, based on https://home-assistant.io/components/sensor.mqtt/#force_update
This commit is contained in:
parent
ac219395de
commit
a854b89b59
1 changed files with 5 additions and 0 deletions
|
@ -76,6 +76,11 @@ value_template:
|
||||||
description: "Defines a [template](/docs/configuration/templating/#processing-incoming-data) to extract a value from the payload."
|
description: "Defines a [template](/docs/configuration/templating/#processing-incoming-data) to extract a value from the payload."
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
force_update:
|
||||||
|
description: Sends update events even if the value hasn't changed. Useful if you want to have meaningful value graphs in history.
|
||||||
|
reqired: false
|
||||||
|
type: boolean
|
||||||
|
default: False
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
To test, you can use the command line tool `mosquitto_pub` shipped with `mosquitto` or the `mosquitto-clients` package to send MQTT messages. To set the state of the binary sensor manually:
|
To test, you can use the command line tool `mosquitto_pub` shipped with `mosquitto` or the `mosquitto-clients` package to send MQTT messages. To set the state of the binary sensor manually:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue