Help with Virtual Thermostat

Hi guys

I plan to replace a Nest Thermostat using several xiaomi temperature sensors and a dry relay to on/off a heating pump. I created a Hubitat Virtual Thermostat and Hubitat Thermostat Scheduler , how can I push the temperature from sensors to the vThermostat? how can I take the action to toggle the dry relay?

Thanks

2 Likes

Then use the virtual thermostat operating state to control the relays using rule machine.

I would be remiss If I didn't say to go buy a z-wave/zigbee thermostat. It is probably a more reliable choice, and you can still control it the way you want.

1 Like

@napalmcsr thanks, down where I live (Chile) the heating is done by a pump and radiators, so all the thermostats sold in the US wont work for me. I had to buy the EU version of the Nest, which basically includes a second module with a dry relay. The Nest wifi stopped working so I need to replace it, thats why I am planning to do it this way.

Thanks

1 Like

Do you mind sharing an example with me?

Thanks

No problem, good luck and if you have issues, there are others that have done what you are trying.

Sorry, didn't read the example comment. I do not have rule machine installed, I use a personal app, but it would be

trigger:
virtual thermostat operating state changed

actions:
if operating state = cooling then
turn on air conditioning
turn off heating
else if operating state = heating 
turn on heating
turn off air conditioning
else
turn off heating
turn off air conditioning
end if
1 Like

And there is this.

1 Like

I created this one, any comments?
Screen Shot 2020-05-26 at 10.47.54 AM

im using a dry relay.
Thanks

That will work, but to make it even easier, put your vThermostat into heat mode, and just do
image

hi @napalmcsr thanks for the tip. So when the operational state changes to "idle" , for example, the relay will change it state to off automatically? I though i need to take out of that state. Thanks

How I crossed it out above, it should turn on the relay when the operating state goes to heating. It should turn off the relay in every other state.

Didnt work, i think i have to change the relay state,
Screen Shot 2020-05-26 at 2.42.20 PM

right, I didn't cross out the off or the else part of the else if.

1 Like

oooh ok, got it!! I left the else and end-if and worked! thanks!

1 Like

sorry, I should've been clearer :slight_smile:

did you add the off back after the else? If you don't, it won't turn off.

Hi @napalmcsr
Yes, thanks! Here is what i did.

1 Like

Perfect

1 Like