-
Hi Everyone - I came here as a suggestion of another member. I have a board with a 74HC565, 74HC165 and ESP32. Now - I need to make the 74HC165 work with TASMOTA. As it is not natively supported, I would like if possible some help (I do not have any scripting knowledge, though I have been last 48hrs trying to learn Berry and figure to do this on my own before coming over here and asking for help). Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 21 comments 99 replies
-
Before having a native HC595 driver, the 1st one was written in Berry However I assume that, the HC165 would be used for input ? Hope this helps |
Beta Was this translation helpful? Give feedback.
-
Hi, I compiled my own as I needed the #define USE_SHIFT595. I used GitPod. Let me know how can I help, somehow. |
Beta Was this translation helpful? Give feedback.
-
@barbudor Thank you for your efforts in implementing this tasmota extension. `rst:0x10 (RTCWDT_RTC_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT) flash read err, 1000 ets_main.c 371 ets Jun 8 2016 00:22:57` It looks like something is incompatible with this board. |
Beta Was this translation helpful? Give feedback.
-
@hhorigian The way to include is described above. It only makes sense to do for someone who can test the changes. I don’t have the device. Can’t buy everything ;-) |
Beta Was this translation helpful? Give feedback.
-
@hhorigian @barbudor I just tested bot options with FUNC_EVERY_250_MSECOND and function FUNC_EVERY_50_MSECOND Adding a 2-10 uF capacitor in parallel with relay coil helps to fix it. |
Beta Was this translation helpful? Give feedback.
-
@DaniilMir @hhorigian |
Beta Was this translation helpful? Give feedback.
-
Wow @barbudor !! That's an Amazing change!! Thanks for that! |
Beta Was this translation helpful? Give feedback.
-
@hhorigian I assume you did this with a Dingtian that wasn't preprogrammed? |
Beta Was this translation helpful? Give feedback.
-
Hi @barbudor - how are you so long? The issue that I am having: Everything else is as default. Thanks! |
Beta Was this translation helpful? Give feedback.
-
@sfromis Used to do this a couple of months ago, I don't know if some config file changed.
As we send the boards ready to the customers, I would like to create a bin file to upload to the boards with template ready and setup ready to plug and be welcomed to setup wifi, etc as a new board. |
Beta Was this translation helpful? Give feedback.
-
@barbudor @Jason2866 I enabled the Hue Bridge, for Alexa integration. Alexa discovers 15 channels, and controls perfectly 15 channels, but never discovers channel #16. Tried to remove all, changed names, reset the board and names, included in another amazon account. Always the same result: Channels 1 to 15 added ok, but channel 16 is left out as it didn't exist, but it shows in tasmota web control, tasmota api, mqtt. Only Alexa integration is not picking it up. |
Beta Was this translation helpful? Give feedback.
-
So what do you think can be the problem @barbudor ? Any ideas? |
Beta Was this translation helpful? Give feedback.
-
Hi @barbudor - I have been testing all day the board. I Followed your advice. Flashed tasmota32 via webinstaller, then compiled a new version (removing everything I didn't want, adding the Dingtian relay definition, the hue limitation change), and upgraded using "Upgrade by file upload" using the compiled tasmota32.bin from gitpod I compiled. Thanks! |
Beta Was this translation helpful? Give feedback.
-
HI @barbudor how are you! Hope you are doing well! I discovered an issue, that only happens when I flash with Tasmota (does not happen with their original firmware). Normal function via Web, Turning On/Off - on all relays. Response ok. Any ideas? |
Beta Was this translation helpful? Give feedback.
-
Discovered via the debug. 22:24:56.262 BTN: Button1 multi-press 1
|
Beta Was this translation helpful? Give feedback.
-
@sfromis - Yes, that was a cable doing the problem for the pushed. Solved. After changing to: The Setoption13 solves the problem, definitely. |
Beta Was this translation helpful? Give feedback.
-
LOL! The "#define DINGTIAN_INPUTS_INVERTED" was not enabled ! Thanks!! Have a nice christmas. |
Beta Was this translation helpful? Give feedback.
-
Hi @barbudor ! How have you been!? Hope everything is well! As usual, working with the Dingtian boards. It's been a long time since I don't setup Tasmota in one of them, and this time I got a new batch. I am trying to setup a 32CH board with Tasmota. The problem: Relays are not switching on/off PHYSICALLY, nothing is happening on the board. No relays are being activated, though in the console and in the web interface, everything looks ok when switching on/off. I did a custom bin firmware for it using a development branch, but as usual. #define USE_DINGTIAN_RELAY Here are some console logs. 17:58:13.256 RSL: STATUS = {"Status":{"Module":0,"DeviceName":"Dingtian","FriendlyName":["MolSmart","MolSmart2","MolSmart3","MolSmart4","","","",""],"Topic":"MolSmart_7EF8A4","ButtonTopic":"0","Power":"00000000000000001110000000101100","PowerLock":"00000000000000000000000000000000","PowerOnState":3,"LedState":1,"LedMask":"FFFF","SaveData":1,"SaveState":1,"SwitchTopic":"0","SwitchMode":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0,"InfoRetain":0,"StateRetain":0,"StatusRetain":0}} |
Beta Was this translation helpful? Give feedback.
-
Hi !!! @barbudor The 32CH board, needs to be set up with DINGTIAN CLK = 4 in GPIO14. Can we check that? |
Beta Was this translation helpful? Give feedback.
-
Hi my friend. I talked to Dingtian guys last week - We even tried to download tasmota in an OLD 32ch (v1), but the result was the same - could not control the relays. Whenever you have some time - can you check if there is anything in the code that would change for the 32CH specially? Thanks as always! |
Beta Was this translation helpful? Give feedback.
-
Hi @barbudor and team! How are you! Hope you have a great 2025! I have a really wired behavior with Dingtian boards 16CH. define USE_DINGTIAN_RELAY // Add support for the Dingian board using 74'595 et 74'165 shift registers Everything is working perfect except Alexa Hue integration. Alexa seems to recognize some devices, but not all of them. Seems that the problem is on the NAMING when sent to Alexa, for what I can see in the Console. Did anything change on the emulator Thanks! |
Beta Was this translation helpful? Give feedback.
Your device needs an exorcists 🤣
With Weblog 3 you could see if a command changes that
Regarding your initial problem with Buttons which lead you to use Setoption13, there's may be an issue with the the type of button generated by the driver (non-inverted vs inverted)
Could you please try a binary with neither AS_BUTTON/AS_SWITCH (the old mode)
And provide me with a screen shot of the main web page when no buttons are pressed
and/or a copy of the sensor message
If the value are all "1" for the inputs, you need to add in your user_config_override.h
At rest, inputs should be 0