Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bosch camera- modify Rule - If multiple same rule added then no modfication but if only one time added a rule then it works. #37

Open
surajitx-pal opened this issue Apr 5, 2022 · 2 comments
Labels
1-low priority denoting isolated changes bosch Bosch camera question Further information is requested

Comments

@surajitx-pal
Copy link

Summary of the problem:
'modify Rule' API not working for same rule if added multiple times.

Issue reproducible on below camera models:
#Bosch DINION 6000HD

Reproduce steps:
Execute this command

Step #1
created rule multiple times with same parameter- same rule are added as previous issue report.(issue #35)

Step #2
Modifying the same added rule -

curl -X PUT http://localhost:59882/api/v2/device/name/Bosch-DINION-IP-starlight-6000-HD-00075fd8-7c31-317c-d85f-0700075fd85f/Rules
--header 'Content-Type: application/json'
--data-raw '
{
"Rules": {
"ConfigurationToken": "1",
"Rule": [
{
"Name": "Test1",
"Type": "tt:ObjectInField",
"Parameters": {
"SimpleItem": [
{
"Name": "Armed",
"Value": "true"
}
]
}
}
]
}
}
'

Then verify with GetRules command-
curl -x GET GET http://localhost:59882/api/v2/device/name/Bosch-DINION-IP-starlight-6000-HD-00075fd8-7c31-317c-d85f-0700075fd85f/Rules

Actual result - Not modifying rule, but working if rule is added one time only.
Executed - Should be modifying all same rule added before.

@surajitx-pal surajitx-pal added documentation question Further information is requested and removed documentation labels Apr 5, 2022
@ajcasagrande ajcasagrande added the bosch Bosch camera label Jul 26, 2022
@lenny-goodell lenny-goodell added the 1-low priority denoting isolated changes label Jan 25, 2023
@vyshali-chitikeshi
Copy link
Contributor

Issue still exists with V3 code

@cloudxxx8
Copy link
Member

@vyshali-chitikeshi for this kind of issue, did you try to execute the API of camera directly?
If the camera doesn't follow the spec to implement the API, there is nothing Device Service can do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1-low priority denoting isolated changes bosch Bosch camera question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants