I think the script in this post shows nice examples:
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Homeyscript - no output whatsoever | 3 | 473 | May 3, 2023 | |
| How to log events in HomeyScript and how to retrieve them | 3 | 52 | June 8, 2026 | |
| Script for collecting and displaying trace/debug info | 4 | 580 | December 8, 2022 | |
| Use of ifdef homeyscripts | 2 | 75 | July 13, 2024 | |
| Using Homey script output in a flow | 3 | 1650 | October 4, 2022 |