Ich hab Evtl was gefunden:
Updated January 15 2018
As of Jan. 14 2018 the install from the Mosquitto debian repository has been fixed and installs mosquitto on Raspbian stretch with websockets enabled without error.
You may still find the information in this post about enabling websockets in the mosquitto.conf file useful.
Also ich hab es so gemacht alles wie du gesagt hast. Node red installiert und alles so gemacht.
Da steht auch connected. Ich muss nur noch die Kontakte dran löten und am Sonoff wegen spannungsversorgung.
Wo hast du die Kontakte platziert?