diff --git a/docs/api/native-app-integration/sensors.md b/docs/api/native-app-integration/sensors.md index 2bc3b4b0..e0b16c1a 100644 --- a/docs/api/native-app-integration/sensors.md +++ b/docs/api/native-app-integration/sensors.md @@ -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.