Closed IAmTheMilkManMyMilkIsDelicious closed 2 years ago
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days
Still an issue on current version 1.25.2
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days
The problem exists. Zigbee2MQTT 1.27.0-1.
Zigbee2MQTT Current version: 1.27.2-1 The problem still exists.
Yes I still have this issue too, I think this device is either unpopular or this issue only affects a small amount of users. I will likely replace it with the HEIMAN HS2WD-E, hopefully that device may be more reliable.
I have several of the units. I experienced the issue. I now have a script that has been reliable, it adds a 40ms delay between commands, and issues each command twice, ie: melody, wait, melody, duration, wait, duration, wait, volume, wait, volume, wait, alarm, wait, alarm.
I use standard HA service calls (select_option, set_number, turn_on) vs direct mqtt settings, but doubt that makes a difference.
Obviuosly this is a woraround, not 100% solution, but I haven't had problems since. YMMV.
I have several of the units. I experienced the issue. I now have a script that has been reliable, it adds a 40ms delay between commands, and issues each command twice, ie: melody, wait, melody, duration, wait, duration, wait, volume, wait, volume, wait, alarm, wait, alarm.
I use standard HA service calls (select_option, set_number, turn_on) vs direct mqtt settings, but doubt that makes a difference.
Obviuosly this is a woraround, not 100% solution, but I haven't had problems since. YMMV.
I have the same experience with this sensor. It is not reliable. I have to send only one item per payload and every message 2x with some delay in between. And last is always "alarm": true. Last message can be send only once (I am still testing it, so I can be wrong) In addition I have to always send everything. Otherwise when I send just "alarm": true, it sometimes set volume and duration back to low and 30s, and sometimes it is just blinking but there is no sound at all from the device.
Originally I had NAS-AB02B0 and it was working ok (until it felled to ground and power connector was broken).
This problem still exists. The issue the device has is it will randomly ignore commands. I send each command (duration, melody, volume, alarm) one after another, but the random failures still happen. Please help fix this issue.
Model: Alarm (NAS-AB02B2) Manufacture: Zigbee TZE204_t1blo2bj Zigbee2MQTT Current version: 1.32.1 Home Assistant Core 2023.7.2
This is my automation code and it always works differently, in most cases not correctly (not all parameters change):
alias: Audible alarm - alarm
description: ""
trigger:
- platform: state
entity_id:
- input_button.virtual_button_02_alarm
enabled: true
condition: []
action:
- service: mqtt.publish
data:
qos: 0
retain: false
topic: zigbee2mqtt/Audible alarm/set
payload: "{\"volume\": \"medium\"}"
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 40
- service: mqtt.publish
data:
qos: 0
retain: false
topic: zigbee2mqtt/Audible alarm/set
payload: "{\"melody\": 3}"
enabled: true
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 40
- service: mqtt.publish
data:
qos: 0
retain: false
topic: zigbee2mqtt/Audible alarm/set
payload: "{\"duration\": 15}"
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 40
- service: mqtt.publish
data:
qos: 0
retain: false
topic: zigbee2mqtt/Audible alarm/set
payload: "{\"alarm\": \"true\"}"
mode: single
I have several of the units. I experienced the issue. I now have a script that has been reliable, it adds a 40ms delay between commands, and issues each command twice, ie: melody, wait, melody, duration, wait, duration, wait, volume, wait, volume, wait, alarm, wait, alarm.
Still same issue with this Siren. Adding those delays and sending twice each command seems to work ok until a proper fix.
I had the same issue. Adding delays between each command seems to work now. Delay values are based on engineering feeling only. No rational. Commands are sent once.
What happened?
Due to the way NAS-AB02B2 is setup in z2m (or firmware) only one command can be sent at a time. When using the siren for multiple purposes (door bell, house alarm, notification beeps) you have to send each command (duration, melody, volume, alarm) one after another.
For example a door bell script:
The issue the device has is it will randomly ignore commands. There seems to be no specific command it will or won't ignore. Sometimes I will run this script and it won't set the duration, causing the alarm bell to play forever. Other times it doesn't set the volume and it's too quiet. Many times it just won't play a sound at all. I figured this was to do with sending multiple commands in succession at the same time, so I added a 5 second delay between each command, and the random failures still happen.
What did you expect to happen?
When running the script I mentioned, it should always play the correct melody for the correct duration
How to reproduce it (minimal and precise)
I used homeassistant so my script looks like this:
But I would also have another script such as:
To reproduce, I simply run one script then the other a few times. I will always run into random issues where the device ignores certain commands.
Zigbee2MQTT version
1.25.0 commit: 6f1460e4
Adapter firmware version
20210120
Adapter
zzh (CC2652R Stick)
Debug log
The debug log doesn't show any warnings or errors and based on my scripts actually does successfully send every command to the device: