misko0903
(Miso)
September 20, 2024, 7:01pm
1
Hello smart guys,
I love using HA with Node Red, but when it comes to ringtones on my Xiaomi Gateway, I am lost.
Which Node Red function shoud I use to play a ringtone according to https://www.home-assistant.io/integrations/xiaomi_aqara/#action-xiaomi_aqaraplay_ringtone ?
Thank you very much for you help!
Michal,
Slovakia
Mikefila
(Mike Fila)
September 20, 2024, 10:19pm
2
xiaomi_aqara.play_ringtone
? Does that not work?
Could you go to the action section of devtools in home assistant and call that action, does it work there? If it does not work in HA it will not work in NR.
misko0903
(Miso)
September 21, 2024, 8:45am
3
yes, it works. also the custom sounds are working perfectly.
what now?
thanks!
Mikefila
(Mike Fila)
September 21, 2024, 12:18pm
4
But xiaomi_aqara.play_ringtone
doesn’t work in an action node? What is the error that you receive?
misko0903
(Miso)
September 21, 2024, 7:25pm
5
Action node? do you mean Fire Event or something else?
Thanks,
Michal
Mikefila
(Mike Fila)
September 21, 2024, 7:29pm
6
Depending on your ha node’s version, the older version is call service
, the newer set of nodes call service
has been renamed to action
.
misko0903
(Miso)
September 21, 2024, 7:32pm
7
thanks, mine is still Call Service.
but there is no entity such as xiaomi_aqara.play_ringtone. does I need to defien it in JSON somehow?
M
Mikefila
(Mike Fila)
September 21, 2024, 7:36pm
8
Look in domain for xiaomi_aquara
then in service for play_ringtone
1 Like
misko0903
(Miso)
September 21, 2024, 7:51pm
9
yes, that’s it!
I have loaded the example data and it works!
Thank you very much, have a nice evening!
Michal, SVK
1 Like