Code Monkey home page Code Monkey logo

blakadder / templates Goto Github PK

View Code? Open in Web Editor NEW
314.0 23.0 1.3K 648.31 MB

Tasmota Device Templates Repository. Your one stop shop to get templates for devices running Tasmota!

Home Page: https://templates.blakadder.com

License: Eclipse Public License 2.0

HTML 78.29% Ruby 0.58% CSS 2.33% JavaScript 6.30% Makefile 0.10% SCSS 12.40%
tasmota tasmota-templates tuya esp8266 smarthome smart-home tasmota-devices tasmota-device tuya-devices hacktoberfest

templates's Introduction

Tasmota Device Templates Repository

This is an official repository of templates for devices that are flashable with Tasmota. All the devices are submitted by the awesome community built around Tasmota and Tuya-Convert.

Contributing

Add your device with a simple Google form.

If you've spotted an error or have additional information for a device click on Edit page box to add. If it's your first time refer to "Editing Articles" for a tutorial.

templates's People

Contributors

annbob avatar arendst avatar ashp8i avatar barbudor avatar benhopperau avatar bios2k avatar blakadder avatar chunter789 avatar digiblur avatar dl7jp avatar ejohb avatar elahd avatar final-hawk avatar fivesixzero avatar jason2866 avatar kimble4 avatar lboue avatar mechanarchy avatar mediarath avatar meingraham avatar mkaatman avatar moriahmorgan avatar richard-scott avatar s-hadinger avatar sfromis avatar starsoccer avatar sthopeless avatar tarontop avatar thatsmycall avatar walkingmage avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

templates's Issues

Gosund Duel Outlet - New Version WP212 (WP2)

Just delivered from Amazon today. Did not receive WP211 but got WP212 instead.
Not sure if this is the correct place for this. If not, feel free to delete.
The template for the Gosund WP211 will not work with this new version (WP212)
It causes reboots to default settings ie. back to IP 192.168.4.1. (at lease for me, 6.5.0 - 2.3.0. and 6.5.12 - 2.4.2)
This works as far as the WP211 templates went (no Energy Monitoring results) just buttons and relays.
{"NAME":"WP212","GPIO":[17,0,0,0,18,0,0,0,21,0,22,0,0],"FLAG":0,"BASE":18}
Would love the get Energy working

Template for AOFO 4AC+4USB not working

Hey blakaddr,
A few days ago I bought the new Smart Power Strip „AOFO 4AC+4USB “ on Amazon. Yesterday I flashed it with Sonoff-Tasmota 6.7.1 by Theo Arends and configured it with your template but as result i got only one Toggle Button which toggles the state of Plug 1 (see image below). Are there any additional configurations I have to do?

Bildschirmfoto 2019-11-23 um 08 03 56

Moes 3 Way Smart Switch

Hello; i have been searching up an down but cannot find a fix to my issue. I have followed the tasmota template guide for the Moes 3 Way switch and all works fine execpt for one thing. When toggle 1 happens to be ON and toggle 2 happens to be off and i reboot tasmota, i see the light bulb filker (which is fine) but then in HA when i toggle the light off, the bulb turns off OK, but the HA status still shows ON.. I would have to toggle it 3 times for it to go back into sync again for HA. I copied the HA code and Tasmota rules, etc listed.
Console Log:
03:25:50 MQT: stat/loftlight/RESULT = {"Event":"Done"}
03:25:50 RUL: EVENT#OFF performs "power2 TOGGLE"
03:25:50 MQT: stat/loftlight/RESULT = {"POWER2":"ON"}
03:25:50 MQT: stat/loftlight/POWER2 = ON (retained)
03:25:56 MQT: stat/loftlight/RESULT = {"Event":"Done"}
03:25:56 RUL: EVENT#OFF performs "power2 TOGGLE"
03:25:56 MQT: stat/loftlight/RESULT = {"POWER2":"OFF"}
03:25:56 MQT: stat/loftlight/POWER2 = OFF (retained)
03:25:56 MQT: stat/loftlight/RESULT = {"POWER1":"ON"}
03:25:56 MQT: stat/loftlight/POWER1 = ON (retained)
03:25:59 MQT: stat/loftlight/RESULT = {"Event":"Done"}
03:25:59 RUL: EVENT#OFF performs "power2 TOGGLE"
03:25:59 MQT: stat/loftlight/RESULT = {"POWER2":"ON"}
03:25:59 MQT: stat/loftlight/POWER2 = ON (retained)
03:25:59 MQT: stat/loftlight/RESULT = {"POWER1":"OFF"}
03:25:59 MQT: stat/loftlight/POWER1 = OFF (retained)
03:25:59 RUL: POWER1#STATE=0 performs "backlog rule1 1; rule2 0"
03:26:00 MQT: stat/loftlight/RESULT = {"Rule1":"ON","Once":"OFF","StopOnError":"OFF","Free":477,"Rules":"on event#ON do power2 TOGGLE endon"}
03:26:00 MQT: stat/loftlight/RESULT = {"Rule2":"OFF","Once":"OFF","StopOnError":"OFF","Free":476,"Rules":"on event#OFF do power2 TOGGLE endon"}

no rgb control on lamp.

hi i've just flashed a electriQ RGBW B22 Bulb UK with tasmota (latest version) set template , "{"NAME":"ElectricQ B22","GPIO":[255,255,255,255,37,41,255,255,38,40,39,255,255],"FLAG":0,"BASE":18}"

but i have no rgb control , it is logged in tasmota console just noting happens to the lamp,
note:- if with in the tasmota ui i slide lamp color to cool all the rgb LED's do light up ?
also using home assistant if i set color lamp goes off and i can only turn it back on by going back to the tasmota ui and adjusting white slid bar.
this is also the same if i set color via tasomta console.

finally and on a positive note i flashed via ftdi adapter and have a pic of where to solider to for this lamp if it helps any.

dimmer slider and warmth for white slider only

I just got the 3 pack for this bulb from costco. With sonoff 6.5.0 Im getting a slider for warm white to cold white and a brightness/dimmer slider but no color slider. Confirmed rgb with color codes that work

I need help with templates

Hi,

I'm familiar with Tasmota and I have already flashed many Sonoff devices at home, but I just bought a pack of 2 light bulbs and all the details I found in the Tasmota Wiki is the section "device templates". I'm not sure what is the purpose of that.

Questions:

  • Can you please explain how to use a device template?
  • Do you have any idea which steps to follow in order to flash these bulbs with Tasmota? I cannot even open them.

Thanks!

Zemismart KS-811 3 Gang

Couple of errors in this template.

Button 3 is not defined, Button 1 has an extra 7 on it and Triple is spelled wrong
{"NAME":"KS-811 Tripple","GPIO":[255,255,52,255,255,18,255,255,22,21,23,255,177],"FLAG":0,"BASE":18}

Should be
{"NAME":"KS-811 Triple","GPIO":[255,255,52,255,19,18,255,255,22,21,23,255,17],"FLAG":0,"BASE":18}

Digoo DG-SP01 not working

That template is not configured correctly. Unfortunately, the device becomes extremely unstable after activating the template. A reset is almost impossible. I do not recommend it.

What or who is the origin of this configuration?
Can I resolve the mappings without opening the device? There are no screws. probably glued.

Tested with:
Tasmota Version: 6.5.0 (sonoff) & 6.4.1.21 (sonoff)
Core / SDK Version: 2_5_0 / 3.0.0-dev (c0f7b44)

https://github.com/blakadder/templates/blob/master/_templates/digoo-dg-sp01.markdown

Not working on 6.5.0

I have read elsewhere that the Brilliant unit and the Genio have different configurations.

Toggling the switch doesn't work, nor does using the switch on the device itself.

Jinvoo SM-PW762U USB power ports not switching

I have flashed two Jinvoo SM-PW762U wall socket units. The main relay works fine but the USB solid sate relay does not switch. Luckily it is ON when you plug it into a wall, but would like it to work also.

EDIT 10-17-19:
The template that I used uses a Component 158 (LedLinki) in it. This does show up in the template parameters list for GPIO4. But when I enter 'GPIOs' in the console window, Component 158 does not show up anywhere (if that matters or not)

AWP04L

Using the template for AWP04L :

{"NAME":"AWP04L","GPIO":[158,255,255,131,255,134,0,0,21,122,132,56,0],"FLAG":0,"BASE":18}

After the initial restart the template appears to work normally. Then, after a period of 20-40 seconds every single one of my devices do a "full reset" wiping all settings requiring the need to connect to their AP again and reconnect them to my wifi.


EDIT: SOLVED

122 - Button1in should be 17 - Button1

{"NAME":"AWP04L","GPIO":[158,255,255,131,255,134,0,0,21,17,132,56,0],"FLAG":0,"BASE":18}

works good now.

Template for jinvoo_SM-PW713 not working

When using this template, the valve resets and goes back into wifiman mode (192.168.4.1).
Sonoff Basic template is working, at least the valve. Did not check the LEDs yet.

To @meingraham

Hi Mr @meingraham

In the templates I saw the DS01 US dimmer, the new release of this dimmer is no more what is shown in the picture. The hardware really changed, it is not possible to soldering the wires directly to the ESP microcontroler anymore. It is to tiny and the PCB donuts are became very tiny also (less than 1.5 mm) with a big welding nose it could cause some big damages.

In the board, there is some holes and plates where you can soldering your wires, but it is near the double of a hair size may be.
I tried to flash it, but it seems the the GPO0 isn't at the same place (put it to the GND don't affect the ESP boot) and I can't figure out how to set the ESP to be flashed... I tried with or without the flat wires plugged.

Pictures:
20191202_222753
20191202_224802
20191202_225210
20191202_225529
20191202_220639
20191202_220932
20191202_220943
20191202_222725
20191202_222741

BlitzWolf BW-SHP7 Current Problem

Hello,
I have an BlitzWolf SHP7 Device with Tasmota 6.7.1 and used the template from here. But the current sensor doesn't work right. With no calibration the current is by over 16A with an 40W bulb and an voltage of 229V. After calibration the current is right, but only for this bulb. If I use an devices with more than 40W the current doesn't show the right value. I don't know if there is something wrong with the template or with my plug.

Unable to add new template

Tried to add a Maxcio UK power plug template for model W-UK007 (not the power-monitoring variant already in the Templates list), but the form queried if I was sure the template was correct. Presumably because of the already-present UK007S. Anyhoo, mine came from Amazon, it was Tuya-convertible, and seems to work fine.

Anyway, here it is, hope it's OK.

{"NAME":"Maxcio","GPIO":[0,17,0,0,0,0,255,255,0,56,21,0,0],"FLAG":0,"BASE":18}

Please do not remove templates from the wiki

Users do not need to fork your repository or use a google form to edit the official wiki. All of the information is in one place and should remain accessible as such.

It's fine that you want to provide another option for people to organize templates but it's not okay to remove from the wiki.

It's useful to have all the device templates on one page, even if they are from different countries, as many of the device templates apply to devices regardless of country.

It's also difficult to get info at a glance when info is split up between multiple pages.

I kindly request that you refrain from deleting and reverting wiki pages from the official Tasmota wiki. As an alternative I offer that you keep a link in the sidebar, but clearly mark that it your project.

choifoo - BSD33 power measurement

Hi,

not sure where to put this, but I received a BSD33 plug from China and was able to flash it with with tasmota.
However when I use the template from the list, power measurement does not seem to work. It gives only 0's. Do I need to use a SetOption or something? Any clues?

Temperature calibration

When I updated to the June 15 dev on the Shelly 1PM the template has a temperature reading. It's reading a bit high 100F sitting on the table next to me. The ambient temp is about 74F and the relay doesn't feel like it's that hot to the touch. Should the sensor be ignored or is there a way to calibrate it reasonably? This could also be a Tasmota issue, but figured I'd post here.

Conventions for GPIO mapping?

I was about to submit a PR for https://github.com/blakadder/templates/blob/master/_templates/medion_life_S85225 with a different GPIO mapping, and then realised that GPIO13 has been mapped to LedLinki1(158) instead of the Led1i(56) I used. Has any standard or convention been set thus far for this sort of setting, or is this strictly personal preference territory? I couldn't see anything the Tasmota wiki/template site, so perhaps this is still something to think about?

ie. I set it like this
{"NAME":"Medion S85225","GPIO":[0,0,0,17,134,132,0,0,131,56,21,0,0],"FLAG":0,"BASE":18}
as opposed to
{"NAME":"Medion","GPIO":[0,0,0,17,134,132,0,0,131,158,21,0,0],"FLAG":0,"BASE":52}

Lohas 9W RGBW

used this template and following Light setup in HA and the bulb is not showing up as COLOR light bulb. Please help. Using Tasmota 6.7.1

{"NAME":"Lohas RGBW","GPIO":[0,0,0,0,0,0,0,0,0,143,0,144,0],"FLAG":0,"BASE":18}

  • platform: mqtt
    name: "Lohas1"
    command_topic: "cmnd/Lohas1/POWER"
    state_topic: "tele/Lohas1/STATE"
    state_value_template: "{{value_json.POWER}}"
    availability_topic: "tele/Lohas1/LWT"
    brightness_command_topic: "cmnd/Lohas1/Dimmer"
    brightness_state_topic: "tele/Lohas1/STATE"
    brightness_scale: 100
    on_command_type: "brightness"
    brightness_value_template: "{{value_json.Dimmer}}"
    white_value_state_topic: "tele/Lohas1/STATE"
    white_value_command_topic: "cmnd/Lohas1/white"
    white_value_scale: 100
    white_value_template: "{{ value_json.Channel[3] }}"
    rgb_command_topic: "cmnd/Lohas1/Color2"
    rgb_state_topic: "tele/Lohas1/STATE"
    rgb_value_template: "{{value_json.Color.split(',')[0:3]|join(',')}}"
    effect_command_topic: "cmnd/Lohas1/Scheme"
    effect_state_topic: "tele/Lohas1/STATE"
    effect_value_template: "{{value_json.Scheme}}"
    effect_list:
    • 0
    • 1
    • 2
    • 3
    • 4
      payload_on: "ON"
      payload_off: "OFF"
      payload_available: "Online"
      payload_not_available: "Offline"
      qos: 1
      retain: false

Not able to change white colors

In the template provided, we are not ab;e to change the white. (To cool white or warm white). can you add that option as well

Teckin SP23 Power LED - incorrect template

Hi,

Used your template info to config Tasmota for my new SP23s. Works a treat, except the led on the button does not show the power status. This is because the template should be like below (ie 2 led settings swapped). Perhaps you could update for others who find same issue.

{"NAME":"Teckin SP23","GPIO":[56,255,57,255,0,134,0,0,131,17,132,21,0],"FLAG":0,"BASE":45}

KR

DS-102 2 Gang

The template for the DS-102 2 Gang didnt work for me exactally as expected.

Both the buttons would just turn on the same blue led on the first switch, the second switch led always stayed off.

After alot of messing around and trial and error this is my template which work as expected for me.

My modified template
{"NAME":"DS-102 2 Gang","GPIO":[158,57,0,17,22,18,0,0,0,21,56,255,0],"FLAG":0,"BASE":18}

Your template
{"NAME":"DS-102 2 Gang","GPIO":[56,58,0,17,22,18,0,0,0,21,57,255,0],"FLAG":0,"BASE":18}

Maybe you can offer my template as an alternative version to try if yours doesnt work for others.

Device mis-classifications?

What characteristic in the template makes the Shelly RGBW2 Miscellaneous and the MagicHome not? What needs to be changed in the Shelly so that it's "together" with the other similar devices?

Should the Slampher and the Elegant Choice E27/E26 be classified with the bulbs?

Mike

P.S. You've been a stranger lately. YOu must have a heavy work project load. Drop by Discord sometime 😉

Update template for AUKEY SH-PA1

Hi,

I was the user who submitted the template for the SH-PA1. I discovered the correct input for the pin for LED control. Here is an updated template:

{"NAME":"AUKEY SH-PA1","GPIO":[0,0,57,0,0,0,0,0,0,17,0,21,0],"FLAG":15,"BASE":18}

More verbose template

Hey,

I've been a frequent visitor of the templates site since a lot of ESPurna users at https://gitter.im/tinkerman-cat/espurna or https://github.com/xoseperez/espruna/issues (and sometimes myself) reference some existing device that is already documented. While I do know how to parse Tasmota's template header and manually offset lines in vim or something like that, do you think it would be a useful addition to have GPIO pin and magic numbers as a hover hint or maybe some optional extended view (as a "verbose" button) to explain each number line-by-line? Enumeration as string values could be used as-is, GPIO numbers <=> array index should be pretty straight forward.

And I do see that the existing template uses hardcoded values to tell the device type (power plug, light etc.)


I was also thinking about having a small webpage and reference people to that to parse templates with the current tasmota_template.h, but perhaps that functionality would also be useful for other projects like ESPHome or ESPEasy

NEO Coolcam 16A (new template?)

The Coolcam 16A device I just received from Aliexpress holds a BL0937 instead of a HLW8012.

  • As Theo suggested in his response to the issue I had to get consistent Energy values , in your template that I used, GPIO4=131 should be replaced with GPIO4=134.

  • In the same page, it looks like the szneo website is outdated, there is no 16A plug in the catalog, only 10A.

teckin_SS42 measurement

i dont even know if this device is able to measure voltage?
or is it the template that seems to be broke?

Aoycocr EU5-16A Plug - No Power Monitoring

I've installed this template on this plug. Power toggle works fine, but unfortunately no power monitoring.

Edit: product information on Amazon(.de) is incorrect. This plug has no power monitoring.

RGB Lighting

RGB lighting is not working on this Template.

GPIO and AC warning

I didn't think about it at the time but it should probably have a warning on the page regarding serial connectivity while AC is connected. Something like this:

⚠️ Electrocution Risk ⚠️

Do not connect AC power and the serial connection at the same time
The GND connection of Shelly devices is connected to the live AC wire. Connecting serial with your PC will fry your PC and could electrocute you.

Do not connect any additional sensors to serial pins.

new Teckin SP22 with T102/WR2 Tuya module based on RTL8710BN

Hello,

please add a warning to the SP22 Teckin plugs cause they have changed the WiFi module inside.
I could not change the firmware with tuya-convert so I opened one up and found a T102/WR2 WiFi Module in it. This uses a RTL8710BN chip.
Now I have 4 plugs laying around who either need the tuya cloud or I can use them as bricks...

Arlec PB88UHA Power Strip

The template information is incorrect and will cause the board to crash. The updated template is below.

{"NAME":"ArlecPowerStri","GPIO":[0,0,0,255,22,21,0,0,24,23,0,0,0],"FLAG":0,"BASE":18}

The user defined position allows you to change which socket the button will control.

Teckin SB50 missing Cold White GPIO

I got the GPIO connections from https://blakadder.github.io/templates/teckin-sb50.html for my Teckin SB50, but noticed that it was missing the control for white light temperature. So I opened one up and found that GPIO5 is connected to the cold white LED's. I'm not sure how tasmota handles GPIO assignment (I use ESPHome) so here is the complete list of GPIO's for this bulb. Please update the template accordingly:

GPIO LED connected
4 Red
5 Cold White
12 Green
13 Warm White
14 Blue

Let me know if you need any additional info on this. Cheers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.