Skip to content

Instantly share code, notes, and snippets.

@rradillen
rradillen / shelly-ota.md
Created August 18, 2020 15:01
Shelly transparent ota updates in firewalled network.

Prerequisites

  • Being able to create arbitrary A records in your local dns server
  • Run your own webserver that is accessible to the shellies.
  • Run a cron job on the webserver host
  • Curl, JQ and sed.
  • Don't use the shelly cloud

General strategy

I exploit the fact that Shelly's OTA mechanism uses http instead of https to fetch updates.

[
{
"disabled": false,
"id": "3b0a0d3f.f34de2",
"info": "",
"label": "Announce shelly h&t",
"type": "tab"
},
{
"broker": "aeafd68e.b67c08",
### Keybase proof
I hereby claim:
* I am rradillen on github.
* I am rdillen (https://keybase.io/rdillen) on keybase.
* I have a public key whose fingerprint is 6EF2 59D4 60F8 F283 53BF EE60 4CFF 96C0 D818 23B7
To claim this, I am signing this object: