iobroker-community-adapters / ioBroker.myvbus

ioBroker Adapter for Resol VBus
MIT License
4 stars 3 forks source link

Resol VBus/USB not updating in docker container #508

Closed Felixw1077 closed 8 months ago

Felixw1077 commented 1 year ago

Describe the bug
Adapter is configured as standard and /dev/ttyACM0 is made availabe through portainer for docker. First time start of the adapter the data objects are created but afterwards no update of any value will happen

To Reproduce
Steps to reproduce the behavior:

  1. install ioBroker in docker container with privillaged rights and passthrough of device /dev/ttyACM0
  2. ioBroker started in docker
  3. MyVBus adapter installed in ioBroker and configured as mentioned above
  4. Start MyVBus adapter will create all data object with initial correct values
  5. Automatic Update (60 sec) will not update any information for any data object (all show updated timestamp but no change of data). received data: [] (is empty when only logging info) received data: [{"id":"00_0010_2211_10_0100_000_2_0","name":"Temperature sensor 1","rawValue":10.200000000000001,"deviceName":"DeltaSol CS Plus","deviceId":"0022110010","addressId":8721,"unitId":"DegreesCelsius","unitText":".........] will always show the same entry for every timestamp (details in full log)

Expected behavior
Updated values (esp. "System time" as it logs every min)

Screenshots & Logfiles
image iobroker.2023-04-12.log.gz

Versions:

Additional context
N/A

pdbjjens commented 1 year ago

@Felixw1077 Thank you for your detailed issue report. Although I also have a VBUS/USB adpter running, I can not reproduce your problem, probably because I do not run it in a docker container. So I assume something in your environment must cause the problem. First I would like to ask some questions to understand your environment better:

According to your logfile, you have been running another vbus adapter (iobroker.resol v1.1.6) before starting myvbus v0.2.5 in the same container on the same serial port. Did the iobroker.resol adapter update its objects correctly? Did you start the iobroker.resol adapter again after stopping the myvbus adapter and did the resol adapter update its objects still correctly?

Unfortunately your logfile does not show what happened after myvbus received the first complete data frame. Did the follow-up-frames also contain data or were they all empty []? If they were not empty, was all data in all frames identical? Have there been some additional log messages after the first successfull frame e.g. regarding disconnects or reconnects ? EDIT: Just saw in the logfile, that it contains the answers to these questions already.

Have been running earlier versions of myvbus in the same environment successfully and did this issue show only with v0.2.5 ?

Felixw1077 commented 1 year ago

Dear Jens

Thanks for getting back to me and sorry that I did not reply as I usually do but I was travelling a lot on business. Last weekend I digged into the issue much deeper and I found out that there might be a problem with another installed docker container (homematic) that blocks the ttyACM0 interface after the first start of your (or the resol) vbus adapter.

I will run some more tests and will report back on my findings.

pdbjjens commented 1 year ago

@Felixw1077 Did you make progress on your investigation? It would be interesting for me and other users of the adapter if you would share your findings here. Anyway, please let me know if the problem is solved for you so that it can be closed.

Felixw1077 commented 1 year ago

@pdbjjens Dear Jens, Thanks for reaching out to me again. I traced the error down to the installation of the raspberryMatic which turns off the ttyACM0 on the main system so that it is not available to any other docker installations (interestingly it is only this connection as others e.g. ttyUSB0 are still available). I also checked with them for an explaination but did not receive any answer so far (haven't logged it as a bug but a question) Maybe I check back with them opening an incident. The solution I for the moment is now: Install it on 2 separate systems. I might try to make a clean and manual install of raspberryMatic and check what will happens if I do not disable the port. Let me know if we should close and reopen the thread once I have done the manual install

pdbjjens commented 1 year ago

@Felixw1077 Thank you for your update on this issue. Although currently it seems to me that this is not an issue of the myvbus adapter, I will leave this issue open until you come back with further findings. Just as a reminder, that there still is an investigation ongoing.

pdbjjens commented 8 months ago

Hi, @Felixw1077 Since there has been no feedback from you since some time, I am closing this issue now. Please feel free to reopen it, if you find that myvbus has an issue. Please be aware that I just released a new version 0.3.0.