This is how I converted Minutes to Hours/Minutes in RM

Documenting this in case someone ever needs it in the future.

I had a data point that was in minutes and I wanted to see it in Hours/Minutes format. I added some variables and math in my rule to do the conversion. Then used %currentTimeToLimit% in the message.

currentMinutesToLimit is a Number, but could also be a Decimal
hoursToLimitCalc is a Decimal
hoursToLimit is a Number
minutesToLimitCalc is a Decimal
minutesToLimit is a Number
currentTimeToLimit is a String

6 Likes

Download the Hubitat app