-
Notifications
You must be signed in to change notification settings - Fork 508
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
Cannot turn off siren - Frient Intelligent smoke alarm (SMSZB-120) #8040
Comments
For anybody reading this and have the same issues, using the previous ddf file solved the issue for me. Seems like this line introduces the bug: "eval": "if (Item.val=='select') { '1701000000' } else if (Item.val=='none') { '0000000000' }", |
As there has not been any response in 21 days, this issue has been automatically marked as stale. At OP: Please either close this issue or keep it active It will be closed in 7 days if no further activity occurs. |
As there has not been any response in 28 days, this issue will be closed. @ OP: If this issue is solved post what fixed it for you. If it is not solved, request to get this opened again. |
@SvenNilsson Sorry, but I currently can't test is myself. |
Hi @SwoopX, |
@SvenNilsson Would be good if you could do so. Like said, I can't do it myself anytime soon. |
Does the issue really belong here?
Is there already an existing issue for this?
Describe the bug
The Frient Intelligent smoke alarm should support setting 3 states via the rest apis on the "warning device" endpoint:
select and lselect would turn on the siren and none should turn it off.
sending select and none does nothing. (sending lselect, turn on siren which has to be manually reset/turned off by pressing the button on the smoke alarm (front))
Steps to reproduce the behavior
use put command on endpoint:
https://ip-address-to-rest-plugin/api//lights//state
first with body: { "alert": "select" }, siren does not go off
then with body: { "alert": "lselect" } siren goes off
then with body { "alert": "none" } siren does not stop
Expected behavior
{ "alert": "none" } stops the siren
{ "alert": "select" } start the siren
Screenshots
Environment
-Frient smoke alarm has firmware 4.0.8 (latest from what I could tell)
deCONZ Logs
No response
Additional context
From what I could see reading the code the DDF have been changed lately (August 8) and actually tested with my device... So it could have something to do with this part of the DDF, if this issue didn't exist before:
{
"name": "attr/uniqueid"
},
{
"name": "state/alert",
"description": "Start warning command payload has 5 Bytes. Byte 1: Options. 0x17 = Warning mode 1 (burglar), Strobe, Very high sound. Byte 2-3: Duration, Byte 4: Strobe duty cycle, Byte 5: Strobe level",
"read": {
"fn": "none"
},
"write": {
"cl": "0x0502",
"cmd": "0x00",
"ep": "0x01",
"eval": "if (Item.val=='select') { '1701000000' } else if (Item.val=='none') { '0000000000' }",
"fn": "zcl:cmd"
},
"default": "none"
},
{
"name": "state/reachable"
}
]
The text was updated successfully, but these errors were encountered: