mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-06-15 10:58:40 +00:00
Add renaming device docs
This commit is contained in:
@ -18,13 +18,21 @@ To stop the reporting, the option must be turned off in the settings and then th
|
|||||||
|
|
||||||
In both cases, the enable and repeat time settings can be changed whilst the application is running (i.e. live) and the background service will be amended.
|
In both cases, the enable and repeat time settings can be changed whilst the application is running (i.e. live) and the background service will be amended.
|
||||||
|
|
||||||
## Adding a sample Home Assistant UI widget
|
## Renaming the device
|
||||||
|
|
||||||
A gauge for battery level with a charging icon making use of [mushroom cards](https://github.com/piitaya/lovelace-mushroom), [card_mod](https://github.com/thomasloven/lovelace-card-mod) and [stack-in-card](https://github.com/custom-cards/stack-in-card):
|
When the device is first created, it will be called `Garmin Watch`. This can be changed in the mobile app integration settings (button below).
|
||||||
|
|
||||||
<img src="images/Battery_Guage_Screenshot.png" width="120" title="Battery Gauge"/>
|
[](https://my.home-assistant.io/redirect/integration/?domain=mobile_app)
|
||||||
|
|
||||||
### Fixing the icon
|
Select the device called `Garmin Watch` and then click on the edit icon in the top right corner. You can then change the name of the device to whatever you like, then press `UPDATE` and then `RENAME`.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
|
## Fixing the icon
|
||||||
|
|
||||||
In configuration.yaml:
|
In configuration.yaml:
|
||||||
|
|
||||||
@ -40,7 +48,11 @@ template:
|
|||||||
icon: "mdi:battery{% if is_state('binary_sensor.<device>_battery_is_charging', 'on') %}-charging{% endif %}{% if 0 < (states('sensor.<device>_battery_level') | float / 10 ) | round(0) * 10 < 100 %}-{{ (states('sensor.<device>_battery_level') | float / 10 ) | round(0) * 10 }}{% else %}{% if (states('sensor.<device>_battery_level') | float / 10 ) | round(0) * 10 == 0 %}-outline{% else %}{% if is_state('binary_sensor.<device>_battery_is_charging', 'on') %}-100{% endif %}{% endif %}{% endif %}"
|
icon: "mdi:battery{% if is_state('binary_sensor.<device>_battery_is_charging', 'on') %}-charging{% endif %}{% if 0 < (states('sensor.<device>_battery_level') | float / 10 ) | round(0) * 10 < 100 %}-{{ (states('sensor.<device>_battery_level') | float / 10 ) | round(0) * 10 }}{% else %}{% if (states('sensor.<device>_battery_level') | float / 10 ) | round(0) * 10 == 0 %}-outline{% else %}{% if is_state('binary_sensor.<device>_battery_is_charging', 'on') %}-100{% endif %}{% endif %}{% endif %}"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Adding the widget
|
## Adding a sample Home Assistant UI widget
|
||||||
|
|
||||||
|
A gauge for battery level with a charging icon making use of [mushroom cards](https://github.com/piitaya/lovelace-mushroom), [card_mod](https://github.com/thomasloven/lovelace-card-mod) and [stack-in-card](https://github.com/custom-cards/stack-in-card):
|
||||||
|
|
||||||
|
<img src="images/Battery_Guage_Screenshot.png" width="120" title="Battery Gauge"/>
|
||||||
|
|
||||||
In lovelace:
|
In lovelace:
|
||||||
|
|
||||||
|
BIN
images/rename_device.png
Normal file
BIN
images/rename_device.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 56 KiB |
BIN
images/rename_device_2.png
Normal file
BIN
images/rename_device_2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 80 KiB |
Reference in New Issue
Block a user