Hi, I have multiple temperature/humidity sensors. I would like to compare absolute humidity inside to outside.
The humidity sensors shows relative humidity.
It would be nice if I could just see the absolute humidity on the sensors then I could quickly compare with outside sensor.
Added custom attribute called absoluteHumidity (line 25)
Added absolute humidity value to the main âheroâ tile (lines 57-59)
Added a separate tile just in case you wanted that too (lines 67-69)
Made sure the tile shows up for the device (line 78)
Added all the code to calculate the value and send it to ST (lines 98-110)
I probably could have cleaned up my code a bit, but the way I did it helped me make sure the math, variables, and the results were right. Feel free to clean it up, and/or adjust the look and feel. As soon as the device refreshes, or updated values get set, the tiles will update.
I was able to test the same code on an ST temp/humidity sensor and it worked, so please check on your device. Youâll also now find that custom attribute is exposed and available for SmartApps:
Wow @johnconstantelo thank you so much! Not only for adding the tile but also explaining me what you did. I actually understand it
I have tried to modify the main tile with my new knowledge. The reason for this is that I would like to see temperature and RH in the overview in a âRoomâ. So I donât have to click on every temp/humidity sensor I have to see both temperature and humidity.
But I have a couple of questions regarding this:
Is it possible to still colour the background based on temperature?
Sometimes the RH in main tile is 1 update behind the smaller detail tile. Canât figure out why?
No unfortunately. Thatâs because whatâs being passed into currentValue doesnât match up with any values within backgroundColors. BUT, see below for a solution!
That is related to a platform bug I believe. I have a few devices that are doing this, as well as a few other users. I have a support ticket open with ST on this.
You can still do this, and keep the main temperature tile the way it was so it changes color.