resoai / TileBoard

A simple yet highly configurable Dashboard for HomeAssistant
MIT License
1.63k stars 278 forks source link

Open popup from event #717

Closed matthias-trip closed 3 years ago

matthias-trip commented 3 years ago

Hi all,

First of all I would like to say thank you for this wonderful project!

While creating my TileBoard I had the idea of having it automatically open a DOOR_ENTRY popup when the doorbell rings. I can easily set this up in Home Assistant by calling , but have no idea how to get this done in TileBoard.

Is this kind of event automation even possible? Either native in TileBoard or by using native JS?

Thanks!

alphasixtyfive commented 3 years ago

You can read about the events here: https://github.com/resoai/TileBoard#events

You would need to define DOOR_ENTRY tile as a variable and use something like this as an action in the event:

action: function() {
    this.$scope.openDoorEntry(TILE_VAR, TILE_VAR.id);
}