I just made a light intensity sensor that sends a number based on light in the room to a topic on my MQTT server. I am just not sure how to use it. Lol. I can’t find an example. I would like to use it in an automation during the day when it is gloomy. I also have motion sensors to take into account. Ideally I would like to set an automation between sunrise and sunset if intensity < 100 and motion is detected turn on light. One issue is that the light in the room will bring value over 100. I am probably overthinking
HA has a MQTT Sensor component that should do what you would like. It will read the value published to MQTT and you can use that value in your automations like you would for any other sensor