mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-06-16 11:28:40 +00:00
Documentation for v2.19
This commit is contained in:
@ -31,4 +31,4 @@
|
|||||||
| 2.16 | Bug fix for lack of phone connection when starting the application. Includes new activity reporting features from [KPWhiver](https://github.com/KPWhiver) covering steps, heart rate, floors climbed and descended, and respiration rate. |
|
| 2.16 | Bug fix for lack of phone connection when starting the application. Includes new activity reporting features from [KPWhiver](https://github.com/KPWhiver) covering steps, heart rate, floors climbed and descended, and respiration rate. |
|
||||||
| 2.17 | Bug fix for reporting activity metrics that are not found on some devices. |
|
| 2.17 | Bug fix for reporting activity metrics that are not found on some devices. |
|
||||||
| 2.18 | Bug fix for reporting activity metrics that might be `null` sometimes. This is unsimulatable situation, so this version is a change based on an informed guess. |
|
| 2.18 | Bug fix for reporting activity metrics that might be `null` sometimes. This is unsimulatable situation, so this version is a change based on an informed guess. |
|
||||||
| 2.19 | A template to evaluate is now optionally allowed on both `group` and `toggle` menu items. The template to evaluate is non-optional on a `template` menu item. |
|
| 2.19 | A template to evaluate is now optionally allowed on both `group` and `toggle` menu items. The template to evaluate is non-optional on a `template` menu item. All updates are performed in a single HTTP GET request for efficiency. Bug fix for negative heading values. Vibration now (optionally) confirms toggle menu items being tapped. |
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Actions
|
# Actions
|
||||||
|
|
||||||
A simple example using a scene as a `tap`` menu item.
|
A simple example using a scene as a `tap` menu item.
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
@ -43,6 +43,17 @@ Then you can use the following in your config:
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
And you can optionally include a template to reflect some status. See [Templates](Templates.md) for details on hwo to use this JSON field.
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"entity": "switch.<switch-name>",
|
||||||
|
"name": "<name>",
|
||||||
|
"type": "toggle",
|
||||||
|
"content": "..."
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Example - Covers
|
## Example - Covers
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
@ -118,6 +118,20 @@ Note: Only when you use the `tap_action` field do you also need to include the `
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Group and Toggle Menu Items
|
||||||
|
|
||||||
|
Both `group` and `toggle` menu items accept an optional `content` field as of v2.19. This allows the use of templates to present status information.
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"name": "Each Lounge Light",
|
||||||
|
"title": "Lounge",
|
||||||
|
"type": "group",
|
||||||
|
"content": "{{'On: %d, Off: %d'|format(expand(state_attr('light.living_room_lights', 'entity_id'))|selectattr('state','eq','on')|map(attribute='entity_id')|list|count, expand(state_attr('light.living_room_lights', 'entity_id'))|selectattr('state','eq','off')|map(attribute='entity_id')|list|count)}}",
|
||||||
|
"items": [..]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Advanced
|
## Advanced
|
||||||
|
|
||||||
Here we generate a bar graph of the battery level. We use the following steps to do this:
|
Here we generate a bar graph of the battery level. We use the following steps to do this:
|
||||||
|
Reference in New Issue
Block a user