The basic variable structure is sensor-selector=convertor.decimals:replacement and depending on what the output is then convertor.decimals:replacement could be omitted all together and that removes the X's issue.davidmc36 wrote: Sat Sep 06, 2025 4:00 pm If I wanted to make an alarm that included Solar Radiation, UV Index, and Sunshine duration, how would you fill in the X's? Especially the watts per sq meter??
[sol0rad-act=x.X:X] <= n.n [uv0index-act=x.X:X] <= n.n [sol0total-act=x.X:X] <= n.n
=x (Convertor) is only required if the default sensor data requires conversion to a specific unit like Temp default is Deg C and you want Deg F. You may want to use =h for sol0total to convert the value given in minutes into hours? Otherwise =x could be left out. sol0rad will only W/m^2
.X being number of decimals could also be left out but again just depends on the output required, Typically UV Index is reported as an Integer even though the underlying calc can be in decimals. Again most of the time can be left out.
:X being a replacement value is only useful when there is no valid data at the time and one might substitute a string like - - - to indicate this. Not sure I see any purpose of using a replacement in an alarm statement? Need to think further on this one.
If you only using defaults then start with the basics [sol0rad-act] <= n.n [uv0index-act] <= n.n [sol0total-act] <= n.n
and build onto as necessary/required