-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
How to use temperature of DS18B20 in KNX area? #138
Comments
Will investigate |
Can you provide the output of the status 0 command? |
yes but only late afternoon |
Nevermind. Found the issue. I have never included the support for that sensor in knx. Will include for next release. Thanks a lot for finding this. 👍 |
OK or not ok because I just bought 5 of this sensors because I thought that all sensors of this list are also working in the KNX side |
Hi, I have just add the support for DS18B20 in the KNX Driver for Tasmota. I don't have a DS18B20 to test. So, can you test that please? I updated the code in Tasmota dev branch, in this KNX dev branch and also I added the precompiled bins with this upgrade in this Sonoff-Tasmota_KNX repository Up to now, Tasmota supports only one DS18B20 sensor to be used in KNX. For supporting more sensors of the same type, a major modification would be needed in the KNX Menu and in the KNX driver. I understand that it is very useful, but by now, there are no plans to work on adding that feature soon. The implemented features in KNX for Tasmota are: General:
Sensor lists that you can use in KNX is (only one sensor per type):
For using rules:
The Features which I'm working on at this moment:
Thanks again to point all this out. 👍 . I hope I can update soon the wiki with this information. Please, confirm if the DS18B20 works when you have some time. Thanks. |
Added this info to the Tasmota Wiki ! |
Thanks, that was fast. I will start testing right now... |
sorry for the delay but I am very new to Arduino and PlatformIO. I have problems to compile it. And I am not able to upload the .bin with the Tasmota OTA-Update (to big) Is there any fast way to upload your precompiled bin with PlatformIO (on the MAC) over the USB Adapter? |
I provided you the precompiled also. By OTA, use the minimal first. By wire use the esptool.py |
Download Firmware and Flash You can use the precompiled binaries v6.0.0a from: These can be uploaded using OTA or using the tool esptool.py. Information at: https://github.com/arendst/Sonoff-Tasmota/wiki/Esptool ( If using OTA, upload first the minimal version and after that, the final version you want ) OR Download Source Code, Compile and Flash You can download the source code from: And compile and flash with Arduino or Platformio. Tutorials at: https://github.com/arendst/Sonoff-Tasmota/wiki/Tutorials Hope this helps. |
after remember some basic possible errors to update a sonoff Basic and find a lose wire I managed to update. |
The temperature value is updated every teleperiod only. If you wait until your teleperiod, it stills give you zero? |
you are right. The default teleperiod is 5 min. And it looks like in the first 5 min I good the Zero. Now I get the right value after the first push was send also on the read request. |
But it would be nice if you can load the right value direct to the KNX side that a read request have the right value or if the first teleperiod just starts once after a reconfigure or restart of the device... |
After a restart, you have a teleperiod after Tasmota reads all the sensors. May be you have restarted the device and ask for temperature before Tasmota finish communicating and reading all sensors. Please, do a restart and try again after about 10 seconds. |
after a restart there is no value be pushed to the KNX GA and also my reads after 10, 20, 30,... seconds give me all the time 00h until the 5 min default teleperiod is over and the first temperature is pushed to the GA. After that I also get the right value to the read requests. |
Ok. Nice that it is working now. The teleperiod and the sensor readings are outside the knx driver. Give me some time. I will investigate that and then I will post an issue in Tasmota so Theo can check that. |
Hi, A question. Do you have a MQTT broker configured? If not, that is the issue with the initial teleperiod. I found a workaround for making Tasmota have the Temperature value available from Boot Time for KNX.
This rule will trigger a teleperiod once the device has booted. |
yes could be the issue. I don't have a MQTT setup at all. I will verify the workaround this afternoon. |
hi, |
Great! solved! Thanks a lot for finding these issues and testing 👍 So the rule should be I will try to make that the KNX driver force a sensor reading at startup if there is no MQTT. |
right. should be |
One idea, |
Hi, Tasmota does support more than one DS18B20 but only for MQTT. For KNX, a major modification is needed. If you have multiple DS18B20 sensors in the same GPIO, can you provide the output in the console for the tele message? May be, depending on how the JSON is, can be done a workaround with rules. |
right now 2 DS18B20 are connected to the same GPIO:
|
hi I give it a try but don't work.
but nothing is send to the assigned GA
Any idea whats wrong or did I found an other error or missing feature? |
just to verify that the GA is working I did send the DO part of the rule (copied from the console log) as command into the console |
with putting knxtx_val1 in first place of the do part the value is send to the bus.
|
Hi, Thanks a lot for the testing. Will investigate your findings |
your rule is missing the last should be:
|
The rule is working right now. :-) I have now 2 units running since last Sunday morning with your new version 6.0.0a: B) one unit did today not answer to any KNX read requests anymore at all. And can you please take a look about the missing digits after decimal point I reported some days ago. |
Hi, will look into it. I was very busy. please be patient. thanks |
Hi, I found the issue with the decimal values. Tasmota internally only sends integers to drivers. I will fix it soon. About your long time running issues, I don't know what is happening there. Mine are working ok. May be an issue on your wifi? |
Hi, your finding about the decimal values is also in the ADD, SUB and MULT commands. Will try to add decimals to all those commands too. Thanks again for your tests! 👍 |
I recall that some people had that type of issue in Tasmota. Don't know the root of their issue but a workaround they did is to automatically reboot Tasmota once per day using a timer and a rule. May be this help you too as a workaround. |
good to hear that you found the source of the decimal problem because without it its more or less useless for me. Let me know if I should make some tests. And thanks for the hint with the daily reboot, I will give it a try... |
I made the arendst#3083 for tracking the decimal truncation bug. So, if your issue is solved, let's close this one. Please, feel free to reopen it or open a new one if you need. Thanks. |
Now Tasmota supports decimal values for KNXTX_VALx command and also for Arithmetic commands for rules. Also the precompiled binaries for KNX were released |
I will test it tomorrow... |
did try it from remote with your precompiled release but after the update the system lost my 2 sensors (DS18B20)
any change that you can also compile the DE-4MB Version with this option because I have no access to my dev environment right now and have also problems with the old libraries during compilation. |
I managed to compile with the multi DS18B20 support and can confirm that decimal values for KNXTX_VALx work. |
Great! Thanks 👍 |
status 0
:STATUS 0 OUTPUT HERE
can only provide later today if needed
Hello I have KNX all over my house and I've tried the current version (5.14.0b) to see how the new KNX integration is working. I tested with Sonoff Basic using platformIO on my MAC.
With the built-in switch and LED of a Sonoff Basic the KNX part is working perfect.
But now I need a temperature measurement for a current project.
For this I have connected a 1-wire temperature sensor (DS18B20) with the needed resistor to the Sonoff Basic to GPIO14 and configure it in the Tasmota device config to the appropriate GPIO.
After a reboot, I also get the name of the sensor and the current temperature on the Tasmota start webpage of the device.
BUT
In the KNX configuration page, I can not select the temperature sensor as "Source / Sensor" for sending to group addresses. I only see this in the pulldown menu: relay, button, KNX TX 1, ... KNX TX 5)
Has anyone else tried this successfully, do I have to change anything else in the source code / sketch to be able to use the sensor also in the KNX area?
Or is this a bug?
Michael
The text was updated successfully, but these errors were encountered: