The Thermostat virtual object can only be created on the CLU module and its source must be located on the same CLU on which it was created.
Quite often, there is a situation in which the temperature comes from another CLU type module, e.g. from the Smart Panel WiFi module, the Gate HTTP module or the Gate Modbus module.
In the described situation you should:
* create a user feature of number type in the CLU on which the virtual Thermostat will be created:
![](https://knowledgebase.grenton.com/hs-fs/hubfs/image-png-Jun-19-2024-11-49-40-9761-AM.png?width=688&height=529&name=image-png-Jun-19-2024-11-49-40-9761-AM.png)
* assign a command that will pass the temperature value to the user feature to the OnValueChange event of the object returning the temperature value:
![](https://knowledgebase.grenton.com/hs-fs/hubfs/image-png-Jun-19-2024-11-50-52-9826-AM.png?width=688&height=529&name=image-png-Jun-19-2024-11-50-52-9826-AM.png)
* create a virtual Thermostat and indicate the user feature value as the source:
![](https://knowledgebase.grenton.com/hs-fs/hubfs/image-png-Jun-19-2024-11-57-04-4714-AM.png?width=436&height=320&name=image-png-Jun-19-2024-11-57-04-4714-AM.png)
![](https://knowledgebase.grenton.com/hs-fs/hubfs/image-png-Jun-19-2024-12-02-56-2091-PM.png?width=688&height=565&name=image-png-Jun-19-2024-12-02-56-2091-PM.png)
The Thermostat created in this way can be added to the myGrenton interface and placed on the Smart Panel module.