Could anyone kindly help to implement Dahua VTO3211 capabilities into this binding?
What is working for this video door bell with this binding:
MPEG stream, motion alarm from VTO, ALARM_INPUT2 (reacts to exit button press), ALARM_OUTPUT1, snapshot image.
What is not implemented:
built-in motion detection level set (table.MotionDetect[0].Level=3)
access card reactions (getting card numbers or unsuccessful attemps is rather important for security and presence detection)
-------- This is the first message on Mifare proximity card
Code=DoorCard;action=Pulse;index=0;data={
"Check" : [ 0, 0 ],
"Number" : "CARDNUMBER",
"Type" : 0
}
-------- This appears only if the card is in internally set trusted cards list
Code=AccessControl;action=Pulse;index=0;data={
"CardNo" : "CARDNUMBER",
"CardType" : null,
"ErrorCode" : 0,
"Method" : 1,
"Name" : "OpenDoor",
"Password" : "",
"ReaderID" : "1",
"RecNo" : 25,
"SnapURL" : "",
"Status" : 1,
"Type" : "Entry",
"UserID" : "9901"
}
reaction to door’s open/close sensor
Code=DoorStatus;action=Pulse;index=0;data={
"DoorIndex" : 0,
"Status" : "Close" --- or "Open if the door/contact is open"
}
reaction to ALARM_IN contact
Code=ProfileAlarmTransmit;action=Start;index=8001;data={ ------ action=Stop when contact is changing from closed to opened
"AlarmType" : "FireAlarm",
"DevSrcType" : "Digit",
"SenseMethod" : "FireAlarm",
"UTC" : 16588:
Sorry to ask here but… haven’t fount this information anywhere else in the doc or in the forum…
Is there any way to Switch On/Off a IP camera from the Binding in OpenHab?
I’ve seen a privacy mode feature which can be a similar option but limited to few models only (Amcrest/Dahua).
No to that exact question. You should ask in a new thread and with a more open ended question then someone may suggest other ways like turning off the POE with a different binding.
You create a PR on github, which this page has links and info on how to get started Developer Guide | openHAB
DahuaVTO could stream two subtypes in one channel, one of lower quality, good for widget, mjpeg and sip, second of a better quality, good for security recordings. How to implement that feature into binding?
I have not been sent real emails.
I have not gotten any useful diff outputs that have not been cut short and bad formatting.
GitHub is where all contributions should be made, where multiple people can help.
I won’t waste My time posting multiple times that a diff appears to not be complete, it should be obvious to you that the post does not contain all your hard work.
Thank you for making the changes and testing, thank you for wanting to contribute. We are all not paid and have multiple more important things in our lives, so please use GitHub and don’t post in a forum in a totally different thread where the history is now split.
I’ve installed pytapo library on my openhabian and finally I can control my tapo cam privacy mode and alarm with a simple script. maybe someone of the ipcamera binding can integrate the library on ipcamera addon.
First install the library with this command (mine is and openhabian on rpi):
python3 -m pip install pytapo
once installed, create a .py script like this:
$ cat enable_priv_tapo.py
from pytapo import Tapo
user = “admin” # always admin when using your cloud tapo account
password = “” # password from your cloud tapo account
host = “192.168.0.238” # ip of the camera, example: 192.168.0.238
tapo = Tapo(host, user, password)
tapo.setPrivacyMode(True) enable the privacy mode (True or False)
tapo.setAlarm(False) #Disable camera alarm (True or False)
there are also many other functions on the pytapo library you can test and add to your script.
Also you can test and run this script from the command line or from a dsl rule on the openhab gui. Example:
You need to uninstall the merged binding and install the telstick binding to take care of the needed dependencies, then just drop the jar into the addons folder unzipped. You can jump around the versions, but dont go older then the one marked dual servers as there was a big breaking change to the urls that the binding serves the files on at that point in time.
Having an issue with a Barlus ONVIF camera that is not a true PTZ it does not pan tilt or zoom, it uses PTZ Presets 233,242, 243, 244, 245, 250 and 251 for controlling its white and infrared lights… these Presets are not seen by IpCamera and can’t be set via pulldown, Preset 1 and 2 work fine.
The pulldown list shows Presets 1 -127 and when setting the above Presets the trace log gives an notification that the number is incorrect. I’m guessing anything that isn’t sen in the pull down is rejected.
If you change the presets you either have to send a refresh command or pause and unpause the camera to scan and update the list. There is no npn stop polling to check if the preset list has changed but you can set this yourself to occur with a REFRESH command.