Change state of entity in HA using NodeRed

See post # 30 in the thread linked below. It explains how to change the state using Nodered. It involves installing the node-red-contrib-hass package which contains a hass-post node. Might be worth trying though there’s discussion about whether the api still allows this.