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

Xiaomi Mijia (HonneyWell) gas detector #1182

Closed
AdamWeglarz opened this issue Jan 25, 2019 · 76 comments
Closed

Xiaomi Mijia (HonneyWell) gas detector #1182

AdamWeglarz opened this issue Jan 25, 2019 · 76 comments

Comments

@AdamWeglarz
Copy link

Hi,

I have also Xiaomi Mijia (HonneyWell) gas detector. It connects without any issue to Xiaomi Gateway so it work correctly. It does not connect at all to Deconz zigbee. It is not visible in Deconz graphical interface (In oposite to Xiaomi smoke sensor, which is visible in Deconz app).
How I can help to diagnoze issue?

Adam

@manup
Copy link
Member

manup commented Jan 25, 2019

The device is currently not supported.

Please provide the details as described here:
https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/Request-Device-Support

@SirJMD
Copy link

SirJMD commented Jan 25, 2019

I've hit the same road block, I also have a gas detector I'd like to use.

I'd be more than happy to supply the needed details, but I have no idea where to find "Cluster Info Panel" and the rest mentioned in the link. I guess it's not via Phoscon?

@AdamWeglarz
Copy link
Author

AdamWeglarz commented Jan 26, 2019

For starters. Tomorrow I will buy lighter to start alarm and capture what is send by the device when alarm is raised and cleared:

obraz
obraz
obraz
obraz

@ebaauw
Copy link
Collaborator

ebaauw commented Jan 26, 2019

This one plugs into the mains power? It looks a lot like the Heiman sensor I had on loan, also Jennic based. While detecting gas, it issues an alarm from the IAS Zone cluster while making a lot of noise. Same for pressing the test button. Unfortunately, the siren cannot be activated externally.

It’s probably enough to whitelist the sensor (twice: in the sensor whitelist and in the IAS Zone logic, to create the right sensor type). Could you press Read on the cluster into panel so the attribute values get populated?

@SirJMD
Copy link

SirJMD commented Jan 26, 2019

It's powered by 12V and comes with a mains adapter. It also have a NO set of contacts, for hard wired alarm.

@ebaauw
Copy link
Collaborator

ebaauw commented Jan 26, 2019

To charge the battery? Or is the battery only meant as a backup when mains power is down? It’s a Zigbee router, meaning its radio is always on. I wonder how long the battery lasts.

@SirJMD
Copy link

SirJMD commented Jan 26, 2019

There's no battery.

@ebaauw
Copy link
Collaborator

ebaauw commented Jan 26, 2019

Ah, OK. Then it's "just" an external power adapter.

@AdamWeglarz
Copy link
Author

Basic
obraz
Ias
obraz
power
obraz

Rest is empty.
There are two push options

  • Test alarm
  • Sensitivity of the sensor

Is it possible to sniff traffic between xiaomi gateway and gas sensor?
PS The same options are available for smoke sensor.

Adam

@ebaauw
Copy link
Collaborator

ebaauw commented Jan 26, 2019

OK, if you write the mac address of the RaspBee or ConBee to the IAS_CIE_Address attribute (0x0010 in the IAS Zone cluster), Zone State should change to Enrolled and you should see alarms in Zone Status when pressing the test button. Be sure to protect your ears ;-)

It doesn't look like the sensitivity is exposed over Zigbee.

@AdamWeglarz
Copy link
Author

AdamWeglarz commented Jan 26, 2019

Hi,

should it be visible in Rest API?
obraz
It is recognized as co sensor after putting MAC as you recommended. Not enrolled

Adam

@SirJMD
Copy link

SirJMD commented Jan 27, 2019

Is there any additional information required before it can be added? If so, I'd be happy to help.

@fuzzysb
Copy link

fuzzysb commented Mar 15, 2019

I have one with the same issue, when updating the address of the Deconz Gateway in to the IAS_CIE_Address i am also unenrolled, when trying to read the reporting configuration i get the following error
image

@stale
Copy link

stale bot commented Jul 13, 2019

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.

@stale stale bot added the stale label Jul 13, 2019
@alahdal
Copy link

alahdal commented Jul 14, 2019

Hi,
Are you going to support this device? Or is it already compatible with RaspBee?

@stale stale bot removed the stale label Jul 14, 2019
@alahdal
Copy link

alahdal commented Aug 13, 2019

I got my new Xiaomi Mijia (HonneyWell) gas detector, it is not connecting to RaspBee. Any plan?

@iamkarlson
Copy link

Any hope to get this available?

@Otnow
Copy link

Otnow commented Nov 4, 2019

Is there any additional information required before it can be added? If so, I'd be happy to help.

+1

I have this device and Conbee II. What information needs to be provided to add support?

@WladyX
Copy link

WladyX commented Nov 14, 2019

I also have 2 of these and Conbee 2 and also can help with info.

@AdamWeglarz
Copy link
Author

So any news?

@fastsonic
Copy link

hi, i also try to connect to the Gas Sensors,
when its poosibel to Help ? please contact me
Thanks

@L3H0
Copy link

L3H0 commented Dec 13, 2019

Any hope to get this available?

+1

@WladyX
Copy link

WladyX commented Dec 13, 2019

This was working on zigbee2mqtt, maybe it's possible to get some inspiration from that code? :)

@SirJMD
Copy link

SirJMD commented Dec 23, 2019

I've given up on deconz, zigbee2mqtt is being maintained much better.

@WladyX
Copy link

WladyX commented Dec 24, 2019

Maybe, in my case it did not handle the size of my network well (+80 nodes).
On topic: If we can help in anyway to get this supported, please let us know.

@mwhiegl
Copy link

mwhiegl commented Jan 2, 2020

I second the request and offer to help. Not a coder, but let me know if any more data is needed or so.

@alahdal
Copy link

alahdal commented Jun 21, 2020

Here is a log
xiaomi_debug2.txt

@alahdal
Copy link

alahdal commented Jun 21, 2020

I restarted deCONZ with sudo, however, it showed all nodes without names and does not show all clusters. I will leave it for sometime and check again, I noticed the clusters are shown gradually.

Why I run as sudo? I noticed that I can read the cluster info when it is run as sudo.

If you think I am doing something wrong, please interrupt.

@alahdal
Copy link

alahdal commented Jun 21, 2020

I have stopped deCONZ and restarted without sudo, when I tried to read attribute in basic cluster info, it worked without problem. However, for the new two new attributes, I am still getting the error shared in the last screenshot either for read or write.

@SwoopX
Copy link
Collaborator

SwoopX commented Jun 21, 2020

Hm, maybe the 2 attributes are not required to be manufacturer specific. The additions to general.xml were the following

<attribute-set id="0xf000" description="Xiaomi specific" mfcode="0x1037">
    <attribute id="0xfff0" name="Sensitivity" type="u32" access="r" required="o" mfcode="0x1037"></attribute>
    <attribute id="0xfff1" name="Selftest/Density" type="u32" access="rw" required="o" mfcode="0x1037"></attribute>
</attribute-set>

You could try removing this part for the data above mfcode="0x1037" (before copying the file over) to see if that changes anything.

Btw, if you pull my repo now, support for the gas sensor is included.

@alahdal
Copy link

alahdal commented Jun 22, 2020

@SwoopX after removing (mfcode="0x1037") from above data, I get "unsupported attribute" error.

Screen Shot 2020-06-22 at 9 04 24 AM

I believe the Gas Sensor is connected now, and I could read some of its attributes. However, the item does not appear in the REST API nor discovered by Phoscon.

Screen Shot 2020-06-22 at 9 26 20 AM

@SwoopX
Copy link
Collaborator

SwoopX commented Jun 22, 2020

@alahdal Please leave the Sensitivity attribute for further tests. Have you tried to write any of the low/medium/high values yet to Selftest/density yet? If not, please do so (with and without the mfcode in general.xml). You can also test the selftest value if you're brave.

For the gas sensor to work, you need to compile my repo. Instructions are in the readme.

@alahdal
Copy link

alahdal commented Jun 22, 2020

@SwoopX when I remove the mfcode, both attributes are not supported, hence, I cannot read or write. With the mfcode, I get the error shared earlier here where I read/write.

@DaveRuijter
Copy link

Hi! I'm wondering about the status of this development 🤗. @SwoopX can you share what is going on?
I can't wait to try this capability in Home Assistant (for the smoke detectors!).
Thanks!

@AdamWeglarz
Copy link
Author

AdamWeglarz commented Jul 8, 2020

Hi! I'm wondering about the status of this development . @SwoopX can you share what is going on?
I can't wait to try this capability in Home Assistant (for the smoke detectors!).
Thanks!

Smoke sensor is working with rest api even though it is not visible in phoscon

@DaveRuijter
Copy link

Yes, and I'm aware of that 👍 . But this extra development is about having a trigger for the alarm test functionality and support for more sensors (actually the related issue is about that, but they are a combined effort with the gas detector if I understand it correct).

@Mimiix
Copy link
Collaborator

Mimiix commented Jul 8, 2020

@DaveRuijter Is this something you want in Phoscon?

@SwoopX
Copy link
Collaborator

SwoopX commented Jul 8, 2020

@Mimiix Slow down ;)

It either doesn't work or hasn't been tested correctly. z2m has a 30 sec delay with that. Anyway, should be able to be easily tested as mentioned above.

@alahdal
Copy link

alahdal commented Jul 20, 2020

@SwoopX I made a clean install and I am going to try again :) and compile your repo

@alahdal
Copy link

alahdal commented Jul 20, 2020

For the gas sensor to work, you need to compile my repo. Instructions are in the readme.

I compiled your plugin and now the Gas Sensor appears in the Rest API, very cool.

Tell me what do you want next for both the Gas and the Smoke.

@L3H0
Copy link

L3H0 commented Jul 24, 2020

On the latest beta, sensor visible in VNC.
In Home Assistant too.
Adnotacja 2020-07-24 115211

@alahdal
Copy link

alahdal commented Jul 24, 2020

Yes with @SwoopX plugin, I have the gas sensor visible in OpenHAB and tested working fine.

@SwoopX
Copy link
Collaborator

SwoopX commented Jul 27, 2020

Closing this one as support has been provided with version .79.

@mwegener-com
Copy link

Any news on support for this device?

@SwoopX
Copy link
Collaborator

SwoopX commented Aug 21, 2020

What else would you expect?

@leonardpitzu
Copy link

a nice addition would be to add a toggle exposed also in HA in order to manually trigger the siren. currently in HA only a sensor is exposed

@SAOPP
Copy link

SAOPP commented Feb 22, 2021

Guys, as far as I understand, you can already buy this device?

@SAOPP
Copy link

SAOPP commented Jul 13, 2021

So guys, it's not possible to set sensitivity at this sensor via gui?

@SAOPP
Copy link

SAOPP commented Jul 13, 2021

a nice addition would be to add a toggle exposed also in HA in order to manually trigger the siren. currently in HA only a sensor is exposed

Btw, I got gas sensor, tamper and temperature:

image

@SAOPP
Copy link

SAOPP commented Jul 13, 2021

Really, it would not be bad to adjust the sensitivity through the HA. That would be great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests