home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.14k stars 29.81k forks source link

Aqara Wireless Switch(Double,not in wall) LEFT button FAILURE #8935

Closed hhalibo closed 6 years ago

hhalibo commented 7 years ago

Make sure you are running the latest version of Home Assistant before reporting an issue.

You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:

**Home Assistant release (hass --version):0.50.2

**Python release (python3 --version):3.4.2

**Component/platform:xiaomi

**Description of problem:I have 6 Aqara Wireless Switches(Double), to pair my Aqara Wall Switch (Double) to do a Both_sides light switch control. During the installation, I have 4 Aqara Wireless Switches(Double) with the problem of LEFT Button Failure. I use the XiaoMi offical app's automation, works well. But in the Home-assistant, right button automation all succeed, and the left button always failure with 4 Aqara Wireless Switch, only 2 switch left button succeed.

Expected:

Problem-relevant configuration.yaml entries and steps to reproduce:

- alias: "test left single click"
   trigger:
    - platform: event
      event_type: click
      event_data:
        entity_id: binary_sensor.wall_switch_left_158xxxxxxx67
        click_type: single

  action:
    - service: switch.toggle
      entity_id: switch.wall_switch_left_158xxxxxxxx3d
- alias: "test right single click"
  trigger:
    - platform: event
      event_type: click
      event_data:
        entity_id: binary_sensor.wall_switch_right_158xxxxxxx67
        click_type: single

  action:
    - service: switch.toggle
      entity_id: switch.wall_switch_right_158xxxxxxxx3d

1. 
2. 
3. 

**Traceback (if applicable):**
```bash

**Additional info:I also use command "sudo journalctl -fu home-assistant.service" Right button pushed can made log as follows, left button with nothing.

Aug 12 17:13:43 orangepizero hass[26536]: 2017-08-12 17:13:43 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=<state automation.test_right_single_click=on; friendly_name=test right single click, last_triggered=2017-08-12T14:27:10.917467+08:00 @ 2017-08-12T14:21:23.036794+08:00>, new_state=<state automation.test_right_single_click=on; friendly_name=test right single click, last_triggered=2017-08-12T17:13:43.021135+08:00 @ 2017-08-12T14:21:23.036794+08:00>, entity_id=automation.test_right_single_click>

luismmg commented 7 years ago

Hi,

I'm having the same problem with OpenHab since last update of the Xiaomi Gateway 2 firmware (1.4.1_149).

It seems a problem with the Gateway because I’ve done a tcpdump listening for packages from the Xiaomi Gateway on the OpenHab machine and I detect UDP packages when I press the right button and both but none when I press the left button.

The left button does work with MiHome software with automations.

Lets hope Xiaomi repairs this...

Luis

hhalibo commented 7 years ago

Thanks for reply. I'm from China. I will contact XiaoMi comoany tech-support tomorrow.

Cheers.

markrennie71 commented 7 years ago

it is the same with the single switch version. It reports the click in the Xiaomi app but not in HA

joaosilvareed commented 7 years ago

I can confirm this problem. It's happening here also.

luismmg commented 7 years ago

Hi again,

@hhalibo it would be great if you could post any progress with Xiaomi tech support. I send them an email but their answer was dissapointing saying that "the product you have mentioned is not available for sale in your locality through our official website. So, assurance could not be provided for the service in our service center and we would not be able to assist you technically."

Thank you very much!

pandemixxx commented 7 years ago

I'd like to confirm this issue with domoticz, is there any possible solutions?

Chronocento commented 7 years ago

I have the same problem: right switch works fine, but left one and "both click" (binary_sensor.wall_switch_both_158dxxxxxxxxxx) don't.

bsilvr commented 7 years ago

Hi, I have the exact same problem. Regretting the update a lot since it made my wall switches useless. Please keep this post updated with new information so all of us can solve this issue.

Thank you!!

luismmg commented 7 years ago

@pandemixxx I think there's no solution unless Xiaomi repairs the bug in the firmware. Unfortunately, as I commented, I tried to contact Xiaomi with the problem and they didn't help because of my country, replied to their email and had no response since.

@hhalibo said he's from China and would contact Xiaomi but haven't heard from him since, let's hope Xiaomi takes notice.

I suppose it wouldn't hurt if anybody else from China would contact Xiaomi to make a little pressure...

markrennie71 commented 7 years ago

I'm not sure it is a bug with xiaomi, as they work in the Mi Home, just they aren't registered in HA for the single version and the left and both click on the double.

luismmg commented 7 years ago

@markrennie71, sure it works with their own products, but the "local area network communication protocol" that the Xiaomi Gateway provides, and that is responsible for sending the events, does not work since last firmware update.

It's not a problem with any of the home automation sw, and it happens in all of them. And worse, to me it seems imposible to overcome this problem other than with an update of the Xiami Gateway firmware.

Regards.

markrennie71 commented 7 years ago

fair point.. I stand corrected. I just hope it doesn't start happening to more products and HA as everything else works perfectly (i.e. motion sensors) except 2 switches listed in this topic. I have only just started to move all my stuff to Xiaomi and spent loads of money :D

Chronocento commented 7 years ago

This guy seems to have the email address of the Xiaomi Gateway firmware developer: https://community.home-assistant.io/t/beta-xiaomi-gateway-integration/8213/1146 I just contacted him pointing to this thread.

luismmg commented 7 years ago

That's great news @Chronocento, hope they can solve this. Please keep us posted with any new news.

Thank you!

theo-69 commented 7 years ago

any news?

pandemixxx commented 7 years ago

@theo-69 no xioami gateway updates leads to no news unfortunately

badgerhome commented 7 years ago

Damn, mine gateway and switches just arrived. I updated the firmware during setup and only the right channel is working :( hope there's an update to this soon! Thanks all

theo-69 commented 7 years ago

still nothing?

markrennie71 commented 7 years ago

nothing.. I got a new gateway and didn't upgrade to the new firmware so I could use my wall switches.

pandemixxx commented 7 years ago

@theo-69 I bet there going to be a discussion after you'll see .150 update on your gateway, nothing will change before.

hhalibo commented 7 years ago

@pandemixxx @luismmg @markrennie71 @joaosilvareed @Chronocento Hi there,Xiaomi technician told me that the bug be found! they will publish the new firmware resolve it next week! maybe the version will be 1.4.1_149.0150, PLS be patient,happy automating.

markrennie71 commented 7 years ago

I hope you are right and thank you for this as I would love to update my 2nd gateway so I can use the newer motion sensors with it

badgerhome commented 7 years ago

Fingers crossed

zajnic commented 7 years ago

Thanks for the check, and hope Xiaomi can publish new firmware to fix this!

bsilvr commented 7 years ago

Thanks for the info @hhalibo, hope everything goes back to working soon.

theo-69 commented 7 years ago

still no update

bsilvr commented 6 years ago

Guys new update from xiaomi appeared on the app.

Gonna try it latter tonight, and post if the bug was fixed. It was a long wait let's hope it's fixed!! :)

pandemixxx commented 6 years ago

I confirm .150 update, just checked, everything is back to normal, LEFT CLICK WORKS!!! Finally fixed.

thundergreen commented 6 years ago

do other functiobns like detectors and so on still work properly after updating the gateway software?

bcromijn commented 6 years ago

My round wireless button doesn't work yet... maybe I have to tweak the settings a little bit. Keep you posted.

EDIT: After tweaking/updating the settings the button works as expected

pandemixxx commented 6 years ago

@thundergreen if you mean movement detectors - they work well

markrennie71 commented 6 years ago

my app updated but it says I am on the latest firmware 1.4.1

pandemixxx commented 6 years ago

Just checked a button - works as well. @markrennie71 we all on 1.4.1 - check numbers after - in my case version is 1.4.1150.0143. 150 is a build version, which was updated.

markrennie71 commented 6 years ago

Ahh yeah good point. Still 149 for me

bsilvr commented 6 years ago

All good on my part as well, everything works as expected...Finally!!

HydrelioxGitHub commented 6 years ago

Any new feature ?

Ordep commented 6 years ago

Still waiting for the upgrade. Is there any way to force the fw upgrade? (Not just by clicking check firmware)

zajnic commented 6 years ago

Same here, clicked on check firmware still indicating on the latest firmware of 149.

Best Regards, Zach

On Wed, Sep 20, 2017 at 7:38 AM, Ordep notifications@github.com wrote:

Still waiting for the upgrade. Is there any way to force the fw upgrade? (Not just by clicking check firmware)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/home-assistant/home-assistant/issues/8935#issuecomment-330650544, or mute the thread https://github.com/notifications/unsubscribe-auth/AUNF4ONiH1sW3y19JOX4FBlMsYplNDNNks5skBgqgaJpZM4O1XEL .

syssi commented 6 years ago

This issue could be closed (@hhalibo, @Danielhiversen). It's fixed with firmware 1.4.1_150.0143. If your Mi Home App doesn't provide the update yet please be patient. It will show up soon!