From 374c41e1170e8993b8695525115bb9fbff336ff2 Mon Sep 17 00:00:00 2001 From: Carlo Costanzo Date: Mon, 13 Nov 2023 09:59:48 -0500 Subject: [PATCH] Update garadget.markdown (#29759) * Update garadget.markdown aDDED IN mqtt SENSORS FOR gARDGET USING THE NEW mqtt FORMATTING * New MQTT formatting Updated to include the cover as well under the MQTT header. * Update garadget.markdown --- source/_integrations/garadget.markdown | 27 ++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/source/_integrations/garadget.markdown b/source/_integrations/garadget.markdown index 235fff1a5a4..c0eb9c43ff4 100644 --- a/source/_integrations/garadget.markdown +++ b/source/_integrations/garadget.markdown @@ -125,14 +125,25 @@ As of firmware release 1.17 the garadget device has native support for MQTT. The For configuration of the garadget as a MQTT cover: ```yaml -cover: - - platform: mqtt - name: "Garage Door" - command_topic: "garadget/device_name/command" - state_topic: "garadget/device_name/status" - payload_open: "open" - payload_close: "close" - value_template: "{{ value_json.status }}" +mqtt: + cover: + - name: "Garage Door" + command_topic: "garadget/device_name/command" + state_topic: "garadget/device_name/status" + payload_open: "open" + payload_close: "close" + payload_stop: "stop" + value_template: "{{ value_json.status }}" + sensor: + - name: "Garage Door Since" + state_topic: "garadget/device_name/status" + value_template: '{{ value_json.time }}' + + - name: "Large Garage Door Brightness" + state_topic: "garadget/device_name/status" + unit_of_measurement: '%' + value_template: '{{ value_json.bright }}' + ``` Replace device_name with the name of the device provided when configuring garadget.