markbegma / homebridge-hdl-buspro

A homebridge plugin to control your devices on the HDL Buspro buses from Home app on iOS.
Apache License 2.0
10 stars 3 forks source link

2 ch Curtain module not working #7

Open PierreBebawy opened 1 year ago

PierreBebawy commented 1 year ago

Describe Your Problem: I tried the relay light module and it ws working fine when i tried the curtain module that i have 21 of them it doesn't seem to work please i need your help would really appreciate it I added all the info correctly When i tried to add the relay curtain as a type there was no channel selection and it didn't work When i added it manually it didn't work too image

markbegma commented 1 year ago

Hi @PierreBebawy ,

do you edit your config.json manually, or are you using a graphical angular UX? it has some problems when you try to modify existing data, so maybe your config was corrupted. it would be nice to have a look at it.

PierreBebawy commented 1 year ago

Hi @markbegma , thanks for the quick response and sorry for the late reply , as you can see my module has 2 channels how can i chose witch channel i can control and this is my config "device_name": "Curtain", "device_address": 5, "device_type": "relaycurtains", "area": 1, "nc": true, "curtains_precision": 5

markbegma commented 1 year ago

No problem, @PierreBebawy, you are right in time for an update i released after 2 years of procrastinating :)

It would be nice to see a full config file, but I think that if you just manually edit "area" to be "channel" it might solve your problem.

PierreBebawy commented 1 year ago

okay will try it later today and send the feedback in case it didn't work will send you the whole config file thank you again for replying

PierreBebawy commented 1 year ago

Hi @markbegma the integration worked fine but i have a small problem Curtains manual switches (the ones connected to hdl drycontact module ) are not working anymore when i disconnected Hoobs it worked again this is my config { "device_name": "Reception Door", "device_address": 33, "device_type": "relaycurtains", "area": 1, "channel": 1, "curtains_precision": 20, "duration": 30 },

markbegma commented 1 year ago

Hi @PierreBebawy , glad we are getting somewhere :)

The thing with curtains is that I do not have them at home, so I coded their logic blindly. There might be bugs I could not test myself, so I might need your help to make everything work.

Considering your problem: I have a suspicion that I did not intend curtains to be controllable from other devices, so currently it works like this: a special variable "pathtogo" determines how long and what direction should curtain move to based on its current position and the one set in the app. Once it reaches 0, a stopping command is sent to relay. The problem is that if you control from somewhere else, this variable remains 0, so my plugin thinks it must stop curtain immediately.

Does your reception door maybe twitch a little each time you want to open it? This would confirm my theory. Also, before fixing this behavior I would really like to know how well does plugin control work. Could you tell me, if it correctly aligns your curtain/door with partial opening percentage you set in Home app? Does it synchronize with Open/Closing/etc. status quickly?

PierreBebawy commented 1 year ago

@markbegma thanks again for the quick response ,yes seems like a progress i just want to explain the problem more first the switches may work after clicking for the 4th 5th time and sometimes it never do as for the twitching it didn't happen as for the hdl app it shows that a signal is sent (close or open ) but i cant control it as for the e curtain module it doesn't show the same signal in the app (no light indicator )

It correctly aligns the curtain with partial opening percentage

i hope i can explain the problem more clearly

markbegma commented 1 year ago

@PierreBebawy good to know it opens correctly! So to summarize:

Did I get it right? Something like a picture or a video of this error might help too, maybe I will get a better idea what your setup looks like.

PierreBebawy commented 1 year ago

@markbegma Yes you got it right the light indicator in the module itself the one beside the letters in the above photo