r/Hubitat•
wingsup

SmartThings Multipurpose Sensor question

I'm using a SmartThings Multipurpose Sensor to monitor a garage door. I'm trying to use the temperature reporting in Rule machine.

I can use the sensor in a trigger rule, and some actions rules, (IF conditional) but when I try to use it under set variable under action, it is not listed as an available sensor.

operation (sensor Value) > Sensor type (temperature) then "Click to Set " will be blank.

I might be using it wrong, if so how would I write the Temp to a variable? My plan was to write it to a variable every hour and compare it to the last reading.

BTW, I left Wink for Hubitat and I love it and I've barely scratched the surface of what it can do.

Posted Dec 20, 2019, 3:29 PM UTC

27
deadwavelength•

I might be using it wrong, if so how would I write the Temp to a variable? My plan was to write it to a variable every hour and compare it to the last reading.

I haven't done any comparing to previous values in my rules engine logic, but I use Virtual Devices to write "variables" to the state. With a physical sensor, I don't believe you can set the Temp value, since that comes from it's reading.

(You can create a virtual temperature sensor from the pick list for virtual devices.)

1
Andy_Glib•

I think OP is talking about getting the current temp from the sensor into a variable.

Looks like the method is correct, but there are no temp sensors in the list.

1
Andy_Glib•

I have the ST multi-sensor, and it works fine for me.

Go to the devices tab and open up the page for the sensor, and make sure it's listed correctly down in the "Device Information" section, under "Type". Mine's a "SmartThings Multipurpose Sensor V5." You should also see "temperature" and the current temp listed on the "Current Stats" section on the top right.

If you change the device type settings, make sure you hit "save device"

In any case, if you have other devices that report temp, they should be listed in the "Click to Set" list -- if you do, and they're not... you probably have a few device types to change/update.

You should also use the Hubitat community pages for help, as it's VERY easy to just dump a screenshot, and have near-live discussions with the (usually) tons of people who are online there all the time.

1
wingsupOP•

Yes, thank you...Someone over on the Hubitat community posted a screenshot. I realized that I have named my variable with the % sign. That had the affect of keeping the devices out of the list. I'm not sure why it affected one action but not the other actions, but I should have known better on that naming convention.

1
wingsupOP•

Someone over on the Hubitat community posted a screenshot. I realized that I have named my variable with the % sign. That had the affect of keeping the devices out of the list. I'm not sure why it affected one action but not the other actions, but I should have known better on that naming convention.

1
exubai•

If you've created the Global Variable already (first screen of Rule Machine) then when selecting an action choose "Set Mode or Variables, Run Custom Action" and in the second dropdown select "Set Variable"

Pick your variable, select operation of "sensor value" and sensor type of "Temperature" then pick your sensor from the list of Temperature sensors.

I'm also a Wink to Hubitat transplant. It's night and day in terms of capabilities.

1
wingsupOP•

I'm loving it so far, even with the learning curve. I had just finished a rule with a notify using %device% so for some reason I input the variable name as %variable% when I created it.

I should have known better than that, but it stumped my why it showed in some actions, but not this specific one, so it took me too long to make the connection.

1