mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-09 18:36:51 +00:00
using device_class instead of sensor_class (#15415)
This commit is contained in:
parent
b1037b9982
commit
20bd0cc070
@ -179,7 +179,7 @@ You can setup the binary motion sensor with the following in your `configuration
|
||||
binary_sensor:
|
||||
- platform: rest
|
||||
name: Kitchen Motion
|
||||
sensor_class: motion
|
||||
device_class: motion
|
||||
resource: http://IP_ADDRESS:PORT/sensors.json?sense=motion_active
|
||||
value_template: '{{ value_json.motion_active.data[0][1][0] | round(0) }}'
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user