How to Set Values for a Virtual Thermostat?

Hello everyone, I re-ask something that has already been discussed about in the past: virtual thermostats

I’d like to know if there’s any update about the possibility to merge a switch and a thermometer into a thermostat unit to control the heating system.
I have the vEdge driver which is allowing me to create a thermostat, but I can’t find a way to assign the temperature measured by the thermometer into the virtual device
Smartapp is no longer available… What else could I do?
Mariano has some edge drivers for zigbee and zwave T-meter but I don’t think they could be used for a Multi Sensor 7, for example

Have a nice day

If you have SmartThings or Aeotec Hub you can use Rules API rule to copy temperature measurement to virtual thermostat.

Here is example Rules API rule:

You have to modify the rule for virtual thermostat.

Edit:

I found a ready-made Rules API rule:

{
  "name": "Temp Changes - Copy Temp to Thermostat Temp",
  "actions": [
    {
      "if": {
		"not": {
			"equals": {
			"left": {
            "device": {
              "devices": [
                "ID temperature measurement device"
				],
				"component": "main",
				"capability": "temperatureMeasurement",
				"attribute": "temperature"
				}
			},
			"right": {
            "device": {
              "devices": [
                "ID virtual thermostat device"
				],
				"component": "main",
				"capability": "temperatureMeasurement",
				"attribute": "temperature"
				}			
			}
			}
        },
        "then": [
          {
            "command": {
              "devices": [
                "ID virtual thermostat device"
              ],
              "commands": [
                {
                  "component": "main",
                  "capability": "partyvoice23922.vtempset",
                  "command": "setvTemp",
                  "arguments": [
                    {
                      "device": {
                        "devices": [
                          "ID temperature measurement device"
                        ],
                        "component": "main",
                        "capability": "temperatureMeasurement",
                        "attribute": "temperature"
                      }
                    }
                  ]
                }
              ]
            }
          }
        ]
	}
	}
	]
}
3 Likes

Thank you so much for the help!
I just have to learn from scratch how to use APIs and then have fun with them :slight_smile:

Thank you
Fede