mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-10 02:46:29 +00:00
Document mobile app enhancements (#1096)
This commit is contained in:
parent
54afb4a91c
commit
6dfd0052c8
@ -22,7 +22,9 @@ To register a sensor, make a request to the webhook like this:
|
||||
"state": "12345",
|
||||
"type": "sensor",
|
||||
"unique_id": "battery_state",
|
||||
"unit_of_measurement": "%"
|
||||
"unit_of_measurement": "%",
|
||||
"state_class": "measurement",
|
||||
"entity_category": "diagnostic"
|
||||
},
|
||||
"type": "register_sensor"
|
||||
}
|
||||
@ -40,6 +42,8 @@ The valid keys are:
|
||||
| type | string | Yes | The type of the sensor. Must be one of `binary_sensor` or `sensor` |
|
||||
| unique_id | string | Yes | An identifier unique to this installation of your app. You'll need this later. Usually best when its a safe version of the sensor name |
|
||||
| unit_of_measurement | string | No | The unit of measurement for the sensor |
|
||||
| state_class | string | No | The [state class](../../core/entity/sensor.md#available-state-classes) of the entity (sensors only)
|
||||
| entity_category | string | No | The entity category of the entity
|
||||
|
||||
Sensors will appear as soon as they are registered.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user