M5Stack PoE Camera board configuration #2
-
Hiya, and thanks for all your work so far with this! I'm currently looking at how to have this flashed to the M5Stack PoE Camera which uses the W5500 for ethernet. Supporting one of the other devices, such as with an IP101, I would need to add something like this to the ESPHome yaml:
Aside from adding what's in the README, is there anything else that needs to go under the ethernet section? Unfortunately I'm just waiting for the flasher to arrive so hoping to get things lined up in advance so when it does I can be ready to go :) |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 15 replies
-
Currently not to add more than what's in the readme. It still lacks lot of the features which are provided by the stock ethernet component. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the prompt response there! I'm unsure about how that'll work with this one as they seem to have removed all WiFi. I'll give that a whirl once the flasher unit arrives in a few days. Thankyou again for all your effort with this support library :) |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
At least two things are wrong. For this component you need the component Also this component requires framework esp32:
framework:
type: esp-idf Im not sure about how far backward compatible it is... so maybe you need at least release 4.x.x of esp-idf. An example for this is also in the readme. |
Beta Was this translation helpful? Give feedback.
-
Thanks for that advice. Made some really good progress! Pinout was slightly different for me, but it was seemingly well enough documented here: Removed the WiFi section given the unit doesn't have it:
However when I flashed the unit over the Type-C USB Downloader device, it powered up and immediately said that the Ethernet link was up for two seconds. It was only 5 seconds later that I actually plugged in the ethernet:
I had to remove the version-specific stuff because ESPHome got annoyed that I was doing it from x86_64 (instead of ARM?) and wouldn't compile. Newer versions didn't have that issue as soon as the esp-idf version pin was removed. Checked in my routers DHCP logs and nothing from that MAC address, 24:d7:eb:38:ac:17 If you're OK to continue to assist troubleshooting, I'd be most grateful for any further help 😊 |
Beta Was this translation helpful? Give feedback.
-
Can you give me the full output and corresponding config yaml (if possible the full without keys and passwords) from the failing compile with the pinned version. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Currently not to add more than what's in the readme. It still lacks lot of the features which are provided by the stock ethernet component.
You can't currently configure anything. It just uses the calculated Mac address of the esp, usually +2 of the wifi address. It currently only works with dhcp for setting the IP address.
And I think I missed to provide the connected state back to esphome. I found some components that only start with a wifi or Ethernet connection don't start. A workaround currently is to "hack" the specific component, or let wifi run in parallel.
As soon I get the time, I will work more on this stuff to get the same feature level as the stock ethernet component. But can…