Hi all, newb here, so sorry in advance if my search for duplicate failed.
For past two weeks I have been annoyed by the new version of cloud app stopping working all the sudden. Annoyed enough to find a reason and join this forum lol.
TLDR; update your firmware before connecting the add-on. I'm sure some paper already says this somewhere.
Story: my app update coincided with me installing a fresh bought PM1 with temp add-on on my network. It took me a some time to discover there's https://home.shelly.cloud/ but duh! so in console I notice these errors:
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'temperature_unit') at bundle.js:26
so hey, i learn about chrome dev tools::source/overrides and fix up the bundle.js a little. With error out of my way I was able to find out the new PM1 was warning about an incompatible firmware (sorry, didn't note the version), after updating and pulling my fix out - everything's working fine.
Did some poking around, haven't found a bug tracking system or github repo for shelly app (is this even open source, eh?!)
so if interested, here's my approx code diff (it's a manual diff as I didn't bother formatting/uncompressing bundle.js):
line 26:
- `${"C"===e.ext_sensors.temperature_unit?Tv(r.tC):Tv(r.tF)} ${"C"===e.ext_sensors.temperature_unit?"°C":"°F"}`
+ `${"C"===e.ext_sensors?e.ext_sensors.temperature_unit?Tv(r.tC):Tv(r.tF):Tv(r.tC)} ${"C"===e.ext_sensors?e.ext_sensors.temperature_unit?"°C":"°F":"°C"}`
line 34:
- let u,A,f,d=i[l.id].ext_sensors?"C"===i[l.id].ext_sensors.temperature_unit?"tC":"tF":""
+ let u,A,f,d=i[l.id].ext_sensors?"C"===i[l.id].ext_sensors?i[l.id].ext_sensors.temperature_unit?"tC":"tF":"tC":"";
line 34:
- e.$$.update=()=>{513&e.$$.dirty&&r(3,n=i[l.id].ext_sensors.temperature_unit)},
+ e.$$.update=()=>{513&e.$$.dirty&&r(3,n=i[l.id].ext_sensors?i[l.id].ext_sensors.temperature_unit:"not sure maybe C or F here")},
Alles anzeigen
hope this helps someone.
happy Friday!