I want to install the node-red-contrib-home-assistant-websocket module, but the latest version is only supported on Node-Red v3.1.1. So the solution for this is to install a older version.
I have tried to use the following command : npm install node-red-contrib-home-assistant-websocket@0.51.1
From the directory: /home/root/.node-red/
But the module is not showing in the Palette Tab in Node-Red