esphome / feature-requests

ESPHome Feature Request Tracker
https://esphome.io/
420 stars 26 forks source link

Flash with WebSerial polyfill for mobile browsers #2381

Open kennethklee opened 1 year ago

kennethklee commented 1 year ago

Describe the problem you have/What new integration you would like

I'd like to update a device (I gave to a friend) with my mobile phone.

Please describe your use case for this integration and alternatives you've tried:

I don't have a laptop I can bring to my friend.

Tried to flash a device with my mobile phone, but couldn't get dashboard or web.esphome.io to work because mobile browser (Android Chrome) doesn't support WebSerial.

Additional context

There is a WebSerial polyfill that uses WebUSB, which can be used on mobile browsers.

kennethklee commented 5 months ago

this looks to be already done upstream.

https://github.com/espressif/esptool-js/issues/109

kennethklee commented 5 months ago

should be in esptool-js@v0.4.2. whenever there's a release with anything past that, i'll close this.