Skip to content

Commit

Permalink
Add README section
Browse files Browse the repository at this point in the history
  • Loading branch information
leodenham committed Aug 2, 2024
1 parent a71854c commit c711c68
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tinytuya/Contrib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,27 @@ In addition to the built-in `OutletDevice`, `BulbDevice` and `CoverDevice` devic
time.sleep(20)
```

### BlanketDevice

* BlanketDevice - A community-contributed Python module to add support for Tuya WiFi smart electric blankets
* Author: [Leo Denham](https://github.com/leodenham)
* Tested: [Goldair Platinum Electric Blanket GPFAEB-Q](https://www.target.com.au/p/goldair-platinum-electric-blanket-gpfaeb-q/8300270020_white)

```python
from tinytuya.Contrib import BlanketDevice
import time

device = BlanketDevice.BlanketDevice(dev_id="XXXX", address="Y.Y.Y.Y", local_key="ZZZZ", version=3.3)

device.turn_on()

# Heat up for 20 minutes then maintain nice temperature overnight.
device.set_body_level(6)
time.sleep(60*20)
device.set_body_level(2)
device.set_body_time(12)
```

## Submit Your Device

* We welcome new device modules!
Expand Down

0 comments on commit c711c68

Please sign in to comment.