State of nodered node state-machine to lovelace

Hello, I need the status of the state-machine node from nodered to be shown in the homeassistant lovelace, ideally as an entity or sensor.
how to do it? thank you for your help
state machine

image

import

[{"id":"6d2b81a7fffaef2f","type":"status","z":"c89d915bdff0f798","name":"","scope":["83977ce48438be45"],"x":1018,"y":432,"wires":[["9e85272886bdedf3"]]},{"id":"9e85272886bdedf3","type":"ha-sensor","z":"c89d915bdff0f798","name":"","entityConfig":"20fa8d8bdb5ba3b3","version":0,"state":"status.text","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1170,"y":432,"wires":[[]]},{"id":"014ad0d5ab69f4ef","type":"inject","z":"c89d915bdff0f798","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"abc","payloadType":"str","x":1024,"y":384,"wires":[["83977ce48438be45"]]},{"id":"83977ce48438be45","type":"function","z":"c89d915bdff0f798","name":"function 39","func":"node.status(msg.payload)\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1174,"y":384,"wires":[[]]},{"id":"0dbe1182dbbd98a4","type":"inject","z":"c89d915bdff0f798","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"123","payloadType":"str","x":1026,"y":336,"wires":[["83977ce48438be45"]]},{"id":"20fa8d8bdb5ba3b3","type":"ha-entity-config","server":"2dad33ee.42bf5c","deviceConfig":"","name":"status text","version":"6","entityType":"sensor","haConfig":[{"property":"name","value":"status text"},{"property":"icon","value":""},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":""},{"property":"unit_of_measurement","value":""},{"property":"state_class","value":""}],"resend":false,"debugEnabled":false}]