bitfocus / companion-module-panasonic-ptz

MIT License
8 stars 17 forks source link

Day/Night mode switch #29

Open austgresh opened 3 years ago

austgresh commented 3 years ago

IKs it possible to toggle between Day and Night mode? I am using a Panasonic AW-HE40 over IP and controlling with a Stream Deck powerd by a Rasp. Pi 4 with CompanionPi running on it.

gotfox commented 1 year ago

Bumping this request...

As a workaround, I use an additional connection - Generic HTTP Requests. This works on my AW-HE130.

In the Base URL field for the connection config, I put: http://[your IP address here]/cgi-bin/

Then in a button, I set it for latching and put GET actions on the latch and unlatch, inserting the following into the URI field for the specific mode: Day: aw_ptz?cmd=%23D60&res=1 Night: aw_ptz?cmd=%23D61&res=1

I also change the button text with the latch and unlatch to know what state the camera should be in. Obviously, this has no feedback from the camera, so if the camera's mode changes via another route, the button state can be indicating the wrong mode. Just cycle the button to get to the state you need.