1
1
# ha-menu
2
- <img src =" https://img.shields.io/github/stars/addyire/ha-menu?style=plastic " >
3
- <img src =" https://img.shields.io/badge/contributions-welcome-brightgreen " >
4
- <br >
2
+ <img src =" https://img.shields.io/github/stars/addyire/ha-menu?style=badge " > <img src =" https://img.shields.io/badge/contributions-welcome-brightgreen " ><br >
5
3
An ** insanely** customizable way to interact with Home Assistant in the menubar
6
4
7
5
<img src =" img/preview.png " width =800 >
@@ -12,8 +10,9 @@ An **insanely** customizable way to interact with Home Assistant in the menubar
12
10
- [ App Configuration] ( #app-configuration )
13
11
- [ Menubar Configuration] ( #menubar-configuration )
14
12
- [ Menu Item Types] ( #menu-item-types )
15
- - [ Icons] ( #icons )
16
- - [ Templating] ( #templating )
13
+ - [ MenuAction] ( #menuaction )
14
+ - [ Icons] ( #icons )
15
+ - [ Templating] ( #templating )
17
16
18
17
# Installation
19
18
@@ -175,7 +174,7 @@ Looks like a label but opens Home Assistant in your browser when clicked.
175
174
* ** required** ` label ` {` String ` }: The label for this item
176
175
* ` icon ` {` String ` }: The icon name for this item
177
176
178
- # ` MenuAction `
177
+ ## MenuAction
179
178
180
179
A ` MenuAction ` is how you can interact with Home Assistant.
181
180
@@ -194,7 +193,7 @@ A `MenuAction` is how you can interact with Home Assistant.
194
193
}
195
194
```
196
195
197
- # Icons
196
+ ## Icons
198
197
199
198
To add an icon to your Menu Bar follow these steps
200
199
@@ -208,7 +207,7 @@ To add an icon to your Menu Bar follow these steps
208
207
* Make the size of your image ` 32x32 `
209
208
* Add ` @2x ` to the end of your file name to make it a "High Resolution Image" (Read below for more information)
210
209
211
- ## High Resolution Image
210
+ ### High Resolution Image
212
211
213
212
To make your image look better in the Menubar you can make it "High Resolution" which increases the DPI. Here are the following options:
214
213
@@ -229,37 +228,37 @@ Just add one of these to the end of your file.
229
228
#### Example
230
229
231
230
232
- ## Icon Templates
231
+ ### Icon Templates
233
232
234
233
It is recommended that your icons are made a template. To make your icon a template
235
234
236
235
* Your image ** must** be only black pixels with a transparent background
237
236
* Add ` Template ` to the end of the name of your file.
238
237
239
- ## File Name Examples
238
+ ### File Name Examples
240
239
241
240
* ` icon.png ` -> ` iconTemplate.png `
242
241
243
242
244
- ## [ More Information Here] ( https://www.electronjs.org/docs/latest/api/native-image#high-resolution-image )
243
+ ### [ More Information Here] ( https://www.electronjs.org/docs/latest/api/native-image#high-resolution-image )
245
244
246
- # Templating
245
+ ## Templating
247
246
248
247
** The customization is not over!** You can also use Home Assistant Templates in certain fields!
249
248
250
- ## Supported Fields
249
+ ### Supported Fields
251
250
252
251
* ` label `
253
252
* ` icon `
254
253
* ` title `
255
254
256
- ## Converting To Templates
255
+ ### Converting To Templates
257
256
258
257
To make a field a template just add ` Template ` to the end of the field name and put your template in the value.
259
258
260
- ## Example
259
+ #### Example
261
260
``` json
262
261
{
263
262
"labelTemplate" : " {{ states('light.my_light') }}"
264
263
}
265
- ```
264
+ ```
0 commit comments