Skip to content
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

KNX mapping to GA #2734

Closed
Winni66 opened this issue May 15, 2018 · 21 comments
Closed

KNX mapping to GA #2734

Winni66 opened this issue May 15, 2018 · 21 comments

Comments

@Winni66
Copy link

Winni66 commented May 15, 2018

I'm testing with sonoff-knx.bin version 5.13.1

Binary mapping for relays is working properly.

But I have found some strange behaviour for Sonoff TH16:
In Data to Send to Group Address it's not possible to map humidity (always temperature is shown after saving)
In Group Adresses to Receive Data from I get always temperature on GA I had mapped to reply humidity

For Sonoff POW:
There is no possibility to map information about power consumption.

Datatype for KNX:
It seems that DPT7 is used for temperature, therefore the value cannot be used directly from KNX devices, which normaly expect DTP9 if there are decimals. Maybe it might be possible to select KNX datatype too?

Nevertheless, it's a great firmware for Sonoff devices. Let's hope that OTA-setup for Tasmota will be available again in the future.

@ascillato
Copy link
Contributor

ascillato commented May 15, 2018

Hi,

In Data to Send to Group Address it's not possible to map humidity (always temperature is shown after saving)

Yes, that was a bug but it is solved now on the Sonoff-Tasmota development branch. You can build a firmware with the features you need or wait for next release that is going to be out soon.

Also for testing I have compiled some KNX firmwares v5.13.1b here if you want to try.

There is no possibility to map information about power consumption.

Nop, It is not implemented yet.

EDIT: working on adding it.
EDIT2: Added. PR #2750

It seems that DPT7 is used for temperature

It uses DPT9.001 (2 bytes float). where you see that? DPT7.001 is a long integer (0-65535)

Let's hope that OTA-setup for Tasmota will be available again

What do you mean? OTA is working.

@Winni66
Copy link
Author

Winni66 commented May 15, 2018

Thanks for information, I upgraded to 5.13.1b:
DTP9 you are right, don't know why it didn't worked before here, I must have made something wrong.
Humidity is sent properly now.
But: Up to now it was possible to request values from KNX-side, but with the new firmware there is no answer from Sonoff device anymore.

OTA-Setup: I meant update new original firmware to Tasmota, OTA is working properly if you have Tasmota installed already

@Winni66 Winni66 closed this as completed May 15, 2018
@Winni66
Copy link
Author

Winni66 commented May 15, 2018

Sorry, didn't want to close, It's my first issue an Github ;-)

@Winni66 Winni66 reopened this May 15, 2018
@ascillato
Copy link
Contributor

Hi,

I have a Temp and Humidity sensor sending data over KNX without problem.

Please, check your configuration.

As example, mine is:

image

@Winni66
Copy link
Author

Winni66 commented May 15, 2018

I have only 5.13.1b, but the same setup...
It worked properly for temperature in 5.13.1 (only humidity issue).
In 5.13.1b I get no feedback anymore on requests (but humidity info). Unfortunately I'm not able to build 5.13.1c.
Think I have to way for next release ;-)
Thanks a lot for feedback!

@ascillato
Copy link
Contributor

between v5.13.1b and v5.13.1c there are not differences related to KNX.

That's why should be a config problem. I can read temp and humidity.

@ascillato
Copy link
Contributor

I have checked and there is no difference on the routines for reply temp and humidity between v5.13.0 and v5.13.1b

Please, re check your configuration on your setup.

Please, try the following:

  • On the console type weblog 4
  • Go to KNX menu and do a SAVE
  • Go again to the console and copy the outputs here.

That will show your current KNX configurations.

@Winni66
Copy link
Author

Winni66 commented May 15, 2018

I just tried to upload 5.14 release, now the device get's IP but I cannot ping and cannot reach web-interface.
So it's dead for the next days. Perhaps I can access again when I'm at home and bring it nearer to the access point.
I'm only able to upload by OTA :-(

@Winni66
Copy link
Author

Winni66 commented May 15, 2018

Wrong information from remote, my wife says, that there is now a Sonoff-Network and she tried to setup Network again (access to network ID and password when connecting to this network with mobile). But after save no connect to my network, restart with Sonoff-Network again ( I trust her, that she used correct information).
So there will be no update on this topic until next tuesday

@ascillato
Copy link
Contributor

Hi, can you test the actual v5.14.0a that has an improvement on KNX ?

If you don't know how to compile the last version (v5.14.0a), you can find them also at https://github.com/ascillato/Sonoff-Tasmota_KNX/releases

Thanks.

@Winni66
Copy link
Author

Winni66 commented May 16, 2018

No I can't, because I don't get WiFi connection. The device is fixed in the garden, I have to investigate next week when I'm at home.

@Winni66
Copy link
Author

Winni66 commented May 28, 2018

Back again, I had to buy USB connector to flash directly.
I'm using now 5.14.0a with core 2.3.0 because of my Wifi issues.
Comments to KNX functionality:

  • Menu for TH16 with Temp/Humidity sensor is fine now, BUT KNX request for humidity is still sending temperatur. Updates because of changes are sent properly !
  • POW enhancement (not tested all of them), menu is ok, BUT after switching the updates of currency and voltage are quite slow, is there any opportunity to optimize? Change of status behaves properly and fast !
  • KNX communication enhancement: is working as described, but be careful -> may lead to ignore fast switching commands

@ascillato
Copy link
Contributor

Hi,

Thanks a lot for the testing.

KNX request for humidity is still sending temperature

Can you test that again? I test here and It is sending the humidity when requesting humidity. Remember that humidity and temperature should have different Group Address.

Updates of current and voltage are quite slow, is there any opportunity to optimize?

Yes, all sensor values are sent every teleperiod. By default Tasmota has 5 minutes of teleperiod. You can change that using commands on the console. Just type on the console teleperiod 60 for example for around one minute interval.

KNX communication enhancement: is working as described, but be careful -> may lead to ignore fast switching commands

Yes, you are right. Thanks for pointing it out. I will add that to the wiki. Tasmota will ignore toggle commands by KNX if are sent more than 1 toggle per second. 1 toggle per second is working.

@Winni66
Copy link
Author

Winni66 commented Jun 6, 2018

I installed 5.14.0b and did a new KNX setup.
22:43:15 HTP: Configure KNX
22:43:15 KNX: aktiviert: 1, Communication Enhancement: 0
22:43:15 KNX: Physical Address: 2.0.3
22:43:15 KNX: GA: 3
22:43:15 KNX: GA #1: Ausgang 1 zu 8/5/2
22:43:15 KNX: GA #2: Feuchtigkeit zu 8/5/20
22:43:15 KNX: GA #3: Temperatur zu 8/5/21
22:43:15 KNX: CB: 3
22:43:15 KNX: CB #1: 8/5/2 zu Ausgang 1
22:43:15 KNX: CB #2: 8/5/20 zu Reply Feuchtigkeit
22:43:15 KNX: CB #3: 8/5/21 zu Reply Temperatur

When requesting 8/5/20 I still get temperature !
This happens on console:
22:44:41 KNX: Received from 8.5.20 Befehl Read: 0 zu Reply Temperatur
why is it temperature ?
It'S properly working when data is sent periodically:
22:48:15 KNX: Temperatur sent to 8.5.21
22:48:15 KNX: Feuchtigkeit sent to 8.5.20
22:48:15 RSL: SENSOR = {"Time":"2018-06-06T22:48:15","SI7021":{"Temperature":27.50,"Humidity":51.60},"TempUnit":"C"}
22:48:16 CFG: in Flash gespeichert am F5, zählen 52, Bytes 3584

sending of information would be great if one could select by delta values (smaller teleperiod will cause KNX traffic!) At least for all values there should be an automatic update after toggeling relais...

@ascillato
Copy link
Contributor

ascillato commented Jun 6, 2018

Hi,

When requesting 8/5/20 I still get temperature !

Will investigate.
EDIT: fixed

sending of information would be great if one could select by delta values (smaller teleperiod will cause KNX traffic!) At least for all values there should be an automatic update after toggeling relais...

Will look into it.

@ascillato
Copy link
Contributor

Fixed Bug on sensors reply.

Thanks for reporting 👍

ascillato2 added a commit that referenced this issue Jun 8, 2018
@ascillato
Copy link
Contributor

Hi, can you test the actual v6.0.0a that has that bug solved on KNX ?

If you don't know how to compile the last version (v6.0.0a), you can find it also at https://github.com/ascillato/Sonoff-Tasmota_KNX/releases

Also There is the Pull Request #2955 for Tasmota to add arithmetic commands for Tasmota. With these new commands you can implement the Delta Values you want. There is an example in that PR for that.
This PR is already implemented in https://github.com/ascillato/Sonoff-Tasmota_KNX/releases

Thanks.

@Winni66
Copy link
Author

Winni66 commented Jun 13, 2018

Request-Bug is solved in your release, thanks a lot.
I have no experience on rules. I tried the following, but it didn't seems to work:

rule
on SI7021#temperature>%var1% do backlog var1 %value%; publish stat/sonoff/temp %var1%; var2 %var1%; add1 2; sub2 2 endon
on SI7021#temperature<%var2% do backlog var2 %value%; publish stat/sonoff/temp %var2%; var1 %var2%; add1 2; sub2 2 endon
on SI7021#humidity>%var3% do backlog var3 %value%; publish stat/sonoff/humidity %var3%; var4 %var3%; add3 2; sub4 2 endon
on SI7021#humidity<%var4% do backlog var4 %value%; publish stat/sonoff/humidity %var4%; var3 %var4%; add3 2; sub4 2 endon

Thanks

@ascillato
Copy link
Contributor

Hi,

didn't seems to work

Well, I need more info than that. 😉

@ascillato
Copy link
Contributor

What error is displayed?

The rule as you posted need to be all together as:

rule on SI7021#temperature>%var1% do backlog var1 %value%; publish stat/sonoff/temp %var1%; var2 %var1%; add1 2; sub2 2 endon on SI7021#temperature<%var2% do backlog var2 %value%; publish stat/sonoff/temp %var2%; var1 %var2%; add1 2; sub2 2 endon on SI7021#humidity>%var3% do backlog var3 %value%; publish stat/sonoff/humidity %var3%; var4 %var3%; add3 2; sub4 2 endon on SI7021#humidity<%var4% do backlog var4 %value%; publish stat/sonoff/humidity %var4%; var3 %var4%; add3 2; sub4 2 endon

And remember to turn on rules also

rule 1

@ascillato
Copy link
Contributor

If that does not work, please open a new issue and we will see there.

As you confirmed that this issue (KNX mapping) is solved. I'm closing it. Please, reopen it, if you find anything else related to this. Thanks 👍

curzon01 pushed a commit to curzon01/Tasmota that referenced this issue Sep 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants