If you look at my posts, I have previously written about this. You can set variable ap_isolate = 0 and then your IoT devices can communicate to each other. You don't need scripts. Just keep in mind that each time you save your guest network settings, it will set this variable back to 1 (a value of 1 means isolation is turned on).
To check AP Isolation use command:
nvram show | grep isolate
This will show all your wireless networks:
size: 66432 bytes (64640 left)
wl0.1_ap_isolate=0
wl0.2_ap_isolate=1
wl0.3_ap_isolate=0
wl0_ap_isolate=0
wl1.1_ap_isolate=0
wl1.2_ap_isolate=0
wl1.3_ap_isolate=0
wl1_ap_isolate=0
wl_ap_isolate=0
wl0.x are the 2.4 Ghz guest networks and wl1.x are the 5 Ghz guest networks.
To change, as an example the 1st wireless network 5 Ghz:
nvram set wl1.1_ap_isolate=0
nvram commit
reboot
This was immensely helpful, thank you!
I, however, managed to mess up the first time with a typo. (app instead of ap). So now there's an entry "wl0.1_app_isolate=0". Does anyone know how would I go about removing it? TIA