# Missing\_scopes when using Homey.zigBee.runCommand

**URL:** <https://community.homey.app/t/missing-scopes-when-using-homey-zigbee-runcommand/72211>\
**Category:** Developers\
**Tags:** zigbee, homeyscript\
**Created:** [November 15, 2022, 7:07pm UTC](https://community.homey.app/t/missing-scopes-when-using-homey-zigbee-runcommand/72211 "2022-11-15T19:07:19Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [November 17, 2022, 1:51am UTC](https://community.homey.app/t/missing-scopes-when-using-homey-zigbee-runcommand/72211/5 "2022-11-17T01:51:01Z")

</div>

YW!  
Yeah the script is aimed at sensors which ‘at random’ stop sending changes.  
I think HomeyScript has the same permissions on Homey, where-ever you use it.

The web-api playground however, seems to have more permissions. But that is only useful for manually running some code.

Here’s a ‘bad route’ detection script which might be of any use:

> [@\[Community Survey\] Homey v5 ZigBee Health check and statistics collection (HomeyScript)](https://community.homey.app/t/community-survey-homey-v5-zigbee-health-check-and-statistics-collection-homeyscript/44231):
>
> Hi Guys, With the ZigBee improvements in Homey Firmware v5 and reading about all tips for building and fixing a good ZigBee mesh network I wanted to know how big ZigBee Meshes grow on Homey and how Happy the Homey users are with it. To collect all Data I ask you to run a [HomeyScript](https://homey.app/en-gb/app/com.athom.homeyscript/HomeyScript/) on your Homey V5 and report back some results here. The script is placed on my Github as it is to large for here. For copying the script to HomeyScript you can better open it [RAW here!](https://raw.githubusercontent.com/Dijker/nu.Dijker.UnseenHomeyScripts/master/ZigBeeHealth.js) How to run the script: I…

---

_[View the full topic](https://community.homey.app/t/missing-scopes-when-using-homey-zigbee-runcommand/72211)._
