I'm looking for a flow in my Home Assistant system that will trigger a Google TTS node when a boolean switches state from ON-OFF or OFF-ON. I want this to be a one time occurence at the point when the state changes. I hope that makes sense.
Most here do not use HA, so you may find a better answer on the HA forum, they have a node-red section.
To give you some sort of direction. You would use a state change node(educated guess), then a rbe/filter node(this will allow only messages on a change of property), followed by a fuction node or change node or a template node to create your tts message object, and finally your tts node.