-
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
Build with DALI support fails since v14.x #22214
Comments
Looks like the code was not migrated from ESP32 Arduino Core 2.x to the different sets of API calls available with 3.0. |
I'll see if I can fix this... |
Try latest dev. Not sure if it works as I don't know the initial timer frequency. I assume 160MHz but it may as well be a lot lower. Watch your console for possible error message
|
Thanks for the quick response and the fix. I have tried the change in commit 5d4230d:
|
Pls try again with latest dev. BTW as I don't own any DALI hardware whay would you suggest to have as a minimum for testing with Tasmota? |
Thanks for the second fix! In my configuration I use a “DALI click” (https://www.mikroe.com/dali-click) with an ESP32. This is connected in parallel with a Busch-Jaeger DALI dimmer (https://www.busch-jaeger.de/en/online-catalogue/detail/2CKA006599A2986) on the DALI bus, which also acts as power supply. The lights can be controlled with both DALI devices (= Tasmota and Busch-Jaeger) without any problems, but Tasmota does not recognize any changes made via the Busch-Jaeger dimmer, i.e. the information on the DALI bus is unfortunately not read at the moment... |
Thx for the feedback. I'll dive into dali and see if I can Tasmota make recognize dali changes. |
Sounds great! 👍 |
Latest dev branch contains a total rewrite of the Dali driver. It now supports ESP8266 too. It also decodes Dali 1 messages it receives like:
where Power and Dimmer show the broadcast address values. Give it a shot. |
- Add command ``DaliSend <address>|<address+256>,<command>`` to send command (address+256 is repeat) on DALI bus - Add command ``DaliQuery <address>|<address+256>,<command>`` to send command (address+256 is repeat) on DALI bus and wait up to DALI_TIMEOUT ms for response
@FeKn I updated DALI driver to be able to receive backward frames and show this to the user.
Pls report back if anything doesn't work as I envisionend. Pls test if the driver still supports your environment. |
@arendst Sorry for the late reply! Today I will take a look at the new DALI commands on the latest dev branch ( |
I suggest to start using dev v14.3.0.2 A major change in DALI code. See changelogs |
@FeKn I am very interested in figuring out how to connect the DALI click to an ESP32 - can you give me some information about that? Thanks! |
@maltic42 This is how my ESP32 is connected to the DALIclick: Tasmota Module Configuration:
ESP32 -> DALIclick wiring:
|
@FeKn Thanks a lot - I did not expect this to be so easy. Is this supposed to be working with the DALI 2 click board as well when connecting to the appropriate pins? |
Find Tasmota DALI info here https://tasmota.github.io/docs/DALI/ |
@arendst I've tried the latest dev and it looks very good! The commands from external devices on the DALI bus are now also recognized by Tasmota. 👍 :-) But I have noticed the following behavior: MQTT commands ( Is there a reason why the RESULT is returned in different JSON paths? This makes the evaluation more difficult... Furthermore, the slider in the Tasmota WebUI does not show changes via MQTT commands, although the DALI lights respond to these commands. |
@maltic42 I would suspect that DALI 2 click also works, but I have not tested it... |
@FeKn Thx for testing.
Yes there is. The difference is in handling it's functionality. With When Tasmota light control is disabled (
Tasmota lights were never able to show slider position in real time. The initial reason was that tests having dynamic sliders made user control difficult as the user would interfere with dynamically changes of the slider. Therefor I disabled that and so you'll see only static sliders used for user input only. So as designed. |
@arendst Perfect, thanks!! |
@arendst Unfortunately I cannot upgrade to v14.3.0.2 - v14.3.0 is no problem and seems to be working. After upgrading to v14.3.0.2 on two ESP32 boards the web interface is not reachable, the connection hangs, i.e. the device does not answer, the devices are pingable. ets Jun 8 2016 00:22:57 rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) 00:00:00.001 HDW: ESP32-D0WDQ6 v1.0 |
2nd device: ets Jun 8 2016 00:22:57 rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) 00:00:00.001 HDW: ESP32-D0WDQ6 v1.1 |
Sorry. Cannot test. Mine works just fine.
|
I suggest you enable more logging ( |
I activated the WifiManger (by mistake in the console), connected to the device on 192.168.4.1, added my Wifi settings again, after that it was working - on both devices. No idea, what happened. I ordered a DALI 2 Click board an will get back with some feedback to you when it arrives. |
@arendst According to the documentation I can send commands (on, off, light level) either to all devices (broadcast), an individual device or to a group as specified by the DaliTarget command. Would it be possible to support more than one device or group and having more than one Tasmota controlled light which then represents broadcast, individual gear or group? |
No, not at the moment. It would take a major task to support more than one light. The problem is how many to support, 64 sliders in the gui makes no sense. I guess you’ll have to find a way to integratie tasmota dalipower/dalidimmer in your home automation front end. |
I see - ok. Thanks! |
Unfortunately the DALI 2 Click is not working. When I connect the device the bus, the bus hangs completely, i.e. it is not possible to use the existing switches anymore. |
I suggest you try to find DALI 2 specific hardware information from MikroE and see how it compares to the Dali Click hardware. In addition I managed to get the slider(s) in the GUI reflecting changes in commands at |
Regarding the DALI 2 CLick the observed situation sounds familiar. It might well be you need to invert the Tasmota GPIO's. Try |
Perfect - this seems to be working well!!! I will do some testing. Where should I report errors and with which log level? |
Matter to DALI works very well with some custom rules - at least for Homekit, that's really great! 20:34:04.043 CMD: Rule1 @arendst Thanks a lot for this, that is what I´ve been searching for for months ... I can confirm this is working with a DALI 2 Click board and several Lunatone DALI MC+, a Lunatone DALI-2 WLAN PS as well as several DALI lights. |
- Add command ``DaliSend <address>|<address+256>,<command>`` to send command (address+256 is repeat) on DALI bus - Add command ``DaliQuery <address>|<address+256>,<command>`` to send command (address+256 is repeat) on DALI bus and wait up to DALI_TIMEOUT ms for response
- Add command ``DaliSend <address>|<address+256>,<command>`` to send command (address+256 is repeat) on DALI bus - Add command ``DaliQuery <address>|<address+256>,<command>`` to send command (address+256 is repeat) on DALI bus and wait up to DALI_TIMEOUT ms for response
PROBLEM DESCRIPTION
A clear and concise description of what the problem is.
Building Tasmota32 v14.x (v14.0, v14.1, v14.2 or master) with DALI support enabled in 'user_config_override.h' fails to compile with the following error:
REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
Backlog Template; Module; GPIO 255
:Backlog Rule1; Rule2; Rule3
:Status 0
:weblog
to 4 and then, when you experience your issue, provide the output of the Console log:TO REPRODUCE
Steps to reproduce the behavior:
Build Tasmota32 v14.x (v14.0, v14.1, v14.2 or master) with DALI support enabled in 'user_config_override.h' (see below) via e.g. "platformio run --environment tasmota32" with VSCode or Gitpod.
Additions in 'user_config_override.h':
EXPECTED BEHAVIOUR
Successful build of Tasmota32 with DALI support (as in Tasmota32 v13.4 and earlier).
SCREENSHOTS
If applicable, add screenshots to help explain your problem.
ADDITIONAL CONTEXT
Add any other context about the problem here.
Build with the same 'user_config_override.h' is successful up to Tasmota32 v13.4, the error occurs since v14.0.
(Please, remember to close the issue when the problem has been addressed)
The text was updated successfully, but these errors were encountered: