Hello, I have connected Home Assistant to my iSpy set up so i can stream my cameras. I am now trying to get iSpy to alert to home assistant when motion is detected. I am using the below batch file however when it runs, CMD closes straight away and nothing appears in HA?
curl -X POST -H "x-ha-access: PW" ^
-H "Content-Type: application/json" ^
-d '{"state": "off"}' ^
https://HA IP:PORT/api/states/binary_sensor.living_room_motion