mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-14 04:46:49 +00:00
remove the slash from the topic's preface
The topic's preface doesn't actually start with a slash.
This commit is contained in:
parent
c203dcc274
commit
8f34166e5f
@ -111,14 +111,14 @@ mqtt:
|
|||||||
broker: localhost
|
broker: localhost
|
||||||
```
|
```
|
||||||
|
|
||||||
Replace `localhost` with the location of the running MQTT Broker. Devices from the MQTT Bridge are published to the path `/smartthings/<Device Name>/<Atribute>`
|
Replace `localhost` with the location of the running MQTT Broker. Devices from the MQTT Bridge are published to the path `smartthings/<Device Name>/<Atribute>`
|
||||||
|
|
||||||
For example, my Dimmer Z-Wave Lamp is called "Fireplace Lights" in SmartThings. The following topics are published:
|
For example, my Dimmer Z-Wave Lamp is called "Fireplace Lights" in SmartThings. The following topics are published:
|
||||||
|
|
||||||
| Topic | Description
|
| Topic | Description
|
||||||
| ----- | -----------
|
| ----- | -----------
|
||||||
| /smartthings/Fireplace Lights/level | Brightness (0-99)
|
| smartthings/Fireplace Lights/level | Brightness (0-99)
|
||||||
| /smartthings/Fireplace Lights/switch | Switch State (on/off)
|
| smartthings/Fireplace Lights/switch | Switch State (on/off)
|
||||||
|
|
||||||
Here is an example Home Assistant config:
|
Here is an example Home Assistant config:
|
||||||
|
|
||||||
@ -126,10 +126,10 @@ Here is an example Home Assistant config:
|
|||||||
switch:
|
switch:
|
||||||
platform: mqtt
|
platform: mqtt
|
||||||
name: "Fireplace Lights"
|
name: "Fireplace Lights"
|
||||||
state_topic: "/smartthings/Fireplace Lights/switch"
|
state_topic: "smartthings/Fireplace Lights/switch"
|
||||||
command_topic: "/smartthings/Fireplace Lights/switch"
|
command_topic: "smartthings/Fireplace Lights/switch"
|
||||||
brightness_state_topic: "/smartthings/Fireplace Lights/level"
|
brightness_state_topic: "smartthings/Fireplace Lights/level"
|
||||||
brightness_command_topic: "/smartthings/Fireplace Lights/level"
|
brightness_command_topic: "smartthings/Fireplace Lights/level"
|
||||||
payload_on: "on"
|
payload_on: "on"
|
||||||
payload_off: "off"
|
payload_off: "off"
|
||||||
retain: true
|
retain: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user