core: Zigbee switch (Peanut Smart Plug) “missing” after HA .93 update

Home Assistant release with the issue:

.93.0

Last working Home Assistant release (if known): .92.2

Operating environment (Hass.io/Docker/Windows/etc.):

Homeassistant via Docker ZHA via HUSBZB-1 USB Combo zigbee/zwave Component/platform:

ZHA

Description of problem: I have two of these Securfi “Peanut” Smart Plugs:

Both of them stopped reporting the “switch” entity after .93 update. Other entities for the device are reported and working, eg binary_sensor responds to status when the plug is switched on and off via the physical button on the device.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

zha:
    usb_path: /dev/ttyUSB1
    database_path: /config/zigbee.db

Traceback (if applicable):


Additional information: I have tried some basic troubleshooting: Remove/Re-add device, Re-set device, remove working device in .92.1/upgrade/re-add device in .93, remove device, remove zigbee.db, add device back, etc. Nothing is having any effect.

I posted on the HA Forums here as well another user confirming the issue with the same device.

Here is before (.92.1) and after (.93.0) of the device in the ZHA Config. image

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 2
  • Comments: 49 (16 by maintainers)

Most upvoted comments

There will be a PR with the real fix this week.

@jr3us no

@Adminiuga you’re going to ruin the surprise! 😃

Can confirm that 0.95 fixes this issue. Thanks! 👍

.95

@Adminiuga You’re right; 0.94 solved the emulated hue issue I was having on the peanut switch. Thanks!

I haven’t explicitly exposed the peanut in the emulated hue section, and I have nothing else explicitly exposed there either.

After I got the peanut reestablished in HA, I tried to add the peanut switch to the echo in their menus, and watched the logs on home assistant as I did so, and there were no entries in the logs regarding the peanut.

I did run across something in the issue https://github.com/home-assistant/home-assistant/issues/23435. as follows:

this comment from @dshokouhi below is dated 4/26/19, @mikesalz try to define a turn_on and turn_off action those values are actually required and maybe why nothing is happening. Its possible HA became stricter here and since there are no values nothing happened.

https://www.home-assistant.io/components/light.template/#turn_on

Information in the link above indicates that an explicit turn on and turn off needs to be added when using this.

I am thinking this really needs to be fixed in zha so that it is presented correctly as a switch to HA rather than having to do all the work arounds above. These work arounds were not needed in prior versions.

If i can help, let me know.

Regards