# Better logic with homeyscript

**URL:** <https://community.homey.app/t/better-logic-with-homeyscript/13420>\
**Category:** Questions & Help\
**Created:** [May 20, 2019, 7:03pm UTC](https://community.homey.app/t/better-logic-with-homeyscript/13420 "2019-05-20T19:03:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Ludwig\_Hallgren](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ludwig_hallgren/32/10694_2.png) [@Ludwig\_Hallgren](https://community.homey.app/u/Ludwig_Hallgren)\
**Post date:** [May 20, 2019, 9:08pm UTC](https://community.homey.app/t/better-logic-with-homeyscript/13420/2 "2019-05-20T21:08:03Z")

</div>

I’m not so into better logic yet since built in logic works great for me so far. Homeys own API works nice for crud operations in logic variables.

> [@\[APP\]\[Pro\] HomeyScript](https://community.homey.app/t/homeyscript-app/854/28):
>
> let devices = await Homey.devices.getDevices(); \_.forEach(devices, device =\> { console.log(device.name, ’ ',device.id); });

---

_[View the full topic](https://community.homey.app/t/better-logic-with-homeyscript/13420)._
