Skip to content
This repository has been archived by the owner on Jan 23, 2025. It is now read-only.

Problems with buttons #6

Open
gimprota76 opened this issue Aug 8, 2022 · 23 comments
Open

Problems with buttons #6

gimprota76 opened this issue Aug 8, 2022 · 23 comments

Comments

@gimprota76
Copy link

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
Copy link

Poggibonsi1948 commented Nov 22, 2022

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
Copy link
Author

gimprota76 commented Nov 22, 2022

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

@Poggibonsi1948
Copy link

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

@james-barker-c
Copy link

james-barker-c commented Jan 5, 2023

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
Copy link

Poggibonsi1948 commented Jan 5, 2023 via email

@Poggibonsi1948
Copy link

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
Copy link

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

@Poggibonsi1948
Copy link

Poggibonsi1948 commented Jan 25, 2023 via email

@gimprota76
Copy link
Author

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

@Poggibonsi1948
Copy link

Poggibonsi1948 commented Jan 26, 2023

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
Copy link
Author

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
Copy link

Poggibonsi1948 commented Jan 26, 2023 via email

@Poggibonsi1948
Copy link

Poggibonsi1948 commented Jan 26, 2023 via email

@gimprota76
Copy link
Author

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
Copy link

Poggibonsi1948 commented Jan 26, 2023 via email

@gimprota76
Copy link
Author

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

@gimprota76
Copy link
Author

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
Copy link

Poggibonsi1948 commented Feb 4, 2023 via email

@kpbicka
Copy link

kpbicka commented Feb 21, 2023

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
Copy link
Author

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
Copy link
Author

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

@arkn666l
Copy link

arkn666l commented May 9, 2023

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

@arkn666l
Copy link

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 ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants