Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/blakadder/templates
Browse files Browse the repository at this point in the history
  • Loading branch information
blakadder committed Nov 27, 2023
2 parents ca3c9cb + 2fe5550 commit 77a67bd
Show file tree
Hide file tree
Showing 30 changed files with 246 additions and 28 deletions.
2 changes: 0 additions & 2 deletions _includes/linkage.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@
{{ link | remove_first: 'https://' | uri_escape | prepend: "https://ad.admitad.com/g/4jg2ecwjgpa026925063bef27d4341/?ulp=" }}
{% elsif link contains "aidot.com" %}
{{ link | remove_first: 'https://' | uri_escape | prepend: "https://shareasale.com/r.cfm?b=2085135&u=2442238&m=127860&urllink=" }}
{% elsif link contains "avatarcontrols.com" %}
{{ link | remove_first: 'https://' | uri_escape | prepend: "https://shareasale.com/r.cfm?b=1651554&u=2442238&m=102746&urllink=" }}
{% elsif link contains "switch-bot.com" %}
{{ link | remove_first: 'https://' | uri_escape | prepend: "https://shareasale.com/r.cfm?b=1689064&u=2442238&m=104860&urllink=" }}
{% elsif link contains "treatlife" %}
Expand Down
14 changes: 14 additions & 0 deletions _templates/ESP32-C6-DevKitC
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
date_added: 2023-08-30
title: ESP32-C6-DevKitC
model: ESP32-C6-DevKitC
category: diy
type: Development Board
standard: global
image: /assets/device_images/ESP32-C6-DevKitC.webp
templatec6: ' {"NAME":"ESP32-C6-DevKitC","GPIO":[1,1,1,1,1,1,1,1,1376,32,1,1,1,1,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0],"FLAG":0,"BASE":1}'
mlink:
link: https://aliexpress.com/item/1005005122260435.html
---

![Pinout](/assets/device_images/ESP32-C6-DevKitC_pinout.webp)
19 changes: 19 additions & 0 deletions _templates/ESP_IR_TR
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
date_added: 2023-11-03
title: ESP_IR_TR
model: ESP_IR_TR
image: /assets/device_images/ESP_IR_TR.webp
template9: '{"NAME":"Tasmota IR-Gateway","GPIO":[0,0,0,0,1056,0,0,0,0,0,1088,0,0,0],"FLAG":0,"BASE":18}'
link: https://www.aliexpress.com/item/1005001715624852.html
link2:
mlink:
flash: serial
category: Misc
type: IR Controller
standard: global
---

IR Transceiver with an ESP8285 / ESP-01M WLAN Module

- GPIO4 IR Sender
- GPIO14 IR Receiver
19 changes: 19 additions & 0 deletions _templates/NX-SM300
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

---
date_added: 2023-11-19
title: Nanxin 15A
model: NX-SM300
image: /assets/device_images/NX-SM300.webp
template9: '{"NAME":"LUMIMAN NX-SM300","GPIO":[0,0,320,2592,289,2720,0,0,0,32,2656,224,0,0],"FLAG":0,"BASE":18}'
template9_alt: '{"NAME":"Bakibo SM300","GPIO":[320,0,576,0,0,2720,0,0,2624,32,2656,224,0,0],"FLAG":0,"BASE":59}'
link: https://www.amazon.co.jp/gp/product/B09PYB8NCB
link2: https://item.rakuten.co.jp/beamtec/nx-sm300/
link3: https://www.amazon.co.jp/gp/product/B07YVR452R/
mlink: http://nanxin88.com/userfile/productPic/20180921105917.pdf
flash: tuya-convert
category: plug
type: Plug
standard: jp
---

Found under many different brand names
3 changes: 2 additions & 1 deletion _templates/NX-SM400
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
date_added: 2020-01-03
title: Nanxin NX-SM400
title: Nanxin
model: NX-SM400
link: http://s.click.aliexpress.com/e/LtlP3PCG
image: https://user-images.githubusercontent.com/5904370/71753929-70211b00-2e84-11ea-91a2-ea50a3d17476.png
template: '{"NAME":"NX-SM400","GPIO":[0,0,0,17,134,132,0,0,130,52,21,0,0],"FLAG":0,"BASE":18}'
Expand Down
22 changes: 22 additions & 0 deletions _templates/amtoo_2_gang
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
date_added: 2023-11-03
title: AmmToo 433Mhz 2 Gang US Light
model:
image: /assets/device_images/amtoo_2_gang.webp
template9: '{"NAME":"Dual band touch switch","GPIO":[0,0,0,32,33,0,0,0,0,224,225,0,0,0],"FLAG":0,"BASE":18}'
link: https://www.aliexpress.com/item/1005005609032048.html
link2:
mlink:
flash: serial
category: switch
type: Switch
standard: us
---

Aliexpress Choice, 1/2/3 Gang WiFi Touch Switch, socket 120mm x 74mm

Difficult to flash:

- take TX directly from board, you can scratch a path, it will make soldering easier (location as in the documentation, top row, second from the right)
- take RX from the longest IC, you need to solder the pin in the top row, third from the left (looking from the perspective of the text on esp)
- take VCC and GND by soldering to the horizontal pins on the other side of the board (the same side as the touch buttons) above the ""W903"" inscription, the first one is GND and the last one is VCC. The same ports are also in the socket plugged to the board (on first side), the bottom row, the middle one is GND, the right one is VCC - but I was not able to flash by connecting to these ports. I don't know if it's because of unstable ports or something else, but I flashed two sockets with soldering, so I recommend this way.
6 changes: 4 additions & 2 deletions _templates/arlec_ABL015HA
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ standard: au
template: '{"NAME":"DetaBulkhead","GPIO":[0,0,0,0,0,0,0,0,0,0,37,0,0],"FLAG":0,"BASE":18}'
link: https://www.bunnings.com.au/arlec-grid-connect-smart-10w-led-bunker-light_p0119822
link2: https://www.bunnings.co.nz/arlec-grid-connect-smart-led-bunker-light_p0119822
chip: TYWE2S

chip: CB2S
unsupported: true
---
Device contains a TYWE2S, soldering to the board will permit flashing, easily accessible without any damage to the enclosure using only phillips screws and plastic clips.

Recently Purchased from Bunnings.com.au and device now contains CB2S Module. Will need to replace with ESP-02S then Flash Tasmota
9 changes: 6 additions & 3 deletions _templates/arlec_PC191HA_S2
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,20 @@ date_added: 2023-05-13
title: Arlec Plug In Socket
model: PC191HA Series 2
image: /assets/device_images/arlec_PC191HA_S2.webp
template9: '{"NAME":"PC191HAS2","GPIO":[0,0,0,32,2656,2624,0,0,224,2720,320,0,0,0],"FLAG":0,"BASE":18}'
template9: '{"NAME":"PC191HAS2 CB2S","GPIO":[0,0,0,32,2656,2624,0,0,224,2720,320,0,0,0],"FLAG":0,"BASE":18}'
template9_alt: '{"NAME":"PC191HAS2 WB2S","GPIO":[0,32,0,0,2720,2656,0,0,2624,224,288,0,0,0],"FLAG":0,"BASE":1}'
link: https://www.bunnings.com.au/arlec-white-grid-connect-smart-plug-in-socket-with-energy-meter_p0273367
link2:
mlink:
flash: replace
category: plug
type: Plug
standard: au
chip: CB2S
chip: WB2S
---

To use this device with Tasmota, the CB2S module which needs to be replaced with ESP-02S, WT-01N or WT32C3-01N.

The device is ultrasonically welded in its plastic case. Now screws the weld can be broken easily with a utility knife or spudger, without too much trouble. Once disassembled there are no screws inside and the mains terminals pull through the enclosure. Reassembly with strong glue to maintain mains isolation.
Updated verion that uses the WB2S module should use the PC191HAS2-1 template.

The device is ultrasonically welded in its plastic case. Now screws the weld can be broken easily with a utility knife or spudger, without too much trouble. Once disassembled there are no screws inside and the mains terminals pull through the enclosure. Reassembly with strong glue to maintain mains isolation.
14 changes: 0 additions & 14 deletions _templates/bakibo_SM300

This file was deleted.

14 changes: 14 additions & 0 deletions _templates/eightree_16A
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
date_added: 2023-11-17
title: Eightree 16A
model:
image: /assets/device_images/eightree_16A.webp
templatec3: ''
mlink:
link: https://www.amazon.de/-/en/Electricity-EIGHTREE-Assistant-Domoticz-ioBroker/dp/B0CHMMKZCQ/r
link2:
flash: preflashed
category: plug
type: Plug
standard: eu
---
15 changes: 15 additions & 0 deletions _templates/ketotek_KTA007-1
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
date_added: 2023-11-13
title: Ketotek
model: KTA007-1
image: /assets/device_images/ketotek_KTA007-1.webp
template9: '{"NAME":"KETOTEK KTSS1NU","GPIO":[0,0,0,0,0,32,0,0,224,0,0,0,0,0],"FLAG":0,"BASE":18}'
link: https://www.amazon.co.uk/dp/B09LLXWVPC
link2:
mlink:
flash: serial
category: switch
type: Switch
standard: [eu, uk]
---
There are headers for GND, VCC, RX, TX and GPIO 0 on the PCB but it required soldering to connect to easily.
5 changes: 4 additions & 1 deletion _templates/lightzone_D114
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ model: D114
category: light
type: Ceiling Light
link: https://www.leuchtenservice-melitec.de/LED-SmartHome-Deckenleuchte-D114-Sternenhimmeleffekt/8251-01-5-CM
template9: '{"NAME":"LightZone MeLiTec D114 Light ","GPIO":[0,2272,0,2304,0,0,0,0,0,0,0,0,0,0],"FLAG":0,"BASE":54,"CMND":"TuyaMCU 11,20 | TuyaMCU 21,22 | TuyaMCU 23,23 | DimmerRange 25,1000"}'
template9: '{"NAME":"LightZone MeLiTec D114 Light ","GPIO":[0,2272,0,2304,0,0,0,0,0,0,0,0,0,0],"FLAG":0,"BASE":54}'
image: /assets/device_images/lightzone_D114.webp
link2:
link3:
chip: WR3
flash: replace
---
```console
backlog TuyaMCU 11,20; TuyaMCU 21,22; TuyaMCU 23,23; DimmerRange 25,738
```
84 changes: 84 additions & 0 deletions _templates/lsc_smart_connect_0742978017955
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
---
date_added: 2023-11-16
title: LSC Smart Connect 500W IR Panel
model: 0742978017955
image: /assets/device_images/lsc_smart_connect_0742978017955.webp
template9: '{"NAME":"LSC Connect Smart IR Panel Heater","GPIO":[0,2272,0,2304,0,0,0,0,0,0,0,0,0,0],"FLAG":0,"BASE":54}'
link: https://www.bol.com/nl/nl/p/lsc-smart-connect-infrarood-panelheater/9300000138206569/
link2:
mlink:
flash: replace
category: misc
type: Heater
standard: eu
chip: WBR3
---




### Functions

- `dpID 1` controls device power - turns the device on off
- `dpID 2` sets target temperature
- `dpID 3` reports ambient temperature using the built in temperature sensor
- `dpID 4` control heating modes:
- `0` - day mode
- `1` - eco mode
- `2` - P1
- `3` - P2
- `4` - P3
- `5` - Fr
- `dpID 5` control ECO mode (on or off)
- `dpID 6` control child lock mode (lock on device controls)
- `dpID 10` heating timer in hours
- `dpID 11` unknown?!
- `dpID 19` timer set in minutes, shown in hours on display
- `0` - timer off
- `1` - timer 60 min
- `2` - timer 120 min
- `3` - timer 180 min
- `4` - timer 240 min
- `5` - timer 300 min
- `dpID 20` shown timer in minutes
- `dpID 26` error report
- `dpID 103` dimming the display
- `dpID 104` unknown?!
- `dpID 105` unknown?!

### Configuration

```console
backlog tuyamcu 11,1; tuyamcu 12,103; tuyamcu 98,26; tuyamcu 71,3; tuyamcu 72,2; tuyamcu 81,20; tuyamcu 61,4; tuyamcu 63,19, tempres 0, tuyatempsetres 0
```

- `Relay1` maps to `dpID1` for power control
- `Relay2` maps to `dpID103` for dimming the display

In the webUI an ambient temperature sensor, temperature set sensor and a Timer1 will be shown.

Set temperature using TuyaSend2 2,x where x is the desired temperature (0 decimals allowed).

## Label webUI buttons:
```console
backlog webbutton1 Power; webbutton2 DimmDisplay`
```
### TuyaEnum

As of Tasmota 9.1.0.1 #9769 it is possible to map Type4 dpIDs (such as dpID4) to an Enum fn ID.

Map dpID4 to Enum1 fnID:
```console
TuyaMCU 61,4
```
Set Enum1 range (in this case the max enum is 5).
```console
TuyaEnumList 1,5
```

Now you can control the heating mode with `TuyaEnum1 <x>` where x is 0/1/2/3/4/5. If you try a number outside the Enum1 range it will throw an error.

To do the same for timer select do `TuyaMCU 63,19` then `TuyaEnumList 2,5`. Control with `TuyaEnum2 0/1/2/3/4/5`.
```console
TuyaEnumList Enum1,5,Enum2,5
```
1 change: 1 addition & 0 deletions _templates/lumiman_LM650
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ category: plug
type: Plug
standard: us
---
link: https://www.amazon.co.jp/gp/product/B07YVR452R/
2 changes: 1 addition & 1 deletion _templates/nedis_WIFILC10WTB22
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ standard: b22
mlink: https://support.nedis.com/en-us/products/550672291
link: https://www.amazon.co.uk/NEDIS-WIFILC10WTB22-Smart-Colour-White/dp/B07GGZYCMY/ref=sr_1_1
image: /assets/device_images/nedis_WIFILC10WTB22.webp
template: '{"NAME":"WIFILC10WTB22","GPIO":[0,0,0,0,416,419,0,0,417,0,418,0,0,0],"FLAG":0,"BASE":18}'
template9: '{"NAME":"WIFILC10WTB22","GPIO":[0,0,0,0,416,419,0,0,417,0,418,0,0,0],"FLAG":0,"BASE":18}'
flash: tuya-convert
---

Expand Down
2 changes: 1 addition & 1 deletion _templates/seeedstudio_XIAO_ESP32S3_SENSE
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ flash: serial
chip: s3
---

Add the following environment to `platformio_tasmota_cenv.ini` or `platformio_override.ini` and compile the `tasmota32c3-xiaosense` build.
Add the following environment to `platformio_tasmota_cenv.ini` or `platformio_override.ini` and compile the `tasmota32s3-xiaosense` build.

```ini
[env:tasmota32s3-xiaosense]
Expand Down
14 changes: 13 additions & 1 deletion _templates/sonoff_T5-2C-86
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,16 @@ standard: [eu]

## Flashing and Configuration

See instructions for [Sonoff TX Ultimate 1 Gang](sonoff_T5-1C-86)
See instructions for [Sonoff TX Ultimate 1 Gang](sonoff_T5-1C-86)

Add the following rules to control both switches with the two touch panels:
```console
rule2 On TXultimate#Action=Short do backlog var1 toggle endon
rule2 + On TXultimate#Action$!Short do backlog var1 "" endon
rule2 + On TXUltimate#Channel<5 do backlog power1 %var1% endon
rule2 + On TXUltimate#Channel>5 do backlog power2 %var1% endon
```
Activate rule2 with:
```console
rule2 1
```
8 changes: 6 additions & 2 deletions _templates/zemismart_YH002
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,19 @@ title: Zemismart Blinds Controller
model: YH002
image: /assets/device_images/zemismart_YH002.webp
template: '{"NAME":"Zemismart Blin","GPIO":[255,255,255,255,255,255,0,0,255,108,255,107,255],"FLAG":0,"BASE":54}'
template9: '{"NAME":"Zemismart Blind","GPIO":[1,1,1,1,1,1,0,0,1,2304,1,2272,1,0],"FLAG":0,"BASE":54}'
template9_alt: '{"NAME":"Zemismart Blind TYWE3S","GPIO":[1,1,1,1,1,1,0,0,1,2304,1,2272,1,0],"FLAG":0,"BASE":54}'
template9: '{"NAME":"Zemismart Blind WBR3","GPIO":[0,2272,0,2304,0,0,0,0,0,0,0,0,0,0],"FLAG":0,"BASE":54,"CMND":"TuyaMCU 11,7|TuyaMCU 21,2"}'
link: https://www.aliexpress.com/item/4000782412838.html
link2:
mlink:
flash: tuya-convert
flash: replace
chip: WBR3
category: cover
type: Motor
standard: global
---
Newer units come with a WBR3 module, in which case, it can be replaced with a ESP-12F module. In this case, use the template above that sets the TuyaTx/TuyaRx functions on GPIO1/GPIO3 respectively (it also incorporates the two TuyaMCU mappings described below).

`TuyaMCU 11,7` to move the relay to an uncontrollable dpId. WebUI toggle will have no effect.

`TuyaMCU 21,2` maps the position command to dimmer, will not update position state on its own without the following rule.
Expand Down
11 changes: 11 additions & 0 deletions _unsupported/d-link_DSP-W215.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
date_added: 2023-11-19
title: D-link
model: DSP-W215
category: unsupported
type: Plug
link: https://www.emag.ro/priza-inteligenta-d-link-wi-fi-dsp-w215/pd/DVZD2MBBM/
image: /assets/device_images/d-link_DSP-W215.webp
link2: https://eu.dlink.com/ro/ro/support/faq/mydlink-home/smart-plug/dsp-w215/how_to_setup_the_dsp_w215
flash: Qualcomm QCA9531
---
10 changes: 10 additions & 0 deletions _unsupported/hama_00176585.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
date_added: 2023-11-12
title: HAMA GU10 5,5W CCT
model: 00176585
category: unsupported
type: Bulb
link: https://www.hama.com/i/00176585/hama-wlan-led-lampe-gu10-5-5w-dimmbar-refl-fuer-sprach-app-steuerung-weiss?bySuggest=176585
image: /assets/device_images/hama_00176585.webp
flash: WBLC5
---
Binary file added assets/device_images/ESP32-C6-DevKitC.webp
Binary file not shown.
Binary file not shown.
Binary file added assets/device_images/ESP_IR_TR.webp
Binary file not shown.
File renamed without changes.
Binary file added assets/device_images/amtoo_2_gang.webp
Binary file not shown.
Binary file added assets/device_images/d-link_DSP-W215.webp
Binary file not shown.
Binary file added assets/device_images/eightree_16A.webp
Binary file not shown.
Binary file added assets/device_images/hama_00176585.webp
Binary file not shown.
Binary file added assets/device_images/ketotek_KTA007-1.webp
Binary file not shown.
Binary file not shown.

0 comments on commit 77a67bd

Please sign in to comment.