Battery Operator

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
Post Reply
jackyyy
Posts: 1
Joined: 08 Jun 2023 12:38

Battery Operator

Post by jackyyy »

Hi there! As a first-time poster, I'm glad you've found useful information for your projects. However, it seems you're facing a challenge with getting the battery handler to work with SmartThings. You've successfully used z-uno as a water sensor and achieved accurate reporting on the battery status. Now, you're trying to create a custom battery handler to report the sump pump battery status, but it's not firing correctly and continuously shows 100%. You've attempted various approaches, including using zunoSendWakeUpNotification(), but encountered issues with the Arduino compiler. It's possible that there's a missing step in configuring SmartThings to request battery status or that you need to ensure proper setup of the handler. Any insights from the community on this matter would be greatly appreciated.
Last edited by jackyyy on 12 Feb 2024 13:16, edited 1 time in total.
p0lyg0n1
Posts: 242
Joined: 04 Aug 2016 07:14

Re: Battery Operator

Post by p0lyg0n1 »

Hi,
Well, in the 1st, you can enable system logging, it will send the console to the TX0 board. It turns on like this:
ZUNO_ENABLE(
DBG_CONSOLE_BAUDRATE=921600
LOGGING_DEBUG
);
You need to connect the USB-UART adapter to the TX0 pin and open the terminal client at a speed of 921600 (our terminal client zme_make serialmonitor -t -d <COMport> -b 921600 is supplied with the tools). The console will contain all packets sent to the controller. In addition, the current battery level should be displayed there - look for the line "*** Battery report". Secondly, the level will be sent only if it has changed. The level is determined by the voltage at the 3.3 V pin (by default, the 3 V level is considered 100%, the 2.4V is 0%), but you can also replace the handler with your own, or change the default macro settings of BATTERY_HIGH, for example, like this ZUNO_ENABLE(BATTERY_HIGH = 3600); You can force the battery report to be sent using the function zunoSendBatteryReport(). The report is usually sent automatically when the device wakes up and reboots (including power supply). Good luck.
Best regards,
Alex.
Post Reply