# Script to restart Google Chromecast

**URL:** <https://community.homey.app/t/script-to-restart-google-chromecast/80919>\
**Category:** Apps\
**Tags:** homeyscript\
**Created:** [May 22, 2023, 8:50am UTC](https://community.homey.app/t/script-to-restart-google-chromecast/80919 "2023-05-22T08:50:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [May 22, 2023, 12:35pm UTC](https://community.homey.app/t/script-to-restart-google-chromecast/80919/2 "2023-05-22T12:35:45Z")

</div>

The right app id can be found [here](https://tools.developer.homey.app/tools/devices) (enter an app’s device name)

 ![Screenshot_20230522-142558_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/e/1e938461021e971911edee2dd91f3121043f5760.jpeg)

Or just take a look at the app store URL; the last part of the app id is the ‘reversed URL’ right after `/app/`

`https://homey.app/en-gb/app/com.google.chromecast/Google-Chromecast/`

But why not use a flow (I’m on my mobile, sorry, so ‘glue’ the screenshots from left to right)

 ![Screenshot_20230522-141917_Firefox](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/a/0aff17b577a8a2a760275663faaa4a56243e0e6c.jpeg)

 ![Screenshot_20230522-141952_Firefox](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/8/8841a6ab637a32a5c47cc2a423a3f5f01992d00a.jpeg)

 ![Screenshot_20230522-142045_Firefox](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/2/822e39c435e44b622aa26957146f2d7a7f0dd7b4.jpeg)

Explained: When the app is paused or crashed, the Chromecast card will be unavailable.  
In that case, the flow restarts Chromecast

---

_[View the full topic](https://community.homey.app/t/script-to-restart-google-chromecast/80919)._
