"Call-service API error. Error Message: Service not found."

Newbie to Node-Red and to hass.
I try to trigger lights based on motion from a binary sensor and condition that I’m not on holiday (semester) and that it’s nighttime (Natt). I have a hassio image and have installed Node-Red from Add-on store.

Everything seems to work until the last node. I use “Call service node”. I get this error message: “Call-service API error. Error Message: Service not found.”

Flow
Was only allowed one image so skip this for now.

Node config

Debugg
Was only allowed one image so skip this for now.

Any help appreciated!

Ok, so I played around some more and tested with another domain (used switch and light before) , first with input_boolean and then with homeassistant. With homeassistant the flow worked and I would really like to know why…

Btw. your picture helped me, I was strugelling a lot…Thanks.

finally did you resolve api error?

Yes, the domain should have been “switch” not homeasstitant