Update icon sources (#2204)
All icon sources will be supported in the next releases of Android and iOS apps. Signed-off-by: mueller-ma <mueller-ma@users.noreply.github.com>pull/2206/head
parent
40758a20e4
commit
bf53b487ce
|
@ -170,12 +170,12 @@ The following naming style guide is recommended:
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
| Item Name | Interpretation (assumed Item type, example value) |
|
| Item Name | Interpretation (assumed Item type, example value) |
|
||||||
| --------------------------------- | ------------------------------------------------------------------------------------------------------- |
|
| ------------------------------- | ------------------------------------------------------------------------------------------------------- |
|
||||||
| "`Livingroom_CeilingLight`" | Living room light (Switch, e.g. ON) |
|
| `Livingroom_CeilingLight` | Living room light (Switch, e.g. ON) |
|
||||||
| "`Livingroom_CeilingLight_Color`" | Living room light color (Color, e.g. warm white) |
|
| `Livingroom_CeilingLight_Color` | Living room light color (Color, e.g. warm white) |
|
||||||
| "`GF_BR_WashingMachine_Power`" | Electric power consumed by the washing machine located in the ground floor bathroom (Number, e.g. 100W) |
|
| `GF_BR_WashingMachine_Power` | Electric power consumed by the washing machine located in the ground floor bathroom (Number, e.g. 100W) |
|
||||||
| "`Lighting_Scene`" | Overall lighting scene of the house (String, e.g. Party) |
|
| `Lighting_Scene` | Overall lighting scene of the house (String, e.g. Party) |
|
||||||
| "`Presence_John_Smartphone`" | An Item indicating if John is home or not, based on smartphone detection (Switch, e.g. Offline) |
|
| `Presence_John_Smartphone` | An Item indicating if John is home or not, based on smartphone detection (Switch, e.g. Offline) |
|
||||||
|
|
||||||
[Group](#groups) is a special Item type that may be used to nest or combine Items.
|
[Group](#groups) is a special Item type that may be used to nest or combine Items.
|
||||||
Users are encouraged to apply the style guide above to group names as well as Item names.
|
Users are encouraged to apply the style guide above to group names as well as Item names.
|
||||||
|
@ -186,11 +186,11 @@ Two naming schemes are established in the community for Group names:
|
||||||
1. Prepend a lowercase "g" to the name (e.g. gBattery)
|
1. Prepend a lowercase "g" to the name (e.g. gBattery)
|
||||||
|
|
||||||
| Group Name | Interpretation |
|
| Group Name | Interpretation |
|
||||||
| ----------------------------------------- | --------------------------------------------------------------------- |
|
| ------------------------------------- | --------------------------------------------------------------------- |
|
||||||
| "`Batteries`" or "`gBattery`" | Group combining the states of all battery Items |
|
| `Batteries` or `gBattery` | Group combining the states of all battery Items |
|
||||||
| "`Maintenance_Group`" or "`gMaintenance`" | Group containing all maintenance-related Items |
|
| `Maintenance_Group` or `gMaintenance` | Group containing all maintenance-related Items |
|
||||||
| "`Livingroom_Lights`" or "`gLR_Light`" | Group containing all light Items belonging to the living room |
|
| `Livingroom_Lights` or `gLR_Light` | Group containing all light Items belonging to the living room |
|
||||||
| "`Livingroom`" or "`gLR`" | Group for _all_ Items (including lights) belonging to the living room |
|
| `Livingroom` or `gLR` | Group for _all_ Items (including lights) belonging to the living room |
|
||||||
|
|
||||||
### Label
|
### Label
|
||||||
|
|
||||||
|
@ -352,17 +352,16 @@ Switch Kitchen_Light "Kitchen Light" <f7:lightbulb>
|
||||||
Switch Garage_Light "Garage Light" <if:mdi:lightbulb>
|
Switch Garage_Light "Garage Light" <if:mdi:lightbulb>
|
||||||
```
|
```
|
||||||
|
|
||||||
Here is the list of available icon sources and how they are supported by the major user interfaces.
|
Here is the list of available icon sources that are supported by the major user interfaces (Main UI, Basic UI, Android and iOS app).
|
||||||
|
|
||||||
| Source name | Source description | Main UI | Basic UI | Android app | iOS app |
|
| Source name | Source description |
|
||||||
| -------------------- | ------------------------------------- | ---------- | --------------------------------- | ----------------- | ----------------- |
|
| ----------------- | ------------------------------------------------------------------------ |
|
||||||
| `oh` | Icons provided via the openHAB server | Supported | Supported | Supported | Supported |
|
| `oh` | Icons provided via the openHAB server |
|
||||||
| `material` | [Material icons](https://fonts.google.com/icons?icon.set=Material+Icons) | Supported | Supported | Not yet supported | Not yet supported |
|
| `material` | [Material icons](https://fonts.google.com/icons?icon.set=Material+Icons) |
|
||||||
| `f7` | [Framework7 icons](https://framework7.io/icons/) | Supported | Supported | Not yet supported | Not yet supported |
|
| `f7` | [Framework7 icons](https://framework7.io/icons/) |
|
||||||
| `if` or `iconify` | [iconify icons](https://icon-sets.iconify.design/) | Supported | Supported but needs to be enabled | Not yet supported | Supported |
|
| `if` or `iconify` | [iconify icons](https://icon-sets.iconify.design/) |
|
||||||
|
|
||||||
Please note that the iconify option requires Internet connectivity on the client to access the external API.
|
Please note that the iconify option requires internet connectivity on the client to access the external API.
|
||||||
The WEB browser will cache the retrieved icons to limit the requests and speed up the rendering.
|
|
||||||
Certain user interfaces provide a setting to enable this option, e.g. Basic UI disables this option by default but allows it to be enabled.
|
Certain user interfaces provide a setting to enable this option, e.g. Basic UI disables this option by default but allows it to be enabled.
|
||||||
|
|
||||||
#### Dynamic Icons
|
#### Dynamic Icons
|
||||||
|
|
Loading…
Reference in New Issue