stas-demydiuk / domoticz-zigbee2mqtt-plugin

zigbee2mqtt plugin for domoticz
MIT License
136 stars 98 forks source link

Add support for Neo NAS-AB02B0 #389

Closed jvrrr closed 3 years ago

jvrrr commented 4 years ago

Can someone add support for the Neo NAS-AB02B0

It is already supported in zigbee2mqtt: https://www.zigbee2mqtt.io/devices/NAS-AB02B0.html

Great thanks!!!

jvrrr commented 4 years ago
aug 18 11:32:15 zigbee npm[1553]: Zigbee2MQTT:info  2020-08-18 11:32:15: MQTT publish: topic 'zigbee2mqtt/Alarm', payload '{"alarm":false,"linkquality":111,"humidity_alarm":true,"melody":5,"temperature_min":18,"humidity_max":80,"temperature":"25.2","humidity":54,"temperature_max":27,"temperature_alarm":true,"humidity_min":45,"volume":"high"}'
aug 18 11:32:38 zigbee npm[1553]: Zigbee2MQTT:info  2020-08-18 11:32:38: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"device_announced","message":"announce","meta":{"friendly_name":"Alarm"}}'
aug 18 11:32:41 zigbee npm[1553]: Zigbee2MQTT:info  2020-08-18 11:32:41: MQTT publish: topic 'zigbee2mqtt/Alarm', payload '{"alarm":false,"linkquality":84,"humidity_alarm":true,"melody":5,"temperature_min":18,"humidity_max":80,"temperature":"25.2","humidity":54,"temperature_max":27,"temperature_alarm":true,"humidity_min":45,"volume":"high"}'
aug 18 11:32:41 zigbee npm[1553]: Zigbee2MQTT:info  2020-08-18 11:32:41: MQTT publish: topic 'zigbee2mqtt/Alarm', payload '{"alarm":false,"linkquality":84,"humidity_alarm":true,"melody":5,"temperature_min":18,"humidity_max":80,"temperature":"25.2","humidity":54,"temperature_max":27,"temperature_alarm":true,"humidity_min":45,"volume":"high"}'
aug 18 11:32:41 zigbee npm[1553]: Zigbee2MQTT:info  2020-08-18 11:32:41: MQTT publish: topic 'zigbee2mqtt/Alarm', payload '{"alarm":false,"linkquality":81,"humidity_alarm":true,"melody":5,"temperature_min":18,"humidity_max":80,"temperature":"25.2","humidity":54,"temperature_max":27,"temperature_alarm":true,"humidity_min":45,"volume":"high"}'
aug 18 11:32:41 zigbee npm[1553]: Zigbee2MQTT:info  2020-08-18 11:32:41: MQTT publish: topic 'zigbee2mqtt/Alarm', payload '{"alarm":false,"linkquality":84,"humidity_alarm":true,"melody":5,"temperature_min":18,"humidity_max":80,"temperature":"25.2","humidity":54,"temperature_max":27,"temperature_alarm":true,"humidity_min":45,"volume":"high"}'
aug 18 11:32:41 zigbee npm[1553]: Zigbee2MQTT:info  2020-08-18 11:32:41: MQTT publish: topic 'zigbee2mqtt/Alarm', payload '{"alarm":false,"linkquality":81,"humidity_alarm":true,"melody":5,"temperature_min":18,"humidity_max":80,"temperature":"25.2","humidity":54,"temperature_max":27,"temperature_alarm":true,"humidity_min":45,"volume":"high"}'
aug 18 11:32:41 zigbee npm[1553]: Zigbee2MQTT:info  2020-08-18 11:32:41: MQTT publish: topic 'zigbee2mqtt/Alarm', payload '{"alarm":false,"linkquality":84,"humidity_alarm":true,"melody":5,"temperature_min":18,"humidity_max":80,"temperature":"25.2","humidity":54,"temperature_max":27,"temperature_alarm":true,"humidity_min":45,"volume":"high","duration":10}'
aug 18 11:32:41 zigbee npm[1553]: Zigbee2MQTT:info  2020-08-18 11:32:41: MQTT publish: topic 'zigbee2mqtt/Alarm', payload '{"alarm":false,"linkquality":84,"humidity_alarm":true,"melody":5,"temperature_min":18,"humidity_max":80,"temperature":"25.7","humidity":54,"temperature_max":27,"temperature_alarm":true,"humidity_min":45,"volume":"high"}'
aug 18 11:32:41 zigbee npm[1553]: Zigbee2MQTT:info  2020-08-18 11:32:41: MQTT publish: topic 'zigbee2mqtt/Alarm', payload '{"alarm":false,"linkquality":81,"humidity_alarm":true,"melody":5,"temperature_min":18,"humidity_max":80,"temperature":"25.7","humidity":54,"temperature_max":27,"temperature_alarm":true,"humidity_min":45,"volume":"high"}'
aug 18 11:32:41 zigbee npm[1553]: Zigbee2MQTT:info  2020-08-18 11:32:41: MQTT publish: topic 'zigbee2mqtt/Alarm', payload '{"alarm":false,"linkquality":81,"humidity_alarm":true,"melody":5,"temperature_min":18,"humidity_max":80,"temperature":"25.7","humidity":54,"temperature_max":27,"temperature_alarm":true,"humidity_min":45,"volume":"high"}'
aug 18 11:32:41 zigbee npm[1553]: Zigbee2MQTT:info  2020-08-18 11:32:41: MQTT publish: topic 'zigbee2mqtt/Alarm', payload '{"alarm":false,"linkquality":84,"humidity_alarm":true,"melody":5,"temperature_min":18,"humidity_max":80,"temperature":"25.7","humidity":54,"temperature_max":27,"temperature_alarm":true,"humidity_min":45,"volume":"high"}'
aug 18 11:32:41 zigbee npm[1553]: Zigbee2MQTT:info  2020-08-18 11:32:41: MQTT publish: topic 'zigbee2mqtt/Alarm', payload '{"alarm":false,"linkquality":84,"humidity_alarm":true,"melody":5,"temperature_min":18,"humidity_max":80,"temperature":"25.7","humidity":54,"temperature_max":27,"temperature_alarm":true,"humidity_min":45,"volume":"high"}'
aug 18 11:32:41 zigbee npm[1553]: Zigbee2MQTT:info  2020-08-18 11:32:41: MQTT publish: topic 'zigbee2mqtt/Alarm', payload '{"alarm":false,"linkquality":84,"humidity_alarm":true,"melody":5,"temperature_min":18,"humidity_max":80,"temperature":"25.7","humidity":70,"temperature_max":27,"temperature_alarm":true,"humidity_min":45,"volume":"high"}'
aug 18 11:32:41 zigbee npm[1553]: Zigbee2MQTT:info  2020-08-18 11:32:41: MQTT publish: topic 'zigbee2mqtt/Alarm', payload '{"alarm":false,"linkquality":84,"humidity_alarm":true,"melody":5,"temperature_min":18,"humidity_max":80,"temperature":"25.7","humidity":70,"temperature_max":27,"temperature_alarm":true,"humidity_min":45,"volume":"high"}'
stas-demydiuk commented 4 years ago

What functionality do you expect from this device?

jvrrr commented 4 years ago

I hope it would do my dishes, was my car...but if it is not possible ;-) ....

I like to use it as a door bell and fire alarm. So it would be nice ..

It also would be great if humidity and temp ready work.

for me personally I would not use the humidity_alarm, temperature_alarm...If I need it, I can creat this function in domoticz.

Thanks!!!!!

jvrrr commented 4 years ago

Do expect something ...do I have to deliver some information?

Thanks again!

stas-demydiuk commented 4 years ago

Added support for temperature and humidity sensors and alarm and volume control. Could you please check. What are the valid values for melody param?

jvrrr commented 4 years ago

Wow great!!! I will test it this week

jvrrr commented 4 years ago

I found here that the melody can be set from 1-18 : https://github.com/Koenkk/zigbee2mqtt/issues/3749 (last post)

jvrrr commented 4 years ago

I tried it out, it is allmost perfect!

There are 2 issues.

  1. When I push the on or off button it takes 4-5 sec till it activate/disable the device. (It takes 4-5 sec. before I also see the message in zigbee2mqtt)
  2. Missing the melody select box ;-)

Thanks, what a great job!!!

jvrrr commented 4 years ago

Added support for temperature and humidity sensors and alarm and volume control. Could you please check. What are the valid values for melody param?

Hi stas-demydiuk, Do you need some more info from me?

stas-demydiuk commented 4 years ago

Could you please update plugin and check for melody support

jvrrr commented 4 years ago

Could you please update plugin and check for melody support

I have tried it out, it works great! The only thing is that every command I send from Domoticz it takes 2 seconds. So if I activate this alarm in Domoticz, it take 2 seconds for it is recieved in Zigbee2mqtt. Is there a fix for?

Thanks for the great work!

jvrrr commented 4 years ago

Just do some Blockly testingen ...there are some issues.

image

sorry !!!

Thnaks a lot!

stas-demydiuk commented 4 years ago

Unfortunately, it isn't connected to the plugin, it probably relates to the device or to Zigbee network connectivity

jvrrr commented 4 years ago

"To select melody, I need to use %level. =0 melody 1, 10=melody 2, 20= etc.. I'm to able to select higer then level=100%...so I cant select melody 12 and higher."

Can you make the staps 1-18 and no 0-10-20-30? That will fix the first issue. image

The second issue I will post on zigbee2mqtt.

Thanks again!!

dobber81 commented 3 years ago

I'm missing a "duration" setting. When siren is triggered it seems to default to about 10-12 seconds and then turn it self off. I would like a way to set it to more. {"duration":300} is the manual mqtt command to do it for 300 seconds.

SargonofAssyria commented 3 years ago

I am using: zigbee2mqtt version 1.16.2-dev commit: fb4b014 coordinator type zStack3x0 coordinator revision 20201113 frontend version 0.2.108 And the latest version of the plugin, but the 'Alarm' device does not function, it is created as an On/Of switch but Zigbee expects boolean. 2020-12-21_14-17-13

stas-demydiuk commented 3 years ago

Do you see any errors in Domoticz Log?

SargonofAssyria commented 3 years ago

No, not on this devices. My only errors are: 2020-12-30 18:42:05.416 Error: (Zigbee) UPS: can not process numeric item "energy" 2020-12-30 18:42:05.416 Error: (Zigbee) UPS: can not process binary item "power_outage_memory" 2020-12-30 18:42:05.419 Error: (Zigbee) Hobbykamer: can not process binary item "battery_low" The 'UPS' device is a ZNCZ02LM and the Hobbykamer is a SEA801-Zigbee/SEA802-Zigbee

stas-demydiuk commented 3 years ago

battery_low support will be added in the scope of another issue, closing this one