Update temp on virtual thermostat

Trying to get my spa temp inside my HomeKit dashboard through a virtual thermostat. Virtual temp sensors don’t show up in homekit.

I wrote this rule:

But it’s not updating the temperature on the virtual thermostat. Can I update temp on a virtual thermostat like I’m thinking or is there something missing from my rule?

Looks like your setTemp line is not correct. The variable SpaTemp should be displayed in the parenthesis. Did you use a variable value in the custom action?

I put the value of BRPosition into a virtual omni sensor. The variable is listed along with it's current value. Your line shows nothing.

[edit]Just saw you are doing this in a virtual thermostat which should be possible. I used to do this in my shop. I originally read a virtual temp sensor, but the principle is the same. The value of the variable should show in the settemp line.

It probably wants a number and not a decimal.

settemp

Decimal or number should work, but I think you nailed the problem: they appear to be calling setTemperature() on the virtual device (great!) but didn't provod any parameters (should be able to add one, number or decimal, and provide your variable as the value).

Or at least that's what the screenshot makes it look like. If that doesn't seem right, maybe provide a screenshot of what happens when you edit that particular action so we fsnnsee more about how it's set up?

1 Like

In the sample I provided I created a local decimal variable to use, but when I tried to select it, the drop down list list did not show the local decimal variable as an item I could select.. I ended up using one of my number hub variables.

I thought it odd, as a decimal should work, but it didn't. I thought maybe the OP had the same issue with the virtual thermostat. Perhaps since the local variable was not available he thought it wasn't necessary to select?

In fact I just tried it and had the same issue. I created a virtual thermostat and I could only select number variables for setTemp.

I just realized I selected the wrong parameter type, so a decimal does work.

Hmm. Just tested and it works for me; you would have to choose "decimal" instead of "number" as the type (and it's possible one won't appear if you don't have any variables of that type, though I don't know if the UI actually does that here):

Yeah it was me, I edited my post above and saw you were replying, but a decimal is possible.

Thanks, it was the selection for variable that I missed. Changed that and selected SpaTemp and now it’s updating the virtual thermostat temp which I now have visible in homekit on the dashboard. WAF is high again :slight_smile: Thanks!

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.