Wrong average of Group:Number:AVG with DPT knx="5.001:

Dear Tim,

There is no need to be frustrated as long as you understand the basics of a system! Please do not get me wrong, if there is an issue with the OH core, I should have at least “smelled” it with regards to the KNX binding. There is no such issue! I have tried your setup so many times! If you want KNX help, I am more than gladly to help if you could share your KNX (ETS) project, or just the part that you are worried about (device, GA, etc.)
I am not a developer, nor a maintainer. Just a proud user of a system that I understand!

BR,
George

Hi George,
now I have posted as much as I think is relevant for my problem. If not, please give me a hint to answer more questions about my setup. I think my ETS setup is irrelevant, as everything is working fine with the binding, except the scaling of Group:Avg: . By the way, you see all my GA in the thread. They are working fine, as I have already written.

Dim has just made an example setting and come to the same conclusion. So, there might be a problem. I assume our conversation will not help me/us -> please correct me, if I am wrong. If you have made many setups in the same way, could you post an example of KNX readings DPT.5.001 at least two with Group:Avg?

BR Tim

Device -> wiregate (see last post)
GA -> see first post

Wiregate´s help:
Datatypes:
Temperaturen: EIS5/DPT9.001 (2 byte float)
Luftfeuchte: 0-100%, EIS 6/DPT5.001 (1 byte)

edit: tail -f /var/log/openhab2/openhab.log -f /var/log/openhab2/events.log

2017-01-31 01:05:26.064 [ItemCommandEvent          ] - Item 'RelHumidity_KG_Sauna' received command 46
   
2017-01-31 01:05:26.072 [GroupItemStateChangedEvent] - RelHumidityKG changed from 0.48125000 to 0.48000000 through RelHumidity_KG_Sauna
  
2017-01-31 01:05:26.075 [ItemStateChangedEvent     ] - RelHumidity_KG_Sauna changed from 47 to 46

Dear Tim,

I just finished testing a similar setup (OH with KNX binding)! Can you please post the [INFO] logs (what you get from KNX: read or/and write) on the items with the 5.001 DPT? I think I found the possible problem! It’s as I previously stated not regarded to the OH core!

Best regards,
George

Hi George,

here is the output:

cat /var/log/openhab2/openhab.log | grep INFO
2017-01-31 20:47:48.378 [INFO ] [ore.internal.i18n.LocaleProviderImpl] - Locale set to de_DE
2017-01-31 20:47:49.529 [INFO ] [io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = XXXXXXXXXXXXXXXXXXXX, base URL = http://localhost:8080)
2017-01-31 20:47:58.320 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'windows.items'
2017-01-31 20:47:58.817 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'lux.items'
2017-01-31 20:47:58.958 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'fritzbox.items'
2017-01-31 20:47:59.013 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'temperature.items'
2017-01-31 20:47:59.128 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'dewpoint.items'
2017-01-31 20:47:59.236 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'weather.items'
2017-01-31 20:47:59.301 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'relhumidity.items'
2017-01-31 20:47:59.405 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'lights_hue.items'
2017-01-31 20:47:59.458 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'abshumidity.items'
2017-01-31 20:47:59.556 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'presence.items'
2017-01-31 20:47:59.603 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'waw.items'
2017-01-31 20:47:59.781 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'network.items'
2017-01-31 20:47:59.862 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'hue.items'
2017-01-31 20:47:59.920 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'sun.items'
2017-01-31 20:47:59.977 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'lights.items'
2017-01-31 20:48:00.252 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'rrd4j.persist'
2017-01-31 20:48:00.447 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'logging.persist'
2017-01-31 20:48:04.907 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'prowl.rules'
2017-01-31 20:48:05.218 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'waw.rules'
2017-01-31 20:48:07.428 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'waw.script'
2017-01-31 20:48:09.347 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'waw.sitemap'
2017-01-31 20:48:10.543 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'waw.things'
2017-01-31 20:48:13.749 [INFO ] [.dashboard.internal.DashboardService] - Started dashboard at /start
2017-01-31 20:48:19.704 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2017-01-31 20:48:19.846 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
2017-01-31 20:48:22.952 [INFO ] [ding.astro.handler.AstroThingHandler] - Scheduled astro job-daily-moon at midnight for thing astro:moon:home
2017-01-31 20:48:22.971 [INFO ] [ding.astro.handler.AstroThingHandler] - Scheduled astro job-positional with interval of 60 seconds for thing astro:moon:home
2017-01-31 20:48:23.019 [INFO ] [ding.astro.handler.AstroThingHandler] - Scheduled astro job-daily-sun at midnight for thing astro:sun:home
2017-01-31 20:48:23.023 [INFO ] [ding.astro.handler.AstroThingHandler] - Scheduled astro job-positional with interval of 60 seconds for thing astro:sun:home
2017-01-31 20:48:23.276 [INFO ] [ulation.internal.HueEmulationServlet] - Started Hue Emulation service at /api
2017-01-31 20:48:24.372 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
2017-01-31 20:48:24.727 [INFO ] [assic.internal.servlet.WebAppServlet] - Started Classic UI at /classicui/app
2017-01-31 20:48:25.764 [INFO ] [nx.internal.connection.KNXConnection] - Established connection to KNX bus on 192.168.0.8:3671 in mode TUNNEL.
2017-01-31 20:48:37.165 [INFO ] [.astro.internal.job.AbstractDailyJob] - Scheduled astro event-jobs for thing astro:moon:home
2017-01-31 20:48:37.189 [INFO ] [.astro.internal.job.AbstractDailyJob] - Scheduled astro event-jobs for thing astro:sun:home

…by the way updated to…

2.1.0-SNAPSHOT
Build #771

Karaf console output

openhab> smarthome:items list |grep RelHumidityEG
gRelHumidityEG (Type=GroupItem, Members=10, State=UNDEF, Label=rel. Luftfeuchte EG, Category=humidity, Groups=[gStatus])
RelHumidity_EG_Kind1 (Type=NumberItem, State=42, Label=rel. Luftfeuchte, Category=humidity, Groups=[gRelHumidityEG, EG_Kind1, RelHumidityEG])
RelHumidity_EG_Kind2 (Type=NumberItem, State=44, Label=rel. Luftfeuchte, Category=humidity, Groups=[gRelHumidityEG, EG_Kind2, RelHumidityEG])
RelHumidity_EG_Flur (Type=NumberItem, State=41, Label=rel. Luftfeuchte, Category=humidity, Groups=[gRelHumidityEG, EG_Flur, RelHumidityEG])
RelHumidity_EG_Toilette (Type=NumberItem, State=46, Label=rel. Luftfeuchte, Category=humidity, Groups=[gRelHumidityEG, EG_Toilette, RelHumidityEG])
RelHumidity_EG_Garderobe (Type=NumberItem, State=40, Label=rel. Luftfeuchte, Category=humidity, Groups=[gRelHumidityEG, EG_Garderobe, RelHumidityEG])
RelHumidity_EG_Eingang (Type=NumberItem, State=40, Label=rel. Luftfeuchte, Category=humidity, Groups=[gRelHumidityEG, EG_Eingang, RelHumidityEG])
RelHumidity_EG_Kueche (Type=NumberItem, State=41, Label=rel. Luftfeuchte, Category=humidity, Groups=[gRelHumidityEG, EG_Kueche, RelHumidityEG])
RelHumidity_EG_Wohnzimmer (Type=NumberItem, State=38, Label=rel. Luftfeuchte, Category=humidity, Groups=[gRelHumidityEG, EG_Wohnzimmer, RelHumidityEG])
RelHumidity_EG_Kellertreppe (Type=NumberItem, State=40, Label=rel. Luftfeuchte, Category=humidity, Groups=[gRelHumidityEG, EG_Kellertreppe, RelHumidityEG])
RelHumidityEG (Type=GroupItem, BaseType=NumberItem, Members=9, State=0.41333333, Label=Avg. Erdgeschoss rel. Luftfeuchte, Category=humidity, Groups=[gRelHumidityEG])

cat relhumidity.items

/*
Item Syntax
Items are defined in the following syntax:
--------------------------------------------------------------------------------------
itemtype itemname ["labeltext"] [<iconname>] [(group1, group2, ...)] [{bindingconfig}]
--------------------------------------------------------------------------------------
Note: Parts in square brackets ([]) are optional.

Example:
--------------------------------------------------------------------------------------------------------------------
Number Sensor_Temperature "The Temperature is [%.1f %%]" <humidity> (gRelHumidity, gSensor) {knx="1/0/15+0/0/15"}
--------------------------------------------------------------------------------------------------------------------
The example above defines an item:
of type Number
with name Sensor_Temperature
formatting its output in format %.1f %% (See Formatting section for syntax explanation)
displaying icon temperature
belonging to groups gRelHumidity and gSensor
bound to the openHAB binding knx with write group address 1/0/15 and listening group address 0/0/15
*/

Group gRelHumidityOG	"rel. Luftfeuchte OG"		<humidity> 		(gStatus)			/* rel. Luftfeuchte OG */
Group gRelHumidityEG	"rel. Luftfeuchte EG"		<humidity> 		(gStatus)			/* rel. Luftfeuchte EG */
Group gRelHumidityKG	"rel. Luftfeuchte KG"		<humidity> 		(gStatus)			/* rel. Luftfeuchte KG */


/* relative Humidities */
Number RelHumidity_EG_Kind1  			"rel. Luftfeuchte [%.1f %%]" <humidity>   (gRelHumidityEG, EG_Kind1, RelHumidityEG) 		{ knx="5.001:12/3/0" }
Number RelHumidity_EG_Kind2  			"rel. Luftfeuchte [%.1f %%]" <humidity>   (gRelHumidityEG, EG_Kind2, RelHumidityEG) 		{ knx="5.001:12/3/1" }
Number RelHumidity_EG_Flur   			"rel. Luftfeuchte [%.1f %%]" <humidity>   (gRelHumidityEG, EG_Flur, RelHumidityEG)			{ knx="5.001:12/3/2" }
Number RelHumidity_EG_Toilette			"rel. Luftfeuchte [%.1f %%]" <humidity>   (gRelHumidityEG, EG_Toilette, RelHumidityEG)		{ knx="5.001:12/3/3" }
Number RelHumidity_EG_Garderobe			"rel. Luftfeuchte [%.1f %%]" <humidity>   (gRelHumidityEG, EG_Garderobe, RelHumidityEG)		{ knx="5.001:12/3/4" }
Number RelHumidity_EG_Eingang			"rel. Luftfeuchte [%.1f %%]" <humidity>   (gRelHumidityEG, EG_Eingang, RelHumidityEG)		{ knx="5.001:12/3/5" }
Number RelHumidity_EG_Kueche			"rel. Luftfeuchte [%.1f %%]" <humidity>   (gRelHumidityEG, EG_Kueche, RelHumidityEG)		{ knx="5.001:12/3/6" }
Number RelHumidity_EG_Wohnzimmer		"rel. Luftfeuchte [%.1f %%]" <humidity>   (gRelHumidityEG, EG_Wohnzimmer, RelHumidityEG)	{ knx="5.001:12/3/7" }
Number RelHumidity_EG_Kellertreppe	  	"rel. Luftfeuchte [%.1f %%]" <humidity>   (gRelHumidityEG, EG_Kellertreppe, RelHumidityEG)	{ knx="5.001:12/3/8" }
Number RelHumidity_KG_Vorratsraum 	  	"rel. Luftfeuchte [%.1f %%]" <humidity>   (gRelHumidityKG, KG_Vorratsraum, RelHumidityKG)  	{ knx="5.001:12/3/9" }
Number RelHumidity_KG_HWR1  			"rel. Luftfeuchte [%.1f %%]" <humidity>   (gRelHumidityKG, KG_HWR, RelHumidityKG)  			{ knx="5.001:12/3/10" }
Number RelHumidity_KG_HWR2	  			"rel. Luftfeuchte [%.1f %%]" <humidity>   (gRelHumidityKG, KG_HWR, RelHumidityKG)  			{ knx="5.001:12/3/11" }
Number RelHumidity_KG_Sauna				"rel. Luftfeuchte [%.1f %%]" <humidity>   (gRelHumidityKG, KG_Sauna, RelHumidityKG)  		{ knx="5.001:12/3/12" }
Number RelHumidity_KG_Geraeteraum		"rel. Luftfeuchte [%.1f %%]" <humidity>   (gRelHumidityKG, KG_Geraeteraum, RelHumidityKG)  	{ knx="5.001:12/3/13" }
Number RelHumidity_KG_Sportzimmer 	  	"rel. Luftfeuchte [%.1f %%]" <humidity>   (gRelHumidityKG, KG_Sportzimmer, RelHumidityKG)  	{ knx="5.001:12/3/14" }
Number RelHumidity_KG_Heizungsraum 	 	"rel. Luftfeuchte [%.1f %%]" <humidity>   (gRelHumidityKG, KG_Heizungsraum, RelHumidityKG) 	{ knx="5.001:12/3/15" }
Number RelHumidity_OG_Schlafzimmer 	 	"rel. Luftfeuchte [%.1f %%]" <humidity>   (gRelHumidityOG, OG_Schlafzimmer, RelHumidityOG) 	{ knx="5.001:12/3/16" }
Number RelHumidity_OG_Badezimmer		"rel. Luftfeuchte [%.1f %%]" <humidity>   (gRelHumidityOG, OG_Badezimmer, RelHumidityOG) 	{ knx="5.001:12/3/17" }
Number RelHumidity_OG_Empore  			"rel. Luftfeuchte [%.1f %%]" <humidity>   (gRelHumidityOG, OG_Empore, RelHumidityOG)  		{ knx="5.001:12/3/18" }
Number RelHumidity_OG_Arbeitszimmer		"rel. Luftfeuchte [%.1f %%]" <humidity>   (gRelHumidityOG, OG_Arbeitszimmer, RelHumidityOG) { knx="5.001:12/3/19" }
Number RelHumidity_OG_Ankleidezimmer	"rel. Luftfeuchte [%.1f %%]" <humidity>   (gRelHumidityOG, OG_Ankleide, RelHumidityOG)		{ knx="5.001:12/3/20" }
/* Number RelHumidity_OG_Badewanne		"rel. Luftfeuchte [%.1f %%]" <humidity>   (gRelHumidityOG, EG_Kind2)  						{ knx="5.001:12/3/21" } */
Number RelHumidity_Garage				"rel. Luftfeuchte [%.1f %%]" <humidity>   (Garage)  										{ knx="5.001:12/3/22" }
Number RelHumidity_KG_Vorflur			"rel. Luftfeuchte [%.1f %%]" <humidity>   (gRelHumidityKG, KG_Vorflur, RelHumidityKG)  		{ knx="5.001:12/3/23" }



Group:Number:AVG		RelHumidityOG "Avg. Obergeschoss rel. Luftfeuchte [%.1f %%]"	<humidity>	(gRelHumidityOG)
Group:Number:AVG		RelHumidityEG "Avg. Erdgeschoss rel. Luftfeuchte [%.1f %%]"		<humidity>	(gRelHumidityEG)
Group:Number:AVG		RelHumidityKG "Avg. Keller rel. Luftfeuchte [%.1f %%]"			<humidity>	(gRelHumidityKG)

Any news or support ideas?
best regards Tim

Hello Togehter,

I have the same Problem I think.
With Humidity (9.007) and also the Level of a Valve “5.001”

file.things

Type number        : OG_Ankleide_Temp_stellwert        "OG_Ankleide_Temp_stellwert"               [ ga="5.001: 11/2/3" ]
 Type number        : OG_Ankleide_Luftfeuchtigkeit_Relativ "OG_Ankleide_Luftfeuchtigkeit_Relativ"  [ ga="9.007: 11/5/0" ]

file.items:

Number         OG_Ankleide_Temp_stellwert             "OG_Ankleide_Temp_stellwert"                  <Temperatur>  (gOG_Ankleidei)  ["Level", "Valve"]                     {channel="knx:device:bridge:generic:OG_Ankleide_Temp_stellwert"}
Number         OG_Ankleide_Luftfeuchtigkeit_Relativ   "OG_Ankleide_Luftfeuchtigkeit_Relativ [%.2f %%] "        <Humidity>    (gOG_Ankleide)  ["Measurement", "Humidity"]            {channel="knx:device:bridge:generic:OG_Ankleide_Luftfeuchtigkeit_Relativ"}

Here the Result:
0.39% -> it sould be 39%
1 -> it should be 100%