f1d094 Posted January 24, 2023 Share Posted January 24, 2023 (edited) I wanted to be able to reboot my ISY programmatically from my Home Assistant if needed and found it wasn't immediately obvious how to do this, so I took a minute and parsed out the commands into a simple script. Modify accordingly if you need ssl, etc. Note: This has only been tested on 4.9.0. YMMV. IANAL. XYZPDQ. WTFBBQ. #!/bin/bash HOST="192.168.1.2" USER="admin" PASS="admin" /usr/bin/curl -v -u "$USER:$PASS" -H 'Content-Type: text/xml; charset="utf-8"' -H 'SOAPACTION:"urn:udi-com:service:X_Insteon_Lighting_Service:1#Reboot"' --data '<s:Envelope><s:Body><u:Reboot xmlns:u="urn:udi-com:service:X_Insteon_Lighting_Service:1"></u:Reboot></s:Body></s:Envelope>' http://$HOST/services Edited January 24, 2023 by f1d094 Link to comment
larryllix Posted January 25, 2023 Share Posted January 25, 2023 Isn't that like MS Windows troubleshooter advising... "if your Network Card isn't functioning go to WWW.xxxxxx.calm for more help"? Link to comment
Recommended Posts