mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-24 01:36:32 +00:00
Add blog post for custom tile features (#1697)
This commit is contained in:
parent
c471f4ef53
commit
0b2e058a97
29
blog/2023-02-28-custom-tile-features.md
Normal file
29
blog/2023-02-28-custom-tile-features.md
Normal file
@ -0,0 +1,29 @@
|
||||
---
|
||||
author: Paul Bottein
|
||||
authorURL: https://github.com/piitaya
|
||||
authorTwitter: piitaya
|
||||
title: Custom tile features
|
||||
---
|
||||
|
||||
In the Home Assistant Core 2022.3 release, we add custom features for the [tile card](https://www.home-assistant.io/dashboards/tile/). If you are a developer of custom cards, you can now build your own features to the tile card instead of building a whole card.
|
||||
|
||||

|
||||
|
||||
```yaml
|
||||
type: tile
|
||||
entity: button.push
|
||||
features:
|
||||
- type: custom:button-press-tile-feature
|
||||
```
|
||||
|
||||
Custom tile features can even be added to the tile card editor like any other built-in tile feature using similar syntax as custom cards.
|
||||
|
||||
```js
|
||||
window.customTileFeatures = window.customTileFeatures || [];
|
||||
window.customTileFeatures.push({
|
||||
type: "button-press-tile-feature",
|
||||
name: "Button press",
|
||||
});
|
||||
```
|
||||
|
||||
For more details, see the [custom tile features](/docs/frontend/custom-ui/custom-card/#tile-features) documentation.
|
BIN
static/img/en/blog/2023-02-28-custom-tile-features/example.png
Normal file
BIN
static/img/en/blog/2023-02-28-custom-tile-features/example.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.5 KiB |
Loading…
x
Reference in New Issue
Block a user