Amazon recently unleashed the ban hammer on the FireStarter app, which I leveraged for the home double tap functionality via my harmony hub to start Kodi on the firetv with my amazon echo. That being said, I’ve been looking for alternatives. After some research I found I could use openhab to launch apps directly on the firetv using adb with the exec binding. This works freaking great… almost…
The Aeotec Gen5 USB z-wave stick shows up as an emulator under adb which wreaks havoc with my z-wave setup! Here is an example connecting to my firetv and you can see that the emulator is showing as well:
adb devices
List of devices attached
emulator-5554 offline
192.168.1.72:5555 device
If I pull the z-wave stick out the emulator disappears.
The problem I have is z-wave trips out and starts queuing events whenever I connect to my firetv via adb. For example:
016-05-16 17:33:45.774 [DEBUG] [o.b.z.i.protocol.SerialMessage:113 ]- NODE 2: Creating empty message of class = SendData (0x13), type = Request (0x00)
2016-05-16 17:33:45.774 [DEBUG] [b.z.i.protocol.ZWaveController:947 ]- Callback ID = 12
2016-05-16 17:33:45.774 [DEBUG] [b.z.i.protocol.ZWaveController:632 ]- Enqueueing message. Queue length = 4
2016-05-16 17:33:46.241 [DEBUG] [z.internal.ZWaveNetworkMonitor:323 ]- Network Monitor: Queue length is 4 - deferring network monitor functions.
2016-05-16 17:33:51.242 [DEBUG] [z.internal.ZWaveNetworkMonitor:323 ]- Network Monitor: Queue length is 4 - deferring network monitor functions.
2016-05-16 17:33:56.249 [DEBUG] [z.internal.ZWaveNetworkMonitor:323 ]- Network Monitor: Queue length is 4 - deferring network monitor functions.
2016-05-16 17:34:01.250 [DEBUG] [z.internal.ZWaveNetworkMonitor:323 ]- Network Monitor: Queue length is 4 - deferring network monitor functions.
2016-05-16 17:34:06.251 [DEBUG] [z.internal.ZWaveNetworkMonitor:323 ]- Network Monitor: Queue length is 4 - deferring network monitor functions.
2016-05-16 17:34:11.252 [DEBUG] [z.internal.ZWaveNetworkMonitor:323 ]- Network Monitor: Queue length is 4 - deferring network monitor functions.
If I kill the adb server the queued z-wave msgs go though and my lights turn on. I’m hoping someone might have some insight into how I can exclude the usb z-wave stick from the adb list. I’m running openhab on ubuntu 14.04 LTS with the android-tools-adb package. Any help would be appreciated.