Improve MQTT Light docs (#4681)

* Improve MQTT Light docs

* Small adjustment
This commit is contained in:
Otto Winter 2018-02-16 22:13:17 +01:00 committed by Fabian Affolter
parent a2241a0ce1
commit 89ea0154a3

View File

@ -120,7 +120,7 @@ rgb_command_topic:
required: false required: false
type: string type: string
rgb_state_topic: rgb_state_topic:
description: The MQTT topic subscribed to receive RGB state updates. description: The MQTT topic subscribed to receive RGB state updates. The expected payload is the RGB values separated by commas, for example `255,0,127`.
required: false required: false
type: string type: string
rgb_value_template: rgb_value_template:
@ -233,10 +233,10 @@ To enable a light with brightness (no RGB version) in your installation, add the
light: light:
- platform: mqtt - platform: mqtt
name: "Office light" name: "Office light"
state_topic: "office/rgb1/light/status" state_topic: "office/light/status"
command_topic: "office/rgb1/light/switch" command_topic: "office/light/switch"
brightness_state_topic: 'office/rgb1/light/brightness' brightness_state_topic: 'office/light/brightness'
brightness_command_topic: 'office/rgb1/light/brightness/set' brightness_command_topic: 'office/light/brightness/set'
qos: 0 qos: 0
payload_on: "ON" payload_on: "ON"
payload_off: "OFF" payload_off: "OFF"
@ -255,8 +255,8 @@ light:
state_topic: "office/light/status" state_topic: "office/light/status"
command_topic: "office/light/switch" command_topic: "office/light/switch"
payload_off: "OFF" payload_off: "OFF"
brightness_state_topic: 'office/rgb1/light/brightness' brightness_state_topic: 'office/light/brightness'
brightness_command_topic: 'office/rgb1/light/brightness/set' brightness_command_topic: 'office/light/brightness/set'
on_command_type: 'brightness' on_command_type: 'brightness'
``` ```