Thanks. My Node-Red server is running in Debian, but now this all works. So I am happy with the results.
Maybe one more observation if I may have. I was looking at the data coming out from the event-state node:
This is not a big issue, but maybe it would make more sense for the msg.payload to be an object instead of a string.