Z-Uno not sending reports properly
Posted: 23 Nov 2017 08:27
I've had a z-uno wired into my bedroom fan for a little while now and it was working fine until one day it stopped. I have to connected to my Samsung SmartThings hub with a custom device handler running. Now the z-uno (and my code) still receive commands but does not appear to send any reports back. My getter functions are still being called though but it doesn't seem like they make it to the hub. However if I reset the Z-Uno (either with the button or power cycling), it will get an initial report off. You can see the code here. Excluding and including the Z-Uno seemed to fix the problem but after a few restarts it stopped working.
Here's the serial output when trying the turn the fan on via Z-Wave:
As you can see it's just calling setPower and getPower over and over. And after I tried a dozen times to exclude it and then including it back in, it works as expected for a bit:
Any advice on debugging the Z-Uno or has anyone encountered this before? I also find it strange I need to triple press the service button many times trying to exclude it from my network. What's up with that?
Here's the serial output when trying the turn the fan on via Z-Wave:
Code: Select all
setPower(255)
getPower() # => 0
getPower() # => 0
setPower(255)
getPower() # => 0
getPower() # => 0
powerValue is now 255 (ON)
getPower() # => 255
getPower() # => 255
setPower(255)
getPower() # => 255
getPower() # => 255
setPower(255)
getPower() # => 255
getPower() # => 255
setPower(255)
getPower() # => 255
getPower() # => 255
setPower(255)
getPower() # => 255
getPower() # => 255
setPower(255)
getPower() # => 255
getPower() # => 255
setPower(255)
getPower() # => 255
getPower() # => 255
setPower(255)
getPower() # => 255
getPower() # => 255
setPower(255)
getPower() # => 255
getPower() # => 255
speedValue is now 1 (LOW)
getSpeed() # => 1
getSpeed() # => 1
setPower(255)
getPower() # => 255
getPower() # => 255
Code: Select all
setPower(255)
getPower() # => 0
getPower() # => 0
powerValue is now 255 (ON)
getPower() # => 255
getPower() # => 255