Hi folks,
I just started with OH2 and I’m little bit confused.
I have a full functional selfbuild nanoCUL and tried to integrate it in my fresh installed OH2 (on a debian box)).
As a start I would like to integrate a simple Intertechno Power Switch.
I connected 'minicom to my nanoCUL.
After Pressing ‘on’ on my intertechno remote control CUL responds with
i150015F4
pressing ‘off’ results in
i150014F4
Looks good for me.
I installed ‘Intertechno binding’.
If I’m right there is no graphical way to configure ‘Intertechno devices’. You have to create some config files.
After reading through the web I think I have to configure ‘services’, ‘items’, ‘sitemap’?
But how? That’s the question now.
I configured services/culintertechno.cfg
device=serial:/dev/ttyUSB0
baudrate=38400
High
I’m using a CUL to switch my (Elro or REV) power switches.
Since the Intertechno binding is not a 2.x binding, it doesn’t work with things.
Besides the .cfg you simply create switch items that send specific on and off commands.
Here are my examples:
Switch Elro_Weiss “Elro-Weiss” (EG_Wohnzimmer) {culintertechno=“type=raw;address=00000FFF0F;commandOn=FF;commandOff=F0”} /* Intertechno Code A15, Elro weiß */
Switch REV_A “REV_A” (EG_Flur) {culintertechno=“type=raw;address=000FFF0FFF;commandOn=FF;commandOff=F0”} /REV Dose A , old devices, will toggle on both comands!!!/
I just took your lines and saved it in a file named
test.item in directory items.
After restart nothing changed.
CUL config is NULL, doing nothing
Mmh, finally I expect my ‘Power Switch’ is visible in the ‘PaperUI’ and I can switch it ‘on’ and ‘off’.
I played around with ‘sidemaps’ without success.
My knowledge is on the usage of the Intertechno binding, so I can’t say much about the correct item definition of MAXCUL.
In OH2 each binding has its own cfg file, because of that the starting " maxcul:" in every line has to be deleted.
The setup the DEBUG log for MaxCUL you need the give those commands on the Karaf console:
Can’t say for sure, because I do not use MaxCUL.
But from the error messages it sounds like the CUL is requested to send to much messages in a period ( the CUL firmware respects the limitation for such devices) and therefor messages are discarded. But that is MY GUESS!
I’m using homegear with homematic-binding instead of MAXCUL, so I’m not aware of issues with that.
You can read the reasons for changing the behavior of requesting the credit report here.
I think, it’s no good idea to request a credit report after every arbitrary command.
Back then I thought about a request, called from MAXUL, to explicitly get the credit report or just send a command and handle “credit errors”.
Unfortunately (or luckily), due to a new job, I haven’t had enough time to look into this back then.
thanks for the details. I’m currently struggeling as well with the intertechno binding and getting the status updated in Openhab from an intertechno motion sensor.
I get the status from homegear 01=on 00=off. Unfortunately I’m not able to forward this status to Openhab so that I can use it as a trigger. Could you give some advise of what to do in Openhab with intertechno binding to forward the status change to openhab?
12/31/18 17:03:54.167 Intertechno packet received from 01574D6A (RSSI: -73 dBm): 01
In the openhab logs I have also the warning that CUL config is NULL:
2019-01-01 17:23:08.797 [WARN ] [echno.internal.CULIntertechnoBinding] - The address parameter is deprecated! Please use just commandOn and commandOff.
2019-01-01 17:23:08.801 [WARN ] [echno.internal.CULIntertechnoBinding] - type=raw;commandOn=00000FFF0F1;commandOff=00000FFF0F0
2019-01-01 17:23:08.886 [WARN ] [io.transport.cul.CULLifecycleManager] - CUL config is NULL, doing nothing
2019-01-01 17:23:08.894 [INFO ] [ternal.serial.CULSerialConfigFactory] - Update config, baudrate = 38400
The PR #5329 breaks all maxcul installations (see [#5753]) because the credit10ms state is not updated anymore on start. It also changes the requestCreditReport method to prevent any race coditions. From my point of few it’s save to merge #5686 to get the old behaviour back without any race conditions. Everybody agrees?
After all issues are fixed we can start a new discussion about it’s better to explicitly get the credit report or just send a command and handle “credit errors”, but for the moment we should recover the old interface.