GD-30W 300ml Aromatherapy Diffuser
Please read TuyaMCU article to understand the terminology and configuration process.
There are a few different looking devices using the same PCB marked GD-HDFW05-v1.0 so this process should work on those.
dpID 1 device power: 0 = off / 1 = on
dpID 11 led power: 0 = off / 1 = on
dpID 12 error notification: 0 = ok / 1 = error
dpID 13 countdown mode options: 0 = off / 1 = 1hr / 2 = 3hr not needed with Tasmota
dpID 14 countdown status: reports value of 0…360 minutes not needed with Tasmota
dpID 103 mist strength: 0 = low / 1 = high
dpID 108 led color: 14 char value in hex (can define only RGB and send HSV value as max:
dpID 110 led mode: 0 = rgb_cycle / 1 = color / 2 = white
dpID 110 led dimmer color and white modes only it is important to define ‘DimmerRange 1,255’
After applying the template and configuring Wi-Fi and MQTT issue
Backlog SetOption66 1; TuyaMCU 21,111; TuyaMCU 11,1; TuyaMCU 12,11; TuyaMCU 13,103; TuyaMCU 14,12; TuyaMCU 15,110; DimmerRange 1,255; SetOption59 1
Rule1 on TuyaReceived#data=55AA000700056E040001007E do publish2 stat/GD-30W/EFFECT rgb_cycle endon on TuyaReceived#data=55AA000700056E040001017F do publish2 stat/GD-30W/EFFECT color endon on event#rgb_cycle do tuyasend4 110,0 endon on event#color do tuyasend4 110,1 endon on event#ON do backlog tuyasend4 110,1; tuyasend 11,1 endon on event#off do tuyasend1 11,0 endon on power3#state=1 do tuyasend4 103,1 endon on power3#state=0 do tuyasend4 103,0 endon
Optional rule used to prevent the device going into countdown mode (f.e. using on device controls) and complete MCU status update on restart
Rule3 on TuyaReceived#data=55AA000700050D040001011E do tuyasend4 13,0 endon on TuyaReceived#data=55AA000700050D040001021F do tuyasend4 13,0 endon on mqtt#connected do serialsend5 55aa0001000000 endon
What you get
- Relay1 turns the diffuser on or off in stored mist strength mode, turns led on or off in stored mode and serves as device power status
- Relay2 turns light on or off and serves as light power status.
- Relay3 mist strength status and control using
- Relay4 is used for error status (ON = error), no control
- Relay5 is used for light mode status (0 = rgb_cycle, 1 = color), no control
Label webUI buttons:
Backlog WebButton1 Power; WebButton2 Light; WebButton3 Mist; WebButton4 Error; WebButton5 Light Mode
Color can be changed using
TuyaSend3 108,RRGGBB64646464 (RR, GG and BB are hex value) only in color mode.
Dimming works using slider and
Dimmer command but only when in color mode, in rgb_cycle there are no brightness controls.
Long press on device’s power button initiates Tasmota’s Wi-Fi config
Home Assistant configuration
This implementation is suited to specific needs and does not incorporate all features of the device, mostly to avoid weird situations and wrong states being reported.
Fan is the diffuser. Oscillation switch is used to toggle between rgb_cycle (oscillation on) and color (oscillation off).
Light component is the device’s RGB light but only when its in color mode, when in rgb_cycle mode light state in HA is off since you cannot control anything anyway.
Binary sensor uses the dpId 12 to show when the diffuser is out of water.
Serial command codes used in debugging
Turn Relay1 on (LED and Diffuser) 55aa0006000501010001010e Turn Relay1 off (LED and Diffuser) 55aa0006000501010001000d Turn diffuser on (Fast mode) 55AA00060005670400010177 Turn diffuser on (Slow mode) 55AA00060005670400010076 Turn Diffuser off 55aa00060005670400010278 Turn LED on (RGB Cycle) 55aa000600050b0100010118 Turn LED off 55aa000600050b0100010017 Lock RGB Cycle 55aa000600056e040001017E Purple Color 55aa000600126c03000e6438303066663031323266666666b9 Orange Color 55aa000600126c03000e6666343230303030306666666666b4 Yellow Color 55aa000600126c03000e6666633030303030326466666666e1 Green1 55aa000600126c03000e3738666630303030356366666666BF Green2 55aa000600126c03000e30306666343230303837666666668d Blue 55aa000600126c03000e3030633366663030633366666666e4 Pink 55aa000600126c03000e6666303061383031343166666666b7 Red1 55aa000600126c03000e666630303234303136306666666685 Red2 (darker) 55aa000600126c03000e666630303030303030306666666678