I need some help with first time usage of http binding.
i want to change settings of a camera device depending on different item in openhab. i am able to GET/PUT working request from postman
1/ i have created a thing and channel
UID: http:url:ba64a0e3be
label: Turn ON audible alarm on Ogród
thingTypeUID: http:url
configuration:
authMode: DIGEST
ignoreSSLErrors: false
baseURL: http://10.8.0.6:8002/ISAPI/Event/triggers/notifications/AudioAlarm?format=json
password: password
delay: 0
stateMethod: GET
refresh: 30
commandMethod: PUT
contentType: application/json
timeout: 3000
bufferSize: 2048
username: admin
location: Ogród
channels:
- id: ON
channelTypeUID: http:string
label: ON
description: ""
configuration:
mode: WRITEONLY
stateContent: '{fixed_JSON_HERE}'
2/ The logic should be like this:
if item1 receives command ON send “this request” if item1 receives command OD send “other request”.
only difference between this request is json body content.
below postman config:
PUT http://10.8.0.6:8002/ISAPI/Event/triggers/notifications/AudioAlarm?format=json
authorization Username: login, Password: password
Body: raw / json {“test json”}
help will be appreciated