Script to delete a device from an Ezlo Controller

I have 2 devices “stuck” and they will not purge from system. I tried unpairing (says it unpaired) than I try delete saying I no longer have device. But goes back to device screen and there it is. I can rename it but not delete it. I think it’s stopping me from adding another device.

Things tried:

Re Pair device
Un Pair device
Factory reset device
Delete device
reboot hub
curse at device
curse at hub
use my Red Ruby Slippers with an incantation

Nothing worked

Hello @peterg88,
Please take a look at this way to delete failed devices from Ezlo controllers:

1 Like

I tried executing the script but get an error, when you have DEVICEID I am assumind replace that with the device name that I want removed

sh remove_device.sh delete (that is name of my device)

It’s not the device name.

You will need to look up it’s device ID using the Online Api Tool.

I can confirm this actually works ! I just deleted a device off my Ezlo Plus I was unable to remove by any other means.

For others wondering how to do this:

Use the Online API Tool to look up the target devices ID number.

In the “Commands” drop down menu select “hub.devices.list” and hit the “Send” button.

Scroll down the page and in the “Response” section expand “result” and find the target device.

Copy its device ID number.

SSH in to the Ezlo Plus controller using Putty login as root with the password which should be on the sticker underneath the controller.

Run this command to download the remove_device.sh script file:

wget http://dl.mios.com/customercare/remove_device.sh -O /tmp/remove_device.sh

Then change to the tmp directory with this command:

cd /tmp

Then run this command with your device ID, mine was:

sh remove_device.sh 60f277c1120bab1823320516

It looks like it had to install something first called dbreader.

This was the entire output I saw in the terminal:

/tmp# sh remove_device.sh 60f277c1120bab1823320516

Initializing...

Checking if dbreader is installed...

dbreader is not installed.
Installing dbreader...
Downloading http://dl.mios.com/linux_firmware/stg/bundle/h2.1/v1/snapshots/224/system/targets/sunxi/cortexa7/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/ezlo_openwrt_core
Downloading http://dl.mios.com/linux_firmware/stg/bundle/h2.1/v1/snapshots/224/system/targets/sunxi/cortexa7/packages/Packages.sig
Signature check passed.
Downloading http://dl.mios.com/linux_firmware/stg/bundle/h2.1/v1/snapshots/224/system/packages/arm_cortex-a7_neon-vfpv4/base/Packages.gz
Updated list of available packages in /var/opkg-lists/ezlo_openwrt_base
Downloading http://dl.mios.com/linux_firmware/stg/bundle/h2.1/v1/snapshots/224/system/packages/arm_cortex-a7_neon-vfpv4/base/Packages.sig
Signature check passed.
Downloading http://dl.mios.com/linux_firmware/stg/bundle/h2.1/v1/snapshots/224/system/packages/arm_cortex-a7_neon-vfpv4/hub_platform_deps/Packages.gz
Updated list of available packages in /var/opkg-lists/ezlo_openwrt_hub_platform_deps
Downloading http://dl.mios.com/linux_firmware/stg/bundle/h2.1/v1/snapshots/224/system/packages/arm_cortex-a7_neon-vfpv4/hub_platform_deps/Packages.sig
Signature check passed.
Downloading http://dl.mios.com/linux_firmware/stg/bundle/h2.1/v1/snapshots/224/system/packages/arm_cortex-a7_neon-vfpv4/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/ezlo_openwrt_packages
Downloading http://dl.mios.com/linux_firmware/stg/bundle/h2.1/v1/snapshots/224/system/packages/arm_cortex-a7_neon-vfpv4/packages/Packages.sig
Signature check passed.
Downloading http://dl.mios.com/linux_firmware/stg/bundle/h2.1/v1/snapshots/224/firmware/Packages.gz
Updated list of available packages in /var/opkg-lists/ezlo_openwrt_hub_platform
Downloading http://dl.mios.com/linux_firmware/stg/bundle/h2.1/v1/snapshots/224/firmware/Packages.sig
Signature check passed.
Downloading http://dl.mios.com/linux_firmware/stg/bundle/h2.1/v1/snapshots/224/plugins/Packages.gz
Updated list of available packages in /var/opkg-lists/ezlo_openwrt_hub_plugins
Downloading http://dl.mios.com/linux_firmware/stg/bundle/h2.1/v1/snapshots/224/plugins/Packages.sig
Signature check passed.
Installing firmware-dev-dbreader (1.0.1785.1) to root...
Downloading http://dl.mios.com/linux_firmware/stg/bundle/h2.1/v1/snapshots/224/firmware/firmware-dev-dbreader_1.0.1785.1_arm_cortex-a7_neon-vfpv4.ipk
Configuring firmware-dev-dbreader.
dbreader is installed.

The device to delete is: 60f277c1120bab1823320516
Removing setting 60f277c1120bab1823320518
Removing setting 60f277c1120bab1823320519
2 settings were removed
Removing item 60f277c1120bab1823320517
1 items were removed
Removing device 60f277c1120bab1823320516
Done. The device has been removed.

Terminating...

The device I deleted has now gone from the Ezlogic web GUI and the Vera mobile app.

2 Likes

Thanks much, as soon as i can get into site i will, but not allowing me to create account and not letting me sign in with current credentials… this is getting frustrating

I just tried to create a new account via the “Sign Up” on the Online Api Tool and I get the same error as you. I have reported this problem to the developers.

Http failure response for https://vera-us-oem-account11.mios.com/autha/auth/username: 0 Unknown Error

I have the same problem here with two Fibaro smoke sensors. These devices can’t be deleted. Supports solutions is to delete, unpair or reset the controller. I could try to delete these devices via SSH/Script, but I don’t have enough time to deal with it. That should be solved with a firmware update…

Still not working :frowning:

Another day passes , no resolution so I can’t delete devices and can’t add new ones… When will these things get resolved.

I wouldn’t expect a quick fix for the Online Api Tool websites broken sign up problem.

And why can’t you add new devices?

I think the “ghost” devices are not allowing some of my switchess to be added. I already have a few of same switch on system but can’t add new one. It goes into pairing asks encrypted or not then jumps to device panel without adding. I try process again and it unpairs successfully so I’m guessing it sees device but not adding.

Hi @peterg88,
I have created a support ticket to help you with this issue. Please check your email.
Kind regards!