From a854b89b599c29d890f703a76a18960ca7dfb361 Mon Sep 17 00:00:00 2001 From: mkfink Date: Fri, 9 Feb 2018 16:37:06 -0500 Subject: [PATCH] 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 --- source/_components/binary_sensor.mqtt.markdown | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/_components/binary_sensor.mqtt.markdown b/source/_components/binary_sensor.mqtt.markdown index 6505859838..824f9bef2c 100644 --- a/source/_components/binary_sensor.mqtt.markdown +++ b/source/_components/binary_sensor.mqtt.markdown @@ -76,6 +76,11 @@ value_template: description: "Defines a [template](/docs/configuration/templating/#processing-incoming-data) to extract a value from the payload." required: false 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 %} 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: