mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
Fix link to MQTT testing (#2462)
URL changed after docs reorganization.
This commit is contained in:
parent
e94e897ba1
commit
a4af4d5dfa
@ -54,7 +54,7 @@ A motion detection device which can be represented by a [binary sensor](/compone
|
|||||||
- State topic: `homeassistant/binary_sensor/garden/state`
|
- State topic: `homeassistant/binary_sensor/garden/state`
|
||||||
- Payload: `{"name": "garden", "device_class": "motion"}`
|
- Payload: `{"name": "garden", "device_class": "motion"}`
|
||||||
|
|
||||||
To create a new sensor manually. For more details please refer to the [MQTT testing section](/component/mqtt_testing).
|
To create a new sensor manually. For more details please refer to the [MQTT testing section](/docs/mqtt/testing/).
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ mosquitto_pub -h 127.0.0.1 -p 1883 -t "homeassistant/binary_sensor/garden/config" -m '{"name": "garden", "device_class": "motion"}'
|
$ mosquitto_pub -h 127.0.0.1 -p 1883 -t "homeassistant/binary_sensor/garden/config" -m '{"name": "garden", "device_class": "motion"}'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user