ESP8266-HomeKit-Blinds icon indicating copy to clipboard operation
ESP8266-HomeKit-Blinds copied to clipboard

Problems with buttons

Open gimprota76 opened this issue 2 years ago • 23 comments

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?

gimprota76 avatar Aug 08 '22 08:08 gimprota76

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

Poggibonsi1948 avatar Nov 22 '22 09:11 Poggibonsi1948

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 = HOMEKIT_FLOAT
(_value), \

VA_ARGS

#endif

gimprota76 avatar Nov 22 '22 09:11 gimprota76

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

Poggibonsi1948 avatar Nov 22 '22 23:11 Poggibonsi1948

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!

james-barker-c avatar Jan 05 '23 02:01 james-barker-c

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 avatar Jan 05 '23 23:01 Poggibonsi1948

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 avatar Jan 06 '23 11:01 Poggibonsi1948

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

Poggibonsi1948 avatar Jan 06 '23 11:01 Poggibonsi1948

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 avatar Jan 25 '23 07:01 Poggibonsi1948

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

gimprota76 avatar Jan 25 '23 08:01 gimprota76

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?

Poggibonsi1948 avatar Jan 26 '23 09:01 Poggibonsi1948

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

gimprota76 avatar Jan 26 '23 09:01 gimprota76

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 avatar Jan 26 '23 12:01 Poggibonsi1948

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: @.***>

Poggibonsi1948 avatar Jan 26 '23 12:01 Poggibonsi1948

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

gimprota76 avatar Jan 26 '23 18:01 gimprota76

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: @.***>

Poggibonsi1948 avatar Jan 26 '23 21:01 Poggibonsi1948

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

gimprota76 avatar Feb 02 '23 22:02 gimprota76

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 ?

gimprota76 avatar Feb 04 '23 16:02 gimprota76

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: @.***>

Poggibonsi1948 avatar Feb 04 '23 20:02 Poggibonsi1948

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

kpbicka avatar Feb 21 '23 18:02 kpbicka

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 avatar Feb 21 '23 18:02 gimprota76

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

gimprota76 avatar Apr 02 '23 05:04 gimprota76

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

arkn666l avatar May 09 '23 21:05 arkn666l

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 ?

arkn666l avatar May 25 '23 19:05 arkn666l