Skip to content

Commit

Permalink
v4.5.0
Browse files Browse the repository at this point in the history
- add BMI Label
  • Loading branch information
dckiller51 committed Jun 17, 2021
1 parent 75c0bc5 commit 1e2b819
Show file tree
Hide file tree
Showing 8 changed files with 73 additions and 32 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Changelog
All notable changes to this project will be documented in this file.

## v4.5.0
- add BMI Label

## v4.1.1
- fix


## v4.1.0
- Added DE language
- Replace the icons of materialdesignicons by the official "mifit" icons for the score body
Expand Down
25 changes: 18 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@

Card for data of Xiaomi scales in the Lovelace user interface of Home Assistant

The card is linked to the Bodymiscale custom components for Xiaomi scales. https://github.com/dckiller51/bodymiscale
The card is linked to the Bodymiscale custom components for Xiaomi scales. <https://github.com/dckiller51/bodymiscale>

## Installation

Manually add [body-miscale-card.js](https://raw.githubusercontent.com/dckiller51/lovelace-body-miscale-card/master/body-miscale-card.js)
to your `<config>/www/` folder and add the following to the `configuration.yaml` file:

```yaml
lovelace:
resources:
Expand All @@ -22,6 +23,7 @@ lovelace:
```
_OR_ install using [HACS](https://hacs.xyz/) and add this (if in YAML mode):
```yaml
lovelace:
resources:
Expand Down Expand Up @@ -54,10 +56,11 @@ to `<config>/www/images/bodyscoreIcon/`.
### Entity Data

Default bodymiscale attributes under each list:

- `attributes` (**right list**) include `weight`, `impedance` (Optional), `height`, `age` and `gender`.
- `body` (**left list**) include `water` (miscale 181B), `visceral_fat`, `body_fat` (miscale 181B), `bmi`, `muscle_mass` (miscale 181B),
- `body` (**left list**) include `water` (miscale 181B), `visceral_fat`, `body_fat` (miscale 181B), `bmi`, `muscle_mass` (miscale 181B),
`protein` (miscale 181B), `basal_metabolism`, `bone_mass` (miscale 181B), `metabolic_age` (miscale 181B),
`ideal`, `body_type`.
`ideal`, `body_type`.

See [examples](#examples) on how to customize, hide or add custom attributes.

Expand Down Expand Up @@ -98,6 +101,7 @@ Define your model. miscale (181D) or miscale 2 (181B) (with to impedance)
## Examples

Basic configuration:

```yaml
- type: custom:body-miscale-card
entity: bodymiscale.name
Expand All @@ -112,6 +116,7 @@ Basic configuration:
```

Hide specific attributes and/or buttons:

```yaml
- type: custom:body-miscale-card
entity: bodymiscale.name
Expand All @@ -120,9 +125,10 @@ Hide specific attributes and/or buttons:
gender: false
buttons:
user1: false
```
```

Customize specific buttons:

```yaml
- type: custom:body-miscale-card
entity: bodymiscale.name
Expand All @@ -135,6 +141,7 @@ Customize specific buttons:
```

Add custom attributes:

```yaml
- type: custom:body-miscale-card
entity: bodymiscale.name
Expand All @@ -149,6 +156,7 @@ Add custom attributes:
```

Add custom buttons and service calls:

```yaml
- type: custom:body-miscale-card
entity: bodymiscale.name
Expand All @@ -162,6 +170,7 @@ Add custom buttons and service calls:
```

Translations:

```yaml
- type: custom:body-miscale-card
entity: bodymiscale.name
Expand Down Expand Up @@ -189,11 +198,13 @@ Translations:
label: Siham
show: true
```

## Credits
The card is based on the work of Ben Tomlin https://github.com/benct/lovelace-xiaomi-vacuum-card
The card is based on the work of Denys Dovhan https://github.com/denysdovhan/purifier-card

The card is based on the work of Ben Tomlin <https://github.com/benct/lovelace-xiaomi-vacuum-card>
The card is based on the work of Denys Dovhan <https://github.com/denysdovhan/purifier-card>

## Disclaimer

This project is not affiliated, associated, authorized, endorsed by, or in any way officially connected with the Xiaomi Corporation,
or any of its subsidiaries or its affiliates. The official Xiaomi website can be found at https://www.mi.com/global/.
or any of its subsidiaries or its affiliates. The official Xiaomi website can be found at <https://www.mi.com/global/>.
36 changes: 18 additions & 18 deletions body-miscale-card.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions tracker.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"body-miscale-card": {
"updated_at": "2021-06-15",
"version": "v4.1.1",
"updated_at": "2021-06-17",
"version": "v4.5.0",
"remote_location": "https://raw.githubusercontent.com/dckiller51/lovelace-body-miscale-card/master/body-miscale-card.js",
"visit_repo": "https://github.com/dckiller51/lovelace-body-miscale-card",
"changelog": "https://github.com/dckiller51/lovelace-body-miscale-card/blob/master/CHANGELOG.md"
Expand Down
9 changes: 8 additions & 1 deletion translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"visceral_fat": "Bauchfett",
"body_fat": "Körperfett",
"bmi": "BMI",
"bmi_label": "BMI-Label",
"muscle_mass": "Muskelmasse",
"protein": "Protein",
"basal_metabolism": "Grundumsatz",
Expand All @@ -48,7 +49,13 @@
"Lack-exerscise": "Bewegungsmangel",
"Thick-set": "Stämmig",
"Obese": "Fettleibig",
"Overweight": "Übergewicht"
"Overweight": "Übergewicht",
"Underweight": "Untergewicht",
"Normal or Healthy Weight": "Normal",
"Slight overweight": "Leichtes Übergewicht",
"Moderate obesity": "Moderate Fettleibigkeit",
"Severe obesity": "Schwere Fettleibigkeit",
"Massive obesity": "Massive Fettleibigkeit"
},
"unit": {
" years": " jahre"
Expand Down
9 changes: 8 additions & 1 deletion translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"visceral_fat": "Visceral fat",
"body_fat": "Body fat",
"bmi": "BMI",
"bmi_label": "BMI label",
"muscle_mass": "Muscle mass",
"protein": "Protein",
"basal_metabolism": "Basal metabolism",
Expand All @@ -48,7 +49,13 @@
"Lack-exerscise": "Lack-exerscise",
"Thick-set": "Thick-set",
"Obese": "Obese",
"Overweight": "Overweight"
"Overweight": "Overweight",
"Underweight": "Underweight",
"Normal or Healthy Weight": "Normal or Healthy Weight",
"Slight overweight": "Slight overweight",
"Moderate obesity": "Moderate obesity",
"Severe obesity": "Severe obesity",
"Massive obesity": "Massive obesity"
},
"unit": {
" years": " years"
Expand Down
9 changes: 8 additions & 1 deletion translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"visceral_fat": "Graisse viscérale",
"body_fat": "Graisse corporelle",
"bmi": "IMC",
"bmi_label": "Étiquette IMC",
"muscle_mass": "Muscle",
"protein": "Protéine",
"basal_metabolism": "Métabolisme de base",
Expand All @@ -48,7 +49,13 @@
"Lack-exerscise": "Manque d'exercice",
"Thick-set": "Trapu",
"Obese": "Obèse",
"Overweight": "Surpoids"
"Overweight": "Surpoids",
"Underweight": "Insuffisance pondérale",
"Normal or Healthy Weight": "Normal",
"Slight overweight": "Léger surpoids",
"Moderate obesity": "Obésité modérée",
"Severe obesity": "Obésité sévère",
"Massive obesity": "Obésité massive"
},
"unit": {
" years": " ans"
Expand Down
9 changes: 8 additions & 1 deletion translations/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"visceral_fat": "Gordura visceral",
"body_fat": "Gordura corporal",
"bmi": "IMC",
"bmi_label": "Etiqueta IMC",
"muscle_mass": "Massa muscular",
"protein": "Proteína",
"basal_metabolism": "Metabolismo basal",
Expand All @@ -48,7 +49,13 @@
"Lack-exerscise": "Falta de exercício",
"Thick-set": "Grosso-conjunto",
"Obese": "Obeso",
"Overweight": "Sobrepeso"
"Overweight": "Sobrepeso",
"Underweight": "Underweight",
"Normal or Healthy Weight": "Normal",
"Slight overweight": "Ligeiro acima do peso",
"Moderate obesity": "Obesidade moderada",
"Severe obesity": "Obesidade severa",
"Massive obesity": "Obesidade maciça"
},
"unit": {
" years": " Anos"
Expand Down

0 comments on commit 1e2b819

Please sign in to comment.