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
This commit is contained in:
Carlo Costanzo 2023-11-13 09:59:48 -05:00 committed by GitHub
parent 1e511fa6a5
commit 374c41e117
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: For configuration of the garadget as a MQTT cover:
```yaml ```yaml
cover: mqtt:
- platform: mqtt cover:
name: "Garage Door" - name: "Garage Door"
command_topic: "garadget/device_name/command" command_topic: "garadget/device_name/command"
state_topic: "garadget/device_name/status" state_topic: "garadget/device_name/status"
payload_open: "open" payload_open: "open"
payload_close: "close" payload_close: "close"
payload_stop: "stop"
value_template: "{{ value_json.status }}" 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. Replace device_name with the name of the device provided when configuring garadget.