Document mobile app enhancements (#1096)

This commit is contained in:
Paulus Schoutsen 2021-10-20 02:14:52 -07:00 committed by GitHub
parent 54afb4a91c
commit 6dfd0052c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.