MQTT Report of door sensor state

I’d like the door sensor state to be reported in the MQTT status stream to help control my add-on chamber lighting.

As-is, my lighting changes color based on status, running/good/bad - I’d like to be able to make the lighting revert to white when the door is open so having that signal available would be very helpful.

Door sensor state is in HomeFlag in MQTT message. It is 32bit number.

Thank you - that’s exactly the lead I needed.