mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-12 03:46:49 +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:
|
binary_sensor:
|
||||||
- platform: rest
|
- platform: rest
|
||||||
name: Kitchen Motion
|
name: Kitchen Motion
|
||||||
sensor_class: motion
|
device_class: motion
|
||||||
resource: http://IP_ADDRESS:PORT/sensors.json?sense=motion_active
|
resource: http://IP_ADDRESS:PORT/sensors.json?sense=motion_active
|
||||||
value_template: '{{ value_json.motion_active.data[0][1][0] | round(0) }}'
|
value_template: '{{ value_json.motion_active.data[0][1][0] | round(0) }}'
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user