Gateway MP3 Sound in automatizations

Hi everybody:

I have an automation to enable and disable sensor_motion at living room. When is on and there are movement, yeelight auto on. But i have a xiaomi switch to desactivate this automation. Now i integrated sound. When press switch more 3 second, sensor motion automatization is disabled, and gateway say “Automotion living room is disabled”… is very cool :wink:

When press switch 3 seconds again, gateway must say “Automotion living room is enabled”…

My problem is that gateway always say the same sentence.

When press switch 3 seconds again, gateway must say “Automotion living room is enabled”…

`#Switch Sensor Salon OnOff

  • alias: Sensor Salon On/Off
    hide_entity: true
    trigger:
    platform: state
    entity_id: binary_sensor.switch_158d0001e5c9be
    from: ‘off’
    to: ‘on’
    action:
    • service: xiaomi_aqara.play_ringtone
      data:
      gw_mac: !secret xiaomi_gateway_mac
      ringtone_id: 10009
      ringtone_vol: 75
    • service: automation.toggle
      entity_id: automation.sensor_luz_salon
    • service: xiaomi_aqara.play_ringtone
      data:
      gw_mac: !secret xiaomi_gateway_mac
      ringtone_id: 10007
      ringtone_vol: 75
    • service: automation.toggle
      entity_id: automation.sensor_luz_salon_off
      indent preformatted text by 4 spaces

Thank you