title | description | services | author | ms.service | ms.topic | ms.date | ms.author | ms.custom |
---|---|---|---|---|---|---|---|---|
include file |
include file |
iot-central |
dominicbetts |
iot-central |
include |
03/12/2020 |
dobett |
include file |
As an operator in your Azure IoT Central application, you can:
-
View the telemetry sent by the two thermostat components on the Overview page:
:::image type="content" source="media/iot-central-monitor-thermostat/view-telemetry.png" alt-text="View device telemetry":::
-
View the device properties on the About page. This page shows the properties from the device information component and the two thermostat components:
:::image type="content" source="media/iot-central-monitor-thermostat/about-properties.png" alt-text="View device properties":::
As a solution developer, you can customize the device template that IoT Central created automatically when the temperature controller device connected.
To add a cloud property to store the customer name associated with the device:
-
In your IoT Central application, navigate to the Temperature Controller device template on the Device templates page.
-
In the Temperature Controller device template, select Cloud properties.
-
Select Add cloud property. Enter Customer name as the Display name, expand the entry and choose String as the Schema. Then select Save.
To customize how the Get Max-Min report commands display in your IoT Central application:
-
Select Customize in the device template.
-
For getMaxMinReport (thermostat1), replace Get Max-Min report. with Get thermostat1 status report.
-
For getMaxMinReport (thermostat2), replace Get Max-Min report. with Get thermostat2 status report.
-
Select Save.
To customize how the Target Temperature writable properties display in your IoT Central application:
-
Select Customize in the device template.
-
For targetTemperature (thermostat1), replace Target Temperature with Target Temperature (1).
-
For targetTemperature (thermostat2), replace Target Temperature with Target Temperature (2).
-
Select Save.
The thermostat components in the Temperature Controller model include the Target Temperature writable property, the device template includes the Customer Name cloud property. Create a view an operator can use to edit these properties:
-
Select Views and then select the Editing device and cloud data tile.
-
Enter Properties as the form name.
-
Select the Target Temperature (1), Target Temperature (2), and Customer Name properties. Then select Add section.
-
Save your changes.
:::image type="content" source="media/iot-central-monitor-thermostat/properties-view.png" alt-text="View for updating property values":::
Before an operator can see and use the customizations you made, you must publish the device template.
From the Thermostat device template, select Publish. On the Publish this device template to the application panel, select Publish.
An operator can now use the Properties view to update the property values, and call commands called Get thermostat1 status report and Get thermostat2 status report on the device commands page:
-
Update writable property values on the Properties page:
:::image type="content" source="media/iot-central-monitor-thermostat/update-properties.png" alt-text="Update the device properties":::
-
Call the commands from the Commands page. If you run the status report command, select a date and time for the Since parameter before you run it:
:::image type="content" source="media/iot-central-monitor-thermostat/call-command.png" alt-text="Call the command":::
:::image type="content" source="media/iot-central-monitor-thermostat/command-response.png" alt-text="View the command response":::