Dont know if this is asked before but cant find anything on the forum/google. Is it possible to fire a scene when osx shuts down ? I have it working in windows with a shutdown command. Can’t figure it out where to put it in osx. I use it to power my amplifier connected to my computer.
So, my OSX is rusty but, this should get you going.
First write a shell script(Bash?) that calls the desired scene command from OSX.
curl http://Vera_IP_adress:49451/data_request?id=lu_action&output_format=xml&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=<SceneNum>
or
open -a "Safari" http://Vera_IP_adress:49451/data_request?id=lu_action&output_format=xml&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=<SceneNum>
Next, if I recall correctly, you would add a line to call the aforementioned script from /etc/rc.shutdown.local
Then, every time you shutdown(or restart?) the OSX machine, it will call the scene on Vera.