forked from blakadder/templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathasakuki
84 lines (68 loc) · 3.2 KB
/
asakuki
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
---
date_added: 2019-08-19
title: Asakuki 500ml
category: misc
type: Aromatherapy Diffuser
standard: us
link: https://www.amazon.ca/ASAKUKI-Humidifier-Compatible-Ultrasonic-Aromatherapy/dp/B07KXF76MJ/
image: https://images-na.ssl-images-amazon.com/images/I/61cQ91J%2BBXL._SL1500_.jpg
template: '{"NAME":"Oil Diffuser","GPIO":[255,255,255,255,255,255,0,0,255,255,255,21,22],"FLAG":0,"BASE":18}'
link2:
---
Flashed with Tuya Convert.
**This device is very similar to "Oil Diffuser 550ML Humidifier", the only difference are a few serial command codes.**
"This device has everything controlled via the MCU. It does not work with Tuya Dimmer module due to additional features and different command values. For the device to be fully supported the [Tuya driver](https://raw.githubusercontent.com/arendst/Tasmota/development/sonoff/xdrv_16_tuyadimmer.ino) would need a major code rewrite.
I’ve configured some rules to get basic functionality and [configure](https://gist.github.com/blakadder/807df02fcaf88e2b059e7b8d008c1881) it in Home Assistant.
Rule2 notes:
Relay1 controls the diffuser: intermittent mode / off (you can change the code to a mode of your choice)
Relay2 controls the device LED: white / off (you can change the codes to a color mode of your choice)
Rule3 notes:
First rule string is required, otherwise your device might not respond to serial commands on reboots.
Fan speed is published to a retained mqtt topic and can be controlled via mqtt command `cmnd/diffuser/Event high` or `low`.
**If you use the device buttons or the remote, the state won’t be recorded in Tasmota and your power states will be out of sync**
```console
Rule2 on power1#state=1 do serialsend5 55AA0006000601010001010E endon on power1#state=0 do serialsend5 55AA0006000501010001000D endon on power2#state=1 do serialsend5 5AA000600050B0100010118 endon on power2#state=0 do serialsend5 55AA000600050B0100010017 endon
Rule3 on system#boot do backlog baudrate 9600; seriallog 2; serialsend5 55aa000300010306 endon on event#high do backlog serialsend5 55AA00060005650400010175; publish2 stat/diffuser/FAN high endon on event#low do backlog serialsend5 55AA00060005650400010074; publish2 stat/diffuser/FAN low endon
set wifi led state
55aa000300010306
diffuser off
55AA000600050B0100010017
continuous mode
55AA00060005020400010112
intermittent mode
55AA000600050B0100010118
countdown mode
55AA00060005020400010314
countdown 1 min
55AA0006000866020004000000017A
countdown 1 hr
55AA00060008660200040000003CB5
countdown 3 hr
55AA0006000866020004000000B42D
high speed
55AA00060005650400010175
low speed
55AA00060005650400010074
fixed light color
55AA000600056E040001017E
dimmer 25%
55AA000600126C03000E3030343032633030613136343139B3
dimmer 50%
55AA000600126C03000E303038303537303061313634333289
dimmer 75%
55AA000600126C03000E303062663833303061313634346219
dimmer 100%
55AA000600126C03000E666661323030303032366666363451
blue
55AA000600126C03000E3030346566663030646436346666B7
light-blue
55AA000600126C03000E303066666433303061393634666687
red
55AA000600126C03000E66663037303030303031363466661E
green
55AA000600126C03000E313766663030303037323634666627
purple
55AA000600126C03000E373230306666303130613634666651
orange
55AA000600126C03000E66663531303030303132363466661F
```