Yoda-x / ha-zha-new

update of the zha component
56 stars 10 forks source link

Please add support for SmartThings Multipurpose Sensor (2018) #46

Open ericstewart22 opened 6 years ago

ericstewart22 commented 6 years ago

Temperature and open/close works, but I bought it primarily for the vibration sensor - any idea how I can get that working? Also, Home Assistant thinks it’s a moisture sensor - any idea how I can fix that?

Here’s the output of bellows -d /dev/ttyUSB1 devices -D /config/zigbee.db: Device: NWK: 0x223a IEEE: 28:6d:97:00:01:00:59:f8 Endpoints: 1: profile=0x104, device_type=DeviceType.IAS_ZONE Input Clusters: Basic (0) Power Configuration (1) Identify (3) Poll Control (32) Temperature Measurement (1026) IAS Zone (1280) Manufacturer Specific (64514) Output Clusters: Identify (3) Ota (25)

Yoda-x commented 6 years ago

can you enable debugging for bellows and zigpy and send me the logs for the time when you shake the sensor thanks

ericstewart22 commented 6 years ago

Thanks for looking into this! I attached logs and my zigbee.db. Let me know if there's anything else I can do to help.

home-assistant_zha_new.log

zigbee.db.log

Yoda-x commented 6 years ago

Hi Eric,

  1. you use the mainstream zigpy and not my version, this break some things
  2. I see in your log the commands when an alarm is generated. That's good, I need to make some adjustments in the code to catch this up. Please install my version for zigpy. I will come back to you
ericstewart22 commented 6 years ago

Sorry about that. Please see the attached logs now. One log is after updating bellows and zigpy to your version. The other log and my zigbee.db is after I deleted the old zigbee.db, updated bellows and zigpy to your version, and attempted to pair the device again.

The logs don't look different to my eye. If they are still incorrect then could you tell me what I am doing wrong? Here's what I did:

I used Portainer to get to the console of the Home Assistant docker container and then I ran apt-get update apt-get install git pip3 install --upgrade git+https://github.com/Yoda-x/bellows.git pip3 install --upgrade git+https://github.com/Yoda-x/zigpy.git

running pip3 show bellows and pip3 show zigpy indicate the update was successful.

home-assistant_remove_device_add_device.log

home-assistant_zha_new_zigpy_new_bellows_new.log

zigbee_zha_new_zigpy_new_bellows_new_remove_pair.db.log

Yoda-x commented 6 years ago

if you start hass, it installs the default bellows/zigpy. Threre is a command line option to disable this feature. I added a patch yesterday, that zha_new pulls now my version. Please get a fresh version of zha-new and try again to create logs.

many thanks

ericstewart22 commented 6 years ago

Please see attached for new logs. Let me know if you need anything else.

home-assistant.log

Thanks! Eric

Yoda-x commented 6 years ago

Hi i added support for this type of sensors. Please update to my preview branch for zha_new bellows and zigpy ( 1. install the zha_new files, 2. install bellows pip3 install --upgrade git+https://github.com/Yoda-x/bellows.git@preview

  1. install zippy pip3 install --upgrade git+https://github.com/Yoda-x/zigpy.git@preview

Then please remove the device, restart hass, and pair it again. Please let me know if it works for you. thanks

ericstewart22 commented 6 years ago

Hello,

It didn't seem to work. Here's a full list of what I did for troubleshooting:

  1. delete everything in custom_components
  2. download zha_new from preview branch and extract to custom_components
  3. open portainer and run in home assistant docker container: 3a: apt-get update 3b: apt-get install git 3c: pip3 install --upgrade git+https://github.com/Yoda-x/bellows.git@preview 3d: pip3 install --upgrade git+https://github.com/Yoda-x/zigpy.git@preview
  4. remove device (press and hold reset button on the device until it flashes alternating green and red)
  5. sudo docker stop homeassistant
  6. delete zigbee.db, home-assistant_v2.db
  7. sudo docker start homeassistant
  8. run zha_new.permit
  9. at this point the device is no longer in pairing mode, so I reset the device so that it is in pairing mode

I attached the logs and zigbee.db following the above steps: home-assistant.log zigbee.db.log

Let me know if you need anything else.

Thanks, Eric

Yoda-x commented 6 years ago

can you please verify the versions for zigpy = 0.1.3-Y-pre bellow = 0.7.2-Y-pre in your container? There is one error in the log, that is fixed in the preview code. Do yo modified the start script in the container to disable the dependency checking inside hass? Otherwise hass checks with every start if the right version is installed and install it if needed. This overwrite my versions. Something I need to fix for the next official release.

Yoda-x commented 6 years ago

I modified the zha_new code. It should now load the required bellows/zigpy it self. no need for manual installation with pip. Please refresh the preview zha-code and give it another try. Thanks

ericstewart22 commented 6 years ago

Thanks for doing that. A couple things - I think you updated the dev branch, not the preview branch. I tried the dev branch and I get the error

valueError: not enough values to unpack (expected 1, got 0)

I think the error occurs because the #bellows== is missing. I tried adding it in and it seems to work fine.

REQUIREMENTS = ['https://github.com/Yoda-x/bellows/archive/preview.zip#bellows==0.7.2-pre', 'https://github.com/Yoda-x/zigpy/archive/preview.zip#zigpy==0.1.3-Y-pre']

I added requirements to dev and preview branches as above and I don't think the sensor is working yet but the logs look a bit different to my uneducated eye. I also tried updating using git commands without restarting the container afterwards and I don't think that worked either.

New logs attached. Please let me know if zigpy and bellows are incorrect. If zigpy and bellows are incorrect then let me know what to look for in the logs to see that I am using the correct version.

home-assistant.log

Eric

Yoda-x commented 6 years ago

I found a bug in the zigpy code and it should be fixed now.
You are right I not updated the preview branch, sorry for the confusion. please refresh zigpy (goto the container, do pip uninstall zigpy and let hass load it again) and do another try. I was testing the requirements without "=" and it worked for me, I appreciate your time to do all the testing. sorry for the iterations...

ericstewart22 commented 6 years ago

No problem, I am happy to help. Thank you for your help this - you are doing most of the work.

The device now shows in Home Assistant but it's not quite working yet. The binary switch does not update when closed/opened and temperature does not report any values. And I don't see anything from the acceleration sensor.

home-assistant.log zigbee.db.log

Eric

Yoda-x commented 6 years ago

right, I don't see anything coming in from your log. Can you repair the sensor. I assume the sensor is not correctly paired. The init routine runs only when a sensor newly joines, otherwise zha assumes the sensor is already properly configured. please stop hass and remove the zigbee db, then reset the sensor, start hass again and do the paring.

Also please change your debugging to this

logger: 
  default: error
  logs:
    custom_components: debug
    zigpy: debug
ericstewart22 commented 6 years ago

It worked this time. Sorry about that!

Open/close works, although it shows as "moisture/no moisture" Temperature sensor is there but there's no data. I don't think motion is working, but maybe I'm not looking at the right thing. Any advice?

Thanks again for all your help. I attached log files in case you'd like to have a look.

home-assistant.log zigbee.db.log chrome_2018-09-13_17-29-49 chrome_2018-09-13_17-33-31

Adminiuga commented 6 years ago

Samjin multipurpose sensors returns wrong 'device_class' for whatever reason. Reads as moisture instead of open/close

On Thu, Sep 13, 2018, 17:33 Eric notifications@github.com wrote:

It worked this time. Sorry about that!

Open/close works, although it shows as "moisture/no moisture" Temperature sensor is there but there's no data. I don't think motion is working, but maybe I'm not looking at the right thing. Any advice?

Thanks again for all your help. I attached log files in case you'd like to have a look.

home-assistant.log https://github.com/Yoda-x/ha-zha-new/files/2381042/home-assistant.log zigbee.db.log https://github.com/Yoda-x/ha-zha-new/files/2381043/zigbee.db.log [image: chrome_2018-09-13_17-29-49] https://user-images.githubusercontent.com/9406402/45517087-13738b80-b77b-11e8-93ab-793fc3aa5181.png [image: chrome_2018-09-13_17-33-31] https://user-images.githubusercontent.com/9406402/45517122-26865b80-b77b-11e8-8bb4-0368b65eb0bf.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Yoda-x/ha-zha-new/issues/46#issuecomment-421160485, or mute the thread https://github.com/notifications/unsubscribe-auth/AFjmcF3fBORlfuBL4UktcAzV0tw_kJ4nks5uas81gaJpZM4WWxKY .

Yoda-x commented 6 years ago

From what I see in the logs it generated a plenty of alarms. please create an automation script and then check your logbook.

- alias: click_log
  id: click_log
  initial_state: True
  trigger:
    platform: event
    event_type: alarm
    # optional
  action:
    - service: logbook.log
      data_template:
        name: "click event: "
        message: "Entity {{ trigger.event.data.entity_id  }}, type {{ trigger.event.data.channel}}, command {{ trigger.event.data.command}}, data {{ trigger.event.data.data}} "

you can override the device_class in the customation file

ericstewart22 commented 6 years ago

I am watching the logs as I test the sensor. I am using tail -f /config/home-assistant.log from the docker container's console.

The alarms are for the door/window sensor only (ALARM 1), I don't see any for movement /vibration of the sensor. Is there a way to get this to work?

Thanks again.

Yoda-x commented 6 years ago

If nothing comes in from the sensor if you shake, it gets difficult. Btw, what sensor you have ? https://support.smartthings.com/hc/en-us/articles/213496343 or https://support.smartthings.com/hc/en-gb/articles/205382174-SmartThings-Multi-Sensor

Yoda-x commented 6 years ago

Ps:can you send a log file were you open /close it and another were you shake it only? Just to be sure nothing gets send for it

ericstewart22 commented 6 years ago

Here's a link to a video where I open and close it while watching home-assistant.log from the console. I don't think there's anything being sent.

https://photos.app.goo.gl/Mmiee8rPkzXZXtkx5 home-assistant.log zigbee .db.log

Thanks again. If it doesn't work then it doesn't work - I knew it might not work when I bought it.

Yoda-x commented 6 years ago

Thanks, yes, very clear. I think I need to disappoint you. Only the 2015 model is listed as vibration and tilt senor. The 2018(yours) and 2016 model are listed only as door and temp sensor.

ericstewart22 commented 6 years ago

Hm, yes, I see that on their website, but I'm not sure I trust it. I don't have the package anymore, but I'm pretty sure it said vibration sensor on the packaging.

The specific product I ordered was this one which has a nice graphic showing open/close, tilt, vibrate, and temperature. Maybe I'll contact Samsung support to inquire.

https://www.amazon.com/dp/B07F956F3B/ref=sxts_kp_bs_1?pf_rd_m=ATVPDKIKX0DER&pf_rd_p=8778bc68-27e7-403f-8460-de48b6e788fb&pd_rd_wg=abyWw&pf_rd_r=K8VSYAFYXM2HNW9NC2WM&pf_rd_s=desktop-sx-top-slot&pf_rd_t=301&pd_rd_i=B07F956F3B&pd_rd_w=zThp2&pf_rd_i=multipurpose+sensor&pd_rd_r=a08846c1-c9e7-4d35-86e2-760665fff832&ie=UTF8&qid=1536966445&sr=1

71qlmpzskhl _sl1500_

ericstewart22 commented 6 years ago

I don't know what to think. The Amazon store shows it as having tilt and vibration sensor, I thought the box indicated the same. Samsung's website shows that it has vibration sensor, but the product manual doesn't mention anything about it. I found two YouTube videos saying it has tilt and vibration sensor, but I see no proof in the videos. I'm just adding information, I'm not expecting you to make anything of it.

https://www.smartthings.com/products/smartthings-multipurpose-sensor https://youtu.be/AHlrHfiOy2A?t=3m18s https://www.youtube.com/watch?v=AGWf0BEqdMw

The page you linked to is for "M/N: IM6001-MPP02". Mine is "M/N: IM6001-MPP01"

https://fccid.io/2AF4S-IM6001-MPP01/Internal-Photos/Internal-Photo-3814880

Yoda-x commented 6 years ago

Agree, please ask the Smart guys, This gets confusing If you find some information about it, please let me know.

ericstewart22 commented 6 years ago

Will do. Thanks again for your help, I appreciate it.

Adminiuga commented 6 years ago

argh, I thought I posted my message, but apparently not. I had some partial success with original zigpy:

018-09-15 00:25:39 DEBUG (MainThread) [homeassistant.components.sensor.zha] sensor.samjin_multi_01005e25_1_64514: Attribute update 'Smartthings Accelerometer'[x_axis] = 142
2018-09-15 00:25:39 DEBUG (MainThread) [homeassistant.components.sensor.zha] sensor.samjin_multi_01005e25_1_64514: Attribute update 'Smartthings Accelerometer'[y_axis] = 229
2018-09-15 00:25:39 DEBUG (MainThread) [zigpy.zcl] [0x356c:1:0xfc02] ZCL request 0x000a: [[<Attribute attrid=20 value=<zigpy.zcl.foundation.TypeValue object at 0x7f7e59bf3320>>]]
2018-09-15 00:25:39 DEBUG (MainThread) [zigpy.zcl] [0x356c:1:0xfc02] Attribute report received: 20=-1061
2018-09-15 00:25:39 DEBUG (MainThread) [homeassistant.components.sensor.zha] sensor.samjin_multi_01005e25_1_64514: Attribute update 'Smartthings Accelerometer'[z_axis] = -1061
2018-09-15 00:25:40 DEBUG (MainThread) [zigpy.zcl] [0x356c:1:0xfc02] ZCL request 0x000a: [[<Attribute attrid=18 value=<zigpy.zcl.foundation.TypeValue object at 0x7f7e59bf3320>>, <Attribute attrid=19 value=<zigpy.zcl.foundation.TypeValue object at 0x7f7e59c2c6a0>>]]
2018-09-15 00:25:40 DEBUG (MainThread) [zigpy.zcl] [0x356c:1:0xfc02] Attribute report received: 18=-56, 19=-53
2018-09-15 00:25:40 DEBUG (MainThread) [homeassistant.components.sensor.zha] sensor.samjin_multi_01005e25_1_64514: Attribute update 'Smartthings Accelerometer'[x_axis] = -56
2018-09-15 00:25:40 DEBUG (MainThread) [homeassistant.components.sensor.zha] sensor.samjin_multi_01005e25_1_64514: Attribute update 'Smartthings Accelerometer'[y_axis] = -53
2018-09-15 00:25:40 DEBUG (MainThread) [zigpy.zcl] [0x356c:1:0xfc02] ZCL request 0x000a: [[<Attribute attrid=20 value=<zigpy.zcl.foundation.TypeValue object at 0x7f7e59ce1080>>]]
2018-09-15 00:25:40 DEBUG (MainThread) [zigpy.zcl] [0x356c:1:0xfc02] Attribute report received: 20=-996
2018-09-15 00:25:40 DEBUG (MainThread) [homeassistant.components.sensor.zha] sensor.samjin_multi_01005e25_1_64514: Attribute update 'Smartthings Accelerometer'[z_axis] = -996
2018-09-15 00:25:41 DEBUG (MainThread) [zigpy.zcl] [0x356c:1:0xfc02] ZCL request 0x000a: [[<Attribute attrid=18 value=<zigpy.zcl.foundation.TypeValue object at 0x7f7e59ba39b0>>, <Attribute attrid=19 value=<zigpy.zcl.foundation.TypeValue object at 0x7f7e59c2c4a8>>]]
2018-09-15 00:25:41 DEBUG (MainThread) [zigpy.zcl] [0x356c:1:0xfc02] Attribute report received: 18=-49, 19=-40
2018-09-15 00:25:41 DEBUG (MainThread) [homeassistant.components.sensor.zha] sensor.samjin_multi_01005e25_1_64514: Attribute update 'Smartthings Accelerometer'[x_axis] = -49
2018-09-15 00:25:41 DEBUG (MainThread) [homeassistant.components.sensor.zha] sensor.samjin_multi_01005e25_1_64514: Attribute update 'Smartthings Accelerometer'[y_axis] = -40
2018-09-15 00:25:41 DEBUG (MainThread) [zigpy.zcl] [0x356c:1:0xfc02] ZCL request 0x000a: [[<Attribute attrid=20 value=<zigpy.zcl.foundation.TypeValue object at 0x7f7e59ce1080>>]]
2018-09-15 00:25:41 DEBUG (MainThread) [zigpy.zcl] [0x356c:1:0xfc02] Attribute report received: 20=-990
2018-09-15 00:25:41 DEBUG (MainThread) [homeassistant.components.sensor.zha] sensor.samjin_multi_01005e25_1_64514: Attribute update 'Smartthings Accelerometer'[z_axis] = -990

here's some info:

  1. accelerometer is on 0xfc02 cluster
  2. you do need to configure attribute reporting on 0xfc02 cluster for [0x0010, 0x0012, 0x0013, 0x0014] attributes
  3. configure_reporting needs to use manufacturer id
  4. manufacturer ID must be correct for the specific manufacturer ID. Mine PN is IM6001-MPP01 from Samjin. Based on the older ST DH version i've tried Centralite & ST manufacturer codes and configure_reporting was failing with "unsupported attribute". It wasn't until I put correct manufacturer code for samjn 0x1241 based on newer DH configure_reporting succeeded and I got readings.
Yoda-x commented 6 years ago

ok, this needs a more sophisticated device file. let me think about it. @Adminiuga do you created a quirks file for this? @ericstewart22 : you may try the original zha if it works for you...

Adminiuga commented 6 years ago

@Yoda-x Yep, created the quirks just for a quick&dirty test whether it worked or not. Quirks just defines the attributes, the real key was a quick fix to add support for manufacturer_id to Cluster.configure_reporting() method. I haven't created any official PRs yet, but even then it would require an update to zigpy, new version of zigpy to pipi and then you would need to add this sensor to HA code and currently I don't know how to cleanly integrate this kind of quirks cluster into general HA zha component layout. So I'm not holding my breath seeing it in upstream zha soon

Yoda-x commented 6 years ago

I made some changes to add mfg_id, config_reporting, etc and a new DH file. Please give it a try and update the preview when you find some time. I bumped also the bellows/zigbee versions one up. I hope the upgrade works in dockers. There where many changes for other stuff also.

ericstewart22 commented 6 years ago

Thank you for doing that. I downloaded zha_new from preview branch, removed zigbee.db and paired the device again. It doesn't seem to be working yet because of some errors.

home-assistant.log

ericstewart22 commented 6 years ago

I was able to fix the error myself in my code. I attached the logs after fixing that and re-pairing the sensor. Open/close is working but I don't see any logs for vibration.

home-assistant.log

Yoda-x commented 6 years ago

Sorry for being my guinea pig. Did you fixed more than the "=" ->"=="? From what I see you need to remove the sensor first, the important code was skipped as the sensor was already known. For this please go to Developer tools->services, select zha_new.remove and enter

{ "ieee": "59:f8"}

This removes the sensor (hopefully) from all the different tables, so the init process start fresh. then please repair the sensor

ericstewart22 commented 6 years ago

Hello, sorry for the delay. I lost power for a few days because of a storm.

I deleted zigbee.db just to be safe and repaired the device. There seems to be a few errors. Sorry for any trouble this is causing you. It seems to get stuck on this line:

2018-09-24 22:05:36 DEBUG (MainThread) [zigpy.zdo] [0x6d28:zdo] ZDO request 0x0036: [180, <Bool.true: 1>]

home-assistant.log

Yoda-x commented 6 years ago

Hi Eric, no worries, Hope you are doing well. Yes, found two bugs in the new code. Please do a a refresh for the zha_new preview branch.

Thanks

ericstewart22 commented 6 years ago

Thanks. The device shows up properly in HA but I still only see ALARM1 for open/close, and temperature isn't being reported properly (shows as 2218, 22.18 deg. C would make sense) and temperature doesn't show in HA on home screen.

home-assistant.log

Yoda-x commented 6 years ago

I see that the attribute report failed. Maybe you try the upstream zha with the patches from @Adminiuga?

Yoda-x commented 6 years ago

I see that the attribute report failed. Maybe you try the upstream zha with the patches from @Adminiuga?

Yoda-x commented 6 years ago

I added the temperature cluster. It should show now a "Temperature" attribute in ha. It's on the updated preview branch

Yoda-x commented 5 years ago

closing this ticket as I received no response

JuliusLedoux commented 5 years ago

Sorry to bug with this issue, but I have the following scenario: I am using home assistant 0.96.3 on a docker container. I am using zha and I can add and remove the multi purpose sensor with no issues. The problem that I have is that it does no report tilt or vibration back to home assistant. It is reporting open/close and temperature. What I have noticed is than the older version of the sensor (CentraLite) it reports all of them and the latest version (Samjin) does not. Any help on this is highly appreciated.

Yoda-x commented 5 years ago

Hi, the centralite and samji use different manufacturer ids. It may take some days to get it added. And it may a recursive process to rule out errors I add.

JuliusLedoux commented 5 years ago

Thank you for taking care of this. Let me know if you need logs or any other information.

Rocketman69 commented 5 years ago

This is interesting....I'm running 0.96.4 on RPi3, nortek husbzb-1, and two of the 2018 version ST Multipurpose switches. Both devices paired without issues. However, I'm seeing battery status, temp, open/close, and an attribute that just shows as on/off. Open close isn't working for me, as these switches have been installed for quite some time as garage door tilt sensors. Since I don't use the magnet on the switch, the state always shows as "open". The other attribute that shows on/off, seems to be vibration, as it will switch state while in motion. Temperature and battery percentage update as expected.

Any luck with getting the x/y/z axis attributes to allow these to act as a tilt sensor?

I'm a complete noob with Home Assistant, but if there's anything I can provide that may be of help, just let me know.

Yoda-x commented 5 years ago

@JuliusLedoux : Just to verify, you run zha_new or zha? I'm a little confused,because there is no centralite support in my zha_new repo.

The difference between centralite and samjin and the smarthings seems to be different reporting and configuration setting for the tilt/move sensor. The rest is equal.

Nevertheless, I added some tweak to the code for the multi sensor, peeking at the smarthings code. It's in the dev branch samjin-multi

@Rocketman69:can you provide a screenshot from the sensor and the "other attribute" ?

JuliusLedoux commented 5 years ago

Hi Yoda,

My apologies for he lack of clarification. I have been using the regular zha services provided in Home Assistant not the zha_new. I will give it a try.

Thanks again,

Julio C.

On Mon, Aug 5, 2019 at 4:09 PM Yoda-x notifications@github.com wrote:

@JuliusLedoux https://github.com/JuliusLedoux : Just to verify, you run zha_new or zha? I'm a little confused,because there is no centralite support in my zha_new repo.

The difference between centralite and samjin and the smarthings seems to be different reporting and configuration setting for the tilt/move sensor. The rest is equal.

Nevertheless, I added some tweak to the code for the multi sensor, peeking at the smarthings code. It's in the dev branch samjin-multi

@Rocketman69 https://github.com/Rocketman69:can you provide a screenshot from the sensor and the "other attribute" ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Yoda-x/ha-zha-new/issues/46?email_source=notifications&email_token=AF3FAJUJYOJYPOAABANSOWLQDCQJVA5CNFSM4FS3CKMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3THM5A#issuecomment-518420084, or mute the thread https://github.com/notifications/unsubscribe-auth/AF3FAJQS3BOGGXUN35IBBQ3QDCQJVANCNFSM4FS3CKMA .

Yoda-x commented 5 years ago

Hi Julio, I suggest you open a ticket in the official zha. adminiuga and dmulcahey are active and responsive to requests. If you want to try my spin off, please save the .homeassistant directory and start in a fresh setup. So you have no problems to return.

Rocketman69 commented 5 years ago

@Rocketman69:can you provide a screenshot from the sensor and the "other attribute" ?

Sorry about the delay. I didn't realize there had been a reply. Not sure which screen you wanted a screenshot of. Will this do? SamjinMulti

Rocketman69 commented 5 years ago

To be clear....I had nuked my previous setup due to some other issues, and this is a fresh install of hassio on a Pi3b+. I have a HUSBZB-1 for my Zigbee controller, and I'm using the stock zha component. I grabbed a fresh Samsung Multipurpose Sensor out of the box this morning, as I had a spare. I paired the device, and made no other changes. This is how it is exposed inside Home Assistant. The "opening" attribute works on this one, as I paired it with the magnet attached. Removing the magnet updates from closed to opened in the front end. "Moving" does not update at all. I think I had changed the device class of this attribute to "vibration" on one of my other switches, and it did indeed seem to update properly. That device was stuck to the back of one of my garage doors, and would show ON every time the door started moving, and would switch back to OFF once the movement had stopped. This new switch (unmodified) does not seem to show any status change for this attribute no matter how many times I drop/hit/shake/throw/etc. "Battery" and "Temperature" attributes seem to work properly.

Let me know if there is anything else you'd like me to add.

stripeyhorse commented 4 years ago

i have the same issue as @Rocketman69

Both brand new sensors with HUSBZB-1.

Interesting in the logs i can see the x,y and z moving but the OPEN/CLOSE stops reporting after a few minutes..