I'm trying (but failing) to send a http PUT via some means to an NVR connected IP camera. I need this so that I can automate the switching of scenes on the camera from an existing lux sensor I have connected to Hubitat. The reason I want to do this is that the Auto Day/Night setting of the camera does not allow for different gain settings (forced to 100 and unadjustable), shutter speeds etc when in Auto mode. Setting the scenes allows everything to be adjusted to suit.
I'm stuck on how I can send this command to the camera. In Rule Machine I can send xml, but RM only supports POST and GET so that isn't working. I've added the http switch driver by @ogiewon as I could've just used one virtual switch with that driver per mode. Although I can use that to send a PUT, it won't allow me to send XML.
I've downloaded and messed around with postman to find the setting that I need to change and I can manually do that with the url:
http://IP_Address:http_port/ISAPI/Image/channels/1/mountingScenario/
and sending the following xml in the body:
<?xml version="1.0" encoding="UTF-8"?>
<MountingScenario version="2.0" xmlns="http://www.hikvision.com/ver20/XMLSchema">
<mode>lowIllumination</mode>
</MountingScenario>
I can then just alter the <mode> to the scene that I want to switch to - normal, lowIllumination, backlight, custom1, custom2 etc
Any ideas how I can send the above from Hubitat? I can't code and it's taken me a few hours just to find the correct url and xml to send but would like to get this working. Any assistance appreciated.
I've also tried node red but can't get it to work there either
