Skip to content
This repository was archived by the owner on Sep 25, 2022. It is now read-only.

Replace HTTP(S) open door call with call over TCP socket. #47

Open
rbrouwer opened this issue Jul 15, 2021 · 0 comments
Open

Replace HTTP(S) open door call with call over TCP socket. #47

rbrouwer opened this issue Jul 15, 2021 · 0 comments

Comments

@rbrouwer
Copy link

It is possible to send the door open command using the TCP socket as well.

This can be done by first issueing a "accessControl.factory.instance" command with params:

request_data = {
    "Channel": 0
}

In the response there will be a "result"-field, which contains the accessControl-object (in my testing an integer). This result object should be saved, so it can be used when issuing a open/close lock command.

The open/close door/lock command is "accessControl.openDoor"/"accessControl.closeDoor" with params:

request_data = {
    "DoorIndex": door_index,
    "Type": "",
    "UserID": "",
}

When issuing such a command, your message_data should also include the accessControl-instance in the "object" field.

Working sample code can be found in my Domoticz plug-in.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant