Change a entity switch state

I want to change a switch to on or off. How do I do that? Can´t find any node for that

Not a lot of clues there to let us help you. What switch ? Where ? What have you tried ?

I want a switch in HA to change on or off depending if I send a true or false from a switch node

Not sure. You may need to ask over on the HA forum.