jghaanstra / cloud.shelly

Homey app to control Shelly Cloud devices
GNU General Public License v3.0
21 stars 14 forks source link

Endles reporting of a new firmware update for Shelly devices #216

Closed GitMike1233 closed 6 months ago

GitMike1233 commented 6 months ago

I created a flow that alerts me when there is a new firmware for Shelly. Today I got 180 notifications for 8 devices in 1 hour. This does not seem to be intended.

rijmenantspj commented 6 months ago

I have the exact same issue; as I mentioned on the Homey community: https://community.homey.app/t/shelly-update-notifications/104539

jghaanstra commented 6 months ago

As mentioned on the support forum. This is happening because Allterco Robotics pulled an update and the mechanism for checking for updates can't handle that.

Could either of you post the output of http://yourshellyip/rcp/Shelly.GetStatus of one of the devices that got multiple notifications.

rijmenantspj commented 6 months ago

Could either of you post the output of http://yourshellyip/rcp/Shelly.GetStatus of one of the devices that got multiple notifications.

Hereby, the (redacted) output of the only Shelly 1 Mini (Gen3) device I own:

curl -X GET http://<Redacted IP Address>/rpc/Shelly.GetStatus
{
  "ble": {},
  "cloud": {
    "connected": true
  },
  "input:0": {
    "id": 0,
    "state": null
  },
  "mqtt": {
    "connected": false
  },
  "switch:0": {
    "id": 0,
    "source": "init",
    "output": false,
    "temperature": {
      "tC": 54.3,
      "tF": 129.8
    }
  },
  "sys": {
    "mac": "<Redacted MAC Address>",
    "restart_required": false,
    "time": "09:57",
    "unixtime": 1708505829,
    "uptime": 1474,
    "ram_size": 260448,
    "ram_free": 148072,
    "fs_size": 1048576,
    "fs_free": 708608,
    "cfg_rev": 21,
    "kvs_rev": 2,
    "schedule_rev": 0,
    "webhook_rev": 0,
    "available_updates": {
      "beta": {
        "version": "1.2.1-beta1"
      }
    },
    "reset_reason": 3
  },
  "wifi": {
    "sta_ip": "<Redacted IP Address>",
    "status": "got ip",
    "ssid": "<Redacted SSID>",
    "rssi": -56
  },
  "ws": {
    "connected": true
  }
}
rijmenantspj commented 6 months ago

@jghaanstra: What might be interesting to know is that I had this issue a couple of weeks ago as well (with an earlier version of the firmware). Once an update became available, Homey kept spitting messages (for the same device) over and over again... Therefore, I honestly doubt it is related to Shelly Group (formerly known as Allterco Robotics) pulling the 1.2.0 version of the firmware.

jghaanstra commented 6 months ago

@jghaanstra: What might be interesting to know is that I had this issue a couple of weeks ago as well (with an earlier version of the firmware). Once an update became available, Homey kept spitting messages (for the same device) over and over again... Therefore, I honestly doubt it is related to Shelly Group (formerly known as Allterco Robotics) pulling the 1.2.0 version of the firmware.

Ok. That's good to know, I'll look into it.

rijmenantspj commented 6 months ago

@jghaanstra: I'm just writing to inform you that the issue is again happening since a couple of minutes ago.

As it might be helpfull for troubleshooting purposes again, the (redacted) output of the only Shelly 1 Mini (Gen3) device I own:

curl -X GET http://<Redacted IP Address>/rpc/Shelly.GetStatus
{
  "ble": {},
  "cloud": {
    "connected": true
  },
  "input:0": {
    "id": 0,
    "state": null
  },
  "mqtt": {
    "connected": false
  },
  "switch:0": {
    "id": 0,
    "source": "timer",
    "output": false,
    "temperature": {
      "tC": 53.5,
      "tF": 128.3
    }
  },
  "sys": {
    "mac": "<Redacted MAC Address>",
    "restart_required": false,
    "time": "09:47",
    "unixtime": 1708678071,
    "uptime": 173723,
    "ram_size": 260508,
    "ram_free": 150792,
    "fs_size": 1048576,
    "fs_free": 708608,
    "cfg_rev": 21,
    "kvs_rev": 2,
    "schedule_rev": 0,
    "webhook_rev": 0,
    "available_updates": {
      "stable": {
        "version": "1.2.1"
      }
    },
    "reset_reason": 3
  },
  "wifi": {
    "sta_ip": "<Redacted IP Address>",
    "status": "got ip",
    "ssid": "<Redacted SSID>",
    "rssi": -53
  },
  "ws": {
    "connected": true
  }
}

For your reference, I've also attached a screenshot of the notifications I received (every minute) via the Flow I had set up.

Screenshot_2024-02-23-09-44-03-51

jghaanstra commented 6 months ago

Will be fixed in the next release.

jghaanstra commented 6 months ago

This has been fixed in release 3.27.0 which is now pending approval in the test channel. Please test it. If the issue still occurs with that or a higher version of the app, please report back here. I'm closing it for now.

https://homey.app/a/cloud.shelly/test/