I am currently including my EntryCom VersoIP Doorbell into ZWay. I can already trigger actions within the doorbell unit from zway via http-device app.
But what really drives me up the wall is, that I cannot trigger scenes in zway.
If I use
Code: Select all
curl -v -u user:pwd http://192.168.0.27:8083/ZAutomation/api/v1/devices/LightScene_166/command/on
Code: Select all
[2018-10-22 22:45:36.797] [I] [core] --- LightScene_166 performCommand processing: {"0":"on","1":{}}
Can anybody please point me into the right direction? First step is, I need more visibility. If I deliberately change the password to the wrong value, I cannot see any log entry.
Second, I need to fill the proper fields in the entrycom unit:
URI:http://192.168.0.27:8083/ZAutomation/ap ... command/on
Username:myname
Password:mypasswd
Method:GET
Type:application/json can also be text/plain
Text:<blank>
The entrycom documentation tells me that
Parameters
Event – define the event to launch the action.
Condition – define the condition to be met to execute the action. This parameter is optional.
Uri – define the standard HTTP URI including the destination address and, optionally, the path and other parameters. The maximum length is 2048 bytes.
Username – define the username in case authorisation is required by the HTTP server. This parameter is optional. The default value is "intercom".
Password – define the password in case authorisation is required by the HTTP server. This parameter is optional.
Method – define the HTTP request method: GET, POST, PUT, DELETE.
Type – select the type of the HTTP request body content: "application/json" or "text/plain". Applies to valid methods POST and PUT only.
Text – select the request text content. Applies to valid methods POST and PUT only.
If I use curl, I can see that it uses GET, but that doesn't seem to trigger properly from the entrycom unit.
Can anybody spot something, that I have missed? Help is really appreciated!
Best regards,
rws