Is there a way to check the connection

I am running home assistant in a docker container and so is Node Red.
When running node-red in debug node it says that a light is switched off, but it is not.

I don’t have any error messages.

Well, you’ve asked about checking a connection but haven’t specified what you want to check or where you think it broke.

Sorry, I meant the connection between Node-Red and Home assistant

If you can see entities, and get state of entities, then it’s connected. It will actually tell you if it isn’t connected

Well, then I must conclude that there is a connection. Now I am going to find out why the light does not go on/off. The light it self can be switched in home-assistant.

Thank you for your answer.

Post whatever node it is you are using to toggle the light.