Hello everyone, I wanted to share my experience with tracking temperature thresholds and a workaround I found for a rule machine issue. I’ve been trying to track the number of hours a certain temperature threshold is exceeded, using all historic data from my temperature sensors. However, I encountered a problem with the rule machine and custom attributes. When I used the attribute type of string, I couldn’t perform greater than comparisons, and when I used integer, no comparisons worked. Changing the type to ‘number’ caused errors in the base code. After some research, I found a workaround by creating a custom sensor that tracks if a temperature sensor exceeds the threshold and returns a simple ‘True’. Another custom sensor then tracks the amount of time the first sensor returns ‘True’. While this doesn’t check all historic data, it’s a reliable solution for now. I hope this helps someone facing a similar issue! ![]()