Create a new user, “node-red”, and generate an access token with that user. Use that newly created access token to connect NR to HA. Now when NR changes the state of an entity in HA the context.user_id will be set that that user id.
2 Likes