# Reworking CUL Config

**URL:** <https://community.openhab.org/t/reworking-cul-config/6446>\
**Category:** Misc\
**Tags:** cul\
**Created:** [January 18, 2016, 9:32pm UTC](https://community.openhab.org/t/reworking-cul-config/6446 "2016-01-18T21:32:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tarioch](https://community.openhab.org/user_avatar/community.openhab.org/tarioch/32/71007_2.png) [@tarioch](https://community.openhab.org/u/tarioch)\
**Post date:** [January 18, 2016, 9:32pm UTC](https://community.openhab.org/t/reworking-cul-config/6446/1 "2016-01-18T21:32:27Z")

</div>

I would like to rework the way config is done in CUL Transport.

Any binding should allow the global configuration such as serial parameters and not each binding implement this on its own (e.g. intertechno binding does not implement baudrate, fs20 does)

In this I would like to get  
[https://github.com/openhab/openhab/issues/3118](https://github.com/openhab/openhab/issues/3118)  
and  
[https://github.com/openhab/openhab/issues/2358](https://github.com/openhab/openhab/issues/2358)  
done.

Is anyone else currently working in this area?  
Should I just do the changes and send a pull request or is there interest for more up front discussion here?  
Anything else besides what’s written here

> <https://github.com/openhab/openhab-distro/blob/main/CONTRIBUTING.md>

?

---

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [January 19, 2016, 2:15am UTC](https://community.openhab.org/t/reworking-cul-config/6446/2 "2016-01-19T02:15:01Z")

</div>

> [@tarioch](#):
>
> Any binding should allow the global configuration such as serial parameters and not each binding implement this on its own

This sounds like it would require changes to the core of openHAB 1. Development on the core of OH 1 has been frozen so this change is unlikely to be considered there. However, many changes are being made to how configuration is done in OH 2. Development discussions for OH 2 are taking place on the [Eclipse SmartHome forum](https://www.eclipse.org/forums/index.php?t=thread&frm_id=271). That is probably a better place to ask this question.

Though I will admit I don’t use any of these bindings nor do I completely understand the problem or the proposed solution. But I do know if it touches the core, you need to discuss it on the OH 2 development forum.

---

<div class="post-metadata">

**Author:** ![tarioch](https://community.openhab.org/user_avatar/community.openhab.org/tarioch/32/71007_2.png) [@tarioch](https://community.openhab.org/u/tarioch)\
**Post date:** [January 19, 2016, 6:19am UTC](https://community.openhab.org/t/reworking-cul-config/6446/3 "2016-01-19T06:19:46Z")

</div>

It actually doesn’t touch any of the core. There’s a transport bundle that the other bundle use and so that one plus the bundles using it would be touched.

---

<div class="post-metadata">

**Author:** ![dirkc](https://community.openhab.org/user_avatar/community.openhab.org/dirkc/32/285_2.png) [@dirkc](https://community.openhab.org/u/dirkc)\
**Post date:** [January 20, 2016, 7:17pm UTC](https://community.openhab.org/t/reworking-cul-config/6446/4 "2016-01-20T19:17:47Z")

</div>

Patrick,

I am using CUL with FHT, FS20, among others. Unfortunately I am not able to get the IDE up and running, so do you plan to enhance the FHT binding, too? If so, I have some requirements and I will offer support with testing and analysis of missing features.

---

<div class="post-metadata">

**Author:** ![tarioch](https://community.openhab.org/user_avatar/community.openhab.org/tarioch/32/71007_2.png) [@tarioch](https://community.openhab.org/u/tarioch)\
**Post date:** [January 21, 2016, 7:17pm UTC](https://community.openhab.org/t/reworking-cul-config/6446/5 "2016-01-21T19:17:46Z")

</div>

My first goal is to at least clean up the config to allow me to configure serial parameters for intertechno. Depending on my time I could probably help doing some other changes if needed, but I only have hardware for intertechno right now.

---

<div class="post-metadata">

**Author:** ![tarioch](https://community.openhab.org/user_avatar/community.openhab.org/tarioch/32/71007_2.png) [@tarioch](https://community.openhab.org/u/tarioch)\
**Post date:** [January 21, 2016, 10:14pm UTC](https://community.openhab.org/t/reworking-cul-config/6446/6 "2016-01-21T22:14:11Z")

</div>

I started now on the refactoring

[https://github.com/openhab/openhab/compare/master...tarioch:2358\_configurable\_serial\_settings\_for\_cul?expand=1](https://github.com/openhab/openhab/compare/master...tarioch:2358_configurable_serial_settings_for_cul?expand=1)

would be great to get some feedback.

I’m also thinking to move the device name into the CULConfig as well that way everything that’s part of the common CUL layer is handled there instead of in each binding. In addition this would make it possible to run some validation based on the type already when the config is done instead of only when the CULHandler is created.
