Wood PelletStove Project #31
Replies: 12 comments 13 replies
-
ok, that is SUPER interesting!!!!! That is a D1 mini in your stove!!! And, its the exact same controller(motherboard control unit) thats in in all the stoves I reference. take a look at this discussion - I use the exact same chip when I replace the TYWE1S chip w/ a D1 mini: the short answer is PROBABLY, YES it will work, and it will be extremely easy to reflash. just plug in a USB cable on the D1 Mini and use ESPHome to upload my basic control file: the communication from the display to the motherboard will likely be exactly the same. The question is does the display unit with the D1 mini use the Tuya Cloud platform for its control and are the datapoints all the same as the ones I programmed for? SO, we need to check a few things first. a couple notes/questions:
you could also try using the Tuya app and pair your D1 Mini with that. If that works, you're golden. I can also try the app they reference in one of the many display units I have. if that App works in my display, then you're golden. I'll fire up my pellet stove in my freezing shop right now and go check it out! More soon. |
Beta Was this translation helpful? Give feedback.
-
ok, I braved the cold in my shop and found out the JustFire@home app wouldn't connect to my wifi module. That doesn't really mean anything though. Id still try the Tuya App with your D1 Mini. That will tell us a lot. Select Small Home Appliances/Wifi Stove in the Tuya app when you try to add it. some additional tests:
if you get logs, post the first part here. it will tell s A LOT. Heres part of mine:
Youre Looking for this:
Next, backup your D1 Mini firmware: once you get that done, you can experiment with my code and always go back if it doesn't work. |
Beta Was this translation helpful? Give feedback.
-
Uploaded the excisting config received it in Home Assistent Received this messages: [16:29:29][D][sensor:126]: 'sensor_uptime': Sending state 460.65500 s with 0 decimals of accuracy Could it be possible that the pins (RX/TX) are elsewhere? |
Beta Was this translation helpful? Give feedback.
-
Ok, what did you upload? My code?? And you can't "fry" anything. The stove will work without the Wifi module plugged in. Send me the entire beginning of the log! |
Beta Was this translation helpful? Give feedback.
-
Yes. And send me the esp code. I'll upload it to my D1 mini. where are you located?? specific questions:
|
Beta Was this translation helpful? Give feedback.
-
I looked at Blynk a while ago. It interesting. It's not tuya. So that might pose some issues. Ill do some investigation, it's possible they implemented a proprietary protocol to the UART on the display board. You might be onto something with the rx/tx. The tywe1s used gpio 13/15 and a software based UART. I don't know why they didn't use the hardware UART in the esp.
With this
or swap them (it's hard to know sometimes)
|
Beta Was this translation helpful? Give feedback.
-
Ok, try replacing the UART stuff. I'll bet that's what it is. |
Beta Was this translation helpful? Give feedback.
-
If your display board is the same version as mine, then the Dutch company reverse engineered the Tuya protocol that's sitting inside the chip on the display board, and that is hard coded... I'm sure they wanted the cheap Chinese control electronics & pellet stove hardware but didn't want to pay for the corporate Tuya licensing fees. It honestly wouldn't be that hard to do. It's just a serial protocol over a UART at the insane speed of 9600 baud! I decoded part of it already as you can see in my hardware mods to the control module. |
Beta Was this translation helpful? Give feedback.
-
lots to report... once I got it flashed, I hacked around until I could get the app working. which I did. It connected. Then I looked at the logs. You can see my D1 go into AP mode:
thats good. this is when the app registered the device on the Blynk network. Then I found the pin on the D1 that the TX line from the display goes to - D5 or GPIO14. With that connected, pressing buttons on the display I got this:
the on/offclock was me pressing any button, or the on/off. I assume its just a message received ack'd exchange. I "think" t( but I'm not 100% sure) he other wire goes to D0. I scoped it and there is a data signal present on that wire. Its a 3.3v signal and it needs to be level converted to 5V for the display board MCU to receive commands. I didn't go further than that. So, some combination of D0 & D5 are "probably" the Tuya UART's RX & TX inside the display unit. the app sure does disconnect and reconnect A LOT. You probably see that on the app screen... I don't know if this will get you where you need to be. But it does tell us a lot of info! I must say, even though I don't read Dutch, the APP is 1000% better than the Tuya app. |
Beta Was this translation helpful? Give feedback.
-
try this: tx_pin: GPIO16 #D0 GPIO14 I know for sure is right and it has the datastream from the display on it. the TX pin might one of any of the other pins on the D1 Mini... this is what we need to solve: [22:04:50][C][tuya:033]: Tuya: |
Beta Was this translation helpful? Give feedback.
-
If that doesnt work, then the display board very well may use a different protocol than TuyaMCU.... I find it hard to believe tho since the version on your board is the same as mine. Also, see if you can get your APP to connect w/ just RX_pin: GPIO14 defined. It should connect and if you try logging from ESPHOME |
Beta Was this translation helpful? Give feedback.
-
I didn't get into looking at the protocol between the D1and the display. That's all handled by the TuyaMCU piece of ESPHome. You would have to build a protocol analyzer to look at and decode that data. That is a BIG lift. Way past my skill level, for sure. |
Beta Was this translation helpful? Give feedback.
-
Hi Jeff,
I saw your pellet stove project Very Nice! and immediately thought of the display of my own pellet stove! I bought the stove in the Netherlands through the supplier 'Justfire.nl'. ( https://justfire.nl/ps-15-9-round-9kw.html )
The only difference is that an esp8266 is present with this wifi module, but I think the control is the same because the display you have was used on this heater before.
Would there be a certain way to find out if this control from your project could also be used for the installation of my stove?
Info about the preset chip: https://justfire.nl/media/wysiwyg/handleidingen/WiFi_Module_Handleiding_3_.pdf
Here is a picture of the early pellets stove with the same display: https://justfire.nl/media/wysiwyg/folders/folder%20kachels_ps-15-3.pdf
Installation Setup: https://justfire.nl/media/wysiwyg/handleidingen/Justfire_WIFI_Technische_montage_handleiding_Wifi_Module.pdf
At first site the motherboards look the same 🤔
Kind Regards:
Wouter Dijkstra
Beta Was this translation helpful? Give feedback.
All reactions