-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example allways returns OFF #55
Comments
I really hope you can answer soon. I am really excited about converting my entire lighting system to this firmware. |
Hi! So sorry, I must've missed your message! What Echo model do you own and have you tried the discovery with the app or by voice? I can try and see if I can reproduce the issue tomorrow :) |
I have 4 echo dot 2's. I tried discovery by voice as well as through the app. It allways shows up as philips device. I tried downgrading the esp8266 package to 2.4.0, but that didn't make a difference either. Also tried the espalexa library version 2.3.3. With this it will only return ON, and won't switch off. Thank you for looking into it. |
Got it. It's likely that you are experiencing #6. You can try to write |
I tried to add the #define etc. to the sketch but then it will not compile for esp8266 (haven't tried yet for esp32) I will now try to downgrade the esp8266 core to 2.3.0 |
YES!!!! Diwngrading to core 2.3.0 worked. Thank you for your help. Do you have any insight on "if" and "when" this will work with the 2.5.0 core? |
Glad that it's working now! If the #define doesn't compile, you probably need to download the ESPAsyncTCP and EspAsyncWebserver libraries. Sorry, forgot to mention that. Newer cores than 2.3.0 don't work becauses Echo Dots (2nd gen) send the wrong content type in their requests. They either work with the async server as described above or once Amazon decides to fix the bug on the Echo side (they already did for Dot Gen3 and big Echos, just gen 2 dots are still problematic). |
Ah, i see. Weird that they only fixed it for the dot 3 and not the 2. I think this issue can be closed. Thanks again! |
Do you happen to have a link to the correct versions of the ESPAsyncTCP and EspAsyncWebserver libraries, aswell as the AsyncTCP for esp32? I tried a couple of versions but I keep getting error messages. |
WiFi Manager works with the standard Esp8266Webserver, and unfortunately is incompatible with the async server (although it should be compatible with core 2.3.0). You could also try using this async version of WiFiManager instead, although I haven't tested it myself: https://github.com/alanswx/ESPAsyncWiFiManager |
Aaaah, thank you, i will try that. |
Still getting errors when I compile the async wifimanager example sketch. See below: `C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:259:32: error: field 'call' has incomplete type 'tcpip_api_call_data'
C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:259:12: note: forward declaration of 'struct tcpip_api_call_data'
C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp: In function 'esp_err_t _tcp_output(tcp_pcb*)': C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:295:70: error: invalid conversion from 'err_t ()(tcpip_api_call_data) {aka signed char ()(tcpip_api_call_data)}' to 'tcpip_api_call_fn {aka signed char ()(tcpip_api_call)}' [-fpermissive]
C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:295:70: error: cannot convert 'tcpip_api_call_data*' to 'tcpip_api_call*' for argument '2' to 'err_t tcpip_api_call(tcpip_api_call_fn, tcpip_api_call*)' C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:259:12: note: class type 'tcpip_api_call_data' is incomplete
C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp: In function 'esp_err_t _tcp_write(tcp_pcb*, const char*, size_t, uint8_t)': C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:311:69: error: invalid conversion from 'err_t ()(tcpip_api_call_data) {aka signed char ()(tcpip_api_call_data)}' to 'tcpip_api_call_fn {aka signed char ()(tcpip_api_call)}' [-fpermissive]
C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:311:69: error: cannot convert 'tcpip_api_call_data*' to 'tcpip_api_call*' for argument '2' to 'err_t tcpip_api_call(tcpip_api_call_fn, tcpip_api_call*)' C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:259:12: note: class type 'tcpip_api_call_data' is incomplete
C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp: In function 'esp_err_t _tcp_recved(tcp_pcb*, size_t)': C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:326:70: error: invalid conversion from 'err_t ()(tcpip_api_call_data) {aka signed char ()(tcpip_api_call_data)}' to 'tcpip_api_call_fn {aka signed char ()(tcpip_api_call)}' [-fpermissive]
C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:326:70: error: cannot convert 'tcpip_api_call_data*' to 'tcpip_api_call*' for argument '2' to 'err_t tcpip_api_call(tcpip_api_call_fn, tcpip_api_call*)' C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:259:12: note: class type 'tcpip_api_call_data' is incomplete
C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp: In function 'esp_err_t _tcp_connect(tcp_pcb*, ip_addr_t*, uint16_t, tcp_connected_fn)': C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:342:71: error: invalid conversion from 'err_t ()(tcpip_api_call_data) {aka signed char ()(tcpip_api_call_data)}' to 'tcpip_api_call_fn {aka signed char ()(tcpip_api_call)}' [-fpermissive]
C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:342:71: error: cannot convert 'tcpip_api_call_data*' to 'tcpip_api_call*' for argument '2' to 'err_t tcpip_api_call(tcpip_api_call_fn, tcpip_api_call*)' C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:259:12: note: class type 'tcpip_api_call_data' is incomplete
C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp: In function 'esp_err_t _tcp_close(tcp_pcb*)': C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:356:69: error: invalid conversion from 'err_t ()(tcpip_api_call_data) {aka signed char ()(tcpip_api_call_data)}' to 'tcpip_api_call_fn {aka signed char ()(tcpip_api_call)}' [-fpermissive]
C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:356:69: error: cannot convert 'tcpip_api_call_data*' to 'tcpip_api_call*' for argument '2' to 'err_t tcpip_api_call(tcpip_api_call_fn, tcpip_api_call*)' C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:259:12: note: class type 'tcpip_api_call_data' is incomplete
C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp: In function 'esp_err_t _tcp_abort(tcp_pcb*)': C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:371:69: error: invalid conversion from 'err_t ()(tcpip_api_call_data) {aka signed char ()(tcpip_api_call_data)}' to 'tcpip_api_call_fn {aka signed char ()(tcpip_api_call)}' [-fpermissive]
C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:371:69: error: cannot convert 'tcpip_api_call_data*' to 'tcpip_api_call*' for argument '2' to 'err_t tcpip_api_call(tcpip_api_call_fn, tcpip_api_call*)' C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:259:12: note: class type 'tcpip_api_call_data' is incomplete
C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp: In function 'esp_err_t _tcp_bind(tcp_pcb*, ip_addr_t*, uint16_t)': C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:386:68: error: invalid conversion from 'err_t ()(tcpip_api_call_data) {aka signed char ()(tcpip_api_call_data)}' to 'tcpip_api_call_fn {aka signed char ()(tcpip_api_call)}' [-fpermissive]
C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:386:68: error: cannot convert 'tcpip_api_call_data*' to 'tcpip_api_call*' for argument '2' to 'err_t tcpip_api_call(tcpip_api_call_fn, tcpip_api_call*)' C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:259:12: note: class type 'tcpip_api_call_data' is incomplete
C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp: In function 'tcp_pcb* _tcp_listen_with_backlog(tcp_pcb*, uint8_t)': C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:401:70: error: invalid conversion from 'err_t ()(tcpip_api_call_data) {aka signed char ()(tcpip_api_call_data)}' to 'tcpip_api_call_fn {aka signed char ()(tcpip_api_call)}' [-fpermissive]
C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:401:70: error: cannot convert 'tcpip_api_call_data*' to 'tcpip_api_call*' for argument '2' to 'err_t tcpip_api_call(tcpip_api_call_fn, tcpip_api_call*)' C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:259:12: note: class type 'tcpip_api_call_data' is incomplete
C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp: In member function 'void AsyncClient::_dns_found(ip_addr*)': C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:643:33: error: invalid use of incomplete type 'struct ip_addr'
In file included from C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:24:0: C:\Users\Mano\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.h:46:8: note: forward declaration of 'struct ip_addr' struct ip_addr;
Multiple libraries were found for "WiFi.h" |
Your compilation was for ESP32. The Wifi manager I linked only seems to be compatible with ESP8266 at the moment... does it work for that? |
oh ok, let me check. |
I got it to work! Thanks for your help. |
Awesome, good work! Closing, feel free to reply if you have any more questions :) |
Unrelated to the library itself, but one more question: How do I mix the brightness with the color values? I have a RGB ledstrip connected and all colors work. But how do I correctly subtract the brightness value from the rgb values? I tried to do it like this: red - (255-brightness) but then, when I lower the brightness, some values (depending on the set color) will drop below 0 and I get -128 for example, wich is messing up the colors. so then I tried to stop the values from going lower than 0, but then the color also changes when one or more colors go below 0. here is the section of my sketch where I did all this:
|
I'd recommend you just use a multiplication/division formula here. Try something like:
Should do exactly what you need :) |
Wonderfull! Thank you. |
In the former firmware for my ledstrip controller I had a fade-over function to led the color change graduatly instead of instant. I implemented this function in my current sketch, but somehow the color changes instantly whatever I try. all values go through this function before they're written to "analogWrite" and when I disable this fade function, the ledstrip doesn't lit. I even tried another fade function, hoping it would be something in the code that was misbehaving, but no. same results. function 1 (original)
function 2
|
I opened a new issue for this last question, since it has nothing to do with the original issue and other might benefit from any answers to it. |
Every example I tried (on an ESP32) returns OFF whatever command I give.
I am on a new computer so I have the newest libraries installed and also the newest ESP packages.
I saw other issues about it always returning ON, could this also be related to newer libraries not compatible with the examples?
The text was updated successfully, but these errors were encountered: