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) smoke detector #152

Closed rtenklooster closed 4 years ago

rtenklooster commented 7 years ago

Hi, Just received my RaspBee today and started playing around. I've upgraded to the latest beta in order to get my xiaomi switches and motion detectors running.

My smoke detectors are able to connect en they show up like this: rookmelder

With debugging enabled this event comes by when pushing the test button. 20:39:01:991 APS-DATA.indication srcAddr: 0x00158d00014d315c, dstAddrMode: 2, profile: 0x0104, cluster: 0x0500, lqi: 199, rssi: -66 20:39:02:218 APS-DATA.request id: 13, addrmode: 0x02, addr: 0x0000, profile: 0x0000, cluster: 0x0031, ep: 0x00 queue: 0 len: 2 20:39:02:292 APS-DATA.confirm id: 13, status: 0x00 SUCCESS And: 20:39:05:011 APS-DATA.indication srcAddr: 0x00158d00014d315c, dstAddrMode: 2, profile: 0x0104, cluster: 0x0500, lqi: 199, rssi: -66 20:39:05:100 APS-DATA.request id: 40, addrmode: 0x02, addr: 0x16c2, profile: 0x0000, cluster: 0x0031, ep: 0x00 queue: 0 len: 2 20:39:05:189 APS-DATA.confirm id: 40, status: 0x00 SUCCESS What should I do next to get my smoke detector supported?

manup commented 6 years ago

They aren't shown in Phoscon App yet but will be soon. Names can therefore currently only be changed via REST-API.

martikainen87 commented 6 years ago

Anyone who's been able to control the siren in the smoke detectors?

sveip commented 6 years ago

@rtenklooster, do you have an Xioami gateway? If so, if you:

  1. pair two smoke detectors to it
  2. configure them to chime as a group
  3. trigger one with smoke
  4. capture the zigbee traffic

Maybe you see the messages that turns on the siren?

Btw. I'm considering buying some of these, are they present in Phoscon yet @manup, no rush, just curious?

rtenklooster commented 6 years ago

@sveip Haven’t tried it yet on the latest firmware for my gateway. Will give it a try ASAP. Just moved to my new home so have to find out where all my sniffers and other hardware are laying around.

sveip commented 6 years ago

@rtenklooster, fantastic, no hurry :) Would be great to be able to make all sirens chime even if only one detects smoke. I'm thinking of making a button in hass to silence all but the one(s) that have detected smoke, to easier locate the fire/smoke source.

rtenklooster commented 6 years ago
  1. configure them to chime as a group.. As far as I know there is no grouping option. I connected two of them to the Mi gateway on the latest version, no way to make them both alarm. The only linking they offer is linking the gateway alarm itself. I would love this feature as well. When asleep I can't hear the smoke detector in the garage for example.

I think it's stupid they haven't implemented such functionality. Have googled on the topic, bat haven't seen any reports of such linked alarms.

sveip commented 6 years ago

Thanks for trying @rtenklooster. It's a shame it isn't supported. Maybe the only way to ever finding out if grouping is supported is to ask Xiaomi?

sveip commented 6 years ago

Reading the manual, it says "Press and hold the «Sound stop / Self-check» button for 3 seconds, after which the red indicator will begin to flash and beeps will turn on, the alarm goes into the simulation mode of the alarm sound;"

Do you know if there is any indication on the hub/app about this event? Maybe there is some Zigbee traffic related to it. Long shot, but maybe worth checking?

rtenklooster commented 6 years ago

No, there is not.

Outlook voor iOShttps://aka.ms/o0ukef downloaden


Van: sveip notifications@github.com Verzonden: dinsdag, augustus 21, 2018 2:05 PM Aan: dresden-elektronik/deconz-rest-plugin CC: Richard; Mention Onderwerp: Re: [dresden-elektronik/deconz-rest-plugin] Xiaomi Mijia (HonneyWell) smoke detector (#152)

Reading the manual, it says "Press and hold the «Sound stop / Self-check» button for 3 seconds, after which the red indicator will begin to flash and beeps will turn on, the alarm goes into the simulation mode of the alarm sound;"

Do you know if there is any indication on the hub/app about this event? Maybe there is some Zigbee traffic related to it. Long shot, but maybe worth checking?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/dresden-elektronik/deconz-rest-plugin/issues/152#issuecomment-414650768, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AGNMwjj6RGCMVbSMuLlBz-Uu1fLncJjcks5uS_d1gaJpZM4PH0WK.

yamaha1983 commented 5 years ago

Anything new regarding the support of (XIAOMI) Honeywell LUMI smoke sensors in deconz? I can add the sensor, but the first is not visible in Phoscon. When I add the device in FHEM, then i only can see the battery and reachable reading. How can I check for Fire events to trigger some needful stuff in my house? I think this is not provided properly by the REST API

AdamWeglarz commented 5 years ago

Hi,

I have smoke sensor. Devices is added It is not visible is Phoscon app. Rest API reports to domoticz data like this:

when adding device: 2019-01-22 17:26:49.536 (Deconz zigbee) ###### WebSocket Data : {'id': '54', 'sensor': {'config': {'temperature': 2500, 'battery': 100, 'reachable': True, 'on': True}, 'id': '54', 'name': 'lumi.sensor_smoke', 'state': {'lowbattery': False, 'fire': False, 'lastupdated': '2019-01-22T16:26:18', 'tampered': False}, 'ep': 1, 'etag': 'b73470512b6a6b3496808bbec411e7be', 'manufacturername': 'LUMI', 'type': 'ZHAFire', 'modelid': 'lumi.sensor_smoke', 'uniqueid': '00:15:8d:00:01:db:93:f9-01-0500'}, 'uniqueid': '00:15:8d:00:01:db:93:f9-01-0500', 'e': 'added', 'r': 'sensors', 't': 'event'}

raise alarm:
2019-01-22 19:51:23.131 (Deconz zigbee) ### Update device (Deconz zigbee - lumi.sensor_smoke) : {'BatteryLevel': 100, 'sValue': '', 'nValue': 0} 2019-01-22 19:51:23.131 (Deconz zigbee - lumi.sensor_smoke) Updating device from 0:'' to have values 0:''. clear alarm: 2019-01-22 19:51:33.846 (Deconz zigbee) ### Update device (Deconz zigbee - lumi.sensor_smoke) : {'BatteryLevel': 100, 'sValue': '', 'nValue': 0} 2019-01-22 19:51:33.846 (Deconz zigbee - lumi.sensor_smoke) Updating device from 0:'' to have values 0:''.

I can send more diagnostic data if required.

Adam

rtenklooster commented 5 years ago

I’ve about 6 of them. They work fine and trigger events. No, you can’t see them in the app, but they are there.

Also showing properly in home assistants.

AdamWeglarz commented 5 years ago

Hi,

I will check at home again. No change. Is HA using also REST API to get data from deconz or different protocol is used? Because for me it seems that through Rest API updates of status are not correctly send to Smanar/Domoticz-deCONZ plugin.

Adam

yamaha1983 commented 5 years ago

Oh yes, you are right. I am using FHEM, and here I had to make some adaptions to 31_HUEDevice.pm Module. Now I get all the values as reading. I informed the maintainer of this module to get it permanently in.

Here is what I had to do: Edit Module file FHEM/31_HUEDevice.pm After this line: $readings{state} = $state->{presence}?'motion':'nomotion' if( defined($state->{presence}) ); Insert: $readings{state} = $state->{fire}?'fire':'nofire' if( defined($state->{fire}) );

After this line: $readings{consumption} = $state->{consumption} if( defined($state->{consumption}) ); Insert: $readings{fire} = $state->{fire} if( defined($state->{fire}) ); $readings{tampered} = $state->{tampered} if( defined($state->{tampered}) ); $readings{lowbattery} = $state->{lowbattery}?'low':'OK' if( defined($state->{lowbattery}) );

Then you will receive events once Alarm is triggered, or test button is pressed.

So REST Plugin is working fine. It is not maintainable using Phoscon APP. So I think it is also not possible to create a chiming/alarming group when fire is detected. But it is good to see, that I can now create automations on emergency.

Waiting for group functionality from xiaomi :)

AdamWeglarz commented 5 years ago

Smanar fixed issue in his plugin!

barnish commented 5 years ago

@rtenklooster, would it be possible for you to use your Xiaomi Smoke detector and gateway to sniff the zigbee traffic for the following scenarios?

1) Test alarm from the MI home app. 2) Trigger alarm with real smoke and silence the active alarm with the MI home app.

I don't think those cases were covered in your earlier captures and those would be useful features to expose via deCONZ.

aronsjoberg commented 5 years ago

I have previously used my Honeywell Smoke Sensors (Xiaomi) using the Xiaomi GW but I have now moved them to my ConBee on Hass.io using the arthoc deCONZ addon. The devices works fine (I can't see them in Phoscon but in HASS) but I can't seem to find any option for configuration? When using the Xiaomi GW I could set the sensitivity of the smoke sensors. Is this not possible using deCONZ?

darkskiez commented 5 years ago

The earlier trace mentioned includes a test [but not silence] ( https://pastebin.com/59rUTJKv )

rtenklooster commented 5 years ago

The earlier trace mentioned includes a test [but not silence] ( https://pastebin.com/59rUTJKv )

Hi, you found my paste ;) This dump contais all actions possible. Including the sensitivity settings @aronsjoberg and @barnish . Currently there is no way to adjust those settings from deconz. It would be great however to be able to adjust the sensitivity. But that's something @manup could possible fix (if he had the time ;))

prnzngr commented 5 years ago

Is it possible to trigger via deconz an alarm?

stale[bot] commented 4 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.

tnowak commented 4 years ago

Any chances Xiaomi / Honeywell smoke detector will be added as recognized device?

L3H0 commented 4 years ago

Any chances Xiaomi / Honeywell smoke detector will be added as recognized device?

The device is recognized, but it wan`t show in Phoscon. I have it working so far good in Home Assistant.

kasteleman commented 4 years ago

I can’t recall the steps you have to do to get it fully functional because it uses IAS doesn’t it?

Op vr 13 dec. 2019 om 11:52 schreef L3H0 notifications@github.com

Any chances Xiaomi / Honeywell smoke detector will be added as recognized device?

The device is recognized, but it wan`t show in Phoscon. I have it working so far good in Home Assistant.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dresden-elektronik/deconz-rest-plugin/issues/152?email_source=notifications&email_token=ABNGEKEUF3AAFCA4ASQJD4TQYNSPBA5CNFSM4DY7IWFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGZUIWY#issuecomment-565396571, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNGEKCIC6H4ZHBIEATMGFDQYNSPBANCNFSM4DY7IWFA .

andriej commented 4 years ago

You don't need to to a lot. Just press button 3 times while pairing.

simonbove commented 4 years ago

Is it working correctly now with deconz?

andriej commented 4 years ago

It is working with homeassistant but not in phoscon as a sensor.

MikeDeltaHH commented 4 years ago

Good morning! Any chance to integrate the smoke detectors in homebridge via the homebridge-hue plugin? I have two of them, visible in deconz and not in the phoscon app.

Regards! Mike

ebaauw commented 4 years ago

If the REST API supports them, homebridge-hue probably already exposes them to HomeKit. If not, please open an issue with homebridge-hue, attaching the full debug dump file (see https://github.com/ebaauw/homebridge-hue#debug-dump-file).

MikeDeltaHH commented 4 years ago

Thansk for the very fast answer... i try to restart my homebridge and after that i can see the smoke detectors! Perfect! :)

prnzngr commented 4 years ago

Is it possible to trigger via deconz an alarm?

andriej commented 4 years ago

Of course not. You can't set almost anything that you can do via mi app.

prnzngr commented 4 years ago

Pity. Thanks

allanpersson commented 4 years ago

Any chances Xiaomi / Honeywell smoke detector will be added as recognized device?

Would love to get it in the app too 🙏

valentingc commented 4 years ago

Is it possible to set the sensitivity using the deconz REST API?

dennisb1 commented 4 years ago

Serious??? This is a request of aug 2017 and still not done? I'm using now Zigbee2MQTT for this, this is really ashamed that a open source product can read the voltage, sensitivity, how much smoke and can see if the siren is going off but a product like deCONZ still CANT.

Fix ASAP

andriej commented 4 years ago

+1'ing this issue won't change anything as DE seems to fully don't care about any Xiaomi stuff.

AdamWeglarz commented 4 years ago

But this sensor is supported in REST API. you can use it in domoticz or HA.

RezzZ commented 4 years ago

I was under the wrong impression that the webgui was part of the deconz-rest-plugin but phoscon is a separate product so my +1 is now removed.

andriej commented 4 years ago

But you can't set anything on it, just read the current state...

RezzZ commented 4 years ago

so what options would you like to 'set'? @andriej isn't a smoke detector a sensor that only provides sensor data?

valentingc commented 4 years ago

@RezzZ yes, but I think setting the sensitivity of a smoke detector is a essential thing - especially since both the original gateway and zigbee2mqtt support this setting. There would also be a the self-test that can be triggered - but this may not be as important as the sensitivity.

allanpersson commented 4 years ago

@rezzZ this smokesensor allows to set how sensitive they are when used with xiaomi gateway/app. Fx in the kitchen you can trigger different than livingroom 🙏

Also they should be in the GUI

andriej commented 4 years ago

@RezzZ if you would kindly take a look at the issue posts above... there's everything, dump of sniffed options, options themselves - this sensor has more than just dumb 'on/off' state and you can't manage it after joining to zigbee deconz network.

Ageo commented 4 years ago

Appear in Jeedom not into Phoscon App.

Ageo commented 4 years ago

Suggestion for developers: Could you add the Honeywell smoke detector as a light for example? Like the Ikea USB extender. For the moment, I'm not able to delete the smoke detector thought the App.

andriej commented 4 years ago

You can use it via API, i.e. in HA.

andriej commented 4 years ago

I don't want to sound rude, but how come issue has just been closed without any comment?

Mimiix commented 4 years ago

I made a mistake here. Miss clicked on alt tabbing. Sorry!

baneb5 commented 4 years ago

Please add an option to set sensitivity and controll the siren like zigbee2mqtt did. Thanks!