How to play ring tone with Xiaomi Gateway

Dear all,

I’m now trying to play ring tone with my xiaomi gateway through service “xiaomi_aqara.play_ringtone” but it return an error “Failed to call service xiaomi_aqara/play_ringtone. ‘xiaomi_aqara’”

I’m able to turn on/off gateway light as normal, can get Xiaomi Gateway Illuminance value. But not ring tone.

Below is the log. I’m quite new to Hass, please give me some advice.
Thank you all in advance.

Logger: homeassistant.components.websocket_api.http.connection
Source: components/xiaomi_aqara/__init__.py:386
Integration: Home Assistant WebSocket API ([documentation](https://www.home-assistant.io/integrations/websocket_api), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+websocket_api%22))
First occurred: 10:11:39 PM (2 occurrences)
Last logged: 10:11:42 PM

[2910196592] 'xiaomi_aqara'

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 135, in handle_call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 1405, in async_call processed_data = handler.schema(service_data) File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 272, in __call__ return self._compiled([], data) File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 594, in validate_dict return base_validate(path, iteritems(data), out) File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 386, in validate_mapping cval = cvalue(key_path, value) File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 817, in validate_callable return schema(data) File "/usr/src/homeassistant/homeassistant/components/xiaomi_aqara/__init__.py", line 386, in gateway for gateway in hass.data[DOMAIN][GATEWAYS_KEY].values(): KeyError: 'xiaomi_aqara'

I have the same issue! Did you find a workaround ?

I just found solutions for my case yesterday.
What I did is delete everything related to Gateway setting in file configuration.yaml.

Restart Hassio

Go to Configuration > Integration
Perform Integrate “Xiaomi Miio” then “Xiaomi Gateway (Aqara)”

then I can play ring tone anyway I want.

You may try this as well.

awesome dude, that fixed the problem! Thanks a lot!

Just to precise, do I understand right that finally i need to keep 2 integrations instead of one ?

nice, love to hear that it work well for your case.

i think so, the one integrated via “Xiaomi Gateway (Aqara)” cannot use to control light and alarm, only for ringtones. the one via"Xiaomi Miio" will help you to control light and alarm.
At least this is the behavior of it in my hassio.

1 Like

Well it doesn’t wokr for me… In both integrations I can only configure Light. No sound option. Also alarm panel from MIIO

Same, I got the Chinese version lumi.gateway.v3 DGNWG02LM
Firmware: 1.4.1_176