Tywe3s tasmota

By Tim Naylor - December 02, I love NodeMCU chips!

SmartLife/Tuya WiFi light switch with Tasmota and nymea

I especially love the 12E or the 1. So far the only downside is that the output is only 3. D4 is GPIO2 which is pulled high at boot, and will cause boot failure if something is pulling it low at boot As always, if you want some of these, please consider using my Amazon affiliate links, and if you want something else from Amazon, you can use my link and go buy that too.

Post a Comment. Popular posts from this blog Flashing my tuya switches with tasmota By Tim Naylor - December 19, This was an exciting adventure.

Punca bunyi knocking lc135

Travis from digiblurDIY updated the Tasmota wiki with all the relevant information: I soldered up my TYWE3S just like he did here: The switches work perfectly with following settings: They need to be set to switchmode 3 in order to maintain the state.

Switchmodes acted like switchmode 7 usually does. With some tiny tweaks to the housing, it fits sideways in a 2 gang box just like DR…. Read more.

By Tim Naylor - December 10, Little did I know that when I tried this the first time on Ubuntu I would be taking the easy way That being said, one has to use at least 3 different instructions in order to get it done so I am going to try to get it all in one place.

Most of this should work for any debian based distribution that uses systemctl. For example these instructions do not work on a mac that uses launchctl or Alpine Linux that uses OpenRC.

By Tim Naylor - December 09, Several weeks ago I switched to docker on a mac mini under ubuntu server. It did not go as planned. I ran into significant issues, but today I sat down to get it working. Hopefully this will be a little more straight forward since there is no intermingling with other operating systems and some assumptions in the documentation are called out expressly.

Once installed, fire up docker for the first time from the applications directory, or launcher.My quest on flashing custom firmwares and controlling budget switches sold at Action discount store continues!

These devices are so called 'Tuya' devices that work with a cloud service but can be easily flashed. I quickly got one and decided to give it a go. Initially, I set out to flash it directly on the chip using an FTDI adapter but when opening it up, quickly realised that would be a big hassle.

In order to flash this chip you need to ground a pin to GPIO0 as outlined in this wiki page. The technical sheet for this chip is available here. Some smart people figured out a loophole in the SSL handshake that made this devices able to flash using just a terminal and a mobile phone. The steps to flash firmware onto the switch are very simple, you only need a Linux machine with a wireless chip like a Raspberry Pi Zero Wa mobile phone I had better results with Android and physical access to the switch's button.

Follow the instructions displayed on screen. I copied it over using scp to my laptop, just in case.

tywe3s tasmota

Figuring out how the config should look was rather difficult since I initially based myself on a blogpost from frenck. The config below is the one I used for flashing. Then quickly check Home Assistant and voila! Hardware flashing Initially, I set out to flash it directly on the chip using an FTDI adapter but when opening it up, quickly realised that would be a big hassle.GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Already on GitHub? Sign in to your account. Datasheet can be found on the net, seems it's an ESP12 device. Uploading Tasmota went fine, red LED was working right from the start with the Sonoff basic device, but the button was not. Now I'm able to use the button as well, the blue LED lights when output is off, when output is switched on, the red LED comes on, the blue one will switch out.

This same module is used in the SM-SO power strip modules, which have 5 relays - 4 for the individual outlets, and one for the group of 4 USB plugs. Unfortunately, it looks like flashing these would be a similar level of hassle to the SM-PWE; there isn't a header of any sort available. Just bought one of these devices and it came in the mail today.

Sounds like I have a pretty good timing with this. Well, think I'm too slow with my images ElecTriX : you should consider changeing your wlan password as the original image that was sent with the github mail revealed the config file entry Switching works well but power meter shows dubios values. Power ist ok after Calibration, but voltage calibrates with a 25W bulb went to V with a 60W bulb. Current ist much too high ca 10A.

Seems this ist the same issue like u deskribed here on Have you solvet this? What was the solution? I'm using this config now:. But this is not configurable. Opened a new issue: Add the following snippet to your HTML:. Free your Tuya device with Tasmota and nymea. Read up about this project on. The surfaces were just too small for it to be used in a hazzle-free manner.

So I decided to replace it with something that has actual buttons again. Ok, but how would I get Tasmota on it? Some research on the net revealed that there is a project called tuya-convert.

tywe3s tasmota

While it didn't seem to list the actual piece of hardware it is said to flash Tuya devices with Tasmota, over the air, no soldering required, so why not giving it a shot. As you can probably guess by the parts list and the picture, that didn't work out so well for me.

Not to blame the tuya-convert project, I messed up all by myself in that I installed the official app for this device and connected it to the switch. It immediately did a firmware upgrade of the switch and that would change the OTA mechanism in a way that tuya-convert can't deal with any more, at least at the time of this writing.

Do not connect the switch to the internet or the official SmartLife app or it will upgrade the firmware and can't be flashed to Tasmota over the air any more.

Here we are, with a Tuya light switch ready to be flashed to Tasmota using tuya-convert. I have tried it on the Raspberry pi and it seemed to have worked like a charm - well, up to the point where it would fail because of the new firmware which prevents the Tasmota image from being injected, but I managed to connect the Tuya device to the tuya-convert WiFi and actually talk to the switch.

Now, if you're lucky that's it for you No soldering, not even opening the case. OK, if you ended here like me and it is too late, you already got the latest firmware, or if your newly bought device comes with the latest firmware already preinstalled, stay calm, no need for getting it replaced. It is not required to have it plugged to the main power supply for flashing and in fact, it will likely destroy the device doing so, putting your hardware and your health at risk.

So, this entire chapter goes without mains connected, just using the 3. This Tuya dimmer has the same chip on it, but a different layout. It works nevertheless, If you have a flasher, solder on the wires like in that picture.

Now, let's use the Raspberry pi to build the flasher. Install a standard raspbian or Ubuntu - anything should work really - I have used the nymea image, given that I had that one already installed for nymea on the RPi.GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together. Have a question about this project?

Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Already on GitHub? Sign in to your account. Anyone already use this board with tasmota for curtain motors?

I only saw with smartplugs. I upload the tasmota firmware successfully but I'm trying to discover which gpios are the relays, buttons, led, etc.

Land leveler craigslist

Excuse me if I say some absurd, I'm don't have technical knowledge I don't know if Tasmota works whithout adaptations in that device. So, please, set the module to generic and put your gpios as relays and try to turn each one to see if something happens and write down your findings. If the ESP is controlling directly the relays, you will be able to use Tasmota. If you can't turn your relays, means that there is another MCU that controls them. If that is the case, some reverse engineering needs to be done to know the actual protocol it uses.

Here is my current discovery: With this config, on toggle button 4, the motor turns on and then off automatically video.

GPIO Locations

I tried to leave only GPIO13 as button 4 config as relay, but then the motor doesn't respond. Up to now, motor positions are not supported in Tasmota. That is why it is still open the issue Ok, no problem at all.

Please, if you need any help or assistant, jusk ask here or in the Tasmota Chat. I had some good discovery yesterday. Basicly the system has 2 relays, one Differential Comparator for detecting when the curtain is stuck at the end, the current motor increases and the eletronic limit is set2 44e hall sensors, 1 learning button for rxs signal, one led, 2 rs1 and rs2 rj11 conectors.

The other is taking care of rxs signal, the led, the learn button. I bought another curtain motor on That was the good news. I will try to connect yet. Did you make any more progress on this? Looking to purchase the same TUYA based curtains. I'm sorry, I didn't. I didn't get any help and as I'm using Iobroker, I foung a Tuya instance that can work with original firmware.

I didn't tested yet but it should work. Skip to content.Flashing my tuya switches with tasmota. By Tim Naylor - December 19, This was an exciting adventure. Post a Comment. Little did I know that when I tried this the first time on Ubuntu I would be taking the easy way That being said, one has to use at least 3 different instructions in order to get it done so I am going to try to get it all in one place.

Most of this should work for any debian based distribution that uses systemctl. For example these instructions do not work on a mac that uses launchctl or Alpine Linux that uses OpenRC.

Matlab double pendulum

Read more. By Tim Naylor - December 09, Several weeks ago I switched to docker on a mac mini under ubuntu server. It did not go as planned. I ran into significant issues, but today I sat down to get it working.

Hopefully this will be a little more straight forward since there is no intermingling with other operating systems and some assumptions in the documentation are called out expressly. Once installed, fire up docker for the first time from the applications directory, or launcher.As Tuya company offers very cheap smart home solution branding, you'll find a huge number of branded switches based on their service.

Only problem with these devices is that they are working with some China based servers. So every time you want to switch-on your light with such a switch, your command need to go to China and come back. In case your internet is down or their server is having trouble which happens too often … no light! This is not exactly what you can call freedom. Once flashed with this firmware, your devices can be configured to connect to any local MQTT broker or Home automation server.

It typically needs a Raspberry Pi with a Wifi adapter and a Linux computer. Your Wifi adapter should be able to enter in AP mode which is the case with most recent models. It has been tested with a Ubuntu First thing is to download and flash latest Raspbian image on a SD card for your raspberry version.

Terminal sudo service ssh start. Some software will be installed from Raspbian repositories and some from pip3 repositories. Terminal sudo apt update sudo apt upgrade sudo apt install dnsmasq hostapd screen python3-pip python3-setuptools python3-wheel mosquitto nodejs haveged git sudo pip3 install paho-mqtt pyaes tornado. Terminal node -v v6. Raspberry Pi 2, 3, … are hosting armv7 processors.

Serotonina naturala

For my armv6 processor, I need to download version v Terminal tar -xzf node-v Next you need to clone and install tuya-convert from GitHub :. You should commit this file. Terminal popd sudo.

tywe3s tasmota

It enables you to backup your devices firmware and upload an alternative one e. Please make sure that you understand the consequences of flashing an alternative firmware, since you might lose functionality!

Write a program that squares an integer and prints the result

This is usually done by pressing and holding the primary button of the device3. After less than 30 seconds, the LED should stop to blink fast and flash process will carry on after few more seconds. Terminal IoT-device is online with ip Installing an alternative firmware with the wrong flash mode will leave the ESP unable to boot!

Next steps: 1. From you computer or from your smartphone, connect to this Wifi network. You'll be prompted the wifi configuration page.

tywe3s tasmota

When you save the new configuration, your switch will reboot and connect to your home network as a DHCP client.

You'll get all Tasmota devices found on your network. Uptime will give you the last one connected to your network. This article is published "as is", without any warranty that it will work for your specific need. You need JavaScript enabled to view it. IoT-device is online with ip Signature Technoblog. Back to top.


thoughts on “Tywe3s tasmota

Leave a Reply

Your email address will not be published. Required fields are marked *