Shelly-homekit: Flash Script

Created on 24 Sep 2020  路  159Comments  路  Source: mongoose-os-apps/shelly-homekit

@andyblac

Sorry for asking but how do i use the script to flash multiple shellys.
Not sure how to start it by the console.

All 159 comments

in the tools folder type
./flash_script.sh -la to list all devices
./flash_script.sh -a to flash all devices, you can add y so you do not get ask for confirmation ./flash_script.sh -ay
./flash_script.sh -hfor more help on what the script can do.

Screenshot 2020-09-23 at 20 07 27

Tools folder on a shelly device? How to access the folder?
Bot familiar with the console so far.

tools folder in git here https://github.com/mongoose-os-apps/shelly-homekit/blob/master/tools/flash_shelly.sh you need to download or clone the git first

What's wrong?

Installing coreutils...
You may be asked for your password...
Traceback (most recent call last):
10: from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in <main>' 9: from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:inrequire_relative'
8: from /usr/local/Homebrew/Library/Homebrew/global.rb:28:in <top (required)>' 7: from /usr/local/Homebrew/Library/Homebrew/global.rb:28:inrequire'
6: from /usr/local/Homebrew/Library/Homebrew/os.rb:3:in <top (required)>' 5: from /usr/local/Homebrew/Library/Homebrew/os.rb:21:in'
4: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:58:in prerelease?' 3: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:24:inversion'
2: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:24:in new' 1: from /usr/local/Homebrew/Library/Homebrew/os/mac/version.rb:25:ininitialize'
/usr/local/Homebrew/Library/Homebrew/version.rb:368:in initialize': Version value must be a string; got a NilClass () (TypeError) Error: Git must be installed and in your PATH! Traceback (most recent call last): 10: from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in

'
9: from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in require_relative' 8: from /usr/local/Homebrew/Library/Homebrew/global.rb:28:in 7: from /usr/local/Homebrew/Library/Homebrew/global.rb:28:in require' 6: from /usr/local/Homebrew/Library/Homebrew/os.rb:3:in 5: from /usr/local/Homebrew/Library/Homebrew/os.rb:21:in <module:OS>' 4: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:58:inprerelease?'
3: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:24:in version' 2: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:24:innew'
1: from /usr/local/Homebrew/Library/Homebrew/os/mac/version.rb:25:in initialize' /usr/local/Homebrew/Library/Homebrew/version.rb:368:ininitialize': Version value must be a string; got a NilClass () (TypeError)

Installing jq...
You may be asked for your password...
Traceback (most recent call last):
10: from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in <main>' 9: from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:inrequire_relative'
8: from /usr/local/Homebrew/Library/Homebrew/global.rb:28:in <top (required)>' 7: from /usr/local/Homebrew/Library/Homebrew/global.rb:28:inrequire'
6: from /usr/local/Homebrew/Library/Homebrew/os.rb:3:in <top (required)>' 5: from /usr/local/Homebrew/Library/Homebrew/os.rb:21:in'
4: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:58:in prerelease?' 3: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:24:inversion'
2: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:24:in new' 1: from /usr/local/Homebrew/Library/Homebrew/os/mac/version.rb:25:ininitialize'
/usr/local/Homebrew/Library/Homebrew/version.rb:368:in initialize': Version value must be a string; got a NilClass () (TypeError) Error: Git must be installed and in your PATH! Traceback (most recent call last): 10: from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in

'
9: from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in require_relative' 8: from /usr/local/Homebrew/Library/Homebrew/global.rb:28:in 7: from /usr/local/Homebrew/Library/Homebrew/global.rb:28:in require' 6: from /usr/local/Homebrew/Library/Homebrew/os.rb:3:in 5: from /usr/local/Homebrew/Library/Homebrew/os.rb:21:in <module:OS>' 4: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:58:inprerelease?'
3: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:24:in version' 2: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:24:innew'
1: from /usr/local/Homebrew/Library/Homebrew/os/mac/version.rb:25:in initialize' /usr/local/Homebrew/Library/Homebrew/version.rb:368:ininitialize': Version value must be a string; got a NilClass () (TypeError)

OS: Darwin
Scanning for Shelly devices...
/Users/xxx/Documents/GitHub/shelly-homekit/tools/flash_shelly.sh: line 387: timeout: command not found
xxx-MacBook-Pro:tools xxx$ /Users/xxx/Documents/GitHub/shelly-homekit/tools/flash_shelly.sh -a
Installing coreutils...
You may be asked for your password...
Traceback (most recent call last):
10: from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in <main>' 9: from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:inrequire_relative'
8: from /usr/local/Homebrew/Library/Homebrew/global.rb:28:in <top (required)>' 7: from /usr/local/Homebrew/Library/Homebrew/global.rb:28:inrequire'
6: from /usr/local/Homebrew/Library/Homebrew/os.rb:3:in <top (required)>' 5: from /usr/local/Homebrew/Library/Homebrew/os.rb:21:in'
4: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:58:in prerelease?' 3: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:24:inversion'
2: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:24:in new' 1: from /usr/local/Homebrew/Library/Homebrew/os/mac/version.rb:25:ininitialize'
/usr/local/Homebrew/Library/Homebrew/version.rb:368:in initialize': Version value must be a string; got a NilClass () (TypeError) Error: Git must be installed and in your PATH! Traceback (most recent call last): 10: from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in

'
9: from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in require_relative' 8: from /usr/local/Homebrew/Library/Homebrew/global.rb:28:in 7: from /usr/local/Homebrew/Library/Homebrew/global.rb:28:in require' 6: from /usr/local/Homebrew/Library/Homebrew/os.rb:3:in 5: from /usr/local/Homebrew/Library/Homebrew/os.rb:21:in <module:OS>' 4: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:58:inprerelease?'
3: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:24:in version' 2: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:24:innew'
1: from /usr/local/Homebrew/Library/Homebrew/os/mac/version.rb:25:in initialize' /usr/local/Homebrew/Library/Homebrew/version.rb:368:ininitialize': Version value must be a string; got a NilClass () (TypeError)

Installing jq...
You may be asked for your password...
Traceback (most recent call last):
10: from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in <main>' 9: from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:inrequire_relative'
8: from /usr/local/Homebrew/Library/Homebrew/global.rb:28:in <top (required)>' 7: from /usr/local/Homebrew/Library/Homebrew/global.rb:28:inrequire'
6: from /usr/local/Homebrew/Library/Homebrew/os.rb:3:in <top (required)>' 5: from /usr/local/Homebrew/Library/Homebrew/os.rb:21:in'
4: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:58:in prerelease?' 3: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:24:inversion'
2: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:24:in new' 1: from /usr/local/Homebrew/Library/Homebrew/os/mac/version.rb:25:ininitialize'
/usr/local/Homebrew/Library/Homebrew/version.rb:368:in initialize': Version value must be a string; got a NilClass () (TypeError) Error: Git must be installed and in your PATH! Traceback (most recent call last): 10: from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in

'
9: from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in require_relative' 8: from /usr/local/Homebrew/Library/Homebrew/global.rb:28:in 7: from /usr/local/Homebrew/Library/Homebrew/global.rb:28:in require' 6: from /usr/local/Homebrew/Library/Homebrew/os.rb:3:in 5: from /usr/local/Homebrew/Library/Homebrew/os.rb:21:in <module:OS>' 4: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:58:inprerelease?'
3: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:24:in version' 2: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:24:innew'
1: from /usr/local/Homebrew/Library/Homebrew/os/mac/version.rb:25:in initialize' /usr/local/Homebrew/Library/Homebrew/version.rb:368:ininitialize': Version value must be a string; got a NilClass () (TypeError)

OS: Darwin
Scanning for Shelly devices...
/Users/xxx/Documents/GitHub/shelly-homekit/tools/flash_shelly.sh: line 387: timeout: command not found

ok, it seems git command line is required, please try the attached version, and report back if it fixes issue.

Thanks
flash_shelly.sh.zip

Installing coreutils...
You may be asked for your password...
Updating Homebrew...
Traceback (most recent call last):
10: from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in <main>' 9: from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:inrequire_relative'
8: from /usr/local/Homebrew/Library/Homebrew/global.rb:28:in <top (required)>' 7: from /usr/local/Homebrew/Library/Homebrew/global.rb:28:inrequire'
6: from /usr/local/Homebrew/Library/Homebrew/os.rb:3:in <top (required)>' 5: from /usr/local/Homebrew/Library/Homebrew/os.rb:21:in'
4: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:58:in prerelease?' 3: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:24:inversion'
2: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:24:in new' 1: from /usr/local/Homebrew/Library/Homebrew/os/mac/version.rb:25:ininitialize'
/usr/local/Homebrew/Library/Homebrew/version.rb:368:in initialize': Version value must be a string; got a NilClass () (TypeError) Error: Git must be installed and in your PATH! Traceback (most recent call last): 10: from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in

'
9: from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in require_relative' 8: from /usr/local/Homebrew/Library/Homebrew/global.rb:28:in 7: from /usr/local/Homebrew/Library/Homebrew/global.rb:28:in require' 6: from /usr/local/Homebrew/Library/Homebrew/os.rb:3:in 5: from /usr/local/Homebrew/Library/Homebrew/os.rb:21:in <module:OS>' 4: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:58:inprerelease?'
3: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:24:in version' 2: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:24:innew'
1: from /usr/local/Homebrew/Library/Homebrew/os/mac/version.rb:25:in initialize' /usr/local/Homebrew/Library/Homebrew/version.rb:368:ininitialize': Version value must be a string; got a NilClass () (TypeError)

Installing jq...
You may be asked for your password...
Updating Homebrew...
Traceback (most recent call last):
10: from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in <main>' 9: from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:inrequire_relative'
8: from /usr/local/Homebrew/Library/Homebrew/global.rb:28:in <top (required)>' 7: from /usr/local/Homebrew/Library/Homebrew/global.rb:28:inrequire'
6: from /usr/local/Homebrew/Library/Homebrew/os.rb:3:in <top (required)>' 5: from /usr/local/Homebrew/Library/Homebrew/os.rb:21:in'
4: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:58:in prerelease?' 3: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:24:inversion'
2: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:24:in new' 1: from /usr/local/Homebrew/Library/Homebrew/os/mac/version.rb:25:ininitialize'
/usr/local/Homebrew/Library/Homebrew/version.rb:368:in initialize': Version value must be a string; got a NilClass () (TypeError) Error: Git must be installed and in your PATH! Traceback (most recent call last): 10: from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in

'
9: from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in require_relative' 8: from /usr/local/Homebrew/Library/Homebrew/global.rb:28:in 7: from /usr/local/Homebrew/Library/Homebrew/global.rb:28:in require' 6: from /usr/local/Homebrew/Library/Homebrew/os.rb:3:in 5: from /usr/local/Homebrew/Library/Homebrew/os.rb:21:in <module:OS>' 4: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:58:inprerelease?'
3: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:24:in version' 2: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:24:innew'
1: from /usr/local/Homebrew/Library/Homebrew/os/mac/version.rb:25:in initialize' /usr/local/Homebrew/Library/Homebrew/version.rb:368:ininitialize': Version value must be a string; got a NilClass () (TypeError)

OS: Darwin
Scanning for Shelly devices...
/Users/xxx/Documents/GitHub/shelly-homekit/tools/flash_shelly 2.sh: line 411: timeout: command not found

Is this from zip file above ?

Also please I need to see full output including command you used to start

@freddair please try the version in the zip above that should install git before it tries to install coreutils

@andyblac yes I used the zip above and replaced the old .sh in the tools folder. Just did it again (pull the .sh file onto Terminal app, add -ay and hit Enter) - here is the full output. Using MacOS 11 Big Sur Beta by the way... may this be an issue?

Bildschirmfoto 2020-09-26 um 09 49 39

hmm strange, it seems git is still missing, can you run which git in terminal please.

should see something like

Andrews-MacBook-Pro:~ andrewblackburn$ which git
/usr/bin/git

looking good:

Frederiks-MacBook-Pro:~ frederikmueller$ which git
/usr/bin/git

hmm so why does brew not see it. can you try to reboot, and try script again

could also try the following please

cd /usr/local/Homebrew
git pull origin master
brew update && brew upgrade

let me know.

it might have something to do with upgrading to Big Sur, brew might need a update, try the above commands anyway let me know.

I already tried rebooting before, nothing changed. Here is the outcome of your commands above:

Frederiks-MacBook-Pro:~ frederikmueller$ cd /usr/local/Homebrew
Frederiks-MacBook-Pro:Homebrew frederikmueller$ git pull origin master
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Frederiks-MacBook-Pro:Homebrew frederikmueller$ brew update && brew upgrade
Traceback (most recent call last):
    10: from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in `<main>'
     9: from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in `require_relative'
     8: from /usr/local/Homebrew/Library/Homebrew/global.rb:28:in `<top (required)>'
     7: from /usr/local/Homebrew/Library/Homebrew/global.rb:28:in `require'
     6: from /usr/local/Homebrew/Library/Homebrew/os.rb:3:in `<top (required)>'
     5: from /usr/local/Homebrew/Library/Homebrew/os.rb:21:in `<module:OS>'
     4: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:58:in `prerelease?'
     3: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:24:in `version'
     2: from /usr/local/Homebrew/Library/Homebrew/os/mac.rb:24:in `new'
     1: from /usr/local/Homebrew/Library/Homebrew/os/mac/version.rb:25:in `initialize'
/usr/local/Homebrew/Library/Homebrew/version.rb:368:in `initialize': Version value must be a string; got a NilClass () (TypeError)
Error: Git must be installed and in your PATH!

hmm, did you have Xcode installed at any time ? is there an update available for it?

If that doesn't show you an update run:

  sudo rm -rf /Library/Developer/CommandLineTools
  sudo xcode-select --install

Bildschirmfoto 2020-09-26 um 14 19 26

hmmm... Software can't be installed because it's currently not available on the software update server... maybe I really should wait until Big Sur is released.

try opening Xcode app, it may be require to complete Big Sur update.

haha. xcode was not installed. now loading...
thanks @andyblac

Xcode should not be needed for script, but Big Sur thinks you previously had it installed, so it must have need to be updated. anyway let me know if script works when installed.

now it worked! But it only found 2 of 3 shelly devices in my network - why could this be?

hmmm, strange what does
timeout 2 dns-sd -B _http .

report ?

Now I see: Could not resolve host: shelly1-8CAAB505BEF3

Frederiks-MacBook-Pro:Homebrew frederikmueller$ /Users/frederikmueller/Documents/GitHub/shelly-homekit/tools/flash_shelly.sh -a
OS: Darwin
Scanning for Shelly devices...
Could not resolve host: shelly1-8CAAB505BEF3

Host: shelly1-8CAAB505BF22
Model: Shelly1
Current: HomeKit 2.1.8
Latest: HomeKit 2.1.8
Does not need updating...

Host: shelly1-8CAAB5061CC9
Model: Shelly1
Current: HomeKit 2.1.8
Latest: HomeKit 2.1.8
Does not need updating...
Frederiks-MacBook-Pro:Homebrew frederikmueller$ timeout 2 dns-sd -B _http .
Browsing for _http._tcp
DATE: ---Sat 26 Sep 2020---
15:31:53.115  ...STARTING...
Timestamp     A/R    Flags  if Domain               Service Type         Instance Name
15:31:53.116  Add        3   4 local.               _http._tcp.          shelly1-8CAAB505BEF3
15:31:53.116  Add        3   4 local.               _http._tcp.          shelly1-8CAAB505BF22
15:31:53.116  Add        2   4 local.               _http._tcp.          shelly1-8CAAB5061CC9

I use pi-hole as DNS - but strangely 2 of 3 shellys do work.

I use pi-hole as DNS - but strangely 2 of 3 shellys do work.

can access it via web browser ?

ahh no it's not accessible via web browser and also not responding in HomeKit... but my router shows it being connected. I will need to wait for the night when everybody sleeps so that I can cut the power of the living room ;-)

at least it working now, let me know if you have any more issues, or would like anything adding to it.

@gregDEweb did you get it working ?

@andyblac
Sorry could not will rk on it yet. Hab to leave town for a couple of days, will try it next weekend.

np, no rush, I'll push the fix in the mean time, let me know if works when you return.

@andyblac FYI, in https://github.com/mongoose-os-apps/shelly-homekit/commit/ccc07452f04dec9e1fab1471dde6780faf2c08f5 i added stock_model to Shelly.GetInfo (now that web ui also needs it), so you can use that directly when constructing stock firmware URLs.

I am trying to run the script, and this is what I get.
I am doing something wrong?

I am trying to run the script, and this is what I get.
I am doing something wrong?

Forget about this.
Working!

I am trying to run the script, and this is what I get.
I am doing something wrong?

for others, yeah, it just installing the tools required for script to work.

So far i do not have access to a Linux System anymore just Windows and could not get it to work.

So far i do not have access to a Linux System anymore just Windows and could not get it to work.

Good news working on a total rewrite of script in python that should make it compatible with windows 馃槃

@gregDEweb would you be willing to help test my python version on windows?

@gregDEweb I have completed my python version of the script please give it a test on Windows. It requires Python 3.6 or later.

@andyblac
Yes i will try if it works.
Send me a link and i'll try. I'm pretty busy right now so it might take some days.

ye, np.

script in git in tools folder.

yeah found it sorry. did you try it before? not working so far

not on windows, can you run it with a -v=0 option as well, and post results.

Hey @andyblac,

Thank you for creating this script. I find it really useful and I only have 2 shellys installed (for now, I have 5 more for when I have the time!)

When I run the script, I always get duplicates for my devices.
Any idea?

nb-pvale:tools pedro.vale$ ./flash_shelly.sh -la

OS: Darwin
Scanning for Shelly devices...

Host: shelly1pm-extensao
Model: Shelly1PM
Current: HomeKit 2.2.1
Latest: HomeKit 2.3.0

Host: shelly1pm-extensao
Model: Shelly1PM
Current: HomeKit 2.2.1
Latest: HomeKit 2.3.0

Host: shellyswitch25-sala-persiana
Model: Shelly25
Current: HomeKit 2.3.0
Latest: HomeKit 2.3.0

Host: shellyswitch25-sala-persiana
Model: Shelly25
Current: HomeKit 2.3.0
Latest: HomeKit 2.3.0
nb-pvale:tools pedro.vale$ ./flash_shelly.sh -am keep
OS: Darwin
Scanning for Shelly devices...

Host: shellyswitch25-sala-persiana
Model: Shelly25
Current: HomeKit 2.3.0
Latest: HomeKit 2.3.0
Does not need updating...

Host: shellyswitch25-sala-persiana
Model: Shelly25
Current: HomeKit 2.3.0
Latest: HomeKit 2.3.0
Does not need updating...

Host: shelly1pm-extensao
Model: Shelly1PM
Current: HomeKit 2.2.1
Latest: HomeKit 2.3.0
Do you wish to flash shelly1pm-extensao to firmware version 2.3.0 ? y
Downloading Firmware...
Now Flashing...
  Update applied, rebooting
Successfully flashed shelly1pm-extensao to 2.3.0

Host: shelly1pm-extensao
Model: Shelly1PM
Current: HomeKit 2.3.0
Latest: HomeKit 2.3.0
Does not need updating...
nb-pvale:tools pedro.vale$ 

hmm. can you run it with -v=0 please and post results

ie ./flash_shelly.py -la -v=0

edit: it seems your running the old bash script, try updating to the new python variant.

@andyblac it's working with the python version!
I was just trying the bash one since I was being lazy and didn't want to install/update phython :P

Thank you!

@andyblac it's working with the python version!
I was just trying the bash one since I was being lazy and didn't want to install/update phython :P

Thank you!

haha, np, glad it working 馃槃

I would love to use the script for flashing all of my devices. But to be honest, i'm not really a computer freak.
I downloaded the zip and unpacked the file. Then i run phyton launcher and open in the tools folder the "flash_shelly.py". After that a Terminal window was opened. But nothing happen if i add any of the command in the wiki like ./flash_shelly.py -la . (Xcode is also installed.)

it always appears the following "Failed to lookup version information"
What did i wrong?

A short video tutorial would be great with a step by step manual.

I would love to use the script for flashing all of my devices. But to be honest, i'm not really a computer freak.
I downloaded the zip and unpacked the file. Then i run phyton launcher and open in the tools folder the "flash_shelly.py". After that a Terminal window was opened. But nothing happen if i add any of the command in the wiki like ./flash_shelly.py -la . (Xcode is also installed.)

it always appears the following "Failed to lookup version information"
What did i wrong?

A short video tutorial would be great with a step by step manual.

hi, 1st what OS are you on ? (macOS / Linux / Windows) ?

if your on macOS just open a Terminal window and type

./flash_shelly.py -la -v=0 and post results.

i'm using macOS Catalina

if i use the command that you give me it shows the following

stefan-ryfs-imac:tools stefanryf$ ./flash_shelly.py -la -v=0
app
OS: Darwin
action: list
mode: homekit
do_all: True
dry_run: False
silent_run: False
mode: homekit
version: False
exclude: None
variant: False
verbose: 0
hosts: []
Failed to lookup version information
stefan-ryfs-imac:tools stefanryf$

ok try python3 --version

stefan-ryfs-imac:tools stefanryf$ python3 --version
Python 3.8.3
stefan-ryfs-imac:tools stefanryf$

hmmm, seems to be failing to read info from url, does computer have internet access ?

try this one should tell me which url is failing
flash_shelly.py.zip
unzip it, and run same command.

stefan-ryfs-imac:tools stefanryf$ ./flash_shelly.py -la -v=0
app
OS: Darwin
action: list
mode: homekit
do_all: True
dry_run: False
silent_run: False
mode: homekit
version: False
exclude: None
variant: False
verbose: 0
hosts: []
Failed to lookup Shelly.Cloud version information
https://api.shelly.cloud/files/firmware
stefan-ryfs-imac:tools stefanryf$ python3 --version
Python 3.8.3
stefan-ryfs-imac:tools stefanryf$

does url work in you web browser ?

yes. if i klick on the link the following appears

{"isok":true,"data":{"SHPLG-1":{"url":"http://api.shelly.cloud/firmware/SHPLG-1.zip","version":"20200827-065544/v1.8.3@4a8bc427"},"SHPLG-S":{"url":"http://api.shelly.cloud/firmware/SHPLG-S.zip","version":"20200827-070306/v1.8.3@4a8bc427"},"SHPLG-U1":{"url":"http://api.shelly.cloud/firmware/SHPLG-U1.zip","version":"20200827-070340/v1.8.3@4a8bc427"},"SHPLG2-1":{"url":"http://api.shelly.cloud/firmware/SHPLG2-1.zip","version":"20200827-070415/v1.8.3@4a8bc427"},"SHSW-1":{"url":"http://api.shelly.cloud/firmware/SHSW-1.zip","version":"20200827-065344/v1.8.3@4a8bc427"},"SHSW-21":{"url":"http://api.shelly.cloud/firmware/SHSW-21.zip","version":"20200827-065420/v1.8.3@4a8bc427"},"SHSW-25":{"url":"http://api.shelly.cloud/firmware/SHSW-25.zip","version":"20200827-065456/v1.8.3@4a8bc427"},"SHSW-PM":{"url":"http://api.shelly.cloud/firmware/SHSW-PM.zip","version":"20200827-070450/v1.8.3@4a8bc427"},"SHAIR-1":{"url":"http://api.shelly.cloud/firmware/SHAIR-1.zip","version":"20200812-092044/v1.8.0@8acf41b0"},"SHUNI-1":{"url":"http://api.shelly.cloud/firmware/SHUNI-1.zip","version":"20200812-092537/v1.8.0@8acf41b0"},"SHEM":{"url":"http://api.shelly.cloud/firmware/SHEM.zip","version":"20200813-140346/v1.8.1@1b2a49be"},"SHEM-3":{"url":"http://api.shelly.cloud/firmware/SHEM-3.zip","version":"20200813-140420/v1.8.1@1b2a49be"},"SHSEN-1":{"url":"http://api.shelly.cloud/firmware/SHSEN-1_build.zip","version":"20200717-112934/v1.7.7@a02db0b8"},"SHGS-1":{"url":"http://api.shelly.cloud/firmware/SHGS-1.zip","version":"20200812-092502/v1.8.0@8acf41b0"},"SHSM-01":{"url":"http://api.shelly.cloud/firmware/SHSM-01.zip","version":"20200812-091144/v1.8.0@8acf41b0"},"SHHT-1":{"url":"http://api.shelly.cloud/firmware/SHHT-1.zip","version":"20200812-091311/v1.8.0@8acf41b0"},"SHWT-1":{"url":"http://api.shelly.cloud/firmware/SHWT-1.zip","version":"20200812-091355/v1.8.0@8acf41b0"},"SHDW-1":{"url":"http://api.shelly.cloud/firmware/SHDW-1.zip","version":"20200818-120325/v1.8.2@36539b0b","beta_url":"http://api.shelly.cloud/firmware/rc/SHDW-1.zip","beta_ver":"20200814-174756/v1.8.2-rc1@59a25feb"},"SHDW-2":{"url":"http://api.shelly.cloud/firmware/SHDW-2.zip","version":"20200818-120407/v1.8.2@36539b0b","beta_url":"http://api.shelly.cloud/firmware/rc/SHDW-2.zip","beta_ver":"20200814-174839/v1.8.2-rc1@59a25feb"},"SHSPOT-1":{"url":"http://api.shelly.cloud/firmware/SHSPOT-1.zip","version":"20200812-090754/v1.8.0@8acf41b0"},"SHCL-255":{"url":"http://api.shelly.cloud/firmware/compatibility/SHCL-255/0.2.0-73a40eef.zip","version":"20180116-161402/v0.2.0@73a40eef"},"SHBLB-1":{"url":"http://api.shelly.cloud/firmware/SHBLB-1.zip","version":"20200812-090503/v1.8.0@8acf41b0"},"SHCB-1":{"url":"http://api.shelly.cloud/firmware/SHCB-1.zip","version":"20200812-090429/v1.8.0@8acf41b0"},"SHRGBW2":{"url":"http://api.shelly.cloud/firmware/SHRGBW2.zip","version":"20200827-070122/v1.8.3@4a8bc427"},"SHRGBWW-01":{"url":"http://api.shelly.cloud/firmware/SHRGBWW-01.zip","version":"20200827-065125/v1.8.3@4a8bc427"},"SH2LED-1":{"url":"http://api.shelly.cloud/firmware/SH2LED-1.zip","version":"20200812-090719/v1.8.0@8acf41b0"},"SHDM-1":{"url":"http://api.shelly.cloud/firmware/SHDM-1.zip","version":"20201007-085347/v1.8.5@5fbcbaa3"},"SHDM-2":{"url":"http://api.shelly.cloud/firmware/SHDM-2.zip","version":"20201007-085431/v1.8.5@5fbcbaa3"},"SHDIMW-1":{"url":"http://api.shelly.cloud/firmware/SHDIMW-1.zip","version":"20200812-092244/v1.8.0@8acf41b0"},"SHVIN-1":{"url":"http://api.shelly.cloud/firmware/SHVIN-1.zip","version":"20200827-065016/v1.8.3@4a8bc427"},"SHBDUO-1":{"url":"http://api.shelly.cloud/firmware/SHBDUO-1.zip","version":"20200827-065050/v1.8.3@4a8bc427"},"SHBTN-1":{"url":"http://api.shelly.cloud/firmware/SHBTN-1.zip","version":"20200827-070047/v1.8.3@4a8bc427"},"SHIX3-1":{"url":"http://api.shelly.cloud/firmware/SHIX3-1.zip","version":"20200827-070910/v1.8.3@4a8bc427"}}}

ok try pip3 install requests and pip3 install zeroconfin terminal

then try script again.

stefan-ryfs-imac:tools stefanryf$ pip3 install requests
Requirement already satisfied: requests in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (2.24.0)
Requirement already satisfied: chardet<4,>=3.0.2 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from requests) (3.0.4)
Requirement already satisfied: idna<3,>=2.5 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from requests) (2.10)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from requests) (1.25.10)
Requirement already satisfied: certifi>=2017.4.17 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from requests) (2020.6.20)
WARNING: You are using pip version 19.2.3, however version 20.2.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
stefan-ryfs-imac:tools stefanryf$ pip3 install zeroconf
Requirement already satisfied: zeroconf in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (0.28.6)
Requirement already satisfied: ifaddr>=0.1.7 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from zeroconf) (0.1.7)
WARNING: You are using pip version 19.2.3, however version 20.2.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
stefan-ryfs-imac:tools stefanryf$ ./flash_shelly.py -la -v=0
app
OS: Darwin
action: list
mode: homekit
do_all: True
dry_run: False
silent_run: False
mode: homekit
version: False
exclude: None
variant: False
verbose: 0
hosts: []
Failed to lookup Shelly.Cloud version information
https://api.shelly.cloud/files/firmware
stefan-ryfs-imac:tools stefanryf$

hmm ok, try this one, it will also fail, but should tell me why.
flash_shelly.py.zip

stefan-ryfs-imac:tools stefanryf$ ./flash_shelly.py -la -v=0
app
OS: Darwin
action: list
mode: homekit
do_all: True
dry_run: False
silent_run: False
mode: homekit
version: False
exclude: None
variant: False
verbose: 0
hosts: []
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 1350, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/http/client.py", line 1240, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/http/client.py", line 1286, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/http/client.py", line 1235, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/http/client.py", line 1006, in _send_output
self.send(msg)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/http/client.py", line 946, in send
self.connect()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/http/client.py", line 1409, in connect
self.sock = self._context.wrap_socket(self.sock,
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/ssl.py", line 500, in wrap_socket
return self.sslsocket_class._create(
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/ssl.py", line 1040, in _create
self.do_handshake()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/ssl.py", line 1309, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./flash_shelly.py", line 470, in
with urllib.request.urlopen("https://api.shelly.cloud/files/firmware") as fp:
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 525, in open
response = self._open(req, data)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 542, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 502, in _call_chain
result = func(*args)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 1393, in https_open
return self.do_open(http.client.HTTPSConnection, req,
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 1353, in do_open
raise URLError(err)
urllib.error.URLError: stefan-ryfs-imac:tools stefanryf$

strange, you using DNS proxies or anything ?

try with this, i've drop https to http might help for you.
flash_shelly.py.zip

also could try this brew link python3 try this 1st, if not help, try above version.

this version shows the following. for me it looks like 1 shelly out of 24 appears with the firmware.

stefan-ryfs-imac:tools stefanryf$ ./flash_shelly.py -la -v=0
app
OS: Darwin
action: list
mode: homekit
do_all: True
dry_run: False
silent_run: False
mode: homekit
version: False
exclude: None
variant: False
verbose: 0
hosts: []

device_scan
hosts: []
action: list
do_all: True
dry_run: False
silent_run: False
mode: homekit
exclude: None
version: False
variant: False
ffw: False
Scanning for Shelly devices...

HOST: SonosLibraryServer True
HOST: shelly1-BCDDC277704D True
device_test: ['SonosLibraryServer', 'shelly1-BCDDC277704D']

probe_info
device: SonosLibraryServer.local
host: SonosLibraryServer
action: list
dry_run: False
silent_run: False
mode: homekit
exclude: None
version: False
ffw: False
variant: False
Could not resolve host: SonosLibraryServer

probe_info
device: shelly1-BCDDC277704D.local
host: shelly1-BCDDC277704D
action: list
dry_run: False
silent_run: False
mode: homekit
exclude: None
version: False
ffw: False
variant: False
flash_mode: homekit

Host: shelly1-BCDDC277704D
Model: Shelly1
Current: HomeKit 2.2.1
Latest: HomeKit 2.3.0
D_URL: https://rojer.me/files/shelly/2.3.0/shelly-homekit-Shelly1.zip

did try with brew link python3 ? and original script?

"brew link python3" use as command?

stefan-ryfs-imac:tools stefanryf$ brew link python3
Error: No such keg: /usr/local/Cellar/[email protected]
stefan-ryfs-imac:tools stefanryf$

ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate

this looks like the necessary trust root is missing or something is messing with traffic.

does curl work? try this:
curl -v https://api.shelly.cloud/files/firmware

post output here

looks like

`stefan-ryfs-imac:tools stefanryf$ curl -v https://api.shelly.cloud/files/firmware

  • Trying 23.251.142.183...
  • TCP_NODELAY set
  • Connected to api.shelly.cloud (23.251.142.183) port 443 (#0)
  • ALPN, offering h2
  • ALPN, offering http/1.1
  • successfully set certificate verify locations:
  • CAfile: /etc/ssl/cert.pem
    CApath: none
  • TLSv1.2 (OUT), TLS handshake, Client hello (1):
  • TLSv1.2 (IN), TLS handshake, Server hello (2):
  • TLSv1.2 (IN), TLS handshake, Certificate (11):
  • TLSv1.2 (IN), TLS handshake, Server key exchange (12):
  • TLSv1.2 (IN), TLS handshake, Server finished (14):
  • TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
  • TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
  • TLSv1.2 (OUT), TLS handshake, Finished (20):
  • TLSv1.2 (IN), TLS change cipher, Change cipher spec (1):
  • TLSv1.2 (IN), TLS handshake, Finished (20):
  • SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
  • ALPN, server accepted to use http/1.1
  • Server certificate:
  • subject: OU=Domain Control Validated; OU=EssentialSSL Wildcard; CN=*.shelly.cloud
  • start date: Dec 1 00:00:00 2017 GMT
  • expire date: Dec 8 23:59:59 2020 GMT
  • subjectAltName: host "api.shelly.cloud" matched cert's "*.shelly.cloud"
  • issuer: C=GB; ST=Greater Manchester; L=Salford; O=COMODO CA Limited; CN=COMODO RSA Domain Validation Secure Server CA
  • SSL certificate verify ok.

GET /files/firmware HTTP/1.1
Host: api.shelly.cloud
User-Agent: curl/7.64.1
Accept: /

< HTTP/1.1 200 OK
< Server: nginx/1.14.0 (Ubuntu)
< Date: Thu, 15 Oct 2020 17:09:07 GMT
< Content-Type: application/json
< Transfer-Encoding: chunked
< Connection: keep-alive
< Access-Control-Allow-Origin: *
< Access-Control-Allow-Methods: GET,POST,OPTIONS
< Access-Control-Allow-Headers: X-CustomHeader,Keep-Alive,User-Agent,Cache-Control,Content-Type,Authorization
< Access-Control-Expose-Headers: X-CustomHeader,Keep-Alive,User-Agent,Cache-Control,Content-Type,Authorization
<

@Ryf81 can your try unzip this and run in terminal python3 Install_Certificates.command.py
Install_Certificates.command.py.zip
then try original script again.

@andyblac now it shows all of my devices. unfortunately i updated them device by device in the meantime and can't check if the automatic update script is working for me.

I tried the command "./flash_shelly.py -am keep" anyway -> see below (at the end) the outcome

stefan-ryfs-imac:tools stefanryf$ python3 Install_Certificates.command.py
-- pip install --upgrade certifi
Requirement already up-to-date: certifi in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (2020.6.20)
WARNING: You are using pip version 19.2.3, however version 20.2.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
-- removing any existing file or link
-- creating symlink to certifi certificate bundle
-- setting permissions
-- update complete
stefan-ryfs-imac:tools stefanryf$ ./flash_shelly.py -la
Scanning for Shelly devices...

/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/zeroconf/__init__.py:1609: FutureWarning: <__main__.MyListener object at 0x7fb1e6a8e640> has no update_service method. Provide one (it can be empty if you don't care about the updates), it'll become mandatory.
warnings.warn(
Could not resolve host: SonosLibraryServer
Host: shelly1-500291EFFB8A
Model: Shelly1
Current: HomeKit 2.3.0
Latest: HomeKit 2.3.0

Host: shelly1-500291F01BB2
Model: Shelly1
Current: HomeKit 2.3.0
Latest: HomeKit 2.3.0

Host: shelly1-68C63AFAFD29
Model: Shelly1
Current: HomeKit 2.3.0
Latest: HomeKit 2.3.0

Host: shelly1-A4CF12F3E6FE
Model: Shelly1
Current: HomeKit 2.3.0
Latest: HomeKit 2.3.0

Host: shelly1-A4CF12F3F070
Model: Shelly1
Current: HomeKit 2.3.0
Latest: HomeKit 2.3.0

Host: shelly1-A4CF12F4198D
Model: Shelly1
Current: HomeKit 2.3.0
Latest: HomeKit 2.3.0

Host: shelly1-A4CF12F420D5
Model: Shelly1
Current: HomeKit 2.3.0
Latest: HomeKit 2.3.0

Host: shelly1-A4CF12F42828
Model: Shelly1
Current: HomeKit 2.3.0
Latest: HomeKit 2.3.0

Host: shelly1-A4CF12F42AAD
Model: Shelly1
Current: HomeKit 2.3.0
Latest: HomeKit 2.3.0

Host: shelly1-A4CF12F47C56
Model: Shelly1
Current: HomeKit 2.3.0
Latest: HomeKit 2.3.0

Host: shelly1-A4CF12F491C6
Model: Shelly1
Current: HomeKit 2.3.0
Latest: HomeKit 2.3.0

Host: shelly1-BCDDC277413A
Model: Shelly1
Current: HomeKit 2.3.0
Latest: HomeKit 2.3.0

Host: shelly1-BCDDC2774B67
Model: Shelly1
Current: HomeKit 2.3.0
Latest: HomeKit 2.3.0

Host: shelly1-BCDDC277704D
Model: Shelly1
Current: HomeKit 2.3.0
Latest: HomeKit 2.3.0

Host: shelly1-BCDDC2777C98
Model: Shelly1
Current: HomeKit 2.3.0
Latest: HomeKit 2.3.0

Host: shelly1-BCDDC27785DD
Model: Shelly1
Current: HomeKit 2.3.0
Latest: HomeKit 2.3.0

Host: shelly1-BCDDC277B5EC
Model: Shelly1
Current: HomeKit 2.3.0
Latest: HomeKit 2.3.0

Host: shelly1-BCDDC277BD6E
Model: Shelly1
Current: HomeKit 2.3.0
Latest: HomeKit 2.3.0

Host: shelly1-BCDDC277C8D9
Model: Shelly1
Current: HomeKit 2.3.0
Latest: HomeKit 2.3.0

Host: shelly1-BCDDC277CC4C
Model: Shelly1
Current: HomeKit 2.3.0
Latest: HomeKit 2.3.0

Host: shelly1-BCDDC277CDE1
Model: Shelly1
Current: HomeKit 2.3.0
Latest: HomeKit 2.3.0

Host: shelly1-BCDDC277CE37
Model: Shelly1
Current: HomeKit 2.3.0
Latest: HomeKit 2.3.0

Host: shelly1-BCDDC277D10C
Model: Shelly1
Current: HomeKit 2.3.0
Latest: HomeKit 2.3.0

Host: shelly1-F4CFA2D3A988
Model: Shelly1
Current: HomeKit 2.3.0
Latest: HomeKit 2.3.0

stefan-ryfs-imac:tools stefanryf$ ./flash_shelly.py -am keep
Scanning for Shelly devices...

/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/zeroconf/__init__.py:1609: FutureWarning: <__main__.MyListener object at 0x7fea70297910> has no update_service method. Provide one (it can be empty if you don't care about the updates), it'll become mandatory.
warnings.warn(
Could not resolve host: SonosLibraryServer
stefan-ryfs-imac:tools stefanryf$

i tried it few times more, and somtimes no device is listed and sometimes only a few...... strange

stefan-ryfs-imac:tools stefanryf$ ./flash_shelly.py -la
Scanning for Shelly devices...

/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/zeroconf/__init__.py:1609: FutureWarning: <__main__.MyListener object at 0x7feb9ba8e910> has no update_service method. Provide one (it can be empty if you don't care about the updates), it'll become mandatory.
warnings.warn(
Could not resolve host: SonosLibraryServer
Host: shelly1-A4CF12F4198D
Model: Shelly1
Current: HomeKit 2.3.0
Latest: HomeKit 2.3.0

Host: shelly1-BCDDC277413A
Model: Shelly1
Current: HomeKit 2.3.0
Latest: HomeKit 2.3.0

stefan-ryfs-imac:tools stefanryf$

i tried it few times more, and somtimes no device is listed and sometimes only a few...... strange

stefan-ryfs-imac:tools stefanryf$ ./flash_shelly.py -la
Scanning for Shelly devices...

/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/zeroconf/init.py:1609: FutureWarning: <main.MyListener object at 0x7feb9ba8e910> has no update_service method. Provide one (it can be empty if you don't care about the updates), it'll become mandatory.
warnings.warn(
Could not resolve host: SonosLibraryServer
Host: shelly1-A4CF12F4198D
Model: Shelly1
Current: HomeKit 2.3.0
Latest: HomeKit 2.3.0

Host: shelly1-BCDDC277413A
Model: Shelly1
Current: HomeKit 2.3.0
Latest: HomeKit 2.3.0

stefan-ryfs-imac:tools stefanryf$

ok, i'll add an option to add extra time to scan, @rojer had the same issue during testing phase.

@Ryf81 i have added a new option -t=5, can you play around with the number and report back what number consistanly detects all your devcies ?

flash_shelly.py.zip

@andyblac i have tested different times 5, 10, 30, 60, 120. The result is always different. Sometimes all shellys were detected and sometimes not. i don't see any relationship.

for example i set 120s. all devices appear. i did a second round with the same value, and only 5 appear. In the 3 & 4 round also not all appear. sometimes no device appears, only the following

stefan-ryfs-imac:tools stefanryf$ ./flash_shelly.py -la
Scanning for Shelly devices...

/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/zeroconf/__init__.py:1609: FutureWarning: <__main__.MyListener object at 0x7fbe1b28e910> has no update_service method. Provide one (it can be empty if you don't care about the updates), it'll become mandatory.
warnings.warn(
Could not resolve host: SonosLibraryServer
Traceback (most recent call last):
File "./flash_shelly.py", line 496, in
device_scan(args.hosts, action, args.do_all, args.dry_run, args.silent_run, args.mode, args.exclude, args.version, args.variant, stock_release_info, homekit_release_info)
File "./flash_shelly.py", line 424, in device_scan
probe_info(device + '.local', action, dry_run, silent_run, mode, exclude, version, variant, stock_release_info, homekit_release_info)
File "./flash_shelly.py", line 268, in probe_info
with urllib.request.urlopen(f'http://{device}/rpc/Shelly.GetInfo') as fp:
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 525, in open
response = self._open(req, data)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 542, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 502, in _call_chain
result = func(*args)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 1379, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 1354, in do_open
r = h.getresponse()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/http/client.py", line 1332, in getresponse
response.begin()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/http/client.py", line 303, in begin
version, status, reason = self._read_status()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/http/client.py", line 272, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response
stefan-ryfs-imac:tools stefanryf$

are you on a mesh network ?, sounds like you have network issues, to me.

no, i have no mesh. normal network with two repeaters. all shellys work fine with Homekit in the network. could it be that the Sonos network makes some troubles, since always the following massage appears "Could not resolve host: SonosLibraryServer"

no, i have no mesh. normal network with two repeaters. all shellys work fine with Homekit in the network. could it be that the Sonos network makes some troubles, since always the following massage appears "Could not resolve host: SonosLibraryServer"

no, that is just a message saying it is being ignored.

Hi everyone...
I have tried running the script and am getting these errors.
Can you help me solve it?
Thank you!

Installing zeroconf...
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/3.8'
Consider using the --user option or check the permissions.

WARNING: You are using pip version 19.2.3, however version 20.2.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Hi everyone...
I have tried running the script and am getting these errors.
Can you help me solve it?
Thank you!

Installing zeroconf...
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/3.8'
Consider using the --user option or check the permissions.

WARNING: You are using pip version 19.2.3, however version 20.2.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

hi
trying updating pip by running pip3 install --upgrade pip, then retry script

Thanks @andyblac, but nothing... look.

MacBook-Pro-de-Juanma:~ juanma$ pip3 install --upgrade pip
Collecting pip
Using cached https://files.pythonhosted.org/packages/4e/5f/528232275f6509b1fff703c9280e58951a81abe24640905de621c9f81839/pip-20.2.3-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 19.2.3
Uninstalling pip-19.2.3:
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: 'RECORD'
Consider using the --user option or check the permissions.

WARNING: You are using pip version 19.2.3, however version 20.2.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

ok try again with sudo pip3 install --upgrade pip

MacBook-Pro-de-Juanma:~ juanma$ sudo pip3 install --upgrade pip
Password:
WARNING: The directory '/Users/juanma/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
WARNING: The directory '/Users/juanma/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting pip
Downloading https://files.pythonhosted.org/packages/4e/5f/528232275f6509b1fff703c9280e58951a81abe24640905de621c9f81839/pip-20.2.3-py2.py3-none-any.whl (1.5MB)
|鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 1.5MB 5.1MB/s
Installing collected packages: pip
Found existing installation: pip 19.2.3
Uninstalling pip-19.2.3:
Successfully uninstalled pip-19.2.3
Successfully installed pip-20.2.3
MacBook-Pro-de-Juanma:~ juanma$ /Users/juanma/Dropbox (xxxxxxxx)/Mi Mac (MacBook-Pro-de-JUAN.local)/Desktop/shelly-homekit-master/tools/flash_shelly.py
Installing zeroconf...
Traceback (most recent call last):
File "/Users/juanma/Dropbox (xxxxxxxx)/Mi Mac (MacBook-Pro-de-JUAN.local)/Desktop/shelly-homekit-master/tools/flash_shelly.py", line 87, in
import zeroconf
ModuleNotFoundError: No module named 'zeroconf'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/juanma/Dropbox (xxxxxxxx)/Mi Mac (MacBook-Pro-de-JUAN.local)/Desktop/shelly-homekit-master/tools/flash_shelly.py", line 91, in
import zeroconf
ModuleNotFoundError: No module named 'zeroconf'
MacBook-Pro-de-Juanma:~ juanma$

ok now manually install the 2 required libraries

sudo pip3 install zeroconf
sudo pip3 install requests

and try script.

you may also want to run First Aid in Disk Utility on your drive, to fix any permission errors.

ok now manually install the 2 required libraries

sudo pip3 install zeroconf
sudo pip3 install requests

and try script.

It's working... but this is what I get:

Scanning for Shelly devices...

Traceback (most recent call last):
File "/Users/juanma/Dropbox (xxxxxxx)/Mi Mac (MacBook-Pro-de-JUAN.local)/Desktop/shelly-homekit-master/tools/flash_shelly.py", line 495, in
device_scan(args.hosts, action, args.do_all, args.dry_run, args.silent_run, args.mode, args.exclude, args.version, args.variant, stock_release_info, homekit_release_info)
File "/Users/juanma/Dropbox (xxxxxxx)/Mi Mac (MacBook-Pro-de-JUAN.local)/Desktop/shelly-homekit-master/tools/flash_shelly.py", line 424, in device_scan
probe_info(device + '.local', action, dry_run, silent_run, mode, exclude, version, variant, stock_release_info, homekit_release_info)
File "/Users/juanma/Dropbox (xxxxxxx)/Mi Mac (MacBook-Pro-de-JUAN.local)/Desktop/shelly-homekit-master/tools/flash_shelly.py", line 269, in probe_info
info = json.load(fp)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/json/__init__.py", line 293, in load
return loads(fp.read(),
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/json/__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
MacBook-Pro-de-Juanma:~ juanma$

you may also want to run First Aid in Disk Utility on your drive, to fix any permission errors.

ok! right now!

@juancitomadrid can you run it with -v=0 added thanks.

@juancitomadrid can you run it with -v=0 added thanks.

Like this?

Last login: Sat Oct 17 16:06:21 on ttys000

The default interactive shell is now zsh.
To update your account to use zsh, please run chsh -s /bin/zsh.
For more details, please visit https://support.apple.com/kb/HT208050.
MacBook-Pro-de-Juanma:~ juanma$ /Users/juanma/Dropbox (xxxxxxx)/Mi Mac (MacBook-Pro-de-JUAN.local)/Desktop/shelly-homekit-master/tools/flash_shelly.py -v=0
app
OS: Darwin
action: flash
mode: homekit
do_all: False
dry_run: False
silent_run: False
mode: homekit
version: False
exclude: None
variant: False
verbose: 0
hosts: []
Requires a hostname or {-a|--all}.
usage: flash_shelly.py [-h] [-m {homekit,keep,revert}] [-a] [-l]
[-e [EXCLUDE [EXCLUDE ...]]] [-n] [-y] [-V VERSION]
[--variant VARIANT] [-v {0,1}]
[hosts [hosts ...]]

Shelly HomeKit flashing script utility

positional arguments:
hosts

optional arguments:
-h, --help show this help message and exit
-m {homekit,keep,revert}, --mode {homekit,keep,revert}
Script mode.
-a, --all Run against all the devices on the network.
-l, --list List info of shelly device.
-e [EXCLUDE [EXCLUDE ...]], --exclude [EXCLUDE [EXCLUDE ...]]
Exclude hosts from found devices.
-n, --assume-no Do a dummy run through.
-y, --assume-yes Do not ask any confirmation to perform the flash.
-V VERSION, --version VERSION
Force a particular version.
--variant VARIANT Prerelease variant name.
-v {0,1}, --verbose {0,1}
Enable verbose logging level.
MacBook-Pro-de-Juanma:~ juanma$

I mean add it to your previous command ie

./flash_shelly.py -la -v=0

I mean add it to your previous command ie

./flash_shelly.py -la -v=0

Ok, sorry.
Here what I get. But I don't understand. I have 2 Shelly1 and 1 Shelly2.5

MacBook-Pro-de-Juanma:~ juanma$ /Users/juanma/Dropbox (x)/Mi Mac (MacBook-Pro-de-JUAN.local)/Desktop/shelly-homekit-master/tools/flash_shelly.py -la -v=0
app
OS: Darwin
action: list
mode: homekit
do_all: True
dry_run: False
silent_run: False
mode: homekit
version: False
exclude: None
variant: False
verbose: 0
hosts: []

device_scan
hosts: []
action: list
do_all: True
dry_run: False
silent_run: False
mode: homekit
exclude: None
version: False
variant: False
ffw: False
Scanning for Shelly devices...

HOST: NAS True
HOST: shelly1-E09806951508 True
HOST: shellyswitch25-E09806959294 True
HOST: Salon True
HOST: HP DeskJet 3630 series [CEB15A] False
HOST: Estudio Chancha False
device_test: ['NAS', 'shelly1-E09806951508', 'shellyswitch25-E09806959294', 'Salon']

probe_info
device: NAS.local
host: NAS
action: list
dry_run: False
silent_run: False
mode: homekit
exclude: None
version: False
ffw: False
variant: False
Traceback (most recent call last):
File "/Users/juanma/Dropbox (x)/Mi Mac (MacBook-Pro-de-JUAN.local)/Desktop/shelly-homekit-master/tools/flash_shelly.py", line 495, in
device_scan(args.hosts, action, args.do_all, args.dry_run, args.silent_run, args.mode, args.exclude, args.version, args.variant, stock_release_info, homekit_release_info)
File "/Users/juanma/Dropbox (x)/Mi Mac (MacBook-Pro-de-JUAN.local)/Desktop/shelly-homekit-master/tools/flash_shelly.py", line 424, in device_scan
probe_info(device + '.local', action, dry_run, silent_run, mode, exclude, version, variant, stock_release_info, homekit_release_info)
File "/Users/juanma/Dropbox (x)/Mi Mac (MacBook-Pro-de-JUAN.local)/Desktop/shelly-homekit-master/tools/flash_shelly.py", line 269, in probe_info
info = json.load(fp)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/json/__init__.py", line 293, in load
return loads(fp.read(),
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/json/__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
MacBook-Pro-de-Juanma:~ juanma$

Just pushed a new version of script can you try it, same command

Done

but it only shows me one.

MacBook-Pro-de-Juanma:~ juanma$ /Users/juanma/Dropbox (x)/Mi Mac (MacBook-Pro-de-JUAN.local)/Desktop/shelly-homekit-master/tools/flash_shelly.py -la -v=0
app
OS: Darwin
action: list
mode: homekit
do_all: True
dry_run: False
silent_run: False
mode: homekit
version: False
exclude: None
variant: False
verbose: 0
hosts: []

device_scan
devices: []
action: list
do_all: True
dry_run: False
silent_run: False
mode: homekit
exclude: None
version: False
variant: False
ffw: False
Scanning for Shelly devices...

Valid Hostname: Estudio Chancha False
Valid Hostname: HP DeskJet 3630 series [CEB15A] False
Valid Hostname: shelly1-E09806951508 True
Valid Hostname: NAS True
Exception in thread zeroconf-ServiceBrowser__http._tcp.local._177684:
Traceback (most recent call last):
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/Users/juanma/Library/Python/3.8/lib/python/site-packages/zeroconf/__init__.py", line 1746, in run
self._service_state_changed.fire(
File "/Users/juanma/Library/Python/3.8/lib/python/site-packages/zeroconf/__init__.py", line 1504, in fire
h(*kwargs)
File "/Users/juanma/Library/Python/3.8/lib/python/site-packages/zeroconf/__init__.py", line 1602, in on_change
listener.add_service(
args)
File "/Users/juanma/Dropbox (x)/Mi Mac (MacBook-Pro-de-JUAN.local)/Desktop/shelly-homekit-master/tools/flash_shelly.py", line 138, in add_service
info = get_info(device)
File "/Users/juanma/Dropbox (x)/Mi Mac (MacBook-Pro-de-JUAN.local)/Desktop/shelly-homekit-master/tools/flash_shelly.py", line 104, in get_info
info = json.load(fp)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/json/__init__.py", line 293, in load
return loads(fp.read(),
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/json/__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

parse_info
host: shelly1-E09806951508.local
device: shelly1-E09806951508
model: Shelly1
stock_model: SHSW-1
action: list
dry_run: False
silent_run: False
mode: homekit
exclude: None
version: False
ffw: False
variant: False
flash_mode: homekit

Host: shelly1-E09806951508.local
Model: Shelly1
Current: HomeKit 2.2.1
Latest: HomeKit 2.3.0
D_URL: https://rojer.me/files/shelly/2.3.0/shelly-homekit-Shelly1.zip

Hmm

Try edit script on line https://github.com/mongoose-os-apps/shelly-homekit/blob/master/tools/flash_shelly.py#L432

Try increasing number till it shows all of them report back number that works

Sorry @andyblac... I don't know how to get the file....

Sorry @andyblac... I don't know how to get the file....

just edit file in the tools folder.

Nothing.
Now it doesn't show any. And they are operational.

MacBook-Pro-de-Juanma:~ juanma$ /Users/juanma/Dropbox x)/Mi Mac (MacBook-Pro-de-JUAN.local)/Desktop/shelly-homekit-master/tools/flash_shelly.py -a -v=0
app
OS: Darwin
action: flash
mode: homekit
do_all: True
dry_run: False
silent_run: False
mode: homekit
version: False
exclude: None
variant: False
verbose: 0
hosts: []

device_scan
devices: []
action: flash
do_all: True
dry_run: False
silent_run: False
mode: homekit
exclude: None
version: False
variant: False
ffw: False
Scanning for Shelly devices...

Valid Hostname: NAS True
Exception in thread zeroconf-ServiceBrowser__http._tcp.local._219341:
Traceback (most recent call last):
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/Users/juanma/Library/Python/3.8/lib/python/site-packages/zeroconf/__init__.py", line 1746, in run
self._service_state_changed.fire(
File "/Users/juanma/Library/Python/3.8/lib/python/site-packages/zeroconf/__init__.py", line 1504, in fire
h(*kwargs)
File "/Users/juanma/Library/Python/3.8/lib/python/site-packages/zeroconf/__init__.py", line 1602, in on_change
listener.add_service(
args)
File "/Users/juanma/Dropbox (x)/Mi Mac (MacBook-Pro-de-JUAN.local)/Desktop/shelly-homekit-master/tools/flash_shelly.py", line 138, in add_service
info = get_info(device)
File "/Users/juanma/Dropbox (x)/Mi Mac (MacBook-Pro-de-JUAN.local)/Desktop/shelly-homekit-master/tools/flash_shelly.py", line 104, in get_info
info = json.load(fp)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/json/__init__.py", line 293, in load
return loads(fp.read(),
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/json/__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

is that the latest file from git ?

mmm I think so.
Let me download again.

is that the latest file from git ?

Yes it is.

app
OS: Darwin
action: flash
mode: homekit
do_all: True
dry_run: False
silent_run: False
mode: homekit
version: False
exclude: None
variant: False
verbose: 0
hosts: []

device_scan
devices: []
action: flash
do_all: True
dry_run: False
silent_run: False
mode: homekit
exclude: None
version: False
variant: False
ffw: False
Scanning for Shelly devices...

Valid Hostname: NAS True
Exception in thread zeroconf-ServiceBrowser__http._tcp.local._229082:
Traceback (most recent call last):
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/Users/juanma/Library/Python/3.8/lib/python/site-packages/zeroconf/__init__.py", line 1746, in run
self._service_state_changed.fire(
File "/Users/juanma/Library/Python/3.8/lib/python/site-packages/zeroconf/__init__.py", line 1504, in fire
h(*kwargs)
File "/Users/juanma/Library/Python/3.8/lib/python/site-packages/zeroconf/__init__.py", line 1602, in on_change
listener.add_service(
args)
File "/Users/juanma/Dropbox (x)/Mi Mac (MacBook-Pro-de-JUAN.local)/Desktop/shelly-homekit-master/tools/flash_shelly.py", line 138, in add_service
info = get_info(device)
File "/Users/juanma/Dropbox (x)/Mi Mac (MacBook-Pro-de-JUAN.local)/Desktop/shelly-homekit-master/tools/flash_shelly.py", line 104, in get_info
info = json.load(fp)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/json/__init__.py", line 293, in load
return loads(fp.read(),
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/json/__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
MacBook-Pro-de-Juanma:~ juanma$

ok try with v=1 instead of 0

MacBook-Pro-de-Juanma:~ juanma$ /Users/juanma/Dropbox (x)/Mi Mac (MacBook-Pro-de-JUAN.local)/Desktop/shelly-homekit-master/tools/flash_shelly.py -a -v=1
app
OS: Darwin
action: flash
mode: homekit
do_all: True
dry_run: False
silent_run: False
mode: homekit
version: False
exclude: None
variant: False
verbose: 1
hosts: []

stock_release_info:{'isok': True, 'data': {'SHPLG-1': {'url': 'http://api.shelly.cloud/firmware/SHPLG-1.zip', 'version': '20200827-065544/v1.8.3@4a8bc427'}, 'SHPLG-S': {'url': 'http://api.shelly.cloud/firmware/SHPLG-S.zip', 'version': '20200827-070306/v1.8.3@4a8bc427'}, 'SHPLG-U1': {'url': 'http://api.shelly.cloud/firmware/SHPLG-U1.zip', 'version': '20200827-070340/v1.8.3@4a8bc427'}, 'SHPLG2-1': {'url': 'http://api.shelly.cloud/firmware/SHPLG2-1.zip', 'version': '20200827-070415/v1.8.3@4a8bc427'}, 'SHSW-1': {'url': 'http://api.shelly.cloud/firmware/SHSW-1.zip', 'version': '20200827-065344/v1.8.3@4a8bc427'}, 'SHSW-21': {'url': 'http://api.shelly.cloud/firmware/SHSW-21.zip', 'version': '20200827-065420/v1.8.3@4a8bc427'}, 'SHSW-25': {'url': 'http://api.shelly.cloud/firmware/SHSW-25.zip', 'version': '20200827-065456/v1.8.3@4a8bc427'}, 'SHSW-PM': {'url': 'http://api.shelly.cloud/firmware/SHSW-PM.zip', 'version': '20200827-070450/v1.8.3@4a8bc427'}, 'SHAIR-1': {'url': 'http://api.shelly.cloud/firmware/SHAIR-1.zip', 'version': '20200812-092044/v1.8.0@8acf41b0'}, 'SHUNI-1': {'url': 'http://api.shelly.cloud/firmware/SHUNI-1.zip', 'version': '20200812-092537/v1.8.0@8acf41b0'}, 'SHEM': {'url': 'http://api.shelly.cloud/firmware/SHEM.zip', 'version': '20200813-140346/v1.8.1@1b2a49be'}, 'SHEM-3': {'url': 'http://api.shelly.cloud/firmware/SHEM-3.zip', 'version': '20200813-140420/v1.8.1@1b2a49be'}, 'SHSEN-1': {'url': 'http://api.shelly.cloud/firmware/SHSEN-1_build.zip', 'version': '20200717-112934/v1.7.7@a02db0b8'}, 'SHGS-1': {'url': 'http://api.shelly.cloud/firmware/SHGS-1.zip', 'version': '20200812-092502/v1.8.0@8acf41b0'}, 'SHSM-01': {'url': 'http://api.shelly.cloud/firmware/SHSM-01.zip', 'version': '20200812-091144/v1.8.0@8acf41b0'}, 'SHHT-1': {'url': 'http://api.shelly.cloud/firmware/SHHT-1.zip', 'version': '20200812-091311/v1.8.0@8acf41b0'}, 'SHWT-1': {'url': 'http://api.shelly.cloud/firmware/SHWT-1.zip', 'version': '20200812-091355/v1.8.0@8acf41b0'}, 'SHDW-1': {'url': 'http://api.shelly.cloud/firmware/SHDW-1.zip', 'version': '20200818-120325/v1.8.2@36539b0b', 'beta_url': 'http://api.shelly.cloud/firmware/rc/SHDW-1.zip', 'beta_ver': '20200814-174756/v1.8.2-rc1@59a25feb'}, 'SHDW-2': {'url': 'http://api.shelly.cloud/firmware/SHDW-2.zip', 'version': '20200818-120407/v1.8.2@36539b0b', 'beta_url': 'http://api.shelly.cloud/firmware/rc/SHDW-2.zip', 'beta_ver': '20200814-174839/v1.8.2-rc1@59a25feb'}, 'SHSPOT-1': {'url': 'http://api.shelly.cloud/firmware/SHSPOT-1.zip', 'version': '20200812-090754/v1.8.0@8acf41b0'}, 'SHCL-255': {'url': 'http://api.shelly.cloud/firmware/compatibility/SHCL-255/0.2.0-73a40eef.zip', 'version': '20180116-161402/v0.2.0@73a40eef'}, 'SHBLB-1': {'url': 'http://api.shelly.cloud/firmware/SHBLB-1.zip', 'version': '20200812-090503/v1.8.0@8acf41b0'}, 'SHCB-1': {'url': 'http://api.shelly.cloud/firmware/SHCB-1.zip', 'version': '20200812-090429/v1.8.0@8acf41b0'}, 'SHRGBW2': {'url': 'http://api.shelly.cloud/firmware/SHRGBW2.zip', 'version': '20200827-070122/v1.8.3@4a8bc427'}, 'SHRGBWW-01': {'url': 'http://api.shelly.cloud/firmware/SHRGBWW-01.zip', 'version': '20200827-065125/v1.8.3@4a8bc427'}, 'SH2LED-1': {'url': 'http://api.shelly.cloud/firmware/SH2LED-1.zip', 'version': '20200812-090719/v1.8.0@8acf41b0'}, 'SHDM-1': {'url': 'http://api.shelly.cloud/firmware/SHDM-1.zip', 'version': '20201007-085347/v1.8.5@5fbcbaa3'}, 'SHDM-2': {'url': 'http://api.shelly.cloud/firmware/SHDM-2.zip', 'version': '20201007-085431/v1.8.5@5fbcbaa3'}, 'SHDIMW-1': {'url': 'http://api.shelly.cloud/firmware/SHDIMW-1.zip', 'version': '20200812-092244/v1.8.0@8acf41b0'}, 'SHVIN-1': {'url': 'http://api.shelly.cloud/firmware/SHVIN-1.zip', 'version': '20200827-065016/v1.8.3@4a8bc427'}, 'SHBDUO-1': {'url': 'http://api.shelly.cloud/firmware/SHBDUO-1.zip', 'version': '20200827-065050/v1.8.3@4a8bc427'}, 'SHBTN-1': {'url': 'http://api.shelly.cloud/firmware/SHBTN-1.zip', 'version': '20200827-070047/v1.8.3@4a8bc427'}, 'SHIX3-1': {'url': 'http://api.shelly.cloud/firmware/SHIX3-1.zip', 'version': '20200827-070910/v1.8.3@4a8bc427'}}}

homekit_release_info:[['^2.3.1-.', {'version': '2.3.1-beta2', 'rel_notes': 'https://github.com/mongoose-os-apps/shelly-homekit/issues/142#issuecomment-706702236', 'urls': {'Shelly1': 'https://rojer.me/files/shelly/2.3.1-beta2/shelly-homekit-Shelly1.zip', 'Shelly1PM': 'https://rojer.me/files/shelly/2.3.1-beta2/shelly-homekit-Shelly1PM.zip', 'Shelly2': 'https://rojer.me/files/shelly/2.3.1-beta2/shelly-homekit-Shelly2.zip', 'Shelly25': 'https://rojer.me/files/shelly/2.3.1-beta2/shelly-homekit-Shelly25.zip', 'ShellyPlugS': 'https://rojer.me/files/shelly/2.3.1-beta2/shelly-homekit-ShellyPlugS.zip'}}], ['.', {'version': '2.3.0', 'rel_notes': 'https://github.com/mongoose-os-apps/shelly-homekit/releases/tag/2.3.0', 'urls': {'Shelly1': 'https://rojer.me/files/shelly/2.3.0/shelly-homekit-Shelly1.zip', 'Shelly1PM': 'https://rojer.me/files/shelly/2.3.0/shelly-homekit-Shelly1PM.zip', 'Shelly2': 'https://rojer.me/files/shelly/2.3.0/shelly-homekit-Shelly2.zip', 'Shelly25': 'https://rojer.me/files/shelly/2.3.0/shelly-homekit-Shelly25.zip', 'ShellyPlugS': 'https://rojer.me/files/shelly/2.3.0/shelly-homekit-ShellyPlugS.zip'}}]]

device_scan
devices: []
action: flash
do_all: True
dry_run: False
silent_run: False
mode: homekit
exclude: None
version: False
variant: False
ffw: False
Scanning for Shelly devices...

Valid Hostname: NAS True
Exception in thread zeroconf-ServiceBrowser__http._tcp.local._235742:
Traceback (most recent call last):
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/Users/juanma/Library/Python/3.8/lib/python/site-packages/zeroconf/__init__.py", line 1746, in run
self._service_state_changed.fire(
File "/Users/juanma/Library/Python/3.8/lib/python/site-packages/zeroconf/__init__.py", line 1504, in fire
h(*kwargs)
File "/Users/juanma/Library/Python/3.8/lib/python/site-packages/zeroconf/__init__.py", line 1602, in on_change
listener.add_service(
args)
File "/Users/juanma/Dropbox (Mena+Cruz)/Mi Mac (MacBook-Pro-de-JUAN.local)/Desktop/shelly-homekit-master/tools/flash_shelly.py", line 138, in add_service
info = get_info(device)
File "/Users/juanma/Dropbox (Mena+Cruz)/Mi Mac (MacBook-Pro-de-JUAN.local)/Desktop/shelly-homekit-master/tools/flash_shelly.py", line 104, in get_info
info = json.load(fp)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/json/__init__.py", line 293, in load
return loads(fp.read(),
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/json/__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
device_test: []
MacBook-Pro-de-Juanma:~ juanma$

hmmmm

try with that, same command

flash_shelly.sh.zip

I Try the same command and nothing happens. Then I use -a command only, here two results:

MacBook-Pro-de-Juanma:~ juanma$ /Users/juanma/Dropbox (x)/Mi Mac (MacBook-Pro-de-JUAN.local)/Desktop/flash_shelly.sh -a -v=1
Invalid option
Shelly HomeKit flashing script utility
Usage: /Users/juanma/Dropbox (x)/Mi Mac (MacBook-Pro-de-JUAN.local)/Desktop/flash_shelly.sh -{m|l|a|e|n|y|V|h} {hostname(s) optional}
-m {homekit|revert|keep} Script mode.
-l List info of shelly device.
-a Run against all the devices on the network.
-e Exclude hosts from found devices.
-n Do a dummy run through.
-y Do not ask any confirmation to perform the flash.
-V Force a particular version.
-h This help text.
MacBook-Pro-de-Juanma:~ juanma$ /Users/juanma/Dropbox (x)/Mi Mac (MacBook-Pro-de-JUAN.local)/Desktop/flash_shelly.sh -a
OS: Darwin
Scanning for Shelly devices...
parse error: Invalid numeric literal at line 1, column 7
parse error: Invalid numeric literal at line 1, column 7
parse error: Invalid numeric literal at line 1, column 7

Host: NAS
Model: homekit
Current: HomeKit
Latest: HomeKit Not available
Is not supported yet...
Could not resolve host: Estudio
Could not resolve host: Salon

Host: shelly1-E0980694D9A7
Model: Shelly1
Current: HomeKit 2.3.0
Latest: HomeKit 2.3.0
Does not need updating...

Host: shelly1-E09806951508
Model: Shelly1
Current: HomeKit 2.2.1
Latest: HomeKit 2.3.0
Do you wish to flash shelly1-E09806951508 to firmware version 2.3.0 ? n
Skipping Flash...

Host: shellyswitch25-E09806959294
Model: Shelly25
Current: HomeKit 2.2.1
Latest: HomeKit 2.3.0
Do you wish to flash shellyswitch25-E09806959294 to firmware version 2.3.0 ? n
Skipping Flash...
parse error: Invalid numeric literal at line 1, column 7
parse error: Invalid numeric literal at line 1, column 7
parse error: Invalid numeric literal at line 1, column 7

Host: NAS
Model: homekit
Current: HomeKit
Latest: HomeKit Not available
Is not supported yet...

Host: shelly1-E09806951508
Model: Shelly1
Current: HomeKit 2.2.1
Latest: HomeKit 2.3.0
Do you wish to flash shelly1-E09806951508 to firmware version 2.3.0 ? n
Skipping Flash...
Could not resolve host: Salon
MacBook-Pro-de-Juanma:~ juanma$

Excuse my ignorance.
What is a NAS host? Is it the Synology NAS that I have on my network?

it shoundn't be, it should skipped

Excuse my ignorance.
What is a NAS host? Is it the Synology NAS that I have on my network?

yes

oops gave wrong file
flash_shelly.py.zip

Here what I get:

MacBook-Pro-de-Juanma:~ juanma$ /Users/juanma/Dropbox (x)/Mi Mac (MacBook-Pro-de-JUAN.local)/Desktop/nuevo/flash_shelly.py -a -v=1
app
OS: Darwin
action: flash
mode: homekit
do_all: True
dry_run: False
silent_run: False
mode: homekit
version: False
exclude: None
variant: False
verbose: 1
hosts: []

stock_release_info:{'isok': True, 'data': {'SHPLG-1': {'url': 'http://api.shelly.cloud/firmware/SHPLG-1.zip', 'version': '20200827-065544/v1.8.3@4a8bc427'}, 'SHPLG-S': {'url': 'http://api.shelly.cloud/firmware/SHPLG-S.zip', 'version': '20200827-070306/v1.8.3@4a8bc427'}, 'SHPLG-U1': {'url': 'http://api.shelly.cloud/firmware/SHPLG-U1.zip', 'version': '20200827-070340/v1.8.3@4a8bc427'}, 'SHPLG2-1': {'url': 'http://api.shelly.cloud/firmware/SHPLG2-1.zip', 'version': '20200827-070415/v1.8.3@4a8bc427'}, 'SHSW-1': {'url': 'http://api.shelly.cloud/firmware/SHSW-1.zip', 'version': '20200827-065344/v1.8.3@4a8bc427'}, 'SHSW-21': {'url': 'http://api.shelly.cloud/firmware/SHSW-21.zip', 'version': '20200827-065420/v1.8.3@4a8bc427'}, 'SHSW-25': {'url': 'http://api.shelly.cloud/firmware/SHSW-25.zip', 'version': '20200827-065456/v1.8.3@4a8bc427'}, 'SHSW-PM': {'url': 'http://api.shelly.cloud/firmware/SHSW-PM.zip', 'version': '20200827-070450/v1.8.3@4a8bc427'}, 'SHAIR-1': {'url': 'http://api.shelly.cloud/firmware/SHAIR-1.zip', 'version': '20200812-092044/v1.8.0@8acf41b0'}, 'SHUNI-1': {'url': 'http://api.shelly.cloud/firmware/SHUNI-1.zip', 'version': '20200812-092537/v1.8.0@8acf41b0'}, 'SHEM': {'url': 'http://api.shelly.cloud/firmware/SHEM.zip', 'version': '20200813-140346/v1.8.1@1b2a49be'}, 'SHEM-3': {'url': 'http://api.shelly.cloud/firmware/SHEM-3.zip', 'version': '20200813-140420/v1.8.1@1b2a49be'}, 'SHSEN-1': {'url': 'http://api.shelly.cloud/firmware/SHSEN-1_build.zip', 'version': '20200717-112934/v1.7.7@a02db0b8'}, 'SHGS-1': {'url': 'http://api.shelly.cloud/firmware/SHGS-1.zip', 'version': '20200812-092502/v1.8.0@8acf41b0'}, 'SHSM-01': {'url': 'http://api.shelly.cloud/firmware/SHSM-01.zip', 'version': '20200812-091144/v1.8.0@8acf41b0'}, 'SHHT-1': {'url': 'http://api.shelly.cloud/firmware/SHHT-1.zip', 'version': '20200812-091311/v1.8.0@8acf41b0'}, 'SHWT-1': {'url': 'http://api.shelly.cloud/firmware/SHWT-1.zip', 'version': '20200812-091355/v1.8.0@8acf41b0'}, 'SHDW-1': {'url': 'http://api.shelly.cloud/firmware/SHDW-1.zip', 'version': '20200818-120325/v1.8.2@36539b0b', 'beta_url': 'http://api.shelly.cloud/firmware/rc/SHDW-1.zip', 'beta_ver': '20200814-174756/v1.8.2-rc1@59a25feb'}, 'SHDW-2': {'url': 'http://api.shelly.cloud/firmware/SHDW-2.zip', 'version': '20200818-120407/v1.8.2@36539b0b', 'beta_url': 'http://api.shelly.cloud/firmware/rc/SHDW-2.zip', 'beta_ver': '20200814-174839/v1.8.2-rc1@59a25feb'}, 'SHSPOT-1': {'url': 'http://api.shelly.cloud/firmware/SHSPOT-1.zip', 'version': '20200812-090754/v1.8.0@8acf41b0'}, 'SHCL-255': {'url': 'http://api.shelly.cloud/firmware/compatibility/SHCL-255/0.2.0-73a40eef.zip', 'version': '20180116-161402/v0.2.0@73a40eef'}, 'SHBLB-1': {'url': 'http://api.shelly.cloud/firmware/SHBLB-1.zip', 'version': '20200812-090503/v1.8.0@8acf41b0'}, 'SHCB-1': {'url': 'http://api.shelly.cloud/firmware/SHCB-1.zip', 'version': '20200812-090429/v1.8.0@8acf41b0'}, 'SHRGBW2': {'url': 'http://api.shelly.cloud/firmware/SHRGBW2.zip', 'version': '20200827-070122/v1.8.3@4a8bc427'}, 'SHRGBWW-01': {'url': 'http://api.shelly.cloud/firmware/SHRGBWW-01.zip', 'version': '20200827-065125/v1.8.3@4a8bc427'}, 'SH2LED-1': {'url': 'http://api.shelly.cloud/firmware/SH2LED-1.zip', 'version': '20200812-090719/v1.8.0@8acf41b0'}, 'SHDM-1': {'url': 'http://api.shelly.cloud/firmware/SHDM-1.zip', 'version': '20201007-085347/v1.8.5@5fbcbaa3'}, 'SHDM-2': {'url': 'http://api.shelly.cloud/firmware/SHDM-2.zip', 'version': '20201007-085431/v1.8.5@5fbcbaa3'}, 'SHDIMW-1': {'url': 'http://api.shelly.cloud/firmware/SHDIMW-1.zip', 'version': '20200812-092244/v1.8.0@8acf41b0'}, 'SHVIN-1': {'url': 'http://api.shelly.cloud/firmware/SHVIN-1.zip', 'version': '20200827-065016/v1.8.3@4a8bc427'}, 'SHBDUO-1': {'url': 'http://api.shelly.cloud/firmware/SHBDUO-1.zip', 'version': '20200827-065050/v1.8.3@4a8bc427'}, 'SHBTN-1': {'url': 'http://api.shelly.cloud/firmware/SHBTN-1.zip', 'version': '20200827-070047/v1.8.3@4a8bc427'}, 'SHIX3-1': {'url': 'http://api.shelly.cloud/firmware/SHIX3-1.zip', 'version': '20200827-070910/v1.8.3@4a8bc427'}}}

homekit_release_info:[['^2.3.1-.', {'version': '2.3.1-beta2', 'rel_notes': 'https://github.com/mongoose-os-apps/shelly-homekit/issues/142#issuecomment-706702236', 'urls': {'Shelly1': 'https://rojer.me/files/shelly/2.3.1-beta2/shelly-homekit-Shelly1.zip', 'Shelly1PM': 'https://rojer.me/files/shelly/2.3.1-beta2/shelly-homekit-Shelly1PM.zip', 'Shelly2': 'https://rojer.me/files/shelly/2.3.1-beta2/shelly-homekit-Shelly2.zip', 'Shelly25': 'https://rojer.me/files/shelly/2.3.1-beta2/shelly-homekit-Shelly25.zip', 'ShellyPlugS': 'https://rojer.me/files/shelly/2.3.1-beta2/shelly-homekit-ShellyPlugS.zip'}}], ['.', {'version': '2.3.0', 'rel_notes': 'https://github.com/mongoose-os-apps/shelly-homekit/releases/tag/2.3.0', 'urls': {'Shelly1': 'https://rojer.me/files/shelly/2.3.0/shelly-homekit-Shelly1.zip', 'Shelly1PM': 'https://rojer.me/files/shelly/2.3.0/shelly-homekit-Shelly1PM.zip', 'Shelly2': 'https://rojer.me/files/shelly/2.3.0/shelly-homekit-Shelly2.zip', 'Shelly25': 'https://rojer.me/files/shelly/2.3.0/shelly-homekit-Shelly25.zip', 'ShellyPlugS': 'https://rojer.me/files/shelly/2.3.0/shelly-homekit-ShellyPlugS.zip'}}]]

device_scan
devices: []
action: flash
do_all: True
dry_run: False
silent_run: False
mode: homekit
exclude: None
version: False
variant: False
ffw: False
Scanning for Shelly devices...

Valid Hostname: Estudio Chancha False
Valid Hostname: Salon True
Could not resolve host: Salon.local

Valid Hostname: NAS True
Valid Hostname: shelly1-E09806951508 True
Valid Hostname: shellyswitch25-E09806959294 True
Valid Hostname: shelly1-E0980694D9A7 True
device_test: [{'id': 'shelly1-E09806951508', 'app': 'switch1', 'model': 'Shelly1', 'stock_model': 'SHSW-1', 'host': 'shelly1-E09806951508.local', 'version': '2.2.1', 'fw_build': '20201005-190353/2.2.1-g7a3eb3e-master', 'uptime': 24211, 'wifi_en': True, 'wifi_ssid': 'Soft', 'wifi_pass': '', 'hap_cn': 2, 'hap_running': True, 'hap_paired': True, 'hap_ip_conns_pending': 0, 'hap_ip_conns_active': 6, 'hap_ip_conns_max': 9, 'sys_mode': 0, 'rsh_avail': False, 'debug_en': False, 'components': [{'id': 1, 'type': 0, 'name': 'Shelly SW', 'svc_type': 0, 'in_mode': 1, 'initial': 3, 'state': False, 'auto_off': False, 'auto_off_delay': 0.0}], 'fw_type': 'homekit', 'device_id': 'shelly1-E09806951508'}, {'id': 'shellyswitch25-E09806959294', 'app': 'switch25', 'model': 'Shelly25', 'stock_model': 'SHSW-25', 'host': 'shellyswitch25-E09806959294.local', 'version': '2.2.1', 'fw_build': '20201005-190434/2.2.1-g7a3eb3e-master', 'uptime': 24211, 'wifi_en': True, 'wifi_ssid': 'Soft', 'wifi_pass': '', 'hap_cn': 10, 'hap_running': True, 'hap_paired': True, 'hap_ip_conns_pending': 0, 'hap_ip_conns_active': 6, 'hap_ip_conns_max': 9, 'sys_mode': 1, 'rsh_avail': True, 'debug_en': False, 'components': [{'id': 1, 'type': 4, 'name': 'Persiana Estudio', 'in_mode': 1, 'swap_inputs': False, 'swap_outputs': False, 'cal_done': True, 'move_time_ms': 16489, 'move_power': 125, 'state': 0, 'state_str': 'idle', 'cur_pos': 100, 'tgt_pos': 100}], 'fw_type': 'homekit', 'device_id': 'shellyswitch25-E09806959294'}]

parse_info
device_info: {'id': 'shelly1-E09806951508', 'app': 'switch1', 'model': 'Shelly1', 'stock_model': 'SHSW-1', 'host': 'shelly1-E09806951508.local', 'version': '2.2.1', 'fw_build': '20201005-190353/2.2.1-g7a3eb3e-master', 'uptime': 24211, 'wifi_en': True, 'wifi_ssid': 'Soft', 'wifi_pass': '*', 'hap_cn': 2, 'hap_running': True, 'hap_paired': True, 'hap_ip_conns_pending': 0, 'hap_ip_conns_active': 6, 'hap_ip_conns_max': 9, 'sys_mode': 0, 'rsh_avail': False, 'debug_en': False, 'components': [{'id': 1, 'type': 0, 'name': 'Shelly SW', 'svc_type': 0, 'in_mode': 1, 'initial': 3, 'state': False, 'auto_off': False, 'auto_off_delay': 0.0}], 'fw_type': 'homekit', 'device_id': 'shelly1-E09806951508'}
host: shelly1-E09806951508.local
device: shelly1-E09806951508
model: Shelly1
stock_model: SHSW-1
action: flash
dry_run: False
silent_run: False
mode: homekit
exclude: None
version: False
ffw: False
variant: False
flash_mode: homekit

Host: shelly1-E09806951508.local
Model: Shelly1
Current: HomeKit 2.2.1
Latest: HomeKit 2.3.0
D_URL: https://rojer.me/files/shelly/2.3.0/shelly-homekit-Shelly1.zip
perform_flash: True
Do you wish to flash shelly1-E09806951508 to firmware version 2.3.0 (y/n) ? n

parse_info
device_info: {'id': 'shellyswitch25-E09806959294', 'app': 'switch25', 'model': 'Shelly25', 'stock_model': 'SHSW-25', 'host': 'shellyswitch25-E09806959294.local', 'version': '2.2.1', 'fw_build': '20201005-190434/2.2.1-g7a3eb3e-master', 'uptime': 24211, 'wifi_en': True, 'wifi_ssid': 'Soft', 'wifi_pass': '*', 'hap_cn': 10, 'hap_running': True, 'hap_paired': True, 'hap_ip_conns_pending': 0, 'hap_ip_conns_active': 6, 'hap_ip_conns_max': 9, 'sys_mode': 1, 'rsh_avail': True, 'debug_en': False, 'components': [{'id': 1, 'type': 4, 'name': 'Persiana Estudio', 'in_mode': 1, 'swap_inputs': False, 'swap_outputs': False, 'cal_done': True, 'move_time_ms': 16489, 'move_power': 125, 'state': 0, 'state_str': 'idle', 'cur_pos': 100, 'tgt_pos': 100}], 'fw_type': 'homekit', 'device_id': 'shellyswitch25-E09806959294'}
host: shellyswitch25-E09806959294.local
device: shellyswitch25-E09806959294
model: Shelly25
stock_model: SHSW-25
action: flash
dry_run: False
silent_run: False
mode: homekit
exclude: None
version: False
ffw: False
variant: False
flash_mode: homekit

Host: shellyswitch25-E09806959294.local
Model: Shelly25
Current: HomeKit 2.2.1
Latest: HomeKit 2.3.0
D_URL: https://rojer.me/files/shelly/2.3.0/shelly-homekit-Shelly25.zip
perform_flash: True
Do you wish to flash shellyswitch25-E09806959294 to firmware version 2.3.0 (y/n) ? n

MacBook-Pro-de-Juanma:~ juanma$

Only found 3

@juancitomadrid try this one, same command.
flash_shelly.py.zip

Only found 3

I have 3 !!!

@juancitomadrid try this one, same command.
flash_shelly.py.zip

Out now. I'll try when come back. THANK YOU very much @andyblac

np, thanks.

Here we go!

MacBook-Pro-de-Juanma:~ juanma$ /Users/juanma/Dropbox (x)/Mi Mac (MacBook-Pro-de-JUAN.local)/Desktop/nuevo/flash_shelly.py -a -v=1
app
OS: Darwin
action: flash
mode: homekit
do_all: True
dry_run: False
silent_run: False
mode: homekit
version: False
exclude: None
variant: False
verbose: 1
hosts: []

stock_release_info:{'isok': True, 'data': {'SHPLG-1': {'url': 'http://api.shelly.cloud/firmware/SHPLG-1.zip', 'version': '20200827-065544/v1.8.3@4a8bc427'}, 'SHPLG-S': {'url': 'http://api.shelly.cloud/firmware/SHPLG-S.zip', 'version': '20200827-070306/v1.8.3@4a8bc427'}, 'SHPLG-U1': {'url': 'http://api.shelly.cloud/firmware/SHPLG-U1.zip', 'version': '20200827-070340/v1.8.3@4a8bc427'}, 'SHPLG2-1': {'url': 'http://api.shelly.cloud/firmware/SHPLG2-1.zip', 'version': '20200827-070415/v1.8.3@4a8bc427'}, 'SHSW-1': {'url': 'http://api.shelly.cloud/firmware/SHSW-1.zip', 'version': '20200827-065344/v1.8.3@4a8bc427'}, 'SHSW-21': {'url': 'http://api.shelly.cloud/firmware/SHSW-21.zip', 'version': '20200827-065420/v1.8.3@4a8bc427'}, 'SHSW-25': {'url': 'http://api.shelly.cloud/firmware/SHSW-25.zip', 'version': '20200827-065456/v1.8.3@4a8bc427'}, 'SHSW-PM': {'url': 'http://api.shelly.cloud/firmware/SHSW-PM.zip', 'version': '20200827-070450/v1.8.3@4a8bc427'}, 'SHAIR-1': {'url': 'http://api.shelly.cloud/firmware/SHAIR-1.zip', 'version': '20200812-092044/v1.8.0@8acf41b0'}, 'SHUNI-1': {'url': 'http://api.shelly.cloud/firmware/SHUNI-1.zip', 'version': '20200812-092537/v1.8.0@8acf41b0'}, 'SHEM': {'url': 'http://api.shelly.cloud/firmware/SHEM.zip', 'version': '20200813-140346/v1.8.1@1b2a49be'}, 'SHEM-3': {'url': 'http://api.shelly.cloud/firmware/SHEM-3.zip', 'version': '20200813-140420/v1.8.1@1b2a49be'}, 'SHSEN-1': {'url': 'http://api.shelly.cloud/firmware/SHSEN-1_build.zip', 'version': '20200717-112934/v1.7.7@a02db0b8'}, 'SHGS-1': {'url': 'http://api.shelly.cloud/firmware/SHGS-1.zip', 'version': '20200812-092502/v1.8.0@8acf41b0'}, 'SHSM-01': {'url': 'http://api.shelly.cloud/firmware/SHSM-01.zip', 'version': '20200812-091144/v1.8.0@8acf41b0'}, 'SHHT-1': {'url': 'http://api.shelly.cloud/firmware/SHHT-1.zip', 'version': '20200812-091311/v1.8.0@8acf41b0'}, 'SHWT-1': {'url': 'http://api.shelly.cloud/firmware/SHWT-1.zip', 'version': '20200812-091355/v1.8.0@8acf41b0'}, 'SHDW-1': {'url': 'http://api.shelly.cloud/firmware/SHDW-1.zip', 'version': '20200818-120325/v1.8.2@36539b0b', 'beta_url': 'http://api.shelly.cloud/firmware/rc/SHDW-1.zip', 'beta_ver': '20200814-174756/v1.8.2-rc1@59a25feb'}, 'SHDW-2': {'url': 'http://api.shelly.cloud/firmware/SHDW-2.zip', 'version': '20200818-120407/v1.8.2@36539b0b', 'beta_url': 'http://api.shelly.cloud/firmware/rc/SHDW-2.zip', 'beta_ver': '20200814-174839/v1.8.2-rc1@59a25feb'}, 'SHSPOT-1': {'url': 'http://api.shelly.cloud/firmware/SHSPOT-1.zip', 'version': '20200812-090754/v1.8.0@8acf41b0'}, 'SHCL-255': {'url': 'http://api.shelly.cloud/firmware/compatibility/SHCL-255/0.2.0-73a40eef.zip', 'version': '20180116-161402/v0.2.0@73a40eef'}, 'SHBLB-1': {'url': 'http://api.shelly.cloud/firmware/SHBLB-1.zip', 'version': '20200812-090503/v1.8.0@8acf41b0'}, 'SHCB-1': {'url': 'http://api.shelly.cloud/firmware/SHCB-1.zip', 'version': '20200812-090429/v1.8.0@8acf41b0'}, 'SHRGBW2': {'url': 'http://api.shelly.cloud/firmware/SHRGBW2.zip', 'version': '20200827-070122/v1.8.3@4a8bc427'}, 'SHRGBWW-01': {'url': 'http://api.shelly.cloud/firmware/SHRGBWW-01.zip', 'version': '20200827-065125/v1.8.3@4a8bc427'}, 'SH2LED-1': {'url': 'http://api.shelly.cloud/firmware/SH2LED-1.zip', 'version': '20200812-090719/v1.8.0@8acf41b0'}, 'SHDM-1': {'url': 'http://api.shelly.cloud/firmware/SHDM-1.zip', 'version': '20201007-085347/v1.8.5@5fbcbaa3'}, 'SHDM-2': {'url': 'http://api.shelly.cloud/firmware/SHDM-2.zip', 'version': '20201007-085431/v1.8.5@5fbcbaa3'}, 'SHDIMW-1': {'url': 'http://api.shelly.cloud/firmware/SHDIMW-1.zip', 'version': '20200812-092244/v1.8.0@8acf41b0'}, 'SHVIN-1': {'url': 'http://api.shelly.cloud/firmware/SHVIN-1.zip', 'version': '20200827-065016/v1.8.3@4a8bc427'}, 'SHBDUO-1': {'url': 'http://api.shelly.cloud/firmware/SHBDUO-1.zip', 'version': '20200827-065050/v1.8.3@4a8bc427'}, 'SHBTN-1': {'url': 'http://api.shelly.cloud/firmware/SHBTN-1.zip', 'version': '20200827-070047/v1.8.3@4a8bc427'}, 'SHIX3-1': {'url': 'http://api.shelly.cloud/firmware/SHIX3-1.zip', 'version': '20200827-070910/v1.8.3@4a8bc427'}}}

homekit_release_info:[['^2.3.1-.', {'version': '2.3.1-beta2', 'rel_notes': 'https://github.com/mongoose-os-apps/shelly-homekit/issues/142#issuecomment-706702236', 'urls': {'Shelly1': 'https://rojer.me/files/shelly/2.3.1-beta2/shelly-homekit-Shelly1.zip', 'Shelly1PM': 'https://rojer.me/files/shelly/2.3.1-beta2/shelly-homekit-Shelly1PM.zip', 'Shelly2': 'https://rojer.me/files/shelly/2.3.1-beta2/shelly-homekit-Shelly2.zip', 'Shelly25': 'https://rojer.me/files/shelly/2.3.1-beta2/shelly-homekit-Shelly25.zip', 'ShellyPlugS': 'https://rojer.me/files/shelly/2.3.1-beta2/shelly-homekit-ShellyPlugS.zip'}}], ['.', {'version': '2.3.0', 'rel_notes': 'https://github.com/mongoose-os-apps/shelly-homekit/releases/tag/2.3.0', 'urls': {'Shelly1': 'https://rojer.me/files/shelly/2.3.0/shelly-homekit-Shelly1.zip', 'Shelly1PM': 'https://rojer.me/files/shelly/2.3.0/shelly-homekit-Shelly1PM.zip', 'Shelly2': 'https://rojer.me/files/shelly/2.3.0/shelly-homekit-Shelly2.zip', 'Shelly25': 'https://rojer.me/files/shelly/2.3.0/shelly-homekit-Shelly25.zip', 'ShellyPlugS': 'https://rojer.me/files/shelly/2.3.0/shelly-homekit-ShellyPlugS.zip'}}]]

device_scan
devices: []
action: flash
do_all: True
dry_run: False
silent_run: False
mode: homekit
exclude: None
version: False
variant: False
ffw: False
Scanning for Shelly devices...

Valid Hostname: Estudio Chancha False
Valid Hostname: NAS True
Expecting value: line 1 column 1 (char 0)

data:
Valid Hostname: shelly1-E09806951508 True
device_test: []
MacBook-Pro-de-Juanma:~ juanma$

try this one please
flash_shelly.py.zip

here:

MacBook-Pro-de-Juanma:~ juanma$ /Users/juanma/Dropbox (x)/Mi Mac (MacBook-Pro-de-JUAN.local)/Desktop/shelly-homekit-master/tools/flash_shelly.py -a -v=1
app
OS: Darwin
action: flash
mode: homekit
do_all: True
dry_run: False
silent_run: False
mode: homekit
version: False
exclude: None
variant: False
verbose: 1
hosts: []

stock_release_info:{'isok': True, 'data': {'SHPLG-1': {'url': 'http://api.shelly.cloud/firmware/SHPLG-1.zip', 'version': '20200827-065544/v1.8.3@4a8bc427'}, 'SHPLG-S': {'url': 'http://api.shelly.cloud/firmware/SHPLG-S.zip', 'version': '20200827-070306/v1.8.3@4a8bc427'}, 'SHPLG-U1': {'url': 'http://api.shelly.cloud/firmware/SHPLG-U1.zip', 'version': '20200827-070340/v1.8.3@4a8bc427'}, 'SHPLG2-1': {'url': 'http://api.shelly.cloud/firmware/SHPLG2-1.zip', 'version': '20200827-070415/v1.8.3@4a8bc427'}, 'SHSW-1': {'url': 'http://api.shelly.cloud/firmware/SHSW-1.zip', 'version': '20200827-065344/v1.8.3@4a8bc427'}, 'SHSW-21': {'url': 'http://api.shelly.cloud/firmware/SHSW-21.zip', 'version': '20200827-065420/v1.8.3@4a8bc427'}, 'SHSW-25': {'url': 'http://api.shelly.cloud/firmware/SHSW-25.zip', 'version': '20200827-065456/v1.8.3@4a8bc427'}, 'SHSW-PM': {'url': 'http://api.shelly.cloud/firmware/SHSW-PM.zip', 'version': '20200827-070450/v1.8.3@4a8bc427'}, 'SHAIR-1': {'url': 'http://api.shelly.cloud/firmware/SHAIR-1.zip', 'version': '20200812-092044/v1.8.0@8acf41b0'}, 'SHUNI-1': {'url': 'http://api.shelly.cloud/firmware/SHUNI-1.zip', 'version': '20200812-092537/v1.8.0@8acf41b0'}, 'SHEM': {'url': 'http://api.shelly.cloud/firmware/SHEM.zip', 'version': '20200813-140346/v1.8.1@1b2a49be'}, 'SHEM-3': {'url': 'http://api.shelly.cloud/firmware/SHEM-3.zip', 'version': '20200813-140420/v1.8.1@1b2a49be'}, 'SHSEN-1': {'url': 'http://api.shelly.cloud/firmware/SHSEN-1_build.zip', 'version': '20200717-112934/v1.7.7@a02db0b8'}, 'SHGS-1': {'url': 'http://api.shelly.cloud/firmware/SHGS-1.zip', 'version': '20200812-092502/v1.8.0@8acf41b0'}, 'SHSM-01': {'url': 'http://api.shelly.cloud/firmware/SHSM-01.zip', 'version': '20200812-091144/v1.8.0@8acf41b0'}, 'SHHT-1': {'url': 'http://api.shelly.cloud/firmware/SHHT-1.zip', 'version': '20200812-091311/v1.8.0@8acf41b0'}, 'SHWT-1': {'url': 'http://api.shelly.cloud/firmware/SHWT-1.zip', 'version': '20200812-091355/v1.8.0@8acf41b0'}, 'SHDW-1': {'url': 'http://api.shelly.cloud/firmware/SHDW-1.zip', 'version': '20200818-120325/v1.8.2@36539b0b', 'beta_url': 'http://api.shelly.cloud/firmware/rc/SHDW-1.zip', 'beta_ver': '20200814-174756/v1.8.2-rc1@59a25feb'}, 'SHDW-2': {'url': 'http://api.shelly.cloud/firmware/SHDW-2.zip', 'version': '20200818-120407/v1.8.2@36539b0b', 'beta_url': 'http://api.shelly.cloud/firmware/rc/SHDW-2.zip', 'beta_ver': '20200814-174839/v1.8.2-rc1@59a25feb'}, 'SHSPOT-1': {'url': 'http://api.shelly.cloud/firmware/SHSPOT-1.zip', 'version': '20200812-090754/v1.8.0@8acf41b0'}, 'SHCL-255': {'url': 'http://api.shelly.cloud/firmware/compatibility/SHCL-255/0.2.0-73a40eef.zip', 'version': '20180116-161402/v0.2.0@73a40eef'}, 'SHBLB-1': {'url': 'http://api.shelly.cloud/firmware/SHBLB-1.zip', 'version': '20200812-090503/v1.8.0@8acf41b0'}, 'SHCB-1': {'url': 'http://api.shelly.cloud/firmware/SHCB-1.zip', 'version': '20200812-090429/v1.8.0@8acf41b0'}, 'SHRGBW2': {'url': 'http://api.shelly.cloud/firmware/SHRGBW2.zip', 'version': '20200827-070122/v1.8.3@4a8bc427'}, 'SHRGBWW-01': {'url': 'http://api.shelly.cloud/firmware/SHRGBWW-01.zip', 'version': '20200827-065125/v1.8.3@4a8bc427'}, 'SH2LED-1': {'url': 'http://api.shelly.cloud/firmware/SH2LED-1.zip', 'version': '20200812-090719/v1.8.0@8acf41b0'}, 'SHDM-1': {'url': 'http://api.shelly.cloud/firmware/SHDM-1.zip', 'version': '20201007-085347/v1.8.5@5fbcbaa3'}, 'SHDM-2': {'url': 'http://api.shelly.cloud/firmware/SHDM-2.zip', 'version': '20201007-085431/v1.8.5@5fbcbaa3'}, 'SHDIMW-1': {'url': 'http://api.shelly.cloud/firmware/SHDIMW-1.zip', 'version': '20200812-092244/v1.8.0@8acf41b0'}, 'SHVIN-1': {'url': 'http://api.shelly.cloud/firmware/SHVIN-1.zip', 'version': '20200827-065016/v1.8.3@4a8bc427'}, 'SHBDUO-1': {'url': 'http://api.shelly.cloud/firmware/SHBDUO-1.zip', 'version': '20200827-065050/v1.8.3@4a8bc427'}, 'SHBTN-1': {'url': 'http://api.shelly.cloud/firmware/SHBTN-1.zip', 'version': '20200827-070047/v1.8.3@4a8bc427'}, 'SHIX3-1': {'url': 'http://api.shelly.cloud/firmware/SHIX3-1.zip', 'version': '20200827-070910/v1.8.3@4a8bc427'}}}

homekit_release_info:[['X^2.3.1-.', {'version': '2.3.1-beta3', 'rel_notes': 'https://github.com/mongoose-os-apps/shelly-homekit/issues/150#issuecomment-711161979', 'urls': {'Shelly1': 'https://rojer.me/files/shelly/2.3.1-beta3/shelly-homekit-Shelly1.zip', 'Shelly1PM': 'https://rojer.me/files/shelly/2.3.1-beta3/shelly-homekit-Shelly1PM.zip', 'Shelly2': 'https://rojer.me/files/shelly/2.3.1-beta3/shelly-homekit-Shelly2.zip', 'Shelly25': 'https://rojer.me/files/shelly/2.3.1-beta3/shelly-homekit-Shelly25.zip', 'ShellyPlugS': 'https://rojer.me/files/shelly/2.3.1-beta3/shelly-homekit-ShellyPlugS.zip'}}], ['.', {'version': '2.3.1', 'rel_notes': 'https://github.com/mongoose-os-apps/shelly-homekit/releases/tag/2.3.1', 'urls': {'Shelly1': 'https://rojer.me/files/shelly/2.3.1/shelly-homekit-Shelly1.zip', 'Shelly1PM': 'https://rojer.me/files/shelly/2.3.1/shelly-homekit-Shelly1PM.zip', 'Shelly2': 'https://rojer.me/files/shelly/2.3.1/shelly-homekit-Shelly2.zip', 'Shelly25': 'https://rojer.me/files/shelly/2.3.1/shelly-homekit-Shelly25.zip', 'ShellyPlugS': 'https://rojer.me/files/shelly/2.3.1/shelly-homekit-ShellyPlugS.zip'}}]]

device_scan
devices: []
action: flash
do_all: True
dry_run: False
silent_run: False
mode: homekit
exclude: None
version: False
variant: False
ffw: False
Scanning for Shelly devices...

device_test: []
MacBook-Pro-de-Juanma:~ juanma$

hmm found none this time, i have increased time allowed to scan see if it helps.
flash_shelly.py.zip

@andyblac It may have worked now that I have removed the network cable?
(I always have wifi and cable connected)
It seems to have only found two (I have 2 shelly1 and 1 shelly2.5)

MacBook-Pro-de-Juanma:~ juanma$ /Users/juanma/Dropbox (x)/Mi Mac (MacBook-Pro-de-JUAN.local)/Desktop/nuevo/flash_shelly.py -a -v=1
app
OS: Darwin
action: flash
mode: homekit
do_all: True
dry_run: False
silent_run: False
mode: homekit
version: False
exclude: None
variant: False
verbose: 1
hosts: []

stock_release_info:{'isok': True, 'data': {'SHPLG-1': {'url': 'http://api.shelly.cloud/firmware/SHPLG-1.zip', 'version': '20200827-065544/v1.8.3@4a8bc427'}, 'SHPLG-S': {'url': 'http://api.shelly.cloud/firmware/SHPLG-S.zip', 'version': '20200827-070306/v1.8.3@4a8bc427'}, 'SHPLG-U1': {'url': 'http://api.shelly.cloud/firmware/SHPLG-U1.zip', 'version': '20200827-070340/v1.8.3@4a8bc427'}, 'SHPLG2-1': {'url': 'http://api.shelly.cloud/firmware/SHPLG2-1.zip', 'version': '20200827-070415/v1.8.3@4a8bc427'}, 'SHSW-1': {'url': 'http://api.shelly.cloud/firmware/SHSW-1.zip', 'version': '20200827-065344/v1.8.3@4a8bc427'}, 'SHSW-21': {'url': 'http://api.shelly.cloud/firmware/SHSW-21.zip', 'version': '20200827-065420/v1.8.3@4a8bc427'}, 'SHSW-25': {'url': 'http://api.shelly.cloud/firmware/SHSW-25.zip', 'version': '20200827-065456/v1.8.3@4a8bc427'}, 'SHSW-PM': {'url': 'http://api.shelly.cloud/firmware/SHSW-PM.zip', 'version': '20200827-070450/v1.8.3@4a8bc427'}, 'SHAIR-1': {'url': 'http://api.shelly.cloud/firmware/SHAIR-1.zip', 'version': '20200812-092044/v1.8.0@8acf41b0'}, 'SHUNI-1': {'url': 'http://api.shelly.cloud/firmware/SHUNI-1.zip', 'version': '20200812-092537/v1.8.0@8acf41b0'}, 'SHEM': {'url': 'http://api.shelly.cloud/firmware/SHEM.zip', 'version': '20200813-140346/v1.8.1@1b2a49be'}, 'SHEM-3': {'url': 'http://api.shelly.cloud/firmware/SHEM-3.zip', 'version': '20200813-140420/v1.8.1@1b2a49be'}, 'SHSEN-1': {'url': 'http://api.shelly.cloud/firmware/SHSEN-1_build.zip', 'version': '20200717-112934/v1.7.7@a02db0b8'}, 'SHGS-1': {'url': 'http://api.shelly.cloud/firmware/SHGS-1.zip', 'version': '20200812-092502/v1.8.0@8acf41b0'}, 'SHSM-01': {'url': 'http://api.shelly.cloud/firmware/SHSM-01.zip', 'version': '20200812-091144/v1.8.0@8acf41b0'}, 'SHHT-1': {'url': 'http://api.shelly.cloud/firmware/SHHT-1.zip', 'version': '20200812-091311/v1.8.0@8acf41b0'}, 'SHWT-1': {'url': 'http://api.shelly.cloud/firmware/SHWT-1.zip', 'version': '20200812-091355/v1.8.0@8acf41b0'}, 'SHDW-1': {'url': 'http://api.shelly.cloud/firmware/SHDW-1.zip', 'version': '20200818-120325/v1.8.2@36539b0b', 'beta_url': 'http://api.shelly.cloud/firmware/rc/SHDW-1.zip', 'beta_ver': '20200814-174756/v1.8.2-rc1@59a25feb'}, 'SHDW-2': {'url': 'http://api.shelly.cloud/firmware/SHDW-2.zip', 'version': '20200818-120407/v1.8.2@36539b0b', 'beta_url': 'http://api.shelly.cloud/firmware/rc/SHDW-2.zip', 'beta_ver': '20200814-174839/v1.8.2-rc1@59a25feb'}, 'SHSPOT-1': {'url': 'http://api.shelly.cloud/firmware/SHSPOT-1.zip', 'version': '20200812-090754/v1.8.0@8acf41b0'}, 'SHCL-255': {'url': 'http://api.shelly.cloud/firmware/compatibility/SHCL-255/0.2.0-73a40eef.zip', 'version': '20180116-161402/v0.2.0@73a40eef'}, 'SHBLB-1': {'url': 'http://api.shelly.cloud/firmware/SHBLB-1.zip', 'version': '20200812-090503/v1.8.0@8acf41b0'}, 'SHCB-1': {'url': 'http://api.shelly.cloud/firmware/SHCB-1.zip', 'version': '20200812-090429/v1.8.0@8acf41b0'}, 'SHRGBW2': {'url': 'http://api.shelly.cloud/firmware/SHRGBW2.zip', 'version': '20200827-070122/v1.8.3@4a8bc427'}, 'SHRGBWW-01': {'url': 'http://api.shelly.cloud/firmware/SHRGBWW-01.zip', 'version': '20200827-065125/v1.8.3@4a8bc427'}, 'SH2LED-1': {'url': 'http://api.shelly.cloud/firmware/SH2LED-1.zip', 'version': '20200812-090719/v1.8.0@8acf41b0'}, 'SHDM-1': {'url': 'http://api.shelly.cloud/firmware/SHDM-1.zip', 'version': '20201007-085347/v1.8.5@5fbcbaa3'}, 'SHDM-2': {'url': 'http://api.shelly.cloud/firmware/SHDM-2.zip', 'version': '20201007-085431/v1.8.5@5fbcbaa3'}, 'SHDIMW-1': {'url': 'http://api.shelly.cloud/firmware/SHDIMW-1.zip', 'version': '20200812-092244/v1.8.0@8acf41b0'}, 'SHVIN-1': {'url': 'http://api.shelly.cloud/firmware/SHVIN-1.zip', 'version': '20200827-065016/v1.8.3@4a8bc427'}, 'SHBDUO-1': {'url': 'http://api.shelly.cloud/firmware/SHBDUO-1.zip', 'version': '20200827-065050/v1.8.3@4a8bc427'}, 'SHBTN-1': {'url': 'http://api.shelly.cloud/firmware/SHBTN-1.zip', 'version': '20200827-070047/v1.8.3@4a8bc427'}, 'SHIX3-1': {'url': 'http://api.shelly.cloud/firmware/SHIX3-1.zip', 'version': '20200827-070910/v1.8.3@4a8bc427'}}}

homekit_release_info:[['X^2.3.1-.', {'version': '2.3.1-beta3', 'rel_notes': 'https://github.com/mongoose-os-apps/shelly-homekit/issues/150#issuecomment-711161979', 'urls': {'Shelly1': 'https://rojer.me/files/shelly/2.3.1-beta3/shelly-homekit-Shelly1.zip', 'Shelly1PM': 'https://rojer.me/files/shelly/2.3.1-beta3/shelly-homekit-Shelly1PM.zip', 'Shelly2': 'https://rojer.me/files/shelly/2.3.1-beta3/shelly-homekit-Shelly2.zip', 'Shelly25': 'https://rojer.me/files/shelly/2.3.1-beta3/shelly-homekit-Shelly25.zip', 'ShellyPlugS': 'https://rojer.me/files/shelly/2.3.1-beta3/shelly-homekit-ShellyPlugS.zip'}}], ['.', {'version': '2.3.1', 'rel_notes': 'https://github.com/mongoose-os-apps/shelly-homekit/releases/tag/2.3.1', 'urls': {'Shelly1': 'https://rojer.me/files/shelly/2.3.1/shelly-homekit-Shelly1.zip', 'Shelly1PM': 'https://rojer.me/files/shelly/2.3.1/shelly-homekit-Shelly1PM.zip', 'Shelly2': 'https://rojer.me/files/shelly/2.3.1/shelly-homekit-Shelly2.zip', 'Shelly25': 'https://rojer.me/files/shelly/2.3.1/shelly-homekit-Shelly25.zip', 'ShellyPlugS': 'https://rojer.me/files/shelly/2.3.1/shelly-homekit-ShellyPlugS.zip'}}]]

device_scan
devices: []
action: flash
do_all: True
dry_run: False
silent_run: False
mode: homekit
exclude: None
version: False
variant: False
Scanning for Shelly devices...

Valid Hostname: NAS True
Expecting value: line 1 column 1 (char 0)

data:
Info: None
Valid Hostname: Salon True
Could not resolve host: Salon.local

Info: None
Valid Hostname: shelly1-E09806951508 True
Info: {'id': 'shelly1-E09806951508', 'app': 'switch1', 'model': 'Shelly1', 'stock_model': 'SHSW-1', 'host': 'shelly1-E09806951508.local', 'version': '2.2.1', 'fw_build': '20201005-190353/2.2.1-g7a3eb3e-master', 'uptime': 44669, 'wifi_en': True, 'wifi_ssid': 'Soft', 'wifi_pass': '', 'hap_cn': 2, 'hap_running': True, 'hap_paired': True, 'hap_ip_conns_pending': 0, 'hap_ip_conns_active': 7, 'hap_ip_conns_max': 9, 'sys_mode': 0, 'rsh_avail': False, 'debug_en': False, 'components': [{'id': 1, 'type': 0, 'name': 'Shelly SW', 'svc_type': 0, 'in_mode': 1, 'initial': 3, 'state': False, 'auto_off': False, 'auto_off_delay': 0.0}], 'fw_type': 'homekit', 'fw_type_str': 'HomeKit', 'device_id': 'shelly1-E09806951508'}
Valid Hostname: shellyswitch25-E09806959294 True
Info: {'id': 'shellyswitch25-E09806959294', 'app': 'switch25', 'model': 'Shelly25', 'stock_model': 'SHSW-25', 'host': 'shellyswitch25-E09806959294.local', 'version': '2.2.1', 'fw_build': '20201005-190434/2.2.1-g7a3eb3e-master', 'uptime': 19008, 'wifi_en': True, 'wifi_ssid': 'Soft', 'wifi_pass': '
', 'hap_cn': 10, 'hap_running': True, 'hap_paired': True, 'hap_ip_conns_pending': 0, 'hap_ip_conns_active': 7, 'hap_ip_conns_max': 9, 'sys_mode': 1, 'rsh_avail': True, 'debug_en': False, 'components': [{'id': 1, 'type': 4, 'name': 'Persiana Estudio', 'in_mode': 1, 'swap_inputs': False, 'swap_outputs': False, 'cal_done': True, 'move_time_ms': 16489, 'move_power': 125, 'state': 0, 'state_str': 'idle', 'cur_pos': 100, 'tgt_pos': 100}], 'fw_type': 'homekit', 'fw_type_str': 'HomeKit', 'device_id': 'shellyswitch25-E09806959294'}
Valid Hostname: Estudio Chancha False
device_test: [{'id': 'shelly1-E09806951508', 'app': 'switch1', 'model': 'Shelly1', 'stock_model': 'SHSW-1', 'host': 'shelly1-E09806951508.local', 'version': '2.2.1', 'fw_build': '20201005-190353/2.2.1-g7a3eb3e-master', 'uptime': 44669, 'wifi_en': True, 'wifi_ssid': 'Soft', 'wifi_pass': '', 'hap_cn': 2, 'hap_running': True, 'hap_paired': True, 'hap_ip_conns_pending': 0, 'hap_ip_conns_active': 7, 'hap_ip_conns_max': 9, 'sys_mode': 0, 'rsh_avail': False, 'debug_en': False, 'components': [{'id': 1, 'type': 0, 'name': 'Shelly SW', 'svc_type': 0, 'in_mode': 1, 'initial': 3, 'state': False, 'auto_off': False, 'auto_off_delay': 0.0}], 'fw_type': 'homekit', 'fw_type_str': 'HomeKit', 'device_id': 'shelly1-E09806951508'}, {'id': 'shellyswitch25-E09806959294', 'app': 'switch25', 'model': 'Shelly25', 'stock_model': 'SHSW-25', 'host': 'shellyswitch25-E09806959294.local', 'version': '2.2.1', 'fw_build': '20201005-190434/2.2.1-g7a3eb3e-master', 'uptime': 19008, 'wifi_en': True, 'wifi_ssid': 'Soft', 'wifi_pass': '', 'hap_cn': 10, 'hap_running': True, 'hap_paired': True, 'hap_ip_conns_pending': 0, 'hap_ip_conns_active': 7, 'hap_ip_conns_max': 9, 'sys_mode': 1, 'rsh_avail': True, 'debug_en': False, 'components': [{'id': 1, 'type': 4, 'name': 'Persiana Estudio', 'in_mode': 1, 'swap_inputs': False, 'swap_outputs': False, 'cal_done': True, 'move_time_ms': 16489, 'move_power': 125, 'state': 0, 'state_str': 'idle', 'cur_pos': 100, 'tgt_pos': 100}], 'fw_type': 'homekit', 'fw_type_str': 'HomeKit', 'device_id': 'shellyswitch25-E09806959294'}]

parse_info
device_info: {'id': 'shelly1-E09806951508', 'app': 'switch1', 'model': 'Shelly1', 'stock_model': 'SHSW-1', 'host': 'shelly1-E09806951508.local', 'version': '2.2.1', 'fw_build': '20201005-190353/2.2.1-g7a3eb3e-master', 'uptime': 44669, 'wifi_en': True, 'wifi_ssid': 'Soft', 'wifi_pass': '*', 'hap_cn': 2, 'hap_running': True, 'hap_paired': True, 'hap_ip_conns_pending': 0, 'hap_ip_conns_active': 7, 'hap_ip_conns_max': 9, 'sys_mode': 0, 'rsh_avail': False, 'debug_en': False, 'components': [{'id': 1, 'type': 0, 'name': 'Shelly SW', 'svc_type': 0, 'in_mode': 1, 'initial': 3, 'state': False, 'auto_off': False, 'auto_off_delay': 0.0}], 'fw_type': 'homekit', 'fw_type_str': 'HomeKit', 'device_id': 'shelly1-E09806951508'}
host: shelly1-E09806951508.local
device: shelly1-E09806951508
model: Shelly1
stock_model: SHSW-1
action: flash
dry_run: False
silent_run: False
mode: homekit
exclude: None
version: False
variant: False
flash_mode: homekit

Host: shelly1-E09806951508.local
Model: Shelly1
Current: HomeKit 2.2.1
Latest: HomeKit 2.3.1
D_URL: https://rojer.me/files/shelly/2.3.1/shelly-homekit-Shelly1.zip
perform_flash: True
Do you wish to flash shelly1-E09806951508 to firmware version 2.3.1 (y/n) ? n
Skipping Flash...

parse_info
device_info: {'id': 'shellyswitch25-E09806959294', 'app': 'switch25', 'model': 'Shelly25', 'stock_model': 'SHSW-25', 'host': 'shellyswitch25-E09806959294.local', 'version': '2.2.1', 'fw_build': '20201005-190434/2.2.1-g7a3eb3e-master', 'uptime': 19008, 'wifi_en': True, 'wifi_ssid': 'Soft', 'wifi_pass': '*', 'hap_cn': 10, 'hap_running': True, 'hap_paired': True, 'hap_ip_conns_pending': 0, 'hap_ip_conns_active': 7, 'hap_ip_conns_max': 9, 'sys_mode': 1, 'rsh_avail': True, 'debug_en': False, 'components': [{'id': 1, 'type': 4, 'name': 'Persiana Estudio', 'in_mode': 1, 'swap_inputs': False, 'swap_outputs': False, 'cal_done': True, 'move_time_ms': 16489, 'move_power': 125, 'state': 0, 'state_str': 'idle', 'cur_pos': 100, 'tgt_pos': 100}], 'fw_type': 'homekit', 'fw_type_str': 'HomeKit', 'device_id': 'shellyswitch25-E09806959294'}
host: shellyswitch25-E09806959294.local
device: shellyswitch25-E09806959294
model: Shelly25
stock_model: SHSW-25
action: flash
dry_run: False
silent_run: False
mode: homekit
exclude: None
version: False
variant: False
flash_mode: homekit

Host: shellyswitch25-E09806959294.local
Model: Shelly25
Current: HomeKit 2.2.1
Latest: HomeKit 2.3.1
D_URL: https://rojer.me/files/shelly/2.3.1/shelly-homekit-Shelly25.zip
perform_flash: True
Do you wish to flash shellyswitch25-E09806959294 to firmware version 2.3.1 (y/n) ? n
Skipping Flash...

MacBook-Pro-de-Juanma:~ juanma$

it only found 2?, i have increased again , i dont need high level debug now -v=0 will do, see if it lists all
flash_shelly.py.zip

Only 2 again.

/Desktop/nuevo/flash_shelly.py -a -v=0
app
OS: Darwin
action: flash
mode: homekit
do_all: True
dry_run: False
silent_run: False
mode: homekit
version: False
exclude: None
variant: False
verbose: 0
hosts: []

device_scan
devices: []
action: flash
do_all: True
dry_run: False
silent_run: False
mode: homekit
exclude: None
version: False
variant: False
Scanning for Shelly devices...

Valid Hostname: NAS True
Expecting value: line 1 column 1 (char 0)

Valid Hostname: shellyswitch25-E09806959294 True
Valid Hostname: shelly1-E09806951508 True
Valid Hostname: Salon True
Could not resolve host: Salon.local

Valid Hostname: Estudio Chancha False

parse_info
host: shelly1-E09806951508.local
device: shelly1-E09806951508
model: Shelly1
stock_model: SHSW-1
action: flash
dry_run: False
silent_run: False
mode: homekit
exclude: None
version: False
variant: False
flash_mode: homekit

Host: shelly1-E09806951508.local
Model: Shelly1
Current: HomeKit 2.2.1
Latest: HomeKit 2.3.1
D_URL: https://rojer.me/files/shelly/2.3.1/shelly-homekit-Shelly1.zip
perform_flash: True
Do you wish to flash shelly1-E09806951508 to firmware version 2.3.1 (y/n) ? n
Skipping Flash...

parse_info
host: shellyswitch25-E09806959294.local
device: shellyswitch25-E09806959294
model: Shelly25
stock_model: SHSW-25
action: flash
dry_run: False
silent_run: False
mode: homekit
exclude: None
version: False
variant: False
flash_mode: homekit

Host: shellyswitch25-E09806959294.local
Model: Shelly25
Current: HomeKit 2.2.1
Latest: HomeKit 2.3.1
D_URL: https://rojer.me/files/shelly/2.3.1/shelly-homekit-Shelly25.zip
perform_flash: True
Do you wish to flash shellyswitch25-E09806959294 to firmware version 2.3.1 (y/n) ? n
Skipping Flash...

not sure why it only picking up 2 is the 3rd one webui ok ?

what firmware version it on ?

not sure why it only picking up 2 is the 3rd one webui ok ?

Yes.

what firmware version it on ?

The one that cannot find it has the 2.3.0

Captura de pantalla 2020-10-18 a las 20 10 22

verry strange.

I'm going to reset and flash that shelly again

Nothing...
Is it possible that it is because it is connected to another ap (older)?

wht happens if try to list it manually ? ie

./flash_shelly.py -l hostname

flash_shelly.py -l hostname
Probing Shelly device for info...

Could not resolve host: hostname.local

MacBook-Pro-de-Juanma:~ juanma$

by hostname i meant hostname of the device 馃槃

by hostname i meant hostname of the device 馃槃

Sorry!!

Like this?

MacBook-Pro-de-Juanma:~ juanma$ /Users/juanma/Dropbox (x)/Mi Mac (MacBook-Pro-de-JUAN.local)/Desktop/nuevo/flash_shelly.py ./flash_shelly.py -l 192.168.108
usage: flash_shelly.py [-h] [-m {homekit,keep,revert}] [-a] [-l] [-e [EXCLUDE [EXCLUDE ...]]] [-n] [-y]
[-V VERSION] [--variant VARIANT] [-v {0,1}]
[hosts [hosts ...]]
flash_shelly.py: error: unrecognized arguments: 192.168.108
MacBook-Pro-de-Juanma:~ juanma$

by hostname i meant hostname of the device 馃槃

Sorry!!

Like this?

MacBook-Pro-de-Juanma:~ juanma$ /Users/juanma/Dropbox (x)/Mi Mac (MacBook-Pro-de-JUAN.local)/Desktop/nuevo/flash_shelly.py ./flash_shelly.py -l 192.168.108
usage: flash_shelly.py [-h] [-m {homekit,keep,revert}] [-a] [-l] [-e [EXCLUDE [EXCLUDE ...]]] [-n] [-y]
[-V VERSION] [--variant VARIANT] [-v {0,1}]
[hosts [hosts ...]]
flash_shelly.py: error: unrecognized arguments: 192.168.108
MacBook-Pro-de-Juanma:~ juanma$

Try with host name not ip

MacBook-Pro-de-Juanma:~ juanma$ /Users/juanma/Dropbox (x)/Mi Mac (MacBook-Pro-de-JUAN.local)/Desktop/nuevo/flash_shelly.py -l shelly1-94D9A7.local
Probing Shelly device for info...

Could not resolve host: shelly1-94D9A7.local

MacBook-Pro-de-Juanma:~ juanma$ /Users/juanma/Dropbox (x)/Mi Mac (MacBook-Pro-de-JUAN.local)/Desktop/nuevo/flash_shelly.py -l shelly1-94D9A7
Probing Shelly device for info...

Could not resolve host: shelly1-94D9A7.local

MacBook-Pro-de-Juanma:~ juanma$

I just realized that it is the shelly that gives me "not available" problems.
It is the only shelly that is connected to another AP. I'm pretty sure it's a network problem ... but I don't know how to fix it.
I have 3 APs at home, that's the only "old" one but I think that's the problem.

The strange thing is that through the web ui I can access without problems.

MacBook-Pro-de-Juanma:~ juanma$ /Users/juanma/Dropbox (x)/Mi Mac (MacBook-Pro-de-JUAN.local)/Desktop/nuevo/flash_shelly.py -l shelly1-94D9A7.local
Probing Shelly device for info...

Could not resolve host: shelly1-94D9A7.local

MacBook-Pro-de-Juanma:~ juanma$ /Users/juanma/Dropbox (x)/Mi Mac (MacBook-Pro-de-JUAN.local)/Desktop/nuevo/flash_shelly.py -l shelly1-94D9A7
Probing Shelly device for info...

Could not resolve host: shelly1-94D9A7.local

MacBook-Pro-de-Juanma:~ juanma$

I just realized that it is the shelly that gives me "not available" problems.
It is the only shelly that is connected to another AP. I'm pretty sure it's a network problem ... but I don't know how to fix it.
I have 3 APs at home, that's the only "old" one but I think that's the problem.

The strange thing is that through the web ui I can access without problems.

yeah, definatly looks like a network issue, is the AP bridged via Wifi or via a LAN cable, are all AP's on the same SSID and same Channel ?

yeah, definatly looks like a network issue, is the AP bridged via Wifi or via a LAN cable, are all AP's on the same SSID and same Channel ?

Via LAN cable
Same SSID
Different channels

Sometimes I open the app and it is available
But many times more, when I open it it is not available.

I assumed that having access via web ui, that was not the problem.

hmm, should be ok.

I assumed that having access via web ui, that was not the problem.

sounds like a multicast issue.

I assumed that having access via web ui, that was not the problem.

sounds like a multicast issue.

mmm... should I have it on or off?

on

I already had it activated.
But, I don't have Unificado gateway.
Maybe I need to activate "port isolation" on my Ubiquiti edge router ?
(sorry for the technical questions that have nothing to do with the thread)

I already had it activated.
But, I don't have Unificado gateway.
Maybe I need to activate "port isolation" on my Ubiquiti edge router ?
(sorry for the technical questions that have nothing to do with the thread)

no, that will make things worse, maybe start a new ticket other people might have some ideas what's wrong.

Ok!
Thanks @andyblac

I have put a fixed ip from the edge router and since I have done it I have not had a "disconnected" status again.
But the script still doesn't see it

MacBook-Pro-de-Juanma:~ juanma$ /Users/juanma/Dropbox (x)/Mi Mac (MacBook-Pro-de-JUAN.local)/Desktop/nuevo/flash_shelly.py -a -l
Scanning for Shelly devices...

Expecting value: line 1 column 1 (char 0)

Could not resolve host: Salon.local

Host: shelly1-E09806951508.local
Model: Shelly1
Current: HomeKit 2.3.1
Latest: HomeKit 2.3.1

Host: shellyswitch25-E09806959294.local
Model: Shelly25
Current: HomeKit 2.2.1
Latest: HomeKit 2.3.1

MacBook-Pro-de-Juanma:~ juanma$

and via manual method ?

you could try adding the host name into your routers local DNS record file.

I have put a fixed ip from the edge router and since I have done it I have not had a "disconnected" status again.

Nothing. keeps disappearing...
https://www.dropbox.com/s/fijlgrrqgylodxs/Captura%20de%20pantalla%202020-10-19%20a%20las%2014.39.45.png?dl=0

and via manual method ?

You mean -a -v=0 ?
If you mean from web ui, yes, I can always see it.

you could try adding the host name into your routers local DNS record file.

mmm I don't know how.
Let me take a look.

and via manual method ?

You mean -a -v=0 ?
If you mean from web ui, yes, I can always see it.

by ./flash_shelly.py shelly1-94D9A7 it definitely sounds like a network issue.

and via manual method ?

You mean -a -v=0 ?
If you mean from web ui, yes, I can always see it.

by ./flash_shelly.py shelly1-94D9A7 it definitely sounds like a network issue.

Nothing.

flash_shelly.py shelly1-94D9A7
Probing Shelly device for info...

Could not resolve host: shelly1-94D9A7.local

MacBook-Pro-de-Juanma:~ juanma$ 

Do not worry.
Thank you very much for your help anyway.
I will research about this.

np

I have some news about this.

I have found that if I connect to the same ap that the missing shelly is connected. I run the script and it finds it ... and it also finds them all.
But I go back to the main ap and again it can't find the ones is connected to the other ap.

I'm going crazy ... but I'll get it fixed.

as this is stale i'll close

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Baza207 picture Baza207  路  5Comments

Jaguaza picture Jaguaza  路  11Comments

rudyemm picture rudyemm  路  8Comments

Snekatis picture Snekatis  路  4Comments

marcopeeters picture marcopeeters  路  3Comments