This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.

The Homey Community has been moved to https://community.athom.com.

This forum is now read-only for archive purposes.
Closed

Idea: Show/hide cards programatically

I want to be able to hide specific cards from my app.

Example is Chromecast app which would display "cast youtube" action only if YouTube app is installed.
if (!Homey.appInstalled('com.youtube', '~1.0.0'))
  Homey.hideAction('castYoutube')

Comments

  • Isn't this the otherway around? Shouldn't the youtube app make the action card only if the plugin is installed?
  • MatjaLipuMatjaLipu Member
    edited February 2016
    castYoutube is Chromecast's app action.
    Only dependent apps (Chromecast) should know about their dependencies (YouTube).
This discussion has been closed.