dresden-elektronik / deconz-rest-plugin

deCONZ REST-API plugin to control ZigBee devices
BSD 3-Clause "New" or "Revised" License
1.89k stars 498 forks source link

Xiaomi Mijia (HonneyWell) gas detector #1182

Closed AdamWeglarz closed 4 years ago

AdamWeglarz commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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

ebaauw commented 5 years ago

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 commented 5 years ago

There's no battery.

ebaauw commented 5 years ago

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

AdamWeglarz commented 5 years ago

Basic obraz Ias obraz power obraz

Rest is empty. There are two push options

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

Adam

ebaauw commented 5 years ago

OK, if you write the mac address of the RaspBee or ConBee to the _IAS_CIEAddress 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 commented 5 years ago

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 commented 5 years ago

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

fuzzysb commented 5 years ago

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[bot] commented 5 years ago

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.

alahdal commented 5 years ago

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

alahdal commented 5 years ago

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

iamkarlson commented 4 years ago

Any hope to get this available?

Otnow commented 4 years ago

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 commented 4 years ago

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

AdamWeglarz commented 4 years ago

So any news?

fastsonic commented 4 years ago

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

L3H0 commented 4 years ago

Any hope to get this available?

+1

WladyX commented 4 years ago

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

SirJMD commented 4 years ago

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

WladyX commented 4 years ago

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 commented 4 years ago

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

fastsonic commented 4 years ago

push Also available for any Help

iamkarlson commented 4 years ago

@SirJMD is there also a way to set up direct bindings with zigbee2mqtt?

AdamWeglarz commented 4 years ago

Hello,

Can you tell that you plan to add support for this device?

alahdal commented 4 years ago

any update?

AdamWeglarz commented 4 years ago

I gave up and setup zigbee2mqtt :-(

L3H0 commented 4 years ago

I gave up and setup zigbee2mqtt :-(

z2m on Conbee2 or C2538?

And3rsL commented 4 years ago

is this device supported now? i currently looking for a gas detector to buy and i would like to buy the xiaomi one

L3H0 commented 4 years ago

@And3rsL nope, till today this device is not supported.

AdamWeglarz commented 4 years ago

It can be seen in integrations using API (like HomeAssistant) not in Phoscon. Nor you will be able to set sensitivity as in app. But I still recommend the sensor, I had tested it. I just hope dresden will finally wake up some day and keep up to the market...

No it is not. You are mixing gas sensor with smoke sensor which is really working like you explain.

andriej commented 4 years ago

Sorry! You're right.

SwoopX commented 4 years ago

I'll add it soon, should be a quick one

alahdal commented 4 years ago

Very much appreciated! @SwoopX

JohCo-hassio commented 4 years ago

Very nice 👍🏻

OldSystemMan commented 4 years ago

At last 👍

SwoopX commented 4 years ago

I still need someone to collect me 1h of log data so I can inspect the special attribute reporting for this device.

sudo systemctl stop deconz-gui /usr/bin/deCONZ --dbg-info=2 > xiaomi_debug

alahdal commented 4 years ago

@SwoopX I hope you find the file helpful this time. It is worth mentioning that the Gas detector is not connected to the RaspBee, because it is not supported yet.

Please let me know if there is anything else I can do.

xiaomi_debug.txt

SwoopX commented 4 years ago

That's perfect, thanks!! Lots of stuff in there I always wanted to get a look at.

What I actually do not see it the gas sensor as far as I can tell. You got one right?

alahdal commented 4 years ago

@SwoopX I got the Gas Sensor, but it is not connected with RaspBee. When I try to connect via Phoscon App (web), it does not connect.

SwoopX commented 4 years ago

@alahdal I see. Will come with the next release. Do you use HA or docker? If not, you could compile a dev version of the plugin and become my lab rat ;)

alahdal commented 4 years ago

It is installed on a Raspbian.

SwoopX commented 4 years ago

So, you might want to try the following. Would really appreciate if you could generate another debug file when you want to play with it (then use /usr/bin/deCONZ --dbg-info=2 > xiaomi_debug2 for step 5 mentioned below):

  1. Clone my repository containing the changes git clone https://github.com/SwoopX/deconz-rest-plugin.git cd deconz-rest-plugin
  2. Shut down deconz sudo systemctl stop deconz-gui
  3. Make a backup of file "general.xml" sudo mv /usr/share/deCONZ/zcl/general.xml /usr/share/deCONZ/zcl/bak_general.xml
  4. Copy the amended general.xml to the required location sudo cp general.xml /usr/share/deCONZ/zcl/
  5. Start deconz again sudo systemctl start deconz-gui

For the smoke sensors, you should see 2 additional attributes in cluster 0x0500 IAS Zone. For attribute Selftest/Density, double click on it and read the value (not read config!). Please share a screenshot from that.

Now, if all wen well, you should be able to initiate selftest by writing value 03010000 to that attribite. Sensitivity should be setable with values as follows:

alahdal commented 4 years ago

@SwoopX These are the screenshot for the attributes in 0x0500.

Screen Shot 2020-06-21 at 4 56 38 PM Screen Shot 2020-06-21 at 4 56 50 PM
SwoopX commented 4 years ago

My bad, used the wrong manufacturer code. Can you try once again? Start with deleting the downloaded repository locally sudo rm -rf ./deconz-rest-plugin.

alahdal commented 4 years ago

Reading Failed. Sensitivity is read only

PS. Just to clarify, we are at the Gas detector topic not the Smoke Detector

Screen Shot 2020-06-21 at 5 26 42 PM