iRayanKhan / homebridge-tuya

A Homebridge plugin to control Tuya devices locally.
MIT License
393 stars 164 forks source link

New Device: Smart Aroma Diffuser #232

Open v1nc3lx opened 3 years ago

v1nc3lx commented 3 years ago

Describe your device WiFi Essential Oil Diffuser Provide 3 mist modes Timer & Schedule Function Hex Color support

https://www.amazon.com/Maxcio-Aromatherapy-Ultrasonic-Humidifier-Compatible/dp/B07M6QD7LN/ref=sr_1_6?crid=1DH8ZVSMHQG9N&dchild=1&keywords=maxcio+smart+diffuser&qid=1615907111&sprefix=maxcio+aroma%2Caps%2C-1&sr=8-6

Partial Support? yes as a "SimpleLight" it turns diffuser on and off

Device Schema

switch_led | Boolean | {true,false} switch_spray | Boolean | {true,false} mode | Enum | {"range":["small","large"]} colour_data_hsv | Json | {"min":0,"unit":"","scale":0,"max":255,"step":1} work_mode | Enum | {"range":["white","colour","colourful1"]} moodlighting | Enum | {"range":["1","2","3"]} bright_value | Integer | {"min":0,"scale":0,"unit":"","max":255,"step":1}

Additional context Add any other context about the problem here.

mrmaximas commented 3 years ago

how to find Device Schema??

ElphaX commented 3 years ago

how to find Device Schema??

Once you setup your Tuya IoT account, if you navigate to your device list after you've linked your app account - you can press details on your device to see the schema.

mrmaximas commented 3 years ago

how to find Device Schema??

Once you setup your Tuya IoT account, if you navigate to your device list after you've linked your app account - you can press details on your device to see the schema.

like this? https://github.com/iRayanKhan/homebridge-tuya/issues/239

ElphaX commented 3 years ago

how to find Device Schema??

Once you setup your Tuya IoT account, if you navigate to your device list after you've linked your app account - you can press details on your device to see the schema.

like this?

239

I mean yeah, can I also ask what app that is in screenshot from your issue you linked?

mrmaximas commented 3 years ago

how to find Device Schema??

Once you setup your Tuya IoT account, if you navigate to your device list after you've linked your app account - you can press details on your device to see the schema.

like this?

239

I mean yeah, can I also ask what app that is in screenshot from your issue you linked? it's Smart Life App on iOS

naor1 commented 3 years ago

Does anyone know on what device type to use it as a fully diffuser?

ElphaX commented 2 years ago

What exactly do you mean @naor1? with speeds and colour support? The new diffuser type allows for this.

naor1 commented 2 years ago

Yes, there is a new version?

tiimjcb commented 2 years ago

i found how to make it work (i have the exact same as the amazon link) i just can't control the RGB lights, it will stay in rainbow mode. here's what u have to put in the config file of the plugin (just replace the name, id, key, and manufacturer)

{ "type": "OilDiffuser", "name": "name", "id": "1234567890", "key": "1234567890", "manufacturer": "manufacturer", "dpPower": 1, "dpBrightness": 111, "dpColor": 108, "maxSpeed": 103, "dpRotationSpeed": 103, "colorFunction": "HSB", "dpLight": 11 }