johnlemonse / homebridge-telldus

36 stars 22 forks source link

Window Blind #43

Open Flawl3ssSWE opened 7 years ago

Flawl3ssSWE commented 7 years ago

Hi I've got your code to work with a window blind. But there is some problems with it. For the first is besides it always spining like its going up or down when it's standing still and as second you cant set the procentage. It just ignores it and goes all the way down. Nice work btw. Hope you can fix these things!

mifi commented 7 years ago

IIRC this is a known problem, and because telldus does not report back the state of the blinds. See discussion here: https://github.com/jchnlemon/homebridge-telldus/issues/33

Flawl3ssSWE commented 7 years ago

@mifi ok but shouldnt it be able to do that if you get it to work with the stop button and if you write in a time for it to go down in the code. Could you fix the always spining wheel besides it?

krfr commented 7 years ago

My blinds don't report back status in Telldus. But @Flawl3ssSWE maybe have another devices? I use rollertrol.

Flawl3ssSWE commented 7 years ago

@krfr me too (I have rollertrol). Quick question are you from Sweden and if did you order the blind from m.nu?

krfr commented 7 years ago

Yes, I'm from Sweden. I purchased my tube engines on eBay and not from m.nu. But it's same model I think (it's labeled "BOFU"). Maybe there is som difference that I don't aware of I use Znet Lite V1 and in my case I can't get status from my blinds. But in V2 this maybe work?

Flawl3ssSWE commented 7 years ago

@krfr I just got the v2 today and it doesn't work

krfr commented 7 years ago

Then you probably have only up, down and stop as available commands in telldus.

In telldus you can't tell your blinds to close only, for example, to 50%, but you can hit stop button when you want. In homebridge and Siri there is no stop function for blinds at this moment.

About your first question... I'm not sure if I understand your question or problem correctly. Is it the "spinning progress symbol" in you home app that is spinning and your blinds doesn't move at all?

Flawl3ssSWE commented 7 years ago

Yes its not moving but the wheel by the side of it (in the Home app) is always spinning. @krfr @mifi

krfr commented 7 years ago

Okay. My spin too, but only for a short time and especially when I open the blind. Since you do not receive confirmation from tube engine, Homebridge does not know when the end position has occurred.

mifi commented 7 years ago

I'm not sure if i understand the problem correctly either. Is the problem only that the spinning indicator doesn't go away? And is that really a problem apart from being a cosmetic issue?

Flawl3ssSWE commented 7 years ago

@mifi its always spinning its just in the app

mifi commented 7 years ago

You mean the home app?

Flawl3ssSWE commented 7 years ago

@mifi Yes. but can't you in the code add a section with time for up and for down time. So it can use that to know were it is?

krfr commented 7 years ago

What are your plans to use a function like this? Just curious.

Flawl3ssSWE commented 7 years ago

@krfr my plan is to use it in order to be able to set the % because if you use the down time you can calculate which postion it should have depending on the time

krfr commented 7 years ago

Okey. In my case I have four blinds, and there is differences in run-time from one engine to another. One engine take approximately 15 seconds to close, while another engine take 19 seconds.

But I still don't understand why. Don't you ever want to close your blinds entirely?

Flawl3ssSWE commented 7 years ago

@krfr yes I would like to close them entirely at the night but in the afternoon the sun shines me right in my eyes when I'm at my pc. Then I would like to set it to like half way down.

mifi commented 7 years ago

Then it would have be configurable through the config file, approx how long it would take to open/close. Then we would have to model a virtual blinds device with an assumed state and timers simulating moving/stopping. I don't have time for this now but PR's are welcome. Guess it should be contained in its own node module with a simple api for setting percentage etc.

Flawl3ssSWE commented 7 years ago

@mifi That's exactly what I meant. But I'm not good at coding. When will you have time again?

mifi commented 7 years ago

I cannot give you any estimates. It's a hobby project for me, so it will also depend on my mood. And I don't have any blinds myself. But it's open source, so anyone is welcome to contribute.

Flawl3ssSWE commented 7 years ago

@mifi okay thanks for the help and for the plugin, love it!

Flawl3ssSWE commented 7 years ago

@mifi If you ever will do it I can help you test it. Thanks again