@BlackAlpha Hmmm. Min is not necessary 0, it can be some value. I think not only about control of rollershutter,
but may be for example water pump. If level reported by LOGO! is negative, i would map it to 0 and send alarm.
May there is a better example for.
Ok. The last thing, we should clear is zpos I’ll take a look on this after analyse a bug reported by @skazi.
Will make a PR, it is time for this
@BlackAlpha, @jens
EDIT: Ok took a look into UDF from Frickelzeugs: Bug reported by @skazi is a little bit harder than I assumed On my opinion, things should reflect more general stuff. For example with “normal” rollershutter you can control water pumps, dimmer or something else can be controlled by LOGO! AM2 AQ extension module. What do you think?
BTW: My UDF for control of rollershutter works a little bit different: I calculate a percentage of rollershutter in UDF (0 is full closed and 100 is full open) and react in openhab dependend on reported percentage value.
I created Item manually and I’m getting: “Can not read data from LOGO!: Data Receiving timeout…”. I thought that it might be FS4 problem but looks like there’s something else wrong with my setup.
@falkena I’m not sure if this is the same problem. The bug says that the REST api returns channel types correctly. In my (test) setup I see only system:* channel type in REST api. There are no other bindings installed.
Yes, i read RTC in extra thread with fixed delta of 1 second. It can be, that, thread quits since no valid data comes within 1 second. Anyway, thank you:-)
EDIT: Can you send me please a 2-3 Min TRACE-Log? Please, activate trace of binding only, I can not reproduce the Problem…
Thank you very much.
thank you for trace I got some clue from and upload new version to https://github.com/falkena/binaries
Please try this one, if “RTC thread got exception: null” error is away now.
EDIT: Please restart openHAB. Simply to copy new version into addons folder will not work.
Hi @falkena
The error is gone from the log with the new version.
I tried to test the new rtc channel but I couldn’t make it work.
Is the rtc channel supposed to be under the bridge thing (i.e. plclogo:device:my_plc_address:rtc)?
The paper UI doesn’t show it anywhere. I also tried manual item definition but it doesn’t display anything. Any hints?