Zigbee Neo Siren AB02B2-v2 trying to switch melody

It works for me as expected from both the Manage Clusters dialog and my script.

My system versions:

Home Assistant Core 2022.5.4
Home Assistant Supervisor 2022.05.3
Home Assistant OS 7.6
Coordinator: Sonoff Zigbee 3 Dongle +, CC1352/CC2652, Z-Stack 3.30+ (build 20220103)

The script I had started for ZHA. Never fixed it to get the iee_id from a device/entity parameter:

alias: Tuya Siren ZHA
sequence:
  - service: zha.set_zigbee_cluster_attribute
    data:
      ieee: '{{ ieee_id }}'
      endpoint_id: 1
      cluster_id: 6
      cluster_type: in
      attribute: 0x466
      value: '{{ melody | default(default_melody) }}'
  - service: zha.set_zigbee_cluster_attribute
    data:
      ieee: '{{ ieee_id }}'
      endpoint_id: 1
      cluster_id: 6
      cluster_type: in
      attribute: 0x267
      value: '{{ duration | default(default_duration) }}'
  - service: zha.set_zigbee_cluster_attribute
    data:
      ieee: '{{ ieee_id }}'
      endpoint_id: 1
      cluster_id: 6
      cluster_type: in
      attribute: 0x474
      value: '{{ volume | default(default_volume) }}'
  - service: zha.set_zigbee_cluster_attribute
    data:
      ieee: '{{ ieee_id }}'
      endpoint_id: 1
      cluster_id: 6
      cluster_type: in
      attribute: 0
      value: '{{ alarm | default(1) }}'
description: Tuya Siren ZHA
fields:
  ieee_id:
    description: zigbee ieee id
    example: a4:c1:38:00:12:34:56:78
  melody:
    description: melody
    example: 1-18
  duration:
    description: duration in seconds
    example: 4
  volume:
    description: volume
    example: 0, 1, 2
  alarm:
    description: alarm
    example: on or off
variables:
  default_melody: 18
  default_duration: 4
  default_volume: 1
mode: parallel

Example calling the script from developer tools:

5 Likes