State change from node-ref

hi
How I can set state for entitie from node-red?