This commit is contained in:
lolouk44 2020-11-24 12:09:34 +00:00
parent 9ba304cf11
commit 8aec9d6c75
4 changed files with 16 additions and 9 deletions

View File

@ -1,6 +1,11 @@
## [0.1.14] - 2020-11-24
### Changed
- 2nd attempt to fix executable files (fixes https://github.com/lolouk44/hassio-addons/issues/23)
- Fixed image links in README file
## [0.1.13] - 2020-11-24 ## [0.1.13] - 2020-11-24
### Changed ### Changed
- Fixed executable files (fixes https://github.com/lolouk44/hassio-addons/issues/23) - Fixed executable files ~~(fixes https://github.com/lolouk44/hassio-addons/issues/23)~~
## [0.1.12] - 2020-11-23 ## [0.1.12] - 2020-11-23
### Changed ### Changed

View File

@ -1,5 +1,5 @@
FROM python:3.8-slim FROM python:3.8-slim
LABEL io.hass.version="0.1.13" io.hass.type="addon" io.hass.arch="armhf|aarch64|i386|amd64" LABEL io.hass.version="0.1.14" io.hass.type="addon" io.hass.arch="armhf|aarch64|i386|amd64"
WORKDIR /opt/miscale WORKDIR /opt/miscale
COPY src /opt/miscale COPY src /opt/miscale
@ -14,5 +14,7 @@ RUN pip install -r requirements.txt
# Copy in docker scripts to root of container... # Copy in docker scripts to root of container...
COPY dockerscripts/ / COPY dockerscripts/ /
RUN chmod +x /entrypoint.sh
RUN chmod +x /cmd.sh
ENTRYPOINT ["/entrypoint.sh"] ENTRYPOINT ["/entrypoint.sh"]
CMD ["/cmd.sh"] CMD ["/cmd.sh"]

View File

@ -14,16 +14,16 @@ Needs to be replaced with
## Supported Scales: ## Supported Scales:
Name | Model | Picture Name | Model | Picture
--- | --- | :---: --- | --- | :---:
[Mi Smart Scale 2](https://www.mi.com/global/scale)                                                                                               | XMTZCO1HM, XMTZC04HM | ![Mi Scale_2](https://github.com/lolouk44/xiaomi_mi_scale/blob/master/Screenshots/Mi_Smart_Scale_2_Thumb.png) [Mi Smart Scale 2](https://www.mi.com/global/scale)                                                                                               | XMTZCO1HM, XMTZC04HM | ![Mi Scale_2](https://raw.githubusercontent.com/lolouk44/xiaomi_mi_scale/master/Screenshots/Mi_Smart_Scale_2_Thumb.png)
[Mi Body Composition Scale](https://www.mi.com/global/mi-body-composition-scale/) | XMTZC02HM | ![Mi Scale](https://github.com/lolouk44/xiaomi_mi_scale/blob/master/Screenshots/Mi_Body_Composition_Scale_Thumb.png) [Mi Body Composition Scale](https://www.mi.com/global/mi-body-composition-scale/) | XMTZC02HM | ![Mi Scale](https://raw.githubusercontent.com/lolouk44/xiaomi_mi_scale/master/Screenshots/Mi_Body_Composition_Scale_Thumb.png)
[Mi Body Composition Scale 2](https://c.mi.com/thread-2289389-1-0.html) | XMTZC05HM | ![Mi Body Composition Scale 2](https://github.com/lolouk44/xiaomi_mi_scale/blob/master/Screenshots/Mi_Body_Composition_Scale_2_Thumb.png) [Mi Body Composition Scale 2](https://c.mi.com/thread-2289389-1-0.html) | XMTZC05HM | ![Mi Body Composition Scale 2](https://raw.githubusercontent.com/lolouk44/xiaomi_mi_scale/master/Screenshots/Mi_Body_Composition_Scale_2_Thumb.png)
## Setup ## Setup
1. Retrieve the scale's MAC Address from the Xiaomi Mi Fit App: 1. Retrieve the scale's MAC Address from the Xiaomi Mi Fit App:
![MAC Address](https://github.com/lolouk44/xiaomi_mi_scale/blob/master/Screenshots/MAC_Address.png) ![MAC Address](https://raw.githubusercontent.com/lolouk44/xiaomi_mi_scale/master/Screenshots/MAC_Address.png)
2. Open Home Assistant and navigate to add-on store. Click on the 3 dots (top right) and select Repositories 2. Open Home Assistant and navigate to add-on store. Click on the 3 dots (top right) and select Repositories
3. Enter `https://github.com/lolouk44/hassio-addons` in the box and click on Add 3. Enter `https://github.com/lolouk44/hassio-addons` in the box and click on Add
@ -98,9 +98,9 @@ Under the `sensor` block, enter as many blocks as users configured in your envir
``` ```
![Mi Scale](https://github.com/lolouk44/xiaomi_mi_scale/blob/master/Screenshots/HA_Lovelace_Card.png) ![Mi Scale](https://raw.githubusercontent.com/lolouk44/xiaomi_mi_scale/master/Screenshots/HA_Lovelace_Card.png)
![Mi Scale](https://github.com/lolouk44/xiaomi_mi_scale/blob/master/Screenshots/HA_Lovelace_Card_Details.png) ![Mi Scale](https://raw.githubusercontent.com/lolouk44/xiaomi_mi_scale/master/Screenshots/HA_Lovelace_Card_Details.png)
## Acknowledgements: ## Acknowledgements:
Thanks to @syssi (https://gist.github.com/syssi/4108a54877406dc231d95514e538bde9) and @prototux (https://github.com/wiecosystem/Bluetooth) for their initial code Thanks to @syssi (https://gist.github.com/syssi/4108a54877406dc231d95514e538bde9) and @prototux (https://github.com/wiecosystem/Bluetooth) for their initial code

View File

@ -1,6 +1,6 @@
{ {
"name": "Xiaomi Mi Scale", "name": "Xiaomi Mi Scale",
"version": "0.1.13", "version": "0.1.14",
"slug": "xiaomi_mi_scale", "slug": "xiaomi_mi_scale",
"description": "Read weight measurements from Xiamomi scale via BLE", "description": "Read weight measurements from Xiamomi scale via BLE",
"url": "https://github.com/lolouk44/xiaomi_mi_scale_ha_add_on", "url": "https://github.com/lolouk44/xiaomi_mi_scale_ha_add_on",