AchimPieters / ESP8266-HomeKit-Blinds

ESP8266 - HomeKit Blinds
https://www.studiopieters.nl
MIT License
19 stars 5 forks source link

Problems with buttons #6

Open gimprota76 opened 2 years ago

gimprota76 commented 2 years ago

Hi, I have problems with the buttons, the setup does not work and neither does it go up and down with buttons, I have checked all the connections can you help me?

Poggibonsi1948 commented 2 years ago

In “characteristic_types.h“ on line 33 there is a typo. In the middle of that line just before the backslash insert a CR. Or delete that backslash Recompile and it should run

gimprota76 commented 2 years ago

Thank you, I Am newbie, Can you help me ? How to recompile ?

define HOMEKIT_CHARACTERISTIC_CUSTOM_FACTOR HOMEKIT_CUSTOM_UUID_DBB("F0000001")

define HOMEKIT_DECLARE_CHARACTERISTIC_CUSTOM_FACTOR(_value, ...),

.type = HOMEKIT_CHARACTERISTIC_CUSTOM_FACTOR, \ .description = "Factor", \ .format = homekit_format_float, \ .permissions = homekit_permissions_paired_read \ | homekit_permissions_notify, \ .min_value = (float[]) {0}, \ .max_value = (float[]) {30000}, \ .min_step = (float[]) {1}, \ .value = HOMEKITFLOAT(_value), \

__VA_ARGS__

endif

Poggibonsi1948 commented 2 years ago

You must install the SDK Look here for a very good description https://www.studiopieters.nl/esp-homekit-sdk-full-installation/

james-barker-c commented 1 year ago

Moving .type to a new line doesn't really seem to help much. Compilation seems to fail because of the following line: #define HOMEKIT_DECLARE_CHARACTERISTIC_CUSTOM_FACTOR(value, ...),

Changing the line to: #define HOMEKIT_DECLARE_CHARACTERISTIC_CUSTOM_FACTOR(value, ...),0

Only seems to break things further. Attempted to use the main.bin from: https://github.com/AchimPieters/ESP8266-HomeKit-Venetian-Blinds

Which is a more recent comilation of what i assume is a similar compilation. Having the exact same issue as @gimprota76, no movement from the buttons, no movement from the home app.

Any suggestions or help would be greatly appreciated!

Poggibonsi1948 commented 1 year ago

For me it did the trick.Did you keep the backslash in place?If not it will not compile.Op 5 jan. 2023 om 03:52 heeft james-barker-c @.***> het volgende geschreven: Moving .type to a new line doesn't really seem to help much. Compilation seems to fail because of the following line:

define HOMEKIT_DECLARE_CHARACTERISTIC_CUSTOM_FACTOR(value, ...),

Changing the line to:

define HOMEKIT_DECLARE_CHARACTERISTIC_CUSTOM_FACTOR(value, ...),0

Only seems to break things further. attempted to use the main.bin from: https://github.com/AchimPieters/ESP8266-HomeKit-Venetian-Blinds Which is a more recent comilation of what i assume is a similar compilation. Having the exact same issue as @gimprota76, no movement from the buttons, no movement from the home app. Any suggestions or help would be greatly appreciated!

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

Poggibonsi1948 commented 1 year ago

The bin file is a the object file. You need the source file and compile with the corrected typo in characteristic_types.h I have sent this comment to Achim around a year ago and apparently he did not make any corrections and still no recompiled main.bin

Poggibonsi1948 commented 1 year ago

Maybe try my recompiled version. You can find it on github at Poggibonsi1948/blinds

Poggibonsi1948 commented 1 year ago

Op 5 jan. 2023 om 03:52 heeft james-barker-c @.***> het volgende geschreven: Moving .type to a new line doesn't really seem to help much. Compilation seems to fail because of the following line:

define HOMEKIT_DECLARE_CHARACTERISTIC_CUSTOM_FACTOR(value, ...),

Changing the line to:

define HOMEKIT_DECLARE_CHARACTERISTIC_CUSTOM_FACTOR(value, ...),0

Only seems to break things further. attempted to use the main.bin from: https://github.com/AchimPieters/ESP8266-HomeKit-Venetian-Blinds Which is a more recent comilation of what i assume is a similar compilation. Having the exact same issue as @gimprota76, no movement from the buttons, no movement from the home app. Any suggestions or help would be greatly appreciated!

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

gimprota76 commented 1 year ago

Ciao Poggibonsi1948, sei italiano? Mi aiuti per far funzionare i tasti ? Sono poco esperto mi serve un aiuto Grazie

Poggibonsi1948 commented 1 year ago

Sorry, I am not Italian and my understanding of Italian is very minimal, so if you are able to write in English, then I can communicate easier. I kind of understood what you asked, but can you be more specific?

gimprota76 commented 1 year ago

hello, thanks for your availability, I need an already working main.bin file and the procedure of how to write the main.bin on the esp8266 chip, I used Pieters guide, but his github's bin doesn't work, I can insert another github address with a working main.bin? sorry for my English

Poggibonsi1948 commented 1 year ago

Tell me what are the problemsOp 25 jan. 2023 om 08:43 heeft Paul @.> het volgende geschreven:Op 5 jan. 2023 om 03:52 heeft james-barker-c @.> het volgende geschreven: Moving .type to a new line doesn't really seem to help much. Compilation seems to fail because of the following line:

define HOMEKIT_DECLARE_CHARACTERISTIC_CUSTOM_FACTOR(value, ...),

Changing the line to:

define HOMEKIT_DECLARE_CHARACTERISTIC_CUSTOM_FACTOR(value, ...),0

Only seems to break things further. attempted to use the main.bin from: https://github.com/AchimPieters/ESP8266-HomeKit-Venetian-Blinds Which is a more recent comilation of what i assume is a similar compilation. Having the exact same issue as @gimprota76, no movement from the buttons, no movement from the home app. Any suggestions or help would be greatly appreciated!

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

Poggibonsi1948 commented 1 year ago

Do as follows.1. Reflash the ESP8266 as described in the handout of Achim Pieters.2. With  device in AP mode find 192.168.4.13. Fill in your local network credentials 4. Fill in a different OTA repositoryPoggibonsi1948/Blinds5. OTA binary fileMain.binAnd click on joinWait about 7 to 10 minutes and find the device with Homekit appCode = 123-45-678Good luckOp 26 jan. 2023 om 13:04 heeft pwaldman @.> het volgende geschreven:Tell me what are the problemsOp 25 jan. 2023 om 08:43 heeft Paul @.> het volgende geschreven:Op 5 jan. 2023 om 03:52 heeft james-barker-c @.***> het volgende geschreven: Moving .type to a new line doesn't really seem to help much. Compilation seems to fail because of the following line:

define HOMEKIT_DECLARE_CHARACTERISTIC_CUSTOM_FACTOR(value, ...),

Changing the line to:

define HOMEKIT_DECLARE_CHARACTERISTIC_CUSTOM_FACTOR(value, ...),0

Only seems to break things further. attempted to use the main.bin from: https://github.com/AchimPieters/ESP8266-HomeKit-Venetian-Blinds Which is a more recent comilation of what i assume is a similar compilation. Having the exact same issue as @gimprota76, no movement from the buttons, no movement from the home app. Any suggestions or help would be greatly appreciated!

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

gimprota76 commented 1 year ago

Thanks for the support, now the keys work I tried with a4988 controller and it doesn't work, I ordered on amazon dvr8825, I will update you for now many thanks IMG_7232 IMG_7233

Poggibonsi1948 commented 1 year ago

What are the problems eith the A4988?Did you check the connections between the esp and the a4988?Op 26 jan. 2023 om 19:17 heeft gimprota76 @.***> het volgende geschreven: Thanks for the support, now the keys work I tried with a4988 controller and it doesn't work, I ordered on amazon dvr8825, I will update you for now many thanks

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

gimprota76 commented 1 year ago

C836DF0F-62F1-40E1-AE26-B3C49D4AFBEA Thank you @Poggibonsi1948 , How do you reset Wi-Fi?

gimprota76 commented 1 year ago

HI, there is a bug if the courtain is open and I click the physical button close on homekit it appears opening if the curtain is closed and I click the physical button open on homekit it appears closing, instead of homekit works fine. Can it be solved ?

Poggibonsi1948 commented 1 year ago

I think that you should contact Achim Pieters for that, he wrote this program. I am not a seasoned C programmer Op 4 feb. 2023 om 17:56 heeft gimprota76 @.***> het volgende geschreven: HI, there is a bug if the courtain is open and I click the physical button close on homekit it appears opening if the curtain is closed and I click the physical button open on homekit it appears closing, instead of homekit works fine. Can it be solved ?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

kpbicka commented 1 year ago

HI, there is a bug if the courtain is open and I click the physical button close on homekit it appears opening if the curtain is closed and I click the physical button open on homekit it appears closing, instead of homekit works fine. Can it be solved ?

Just change motor connection pins from 1-2-3-4 to 4-3-2-1 and motor will turn in opposite direction

gimprota76 commented 1 year ago

thanks for the help, if I reverse the pin I also have the rotational direction reversed and it's no longer good for my courtain if I reverse the direction

gimprota76 commented 1 year ago

@Poggibonsi1948 hello, can you make your main Poggibonsi1948\Blinds available again in github ? I have to reprogram an esp Thank you

arkn666l commented 1 year ago

i will try with this, cause is not running thanks @Poggibonsi1948

arkn666l commented 1 year ago

arkngl@ubuntu:~/opt/Espressif/esp-homekit-demo/examples/motor_imr2$ make

CC /home/arkngl/opt/Espressif/esp-homekit-demo/examples/motor_imr2/main.c
In file included from /home/arkngl/opt/Espressif/esp-homekit-demo/examples/motor_imr2/main.c:38:0:
/home/arkngl/opt/Espressif/esp-homekit-demo/examples/motor_imr2/characteristic_types.h:33:66: error: expected expression before ',' token
 #define HOMEKIT_DECLARE_CHARACTERISTIC_CUSTOM_FACTOR(_value, ...),0 \.type = HOMEKIT_CHARACTERISTIC_CUSTOM_FACTOR, \
                                                                  ^
/home/arkngl/opt/Espressif/esp-homekit-demo/components/common/homekit//include/homekit/types.h:277:9: note: in expansion of macro 'HOMEKIT_DECLARE_CHARACTERISTIC_CUSTOM_FACTOR'
         HOMEKIT_DECLARE_CHARACTERISTIC_ ## name( __VA_ARGS__ ) \
         ^
/home/arkngl/opt/Espressif/esp-homekit-demo/examples/motor_imr2/main.c:124:35: note: in expansion of macro 'HOMEKIT_CHARACTERISTIC_'
 homekit_characteristic_t factor = HOMEKIT_CHARACTERISTIC_( CUSTOM_FACTOR, 0 );
                                   ^
/home/arkngl/opt/Espressif/esp-homekit-demo/examples/motor_imr2/characteristic_types.h:33:66: error: stray '\' in program
 #define HOMEKIT_DECLARE_CHARACTERISTIC_CUSTOM_FACTOR(_value, ...),0 \.type = HOMEKIT_CHARACTERISTIC_CUSTOM_FACTOR, \
                                                                  ^
/home/arkngl/opt/Espressif/esp-homekit-demo/components/common/homekit//include/homekit/types.h:277:9: note: in expansion of macro 'HOMEKIT_DECLARE_CHARACTERISTIC_CUSTOM_FACTOR'
         HOMEKIT_DECLARE_CHARACTERISTIC_ ## name( __VA_ARGS__ ) \
         ^
/home/arkngl/opt/Espressif/esp-homekit-demo/examples/motor_imr2/main.c:124:35: note: in expansion of macro 'HOMEKIT_CHARACTERISTIC_'
 homekit_characteristic_t factor = HOMEKIT_CHARACTERISTIC_( CUSTOM_FACTOR, 0 );
                                   ^
/home/arkngl/opt/Espressif/esp-open-rtos/common.mk:217: recipe for target 'build/program//main.o' failed
make: *** [build/program//main.o] Error 1

i think i have the same problem i cant compile... can you help me plis ?