First, let me apologize for my response. It’s not an excuse, but yesterday was a really bad day. I should not have popped off like that. Below is the jinja code. I’ve tried several different things to get it to re-format so the last bit where I have the function was just another attempt at getting the \r\n recognized. I appreciate any help anyone can give. Please forgive my earlier outburst.
["sensor.closetapc_battery_charge battery level 100.\r\n","sensor.apc_battery_charge battery level 100.\r\n","sensor.lurch_battery battery level 100.\r\n","sensor.rosey_battery battery level 100.\r\n","sensor.kitchen_pantry_trap_battery_level battery level 76.\r\n","sensor.chips_phone_battery_level battery level 65.\r\n","sensor.4_in_1_sensor_battery_level_3 battery level 60.0.\r\n","sensor.4_in_1_sensor_battery_level_2 battery level 60.0.\r\n","sensor.4_in_1_sensor_battery_level_4 battery level 40.0.\r\n","sensor.master_bath_sensor_battery_level battery level 30.0.\r\n","sensor.garage_sensor_battery_level battery level 60.0.\r\n","sensor.sunroom_window_sensor_1_battery_level battery level 0.0.\r\n","sensor.sunroom_window_sensor_2_battery_level battery level 57.0.\r\n","sensor.sunroom_window_sensor_3_battery_level battery level 78.0.\r\n","sensor.sunroom_window_sensor_5_battery_level battery level 0.0.\r\n","sensor.sunroom_window_sensor_6_battery_level battery level 100.0.\r\n","sensor.4_in_1_sensor_battery_level_6 battery level 100.0.\r\n","sensor.node_91_battery_level battery level 100.0.\r\n","sensor.water_leak_xs_sensor_battery_level battery level 16.0.\r\n","sensor.4_in_1_sensor_battery_level_5 battery level 20.0.\r\n","sensor.sunroom_window_sensor_4_battery_level battery level 100.0.\r\n","sensor.4_in_1_sensor_battery_level battery level 100.0.\r\n","sensor.chips_bed_sensor_battery_level battery level 100.0.\r\n","sensor.chips_medicine_switch_battery_level battery level 100.0.\r\n","sensor.double_gate_battery battery level 100.\r\n","sensor.single_gate_battery battery level 100.\r\n"]
[{"id":"3d6698da5b972216","type":"server-state-changed","z":"d31bf3ae8018a0d0","name":"time","server":"cd6b10ad.21ada","version":5,"outputs":2,"exposeAsEntityConfig":"","entityId":"sensor.time","entityIdType":"exact","outputInitially":false,"stateType":"str","ifState":"22:08","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":true,"ignoreCurrentStateUnavailable":true,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":70,"y":1100,"wires":[["7af21e61cc56fbac"],[]]},{"id":"6678ce913dd6088b","type":"debug","z":"d31bf3ae8018a0d0","name":"debug 11","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":400,"y":1100,"wires":[]},{"id":"45e5a8e03cf08204","type":"inject","z":"d31bf3ae8018a0d0","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":80,"y":1000,"wires":[["7af21e61cc56fbac"]]},{"id":"2e5fe5fdd0821ed3","type":"split","z":"d31bf3ae8018a0d0","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":410,"y":1020,"wires":[["fd0ff3a6e8f6aca1","142cafee3ed79759"]]},{"id":"fd0ff3a6e8f6aca1","type":"change","z":"d31bf3ae8018a0d0","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.entity_id & \" battery level \" & payload.state &\".\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":580,"y":980,"wires":[["5fc885efb16dfc8f"]]},{"id":"142cafee3ed79759","type":"debug","z":"d31bf3ae8018a0d0","name":"debug 13","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload.attributes","targetType":"msg","statusVal":"","statusType":"auto","x":590,"y":1080,"wires":[]},{"id":"7af21e61cc56fbac","type":"ha-get-entities","z":"d31bf3ae8018a0d0","name":"","server":"cd6b10ad.21ada","version":1,"rules":[{"property":"entity_id","logic":"starts_with","value":"sensor","valueType":"str"},{"property":"attributes.device_class","logic":"is","value":"battery","valueType":"str"}],"outputType":"array","outputEmptyResults":true,"outputLocationType":"msg","outputLocation":"payload","outputResultsCount":1,"x":250,"y":1020,"wires":[["2e5fe5fdd0821ed3","6678ce913dd6088b"]]},{"id":"5fc885efb16dfc8f","type":"function","z":"d31bf3ae8018a0d0","name":"function 1","func":"msg.payload = msg.payload + \"\\r\\n\"; \nreturn msg;\n//\\r - Carriage Return 0x0D - 13\n//\\n - Line Feed 0x0A - 10\n","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":760,"y":980,"wires":[["de1faebee7302f59"]]},{"id":"de1faebee7302f59","type":"join","z":"d31bf3ae8018a0d0","name":"","mode":"auto","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":true,"timeout":"","count":"","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":910,"y":980,"wires":[["e5ba5c16cacb8a10"]]},{"id":"e5ba5c16cacb8a10","type":"e-mail","z":"d31bf3ae8018a0d0","server":"smtp.gmail.com","port":"465","authtype":"BASIC","saslformat":true,"token":"payload","secure":true,"tls":true,"name”:”me@mydomain”,”dname":"","x":1090,"y":1040,"wires":[]},{"id":"cd6b10ad.21ada","type":"server","name":"Home Assistant","addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"","connectionDelay":false,"cacheJson":false,"heartbeat":true,"heartbeatInterval":"30","statusSeparator":"","enableGlobalContextStore":false}]