Node Red: A widget based dashboard working with Homey trough MQTT

I need some assistance because I can’t get to show my door/windows sensors to show the correct state. At this moment they show the same icon when the door is open or closed.
I tried so many options I don’t even know which options I have or haven’t tried anymore. I’m out of options.

I’m using the Xiaomi door/window sensors connected to Homey and they show the correct state when a door is opened. However in the dashboard the state does not change.
This is how it’s set up at the moment:

Thanks in advance!