-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Neo NAS-AB02B0 (alarm/siren) missing power indication #6428
Comments
You can check if it work by replacing https://github.com/Koenkk/zigbee-herdsman-converters/blob/9162491ef881debca91e365cebe2ed61b2f63d61/converters/fromZigbee.js#L1859 case tuya.dataPoints.neoUnknown1: // 0x0465 [4]
const lookup = {1: 'battery_high', 2: 'battery_medium', 3: 'battery_low', 4: 'usb'}
return {power_type: lookup[value]}; See https://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html on how to modify devices.js |
Thanks, tried it and works almost correct. So I guess the battery range is 0..3 and 4 for usb. Maybe the following is an option?
|
I'm fine with it, does it work correctly? Then I can add it |
yes, thank you |
Added, also added Changes will be available in the latest dev branch in a few hours (https://www.zigbee2mqtt.io/how_tos/how-to-switch-to-dev-branch.html) |
Nice, thanks a lot |
What happened
While fooling around with my new device I think I found a missing feature.
It appears this device is very similar to the Wifi version
Not only has that page a nice list of the alarm sounds, I also noticed the "power type" status:
In my debug log I have correct reportings of that id:
and can confirm the data:0 is on battery and data:4 is on usb power.
So my request is, can we have a reporting on this?
The text was updated successfully, but these errors were encountered: