Sensors paired with hub not, not receiving mqtt

Sonoff Zigbee bridge flashed with tasmota with ZHA integration
I have it connected to my mqtt server. I am able to receive status message from the hub over mqtt.
I have set up an aqara motion sensor (recognised as lumi). It shows up on the HA dashboard and senses motion correctly. I want to use it to control lights. I want to do the automation in node red. The sensor is not listed in the entities in node red. I have tried to monitor the mqtt topic but nothing is sent.
How can I access the status to trigger an automation?

If the sensor appears on the dashboard, there should certainly be an entity. Check the developer console any binary sensor with device class motion and name relating to lumi. It should be there.

Or else you can click on the sensor in dashboard and on the top right there will be settings. Click on it. It will have info about the entity_id.

Thanks for the reply.
When I tried again today it was showing up in node red. I’m not sure why, I restarted node red and HA a few times last night and I still couldn’t find it.
I’m new to node red. I added the nodes below and I did not see anything in the debug window. Any ideas?

sometimes You have to restart nodered to get a newly added entity under the auto population window. Just restart and try. But in anycase if you have put the right entity name, there should be payload with change of state.