marvinroger / node-lumi-aqara

Control your Xiaomi Smart Home devices with this Lumi Aqara library
GNU General Public License v3.0
46 stars 27 forks source link

Play sounds (list on the app Mi Home) #15

Closed Hamtar0 closed 6 years ago

Hamtar0 commented 6 years ago

Just use gateway.setSound(number)

numbers :

And custom sounds recorded on the app starts with id 10001

marvinroger commented 6 years ago

Funny, I wrote almost the exact same code that I wanted to push a week ago. Thanks!

Can you just update the example.js too?

Hamtar0 commented 6 years ago

Glad that's ok for you, I'm not a pro dev... ;)

marvinroger commented 6 years ago

It's great, thanks! 😉

KamilKafara commented 5 years ago

How to add custom sounds ?

marvinroger commented 5 years ago

You have to add custom sounds on the Mi Home app