dresden-elektronik / deconz-rest-plugin

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

please add it to supported devices IMMAX 4in1-Senzor-ZB3.0 #2819

Open apmediask opened 4 years ago

apmediask commented 4 years ago

2020-05-25-231447_1024x768_scrot 2020-05-25-231608_1024x768_scrot 2020-05-25-231707_1024x768_scrot 2020-05-25-231720_1024x768_scrot 2020-05-25-231726_1024x768_scrot 2020-05-25-231732_1024x768_scrot 2020-05-25-231803_1024x768_scrot 2020-05-25-231836_1024x768_scrot 2020-05-25-231910_1024x768_scrot 2020-05-25-231932_1024x768_scrot 2020-05-25-231947_1024x768_scrot 2020-05-25-232102_1024x768_scrot 2020-05-25-232312_1024x768_scrot 2020-05-25-232316_1024x768_scrot 2020-05-25-232342_1024x768_scrot 2020-05-25-232432_1024x768_scrot

apmediask commented 4 years ago

Hi, 3 out of 4 devices were found, PIR sensor is missing(0406) 2020-05-27-201551_1024x768_scrot

SwoopX commented 4 years ago

Missed your reply. PIR is handled via IAS zone cluster.

Try the below while sensor seach is running: Select it, weak the device and read the attributes. Thas should trigger auto-enrollment. Double check while waiting like 10 secs, then do the procedure again.

If that's still no good, double click on the IAS CIE address attribute and write the coordinator MAC address while the sensor is awake. Again, wait like 10 secs and then wake the sensor and read the attributes. If the sensor has the address previously entered but is still not enrolled, execute the command above the read button while the sensor is awake. Check once again after 10 secs.

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.

WhistleMaster commented 4 years ago

I also have an Immax 4in1 device. When integrated in Phoscon App, the device is not visible in "Connected sensors" list.

The other problem is that in Home Assistant, the presence sensor does not update. The others (temperature, humidity, light) are fine though.

Screenshot 2020-07-14 at 11 59 50

It seems that I'm also missing the "0406 Occupancy sensing" attribute.

Screenshot 2020-07-14 at 12 05 33

If that's still no good, double click on the IAS CIE address attribute and write the coordinator MAC address while the sensor is awake. Again, wait like 10 secs and then wake the sensor and read the attributes. If the sensor has the address previously entered but is still not enrolled, execute the command above the read button while the sensor is awake. Check once again after 10 secs.

I tried to follow this procedure but it does not fix it.

Maybe an integration issue @Kane610 ?

Kane610 commented 4 years ago

I don't think it is an integration issue, if it gets created it should also handle updates, I think deconz doesn't send updates

WhistleMaster commented 4 years ago

I don't think it is an integration issue, if it gets created it should also handle updates, I think deconz doesn't send updates

Thanks for jumping in ! If the sensor only use "IAS Zone" cluster, how is that reflected in HA vs the "0406 Occupancy sensing" ?

157  
config  
battery 100
duration 60
on true
pending []
reachable true
ep 1
etag "75ec498350dd7e963cad5efa327c5225"
lastseen "2020-07-14T12:17:01.781"
manufacturername "Immax"
modelid "4in1-Sensor-ZB3.0"
name "4in1-Sensor-ZB3.0 (2)"
state  
lastupdated "2020-07-14T10:51:19.459"
lowbattery false
presence false
tampered false
swversion "20181227-76"
type "ZHAPresence"
uniqueid "00:0d:6f:ff:fe:40:03:56-01-0500"
SwoopX commented 4 years ago

The IAS Zone status is 99% still not enrolled. Has the write of the CIE address been accepted?

WhistleMaster commented 4 years ago

Seems to be:

Screenshot 2020-07-14 at 14 05 42
SwoopX commented 4 years ago

Doesn't it work at all or just occasionally? It should take like 60 secs to jump from motion to nomotion (if there's no motion in between).

WhistleMaster commented 4 years ago

No, it does not work at all. Temperature, humidity and light are fine though. Should it be visible in the "Connected sensors" list ?

SwoopX commented 4 years ago

Strange. In the IAS Zone, the Alarm 1 should be ticked upon motion, but only if it's enrolled... Not sure if the device uses a different mechanism for the notifications. grafik

WhistleMaster commented 4 years ago

This is what I have:

Screenshot 2020-07-14 at 15 28 26

Do I just need to check "Alarm 1" and click on "exec" ?

SwoopX commented 4 years ago

No, you just need to generate motion, then it should update automatically. Not sure if you need to switch back and furth between the clusters to have it visible.

WhistleMaster commented 4 years ago

I've tried to remove the sensor from Deconz through the VNC interface and add it again. Now I have the following:

Screenshot 2020-07-14 at 16 11 52

But still no update in Home Assistant for the PIR and no "Alarm 1" checked...

WhistleMaster commented 4 years ago

Also, the sensor is not visible in the "Connected sensors" list in Phoscon App and I've tried to look at the log and I can't find any ZHAPresence updates for the sensor.

I have other Philips sensors and I can see that they are updated in the log when there are some movements.

EDIT: I've also tried to see the information from the web API (http://:/api//sensors//) and I can confirm that the sensor "presence" state is not updated at all when there are movements in front of it.

config  
battery 100
duration 60
on true
pending []
reachable true
ep 1
etag "6336239e7a5b76aa4b5960532f6e831a"
lastseen "2020-07-14T14:49:19.030"
manufacturername "Immax"
modelid "4in1-Sensor-ZB3.0"
name "4in1-Sensor-ZB3.0"
state  
lastupdated "2020-07-14T13:55:29.043"
lowbattery false
presence false
tampered false
swversion "20181227-76"
type "ZHAPresence"
uniqueid "00:0d:6f:ff:fe:40:03:56-01-0500"
WhistleMaster commented 4 years ago

@SwoopX & @apmediask Do those sensors work on your side ? Can you see it in the list in the Phoscon App ?

Mimiix commented 4 years ago

@WhistleMaster Please don't ping users on such short notice. They all (even me) get emails about responses here. Give them some time :)

To answer one question:

If you see devices within deCONZ but not in Phoscon, that is most of the time perfectly normal. Phoscon is closed source and needs devices to be added manually by their Developer. However, the device will still be usable with the API/Home-Assistant/OpenHAB etc.

Swoop will reply when he can :)

SwoopX commented 4 years ago

@WhistleMaster Do you run HA? Point is I need to understand what the device is sending and that might be a bit hard if I cannot see the traffic by sniffing then.

WhistleMaster commented 4 years ago

Yes, I do run HA. The issue is that even in Deconz log, there is no sign of motion update (I have other Philips sensors and I can see that they are updated in the log when there are some movements).

The device does not send anything.

SwoopX commented 4 years ago

And this is why sniffing the traffic would provide more insights in how far the device maybe behaves differently from others I got some experimental code for that but since you run HA, you cannot use it.

WhistleMaster commented 4 years ago

Sure, I can send you the device if you need ? I can also send by paypal the amount to buy it. Tell me what would be the easiest for you.

SwoopX commented 4 years ago

Ping me on our Discord and we figure something out ;)

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.

SwoopX commented 4 years ago

Bump. Still no feedback from Immax support.

petr-vytlacil commented 4 years ago

Hi, try somebody connect conbee 2 with this sensor in Phoscon App? When I searching sensor, I dont find it. THX

Mimiix commented 4 years ago

@petr-vytlacil It's not integrated yet. We are lacking info.

SwoopX commented 4 years ago

It is. However, it seems to have some issues for the motion sensor. Got one here now and no idea, why it is so stubborn or what the device issue is.

vahaldor commented 4 years ago

I have this sensor for couple of days and it detected motion first day, then stopped working. Is this deconz dependent problem?

petr-vytlacil commented 4 years ago

@vahaldor Hi, can you write me if you use Conbee 2? Beacause i dont see sensor in Deconz and i use Conbee 2. THX

vahaldor commented 4 years ago

I use ConBee II firmware 26660700, plugged in Rasp pi 4 running hassio. It worked for one or two days, now I am experiencing exactly the kind of behaviour others discuss here.

vahaldor commented 4 years ago

I received a support case from IMMAX. They think this is a faulty unit... Petr would you write me directly? We can discuss is in czech nikola.schmidt@gmail.com Thanks

petr-vytlacil commented 4 years ago

@vahaldor Hi, thank you. I have update ConBee II to 26660700 and sensos was detected. THX

ACrazyConcept commented 3 years ago

I just got this sensor thinking all issues were solved. It pairs pretty easily. But at first the motion detection was not working. I had it laying around for a couple of days where temp, humidity and lightlevel all updated fine. Then I tried deleting in deCONZ GUI end search for new sensor in Phoscon and afterwards manually reading attributes in deCONZ. Well not super methodical really. But somehow the motion sensor started working. And it did work. I could also decrease the 'duration' from 60 seconds to 15 seconds with REST command, and that also worked. However now I just noticed that the temp, humidity and lightlevel had not been updating since I got the motion sensor working. 😅

SwoopX commented 3 years ago

From my perspective, those devices seem to be cursed. I got one donated by a user and never had so much trouble to get a device fully working as this one here. Everything else than the motion detection does its job, but that thing doesn't send anything on zigbee level although properly set up and configured.

I'm tempted to either suspect a faulty device or firmware...

ACrazyConcept commented 3 years ago

I think I have figured out a fairly reliable way to get the (my) motion sensor working. Sadly when the motion sensor works, none of the other sensors do.

In any case these are the steps:

Delete the sensor from Phoscon if it is still there. Start a search for the sensor. Press and hold the device button untill it starts pairing. When the sensor has been paired go to deCONZ. Open the IAS Zone cluster. Double click the IAS_CIE_Address attribute. Click read. Press the device button once. Close the IAS_CIE_Address attribute window. Double click the Zone ID attribute. Press the device button once. Close the Zone ID attribute window

The IAS Zone cluster attributes then look like this for me: image

After a few seconds motion should now get detected in Phoscon (and Home Assistant) I am also still able to set the duration option to 15 seconds instead of the default 60 seconds. Edit: This seems to be a bad idea after all though...

If I start poking around in deCONZ and e.g. read the environment sensor clusters the motion sensor will stop responding again and the only way I have been able to get it back is by starting all over as described above.

ACrazyConcept commented 3 years ago

Is there anything I can do to shed some light on the workings of this device?

I recently paired it again and had the motion detection working (but not the environment sensors). But then after some time I checked and then it was the other way around and all the environment sensors had sent data for several days, but no motion detected..

ACrazyConcept commented 3 years ago

Still hoping this can be made to work :)

SwoopX commented 3 years ago

I might have found out how to make that da** thing fully working. Gotta do some more testing to verify that wasn't a one hit wonder...

jkalousek commented 3 years ago

I also bought this sensor before finding out about this issue. I do not really care much about the temperature and luminance reading but I found out that motion sensing does something weird in my case. When motion happens, both Alarm 1 in deconz and motion in Home assistant are "on" but if I wave my hand in middle of cooldown period (60s) in front of sensor, home assistant will report no motion after cooldown period from initial/first motion but Alarm 1 in deconz will stay "checked" and will stay on until cooldown from last detected motion (as it should be). So what happens is that home assistant motion state is not the same as state of Alarm 1 and is only triggered when Alarm 1 is switched from off to on but always set to "no motion" after cooldown regardless of continued motion in front of sensor. In the end if I stay in room constantly moving for 5 minutes home assistant will only see first minute whereas doconz correctly shows expected status. My other sensors works as expected so there is something special about how events are handled by this one. Is there some additional info that I can provide so we can figure out what can cause this problem?

Mimiix commented 3 years ago

I think this was fixed in the last beta

jkalousek commented 3 years ago

@Mimiix Ok, thank You. I will wait for next release.