How to bind KNX to DateTimee item

414 views
Skip to first unread message

ch.ho...@googlemail.com

unread,
Dec 7, 2012, 3:08:23 PM12/7/12
to ope...@googlegroups.com
Hi,

i'm trying to get a DateTime item to work properly with the 1.0 release.

The item is configured as:
DateTime Date "Date and Time: [%1$tA, %1$td.%1$tm.%1$tY %1$tT]" <calendar> { knx="11.001:0/0/3, 10.001:0/0/2" }

When the values are updated on the bus the following events occur:
21:00:00.678 INFO  runtime.busevents[:46] - Date state updated to 1970-01-02T21:00:01
21:00:00.681 INFO  runtime.busevents[:46] - Date state updated to 2012-12-07T00:00:00 

This leaves me with a date but no time, as it is overwritten by the second event.
I'm suspecting a faulty configuration, but don't know it would be correct. Can somebody point me in the right direction?

Best regards ,
Christian

MiG

unread,
Dec 8, 2012, 9:34:18 AM12/8/12
to ope...@googlegroups.com, ch.ho...@googlemail.com
Hi Christian,

I'm not a specialist for KNX environments, but both datapoint types contain 3 octets of data. For details please have a look at KNX Public Standard Documents at http://www.knx.org/downloads-support/downloads/ , please. You'll find a documentation for the datapoint types (currently 03_07_02 Datapoint Types v1.07.00 AS.zip) with details on datapoint types 10.001 and 11.001 on page 34.

Don't get me wrong, but I think you'll just be able to send date or time information but not both of them combined because of the 3 octet encoding. Probably you'll have to send the date and the time information to different GAs.

The item configuration looks ok to me, but how do you update the item state? I've configured my item with additional NTP-binding to update the GA for the timesource automatically.
DateTime Date "Datum / Uhrzeit: [%1$tA, %1$td.%1$tm.%1$tY %1$tT]" <calendar> { ntp="Europe/Berlin:de_DE", knx = "10.001:x/x/x" }

Hopefully somebody else will post a more convenient answer to your question.

Good luck and best regards,
Michael

ch.ho...@googlemail.com

unread,
Dec 8, 2012, 5:43:07 PM12/8/12
to ope...@googlegroups.com, ch.ho...@googlemail.com
Hi Michael,

thanks for your response. It seems that most people only write to the bus - which works fine.
I have a radio controlled Clock attached to the bus, and all Devices synchonize to that - so I'm trying to read the value. As I understand from the document you linked, the KNX binding should only update the date or time if a value is received, but not both as it is the case now, as there is no combined KNX Data Type. I'm not very familiar with the source code - is it possible to achieve something like this?

Best regards,
Christian

Thomas Eichstädt-Engelen

unread,
Dec 10, 2012, 7:46:31 AM12/10/12
to ope...@googlegroups.com
Hi Christian,

thanks for your response. It seems that most people only write to the bus - which works fine.

that's my impression, too :-)

I'm not very familiar with the source code - is it possible to achieve something like this?

Yes, it is. Please fell free to a new issue. We'll see when there is time to implement this (but surely not for 1.1)

Regards,

Thomas E.-E.



--
You received this message because you are subscribed to the Google Groups "openhab" group.
To view this discussion on the web visit https://groups.google.com/d/msg/openhab/-/QhfSQKXon0gJ.
To post to this group, send email to ope...@googlegroups.com.
To unsubscribe from this group, send email to openhab+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openhab?hl=en.

MiG

unread,
Dec 10, 2012, 2:24:45 PM12/10/12
to ope...@googlegroups.com
Hi Thomas,

looks good. Let me know, when I'll be able to give it a try, please.


Regards,
Michael

Thomas Eichstädt-Engelen

unread,
Dec 10, 2012, 2:43:14 PM12/10/12
to ope...@googlegroups.com
so did you create a new item already? Otherwise that topic would be lost ...


To view this discussion on the web visit https://groups.google.com/d/msg/openhab/-/_4yy1wrX-74J.

MiG

unread,
Dec 10, 2012, 5:04:38 PM12/10/12
to ope...@googlegroups.com
Hi Thomas,

no, I' wait for a later version than 1.1 to give it a try.

Regards,
Michael

Kai

unread,
Dec 11, 2012, 12:39:50 PM12/11/12
to ope...@googlegroups.com
Thomas meant a new "issue" not a new "item" - so if you enter an issue here http://code.google.com/p/openhab/issues/list, we can be sure that your request won't get lost :-)

Regards,
Kai
Reply all
Reply to author
Forward
0 new messages