-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New ESP8266 dimmer - cannot get it to work #5541
Comments
Original backup of firmware uploaded |
This is not a Tasmota issue. Please read https://github.com/arendst/Sonoff-Tasmota/blob/master/CONTRIBUTING.md |
I know this, but the question is, howto start contribution if I cannot send a message to the original developer of the Tuya support ia Github? Any hint is highly welcome (e.g. how to send a message to a github member - never figured this out...). |
Tuya Convert can be found here https://github.com/ct-Open-Source/tuya-convert/issues |
Thanks. got in contact with the original developer. Flashing was not a problem (Tuya-convert), I flashed tasmota on it, but I cannot get it working - potentially a different protocol. Feel free to close this topic |
Please, address this to the Tasmota Support Chat. The chat is a better and more dynamic channel for helping you. Github issues are meant for Tasmota Software Bug Reporting. Please check the Contributing Guideline and Policy and the Support Guide). Thanks. Support InformationSee Wiki for more information. |
@bigcookie would you mind sharing what you learnt about the teekar, especially the pinout? 👍 pleeease |
Hello @erdii , In general the ESP module was sending brightness values to the MicroController. IT didnt receive anything back. Thus in this case, the full logic of handling faceplate etc is done in the ESP, the MC is just setting the brightness to the light. My summary: Tasmota as is cannot be used for this dimmer AND it is not a simple alteration of the existing code - at least if you want to use the faceplate :-). I hope this helps. I still have the device, but I am now using one of the standard Tuya dimmers. regards |
Wow thank you @bigcookie for all this information! I'll try to integrate to get the esphome firmware to work with this dimmer. Will get back to you :) |
@erdii : let me know - I am happy to test any firmware on the dimmer. It is now lying around, waiting to be MQTT integrated in my network ;-). Let me know if you need people to try it out. |
@bigcookie i have mixed news for you sooo... I managed to kill my dimmer... destroyed it while trying to take out the pcb holding the esp chip. I already had it out once to flash bare esphome firmware, but then I wanted to flash the original firmware to sniff the touch input protocol. Took it out and, boom, nothing working anymore. What I managed to accomplish: code a "Light" output component for esphome -> dimmer exposed.
If you want, I can post my light code and a small manual on how to create an esphome firmware with my custom class included. |
Hi @erdii , not sure, where you are living. I currently not using my dimmer as it doesnt work in my setup :-(. If you are sitting in Germany, I could send you mine. Abroad might be too expensive for this device in comparison with purchasing it. When I tried to handle the device: I connected the ESP to a breakout board and wired the dimmer hardware to the board - just as an idea to avoid continuous soldering. The effort was a bit higher, but probably worth a try (if you didnt do this already). |
And please share our code (I probably cannot develop it further, but if other people are interested...). |
good idea! I desoldered the board for flashing and then resoldered it into the dimmer pcb. For sniffing I bought this: http://dangerousprototypes.com/docs/Bus_Pirate but wasn't able to try it yet, because the dimmer died 💀 Ok! I will setup a repo for code sharing! |
hi.... Any news. I am in same situation.. can not control it . Bigcookie and erdii.... Best regards |
I am not a (trained/good) developer and sent my dimmer to @erdii . I hope he will have time to take a look at it... |
bump :(? |
Tuya switches and dimmers and more devices are supported via TuyaMCU |
Hey all, sadly i had quite some stuff going on in my private life and could not allocate time to reverse engineer the dimmer for esphome :( |
This issue is closed, but I want to add some sentences my current investigations, as I have this dimmer purchased a couple of days ago: |
Some additional short facts: The SPI flash on the clone ESP PCB is 1 MB of size. As the MCU does not send anything to the ESP (but it is physically connected, I checked it (Pin 2 of the ST MCU)), I was able to flash back the original backup file in-curcuit with a 3.3V FTDI adapter. I supplied the whole dimmer PCB with a breadboard 3.3V supply (no mains connection as there is no decoupling! BTW: Bad soldering of the 230V srew contacts, I would recomment to re-solder them). The touch control of my device here changes randomly since a while. Maybe it got broken in meantime or it catches disturbances by the wiring or supply. Regards; Meikel |
Good job. I don't have much experience to help but i believe that this good product become tasmotized :D |
hei. nice job so far. I bought this dimmer time ago. want to upgrade it to tasmota but did not get to it so far. the only thing to understand how dimming function should work. it seams some chip mounted on main board so the zero/cross algorithm should not be implemented on esp (what a relief). Would be great if someone make further investigation here. It is the cheapest (and working with Tuya) dimmer so far. Teekar dimmer discontinued, but other models available now for Germany. |
I got the dimmer in the previous post. When Tasmota is installed none of the on board functions work (touch pad or button) |
The Teekar dimmer consists of three software pieces to be combined in the ESP:
Regards, miqel |
I2C is on IO4 - SDA and IO5 - SCL, My chip only has HLS028 labelled on it. tasmota finds the i2c device with i2cscan Edit: Gonna need some protocol sniffing or bitbashing if Teekar doesn't answer my inquiry about the chipset used Complete writeup on https://blakadder.github.io/templates/teekar-UIW001-1.html |
So, I managed to grab a couple of I2C data. |
simplest way is for you to open an issue there and post a link to a hastebin or wherever |
Any updates on this? Still no luck on configuring this dimmer? |
Anyone? please dont let this topic die... |
Hi, I've modified tasmota 9.1.0 code and added the new template. The dimmer works beautifully with tasmota now: dimmer, front panel leds, touch, everything is ok. The only thing I'm missing is fade. May be will add it later... |
can you provide code modifications so I can compile my own version? |
Hi,
Sure, check my fork https://github.com/dollop80/Tasmota/tree/Teekar
Use "teekar" branch
…On Fri, 27 Nov 2020 at 11:25, blakadder ***@***.***> wrote:
can you provide code modifications so I can compile my own version?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5541 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACZ4IRGD2YE5SEQ2FKQ3463SR5WCLANCNFSM4HCBMM4Q>
.
|
Sorry, forgot to track some files in the repository. Now its OK. Good luck |
@dollop80 thank you for your effort! I have one of these teekars sitting around and will probably be using your code. Question: has it been merged into the upstream and is it Included in tasmota 9.2? I'm asking because there we also have the auto detect feature for home assistant. @blakadder: does this mean the documentation for the templates is outdated? |
@daniel-a-h |
Someone needs to properly merge the new drivers without using anew module to the upstream |
I found this dimmer on Amazon: https://www.amazon.de/TEEKAR-Timing-Funktion-Fernbedienung-Lichtschalter-Neutralleitung/dp/B07M78J15Q/
which looks quite nice. For experimental purposes, I purchased it and it is based on a ESP8266 module with 1MB flash. The module is marked as HYLE2S. The flash chip is an 8MBit type.
The dimmer control works via a ST Microelectronics MCU: stm8s003f3. The MCU is connected to RX/TX of the ESP8266.
I desoldered the module, backed the original firmware up and flashed it with Tasmota. I tried several IDs - seems not to work. Also on/off not working. I will try to work with the templates, but I assume the commands might be different for the MCU...
status 0
:(Please, remember to close the issue when the problem has been addressed)
The text was updated successfully, but these errors were encountered: