I have my current flow setup in node red but am unable to get the random messages part to output. Does someone have a recommendation what direction i need to go in as the above examples are not working for me. I was trying to get the function node to work with google home but no luck.
[{"id":"e3f2f59e.40f998","type":"server-state-changed","z":"33dca058.1268e","name":"Amcrest Doorbell Motion","server":"71022f0.1f784d","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.amcrest_camera_motion_detected","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":150,"y":220,"wires":[["d0f91ec.6471ce","41aa1cc4.47f9a4"]]},{"id":"96f27b2c.e74b48","type":"cast-to-client","z":"33dca058.1268e","name":"Google Home","url":"","contentType":"","message":"","language":"en","ip":"","port":"","volume":"50","x":760,"y":220,"wires":[["d6da4360.67c82"]],"icon":"node-red-contrib-cast/google-home1.svg"},{"id":"6e455637.1d7ee8","type":"comment","z":"33dca058.1268e","name":"Front Door Motion ","info":"","x":130,"y":100,"wires":[]},{"id":"d0f91ec.6471ce","type":"debug","z":"33dca058.1268e","name":"Amcrest Door Motion on/off","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","x":460,"y":220,"wires":[]},{"id":"700a3827.119278","type":"inject","z":"33dca058.1268e","name":"","topic":"","payload":"on","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":140,"wires":[["41aa1cc4.47f9a4"]]},{"id":"47a90a76.119134","type":"inject","z":"33dca058.1268e","name":"off","topic":"","payload":"off","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":180,"wires":[["41aa1cc4.47f9a4"]]},{"id":"9071bf50.14bbf","type":"change","z":"33dca058.1268e","name":"Front Door Motion TTS","rules":[{"t":"change","p":"payload","pt":"msg","from":"on","fromt":"str","to":"something is at the front door","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"off","fromt":"str","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":140,"wires":[["96f27b2c.e74b48","f6b49e42.e1ccc"]]},{"id":"f6b49e42.e1ccc","type":"debug","z":"33dca058.1268e","name":"TTS","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":870,"y":140,"wires":[]},{"id":"d6da4360.67c82","type":"debug","z":"33dca058.1268e","name":"What Google received","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":960,"y":220,"wires":[]},{"id":"41aa1cc4.47f9a4","type":"time-range-switch","z":"33dca058.1268e","name":"","lat":"","lon":"","startTime":"06:00","endTime":"nauticalDusk","startOffset":0,"endOffset":0,"x":440,"y":160,"wires":[["9071bf50.14bbf"],[]]},{"id":"71022f0.1f784d","type":"server","z":"","name":"Home Assistant","legacy":false,"hassio":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open"}]