I have no doubt that this has been answered before but I am apparently not using the right search terms. I suppose I should also mention that I recently switched from Vera to HA so I am still very much a beginner on the learning curve with HA.
I have a number of automations that I want to apply a condition to based on the Lux reported from a light sensor. It occurs to me that in the long run, referring to a more generic boolean value, say named “dark” would be simpler than constantly referencing a specific light sensor and testing if the value is below a certain number. This is even more so the case since I quickly realized that I want a light sensor that is far more active in updating the Lux value than the battery operated one I have now so I will be changing the sensor I want to use in the automations and if I had the aforementioned boolean value set up I’d only have to change the device reference in that one item instead of in each of the automations I create that use the value.
So can someone point me in the right direction with how I should go about doing this?
Thanks in advance.