Handle HTTPS requests
This adds the ability for img.src to use https requests. It ignores certificates validation, but allows those using Home Assistant with https to get images delivered to the boards.
Note that https requires
platform = [email protected]
or similar to work properly.
There is no room on the partition to install [email protected], more investigation is needed.
I suspect TLS/SSL doesn't work in other parts of the code (I.e. mqtt or the update from a URL) without either moving forward with the platform or moving backwards. The 2023.07.00 tasmota release appears to be the last one that HTTPS worked for me.
Moving forward likely means dropping OTA support for 4MB boards. Moving backwards is hardly an option since it just makes the problem and work to be done worse.
It’s too bad that boards are still being made with 4MB of flash. Some of the Elecrow devices only have that.
Could one option be to not allow OTA updates for devices with 4MB of flash or does the web flasher work in the same manner requiring twice the app size for flashing?
@sgruby Great feature! At some point in time we have to leave the older, smaller configurations (4MB etc) in order to move onwards. This feature is important, and will extend the versatility of OpenHASP by a lot!
Dropping support for 4MB devices isn't really an option as some of the popular devices have 4MB and new products are still being launched with 4MB...