-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Xiaomi MiJia Honeywell smoke detector as a alarm Sierene #420
Comments
Hi actually no.. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Nice idea, this will also create the 'linking' method, just as which is possible with the Xiaomi GW. |
Hi, that would be a good Option, if you have a false Alarm. The acknowledge button is small. and you can use it as Alarm as well. |
I would also be interested in an alarm function with the smoke detectors. |
I would also love to see this feature. |
I had the same idea but I have a Heiman HS1SA smoke detector. I can test the functionality on that but I need some pointers to get started. When registering my smoke detectors I noticed that they seem to accept the Anyone have any suggestions? |
In order to support such feature we need to check what the original gateway sends (https://github.com/Koenkk/zigbee2mqtt/blob/dev/docs/how_tos/how_to_sniff_zigbee_traffic.md). Then it's indeed just a matter of adding a new toZigbee converter. |
@neerdoc I don't see the cluster and command being send (that's what we need in order to support this). |
Managed to get the data into WireShark, but there are literary thousands of entries after 60 seconds of data during one join. Exactly which frame to you need? |
Reading the Zigbee standard it seems that this should indeed work:
The following definition is in the standard:
After that it gets very detailed on what to send in the payload. It is all defined in chapter 8.4.1 in the specification. Are there any instructions on how I can trigger a message in the "toZigbee.js" from the command line? (Like pushing a certain button on the keyboard.) If so, maybe I can try to implement this message myself. |
@neerdoc the easiest way to try this is by using an MQTT client (e.g. MQTT.fx).
|
Thanks @Koenkk, I got so far that I can trigger the message now! Unfortunately, the message fails to be received it seems. I will continue later, but it is a bit tricky to understand exactly what message is sent through all the layers of npm_modules... It seems very clear what I need to send in the Zigbee standard; it is very unclear how I achieve this. Current error message: |
@neerdoc that looks like the correct payload. However the easiest way to solve this is to compare what is send by the original gateway with what is send with zigbee2mqtt. |
Unfortunately, I do not have any gateway except for the CC2531... :) Debugging some more. After hacking around in the zcl_packet lib, I got it to send this message: which I believe is very close to what I need. According to the specification, the iasWD definition (cluster id 1285 (or 0x502)) should be: 00 22 02 00 00 00 for a 2 second alert at high level without strobe. Nothing happens, but as you can see, there are an 01 07 in front of the actual message. The 07 also seems to be random (or maybe counting, a bit hard to determine). I do not know where these are generated (and to be totally honest I don't know if they are the problem either). I actually get a response from the device on this message: Any hints on whether those two bytes are the problem or not is appreciated! |
Unfortunately, I only have the CC2531 as a gateway ;) Debugging some more. After hacking some in the zcl-packet library, I managed to send the following message: Now this is very close to the specification. To make the alarm to a high level 2 second siren, I should send the message "00 22 02 00 00 00". As you can see, it is correct except the first two bytes (01 06) which I cannot figure out where they are coming from or how to change. The second byte also seems to change if I repeat the message. I actually even get a response from the device (though I have not decoded what it means yet...): Any ideas on if those two bytes is the problem? |
@neerdoc how does the |
Been busy for a few days, but now I had the time: So it seems to be the same problem. The first "01 02" should not be there (I think). |
The frame is constructed here: https://github.com/Koenkk/zigbee-shepherd/blob/master/lib/components/af.js#L346 Can you add |
@neerdoc it’s really great to see that you are working on the alarm message for the Honeywell Mijia smoke sensor!! |
hi all, I joined this game lately and maybe you can help me to help you. If you need the original gateway, I own one :-) Anything I should do? |
hi, me again. From reading the information above, is it correct to say that in case of fire, only ONE smoke detector (the one that detects the fire) will give an alarm (loud sirene) and the others will stay calm? This is something that can be achieved with original GW but not via zigbee2mqtt, correct? |
Hi! Sorry for the late reply... You are correct in the assumption that only the smoke detector that detects the smoke will sound the alarm. The intention is that all sirens should sound, or be able to do it depending on the configuration of course. I don't know if it is possible with an original gateway, but if it is, it would be very helpful if you can test it and also log the traffic that is sent to the sirene. The Zigbee protocol specification together with the capability that is reported by the smoke detector seems to support the notion that it should be possible. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
According to the documentation it is possible, though they call it Tandem Mode. It's only supported with the official gateway though, presumably there's some kind of payload or signal the gateway can send to the alarm to make it sound. |
What firmware are you running? |
The hex file from CC2531_20190425.zip taken from here |
I'm interested in running this code so added it to my zigbee2mqtt 1.4.0 container. The smoke sensor is working/connected and I can receive messages. But same here as @AS137430: "No network route" (code 205). Also firmware version 20190425. |
@AS137430 at the moment that setting sensitivity fails, does the self test work? |
@Koenkk : Self test doesn't work, sending the MQTT message doesn't sound the alarm siren anymore. And the log shows the following
|
@AS137430 I'm not sure what is causing this, why did it work before? Do you perhaps need to wake the device by pressing a button on it? |
The cc2531 was on an earlier version of firmware when it worked. I will flash to the earlier version to test if it works and report back the results |
The AF code 205 error is still present with firmware: CC2531_MAX_STABILITY_20190315.zip. |
After doing what you suggest, zigbee2mqtt/Rookmelder3/set json payload: {"self_test": ""}
Any idea what to change to get it working? When pushing the "test"-button, I get the following:
|
After updating zigbee2mqtt to 1.4.0 I now get the following:
When pushing the test-button by hand, I do receive messages. So I suspect the message "Please confirm that the device has (re)joined the network" is not valid.......... So I suppose I have the same issue now as @AS137430. |
After a couple of hours the alarm beep went off after setting the "self_test" message on the queue. Next thing to try is the sensitivity. |
Any progress ? |
I could also trigger the test via MQTT. But the single beep the detector fires cannot be used as siren. It is short and not very loud. We have to find the message the original gateway sends to a second smoke detector in "tandem mode" to trigger the alarm.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
When I try to publish the self_test I get a warning |
I dont think it is possible to remotely trigger the second detector to sound the alarm. I have two connected smoke detectors, but no option in the original Xiaomi map to start the 2nd alarm when the 1st detects smoke. The "Linkage hub alarm" option allows only the Hub to sound the alarm. And thats triggered by the ZoneStatus: 0x0001, Alarm 1 ZigBee Cluster Library Frame |
How this ended? Is it possible to stop the siren? Foor me it is very hard to reach and I would love to be able to stop it using mqtt |
yes, it is possible to turn it off. just send "off" to it :) i.e. |
Thanks or the answer. But will that disable the siren or just stop the one that is already running? |
Not quite sure what you mean here, but basically the siren is always connected to the network. |
Maybe if I explain the scenario I have in mind it is easier to understand.
I have the Honeywell smoke detector in my kitchen, on the ceiling. When the
siren starts I'm the only one on the family tall enough to hit the button
that stops it. For that reason, I want to create an automation to send the
stop command to the smoke detector. But of course, if there is smoke again
I want it to work, I don't want to disable it permanently. Hope my
explanation makes sense now.
Regards
…On Sun, Oct 31, 2021 at 9:30 AM Konstantin Gavrilenko < ***@***.***> wrote:
Thanks or the answer. But will that disable the siren or just stop the one
that is already running?
Not quite sure what you mean here, but basically the siren is always
connected to the network.
When you set a duration and a signal to start producing a noise, there are
two ways how it will stop this noise, either wait for the duration to
expire or send an "off" signal. This will stop the running noise until a
new command will arrivve to initiate a new one.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#420 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AARKJWKCD4JCLCMQLOBNZ2DUJT5DZANCNFSM4FXZROKQ>
.
--
---
https://danielorodriguez.com
|
hello, has anyone solved this? it happened to me that it triggered a false alarm (I looked through the camera that nothing was on fire) but unfortunately it beeped the whole time until I got home from work. Is there a way to turn this off in m2qtt? (sorry for the english, google translate) |
Hi ich have the Xiaomi MiJia Honeywell smoke detector and it work fine.
Can i controll via Zigbee the Xiaomi MiJia Honeywell smoke detector for put the alarm Sirene /beep turn on / off ?
cu Danny
The text was updated successfully, but these errors were encountered: