Toggle Sonoff basic relay via nodered

I’ve configured the sonoff basic according to various topics and it’s visible and can be turned on/off in HA. But I would like to control it with automation in nodered. I’ve tried to setup a very simple Inject node, call service. In the call service put in the HA, domain switch and toggle service, followed by the entinity id.

Unfortunately, the call service node returns a “Call-Service attempted without connection to server”. Does anybody know what I’m missing?

thanks

I think you are almost certainly in the wrong sub-forum!

This error does not appear in Nodered on my HA in other situations. Therefore I think it might have something to do with ESPhome.