Presence Announcements and Keeping a light below 90%

So I have this code

[{"id":"41e1827d.8b48cc","type":"server-state-changed","z":"22182143.390bee","name":"Jason","server":"d1e64946.492428","entityidfilter":"device_tracker.google_maps_105879025779296273112","entityidfiltertype":"substring","haltifstate":"not_home","x":55,"y":60,"wires":[["c4b50c28.73aa3","97188ac9.c56918"]]},{"id":"79f75d0e.bbe884","type":"server-state-changed","z":"22182143.390bee","name":"Jen","server":"d1e64946.492428","entityidfilter":"device_tracker.google_maps_113416626292493536947","entityidfiltertype":"substring","haltifstate":"not_home","x":55,"y":167,"wires":[["c4b50c28.73aa3","50c61c6a.4b8614"]]},{"id":"c4b50c28.73aa3","type":"api-call-service","z":"22182143.390bee","name":"Set The Volume To 65","server":"d1e64946.492428","service_domain":"media_player","service":"volume_set","data":"{   \"entity_id\": \"media_player.living_room\",\"volume_level\":\".65\" }","mergecontext":"","x":269,"y":107,"wires":[[]]},{"id":"97188ac9.c56918","type":"delay","z":"22182143.390bee","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":223,"y":49,"wires":[[]]},{"id":"50c61c6a.4b8614","type":"delay","z":"22182143.390bee","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":234,"y":170,"wires":[[]]},{"id":"4531ffba.e6322","type":"api-call-service","z":"22182143.390bee","name":"Announce Dad Is Home","server":"d1e64946.492428","service_domain":"tts","service":"google_say","data":"{   \"entity_id\": \"media_player.living_room\",\"message\":\"Dad Is Home\" }","mergecontext":"","x":502,"y":49,"wires":[[]]},{"id":"57d287a1.968d78","type":"api-call-service","z":"22182143.390bee","name":"Announce Mom Is Home","server":"d1e64946.492428","service_domain":"tts","service":"google_say","data":"{   \"entity_id\": \"media_player.living_room\",\"message\":\"Mom Is Home\" }","mergecontext":"","x":494,"y":169,"wires":[[]]},{"id":"d1e64946.492428","type":"server","z":"","name":"Home Assistant","url":"http://localhost:8123","pass":""}]

Which looks like this
02%20AM

All I’d like to be able to do is if our presence changes from not_home to home to have it announce that hey we’re home yay.
I was hoping to find a way to use 1 service call for either myself or the Mrs. But I’m not quite sure how to do that yet.
So here is the problem when I have this hooked up to the service calls every 5 seconds its announcing that we’re home. Not really what I want it to do. If possible could I use 1 service call for both of us, and pass in the TTS message for it to say.
I guess where I’m struggling with node red is figuring out the if aspects of it like with bash and python.

The second item I have is this one

[{"id":"a1e34b28.b1a138","type":"server-state-changed","z":"8e67f38.c25091","name":"Basement Wall Lights","server":"d1e64946.492428","entityidfilter":"light.basement_wall_lights","entityidfiltertype":"substring","haltifstate":"Off","x":106,"y":1310,"wires":[["8003b6fb.f58d88"]]},{"id":"b8646c7b.ae014","type":"api-call-service","z":"8e67f38.c25091","name":"90%","server":"d1e64946.492428","service_domain":"light","service":"turn_on","data":"{   \"entity_id\": \"llight.basement_wall_lights\", \"brightness_pct\":\"90\" }","mergecontext":"","x":862,"y":1344,"wires":[[]]},{"id":"8003b6fb.f58d88","type":"api-current-state","z":"8e67f38.c25091","name":"Current Brightness","server":"d1e64946.492428","halt_if":"","override_topic":true,"override_payload":true,"entity_id":"light.basement_wall_lights","x":339,"y":1307,"wires":[["908d582e.1095c8"]]},{"id":"908d582e.1095c8","type":"trigger-state","z":"8e67f38.c25091","name":"","server":"d1e64946.492428","entityid":"light.basement_wall_lights","debugenabled":false,"constraints":[],"constraintsmustmatch":"all","outputs":2,"customoutputs":[],"x":496,"y":1382,"wires":[[],["7ce2c95e.1a7ea8"]]},{"id":"7ce2c95e.1a7ea8","type":"debug","z":"8e67f38.c25091","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":634,"y":1464,"wires":[]},{"id":"d1e64946.492428","type":"server","z":"","name":"Home Assistant","url":"http://localhost:8123","pass":""}]

I figured this would be easy but I have yet to find something that is doing what I need it to do.
I have these lights that if they go above 90% on the dimmer they flicker to all hell and back. So to keep them happy I have a appdaemon script that says hey keep these below 90. I thought that this would be a great learning migration for these ones but I just can’t wrap my head around how to get the current attribute of the brightness and then say if brightness > 90 then set brightness to 90. Done.

I’ve had a blast automating with Appdaemon and I intend to keep it around for some of my automations but I figured that learning Node-Red couldn’t hurt either and I really like the flow chart concept with this.

Watching the various YT videos on Node-Red I’ve accomplished some pretty basic things. Turn lights on, turn lights off etc.

Thank you all for your help with these 2 items. I am sure I will have more in the future.