Last Updated on : 2024-06-20 06:07:20download
A device reports the temperature either in Celsius (℃) or Fahrenheit (℉). You can configure temperature scale conversion on the UI Studio to enable the automatic conversion between ℃ and ℉ for an associated panel. For example, the temperature in ℃ is reported, but users want to show it in ℉ on the panel. In this case, with temperature scale conversion enabled, users can switch between the temperature units on the panel to check the temperature in the desired unit.
When a device reports the temperature in ℃ (or ℉), users can switch to ℉ (or ℃) on the panel. Then, the panel shows the temperature in ℉ (or ℃). You can choose More > Shift temperature scale in the top-right corner of the UI Studio to implement this feature.
Before you go to the UI Studio, you must select specific data points (DPs) in the Function Definition step on the Tuya Developer Platform. These DPs enable switching between the temperature units.
The Unit convert DP is required. Either Temp set or Temp Set F is used. This way, the temperature scale conversion can be implemented.
Go to the UI Studio, and choose More > Shift temperature scale in the top-right corner of the page.
In the dialog box that appears, set Precision and Approximate and click Save.
Click Preview in the top-right corner of the UI Studio and use the Tuya Smart app to scan the QR code that appears. Then, you can test the temperature scale conversion effect in the app.
Based on the settings for temperature scale conversion, users can switch between the temperature units in the app to show the temperature in the desired unit. Example:
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback