Hi All,
I have been using the awesome suncalc driver (essentially creates a device that reports azimuth and elevation of the sun) to automate some of my blinds - very simply to close them when the sun gets to a certain position and it is 'hot'.
I have a 2 x Hue Outdoor Motion Sensor - 1 at the front of the house, and 1 at the back.
I'd like to use them as outdoor temperature sensors, but the issue I have is they are nonsense (for my need) when the sun is directly on them.
That got me thinking, can I create a 'Virtual' Temperature sensor that pulls the Temperature reading from one or other of the Sensors, depending on the sun position? Thus creating a single, more reliable Temp Sensor I can query/reference in rules?
I'm sure that is possible, But I have no idea how I would create it!
Simply:
If sunposition is between x&y, Virtual Sensor = Front Sensor
if sunposition is between a&b Virtual Sensor = Back Sensor
and if we wanted to be really clever:
if sun position is between c&d (middle ground), Virtual Sensor = Average of Front and Back Sensor
Am I a wild fantasist, or should this be possible?