[HomeyScript] Regular system overview by email with a change summary

That fixed it! thx!

Just to let you know, it looks pretty accurate. This is one of the ideas & scripts you didn’t know you needed, until you use it. Well done! :partying_face:

Thanks, appreciated!

Update to 1.4.0 fixes an inconsistency in the detailed report: variables and scripts are now also listed.

Thanks, Dagmar!

A bit of nitpicking :blush: :
The comments mentioning Homey Pro 2023 got me a bit confused, because it is not a unique model regarding functionality;
Because the Pro 2026 and Pro Mini use the same firmware, I think the comments solely mentioning Homey Pro 2023 should be adjusted a bit.
Which makes me think, Homey SHS has / should have the same functionality as well (apart from all wireless protocols but WiFi)

Maybe something like Homey Pro models (post 2022) & Homey Self-Hosted covers it?

Lines I found:

039. const showGroupDevices = true; // Show composition of group devices (Homey Pro 2023 only)
491. let groupDevices = {}; // groupId -> { name, devices: [] }, Homey Pro 2023 only

Fair point, thanks for catching that, and no nitpicking at all. :blush:

All comments referring to “Homey Pro 2023” now say “Homey Pro models post-2022” instead.

On Homey Self-Hosted specifically: I don’t have one to test against, so I can’t confirm whether it reports the same homeyPlatformVersion value. If you (or anyone running SHS) can check, I’d be happy to update the wording further based on that.

YW!
Yeah I’ll fire up a test Homey SHS to check on that.

EDIT: Done @DGalama

--------------- Homey Pro Overview (v2 API) --------------
Homey name: Homey Self-Hosted Server
Homey version: 13.4.1
Homey model: Homey Self-Hosted Server (4 core(s))
Uptime: 34435.33 (9 hours, 33 minutes, 55 seconds)
WiFi: not connected
Ethernet: not connected
Update available: None
Failed: Getting last backup
Storage: 42796822528 total, 12002664448 free

------------------ Main ---------------------
1 Users (1 owner, 0 manager(s), 0 user(s), 0 guest(s))
---------------------------------------------
SDKv3 apps:
HomeyScript
Email sender
---------------------------------------------
---------------------------------------------
Updateable apps:
---------------------------------------------
---------------------------------------------
Disabled apps:
---------------------------------------------
---------------------------------------------
Crashed apps:
---------------------------------------------
2 Apps (2 Stable, 0 Test, 0 Development, 0 SDKv2, 2 SDKv3, 0 updateable, 0 disabled, 0 crashed)
5 Zones
1 Notifications (Timeline)
1 Logic Variables (0 boolean (yes/no), 0 number, 1 string)
---------------------------------------------
Disabled flow names:
---------------------------------------------
---------------------------------------------
Broken flow names:
---------------------------------------------
0 Flows (0 broken, 0 disabled)
---------------------------------------------
Disabled advanced flow names:
---------------------------------------------
---------------------------------------------
Broken advanced flow names:
---------------------------------------------
0 Advanced flows (0 broken, 0 disabled)
0 Moods
0 Alarms (0 enabled)
Failed: Getting HomeyScript

----------------- Devices -------------------
---------------------------------------------
Virtual devices:
---------------------------------------------
---------------------------------------------
Infrared devices:
---------------------------------------------
---------------------------------------------
Other devices:
---------------------------------------------
0 Virtual devices
0 Infrared (database) devices
0 Other devices
0 Group devices
0 UniFi network-presence devices excluded
Failed: Getting Z-Wave State
---------------------------------------------
ZigBee nodes:
---------------------------------------------
---------------------------------------------
ZigBee routers:
---------------------------------------------
---------------------------------------------
ZigBee end devices:
---------------------------------------------
0 Zigbee nodes (0 router, 0 end device, 0 unknown type)
0 Total devices
Email sent to xxxxxxx

———————————————————
✅ Script Success
↩️ Returned: "Overview finished, email sent to xxxxxxx

.

Two things I noticed:

Ethernet: not connected
It surely is, but it uses Host Networking mode using the host (Home Assistant) LAN adapter (@ port 4859)
(see https://github.com/Doekse/addon-homeyshs/blob/main/homey-shs%2FDOCS.md).
I noticed with the SHS model there’s no distinguishing between Ethernet/WiFi; it just mentions “a” network connection IP & MAC → see developer site screenshot:

In general (both Pro & SHS related): I"ve disabled all z-wave and zigbee checks,

but both still are mentioned in the initial / full report. Is this just by design, or is it possible to omit the related entries from the report when these checks are disabled?

Thanks for testing this on Self-Hosted! Issues should be fixed now.

WiFi/Ethernet false “not connected”: SHS seems to have no separate WiFi/Ethernet radios to query, so those fields always came back false. Fixed in v1.5.1 and is now detected via the Homey model name and shown as “-” on SHS instead of a false alarm.

Backup-status check failing: same root cause (homeyPlatformVersion couldn’t tell Pro 2023+ apart from SHS). Fixed in v1.5.2 and excluded specifically for SHS, storage/throttling untouched.

Two things still open, and I would appreciate your input:

  • getAppSettings for HomeyScript also fails on SHS. Do you know if it’s exposed under a different app id there?
  • The Z-Wave/Zigbee section headers showing even with all toggles off is actually consistent with every other category (only name lists are toggle-gated). Thinking about a proper “hide whole section” master toggle later, across all categories at once.

With pleasure!

Ahhh good catch as well!

In the web app URL it’s the same as for the Pro 2026: com.athom.homeyscript
Oh, and as a test I installed BLL and it shows the test variable I created.

No problem, I’m all hands down for a “master toggle” some day.

.

→ Here’s the v1.5.2 output of a Homey SHS

--------------- Homey Pro Overview (v2 API) --------------

Homey name: 5.Homey SHS

Homey version: 13.4.1

Homey model: Homey Self-Hosted Server (4 core(s))

Uptime: 73652.7 (20 hours, 27 minutes, 32 seconds)

Update available: None

Storage: 42796822528 total, 11929735168 free


------------------ Main ---------------------

1 Users (1 owner, 0 manager(s), 0 user(s), 0 guest(s))

---------------------------------------------

SDKv2 apps:

---------------------------------------------

---------------------------------------------

SDKv3 apps:

Better Logic Library
Email sender
HomeyScript

---------------------------------------------

---------------------------------------------

Updateable apps:

---------------------------------------------

---------------------------------------------

Disabled apps:

---------------------------------------------

---------------------------------------------

Crashed apps:

---------------------------------------------

3 Apps (3 Stable, 0 Test, 0 Development, 0 SDKv2, 3 SDKv3, 0 updateable, 0 disabled, 0 crashed)

5 Zones

1 Notifications (Timeline)

1 Logic Variables (0 boolean (yes/no), 0 number, 1 string)

---------------------------------------------

Disabled flow names:

---------------------------------------------

---------------------------------------------

Broken flow names:

---------------------------------------------

1 Flows (0 broken, 0 disabled)

---------------------------------------------

Disabled advanced flow names:

---------------------------------------------

---------------------------------------------

Broken advanced flow names:

---------------------------------------------

1 Advanced flows (0 broken, 0 disabled)

0 Images

0 Moods

0 Alarms (0 enabled)

Failed: Getting HomeyScript

1 Better Logic Variables (0 boolean (yes/no), 0 number, 1 string)


----------------- Devices -------------------

---------------------------------------------

Virtual devices:

---------------------------------------------

---------------------------------------------

Infrared devices:

---------------------------------------------

---------------------------------------------

Other devices:

---------------------------------------------

0 Virtual devices

0 Infrared (database) devices

0 Other devices

0 Group devices

0 UniFi network-presence devices excluded

Failed: Getting Z-Wave State

0 Zigbee nodes (0 router, 0 end device, 0 unknown type)

0 Total devices

Email sent to xxxxxxx


———————————————————
✅ Script Success

↩️ Returned: "Overview finished, email sent to xxxxxxxx"

.

Emailed report:

Good catch on both, that rules out a wrong app id, and it’s useful that BLL’s getAppSettings works fine on SHS while HomeyScript’s doesn’t. So it’s failing for a more specific reason, not a blanket SHS limitation.

Rather than guess, I just added logging in v1.5.3: the actual error message, and what fields the returned object actually has.

Can you run it once more and paste the console log? That should tell what’s different about the HomeyScript response on SHS.

Here you go:
Failed: Processing HomeyScript settings — Cannot convert undefined or null to object — result keys: id, uri, scripts

Full log:

--------------- Homey Pro Overview (v2 API) --------------

Homey name: 5.Homey SHS

Homey version: 13.4.1

Homey model: Homey Self-Hosted Server (4 core(s))

Uptime: 122512.02 (1 day, 10 hours, 1 minute, 52 seconds)

Update available: None

Storage: 42796822528 total, 11553501184 free


------------------ Main ---------------------

1 Users (1 owner, 0 manager(s), 0 user(s), 0 guest(s))

---------------------------------------------

SDKv2 apps:

---------------------------------------------

---------------------------------------------

SDKv3 apps:

Better Logic Library
Email sender
Home Assistant Community
HomeyScript

---------------------------------------------

---------------------------------------------

Updateable apps:

---------------------------------------------

---------------------------------------------

Disabled apps:

---------------------------------------------

---------------------------------------------

Crashed apps:

---------------------------------------------

4 Apps (3 Stable, 1 Test, 0 Development, 0 SDKv2, 4 SDKv3, 0 updateable, 0 disabled, 0 crashed)

5 Zones

1 Notifications (Timeline)

1 Logic Variables (0 boolean (yes/no), 0 number, 1 string)

---------------------------------------------

Disabled flow names:

---------------------------------------------

---------------------------------------------

Broken flow names:

---------------------------------------------

1 Flows (0 broken, 0 disabled)

---------------------------------------------

Disabled advanced flow names:

---------------------------------------------

---------------------------------------------

Broken advanced flow names:

---------------------------------------------

1 Advanced flows (0 broken, 0 disabled)

0 Images

0 Moods

0 Alarms (0 enabled)

Failed: Processing HomeyScript settings — Cannot convert undefined or null to object — result keys: id, uri, scripts

1 Better Logic Variables (0 boolean (yes/no), 0 number, 1 string)


----------------- Devices -------------------

---------------------------------------------

Virtual devices:

---------------------------------------------

---------------------------------------------

Infrared devices:

---------------------------------------------

---------------------------------------------

Other devices:

Itho Fan

---------------------------------------------

0 Virtual devices

0 Infrared (database) devices

1 Other devices

0 Group devices

0 UniFi network-presence devices excluded

Failed: Getting Z-Wave State

---------------------------------------------

ZigBee nodes:

---------------------------------------------

---------------------------------------------

ZigBee routers:

---------------------------------------------

---------------------------------------------

ZigBee end devices:

---------------------------------------------

0 Zigbee nodes (0 router, 0 end device, 0 unknown type)

1 Total devices

Email sent to 

Thanks, think I fixed it. On Self-Hosted the tokens key was missing from the response, which crashed the whole HomeyScript section. Should be fixed in v1.5.4.

Let me know if it’s clean now.

Confirmed, it’s clean with v1.5.4

--------------- Homey Pro Overview (v2 API) --------------

Homey name: 5.Homey SHS

Homey version: 13.4.1

Homey model: Homey Self-Hosted Server (4 core(s))

...

17 HomeyScript scripts (0 tokens/tags)

1 Better Logic Variables (0 boolean (yes/no), 0 number, 1 string)

...

And the mailed report shows the scripts listing:

This possibly crossed your mind as well: Nice to have: filter the “example-xxx” scripts from the script listing?

Yes, that did cross my mind. :slight_smile: I occasionally use some of those example scripts, which is why I did not consider this too important. But since now someone is thinking the same, I added it as a toggle: showExampleScripts (default off, filters them out) so you can flip it back on if you use them. Now live in v1.5.5.