maximkulkin / esp-homekit-demo

Demo of Apple HomeKit accessory server library
MIT License
809 stars 233 forks source link

sonoff_dual_blinds #271

Closed okanduzyel closed 4 years ago

okanduzyel commented 4 years ago

sonoff_dual_blinds example has a problem. Up-down buttons don't work correctly.

AchimPieters commented 4 years ago

Uwe these buttons: https://github.com/maximkulkin/esp-button

okanduzyel commented 4 years ago

I use exactly these buttons with that schematics (with pull up resistor)

AchimPieters commented 4 years ago

What do they do, or not do?

okanduzyel commented 4 years ago

up button = opens curtain according to code. down button = closes curtain according to code.

Up button never works (gpio 9), Down button works wrong. When curtain closed, up button doesn't response. When curtain opened, up button tries to open where opened curtain.

Gpio settings are same with example and lolin v3 board are new. I don't think it has any problem.

If you have esp device, try it, you will see what I mention.

AchimPieters commented 4 years ago

well I have already: https://github.com/AchimPieters/ESP8266-HomeKit-Blinds and it works just fine. Try my code?

btw: It's not a good idea to use pin nine, see my blog here:https://www.studiopieters.nl/esp8266-pinout/

okanduzyel commented 4 years ago

Now, I am at trip. Maybe next week, I will go back and try your code @AchimPieters

okanduzyel commented 4 years ago

well I have already: https://github.com/AchimPieters/ESP8266-HomeKit-Blinds and it works just fine. Try my code?

btw: It's not a good idea to use pin nine, see my blog here:https://www.studiopieters.nl/esp8266-pinout/

Your example is definitely work! Thank you @AchimPieters

toshibochan commented 4 years ago

@AchimPieters the button is active high or low?

AchimPieters commented 4 years ago

@toshibochan read this: https://github.com/maximkulkin/esp-button