File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -44,12 +44,12 @@ A motion detection device which can be represented by a [binary sensor](/compone
44
44
45
45
- Configuration topic : ` homeassistant/binary_sensor/garden/config`
46
46
- State topic : ` homeassistant/binary_sensor/garden/state`
47
- - Payload : ` {"name": "garden", "sensor_class ": "motion"}`
47
+ - Payload : ` {"name": "garden", "device_class ": "motion"}`
48
48
49
49
To create a new sensor manually. For more details please refer to the [MQTT testing section](/component/mqtt_testing).
50
50
51
51
` ` ` bash
52
- $ mosquitto_pub -h 127.0.0.1 -p 1883 -t "homeassistant/binary_sensor/garden/config" -m '{"name": "garden", "sensor_class ": "motion"}'
52
+ $ mosquitto_pub -h 127.0.0.1 -p 1883 -t "homeassistant/binary_sensor/garden/config" -m '{"name": "garden", "device_class ": "motion"}'
53
53
` ` `
54
54
Update the state.
55
55
You can’t perform that action at this time.
0 commit comments