Skip to content

Commit

Permalink
0.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
lolouk44 committed Oct 5, 2022
1 parent 3e41f28 commit 61dca3c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [0.3.4] - 2022-10-05
### Changed
- Restored MQTT Discovery. ([fixes #65](https://github.com/lolouk44/hassio-addons/issues/65))
- Removed no longer needed MISCALE_VERSION

## [0.3.3] - 2022-10-03
### Changed
- Restoring handling of V1 scales. ([fixes #64](https://github.com/lolouk44/hassio-addons/issues/64))
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ List of options
Option | Type | Required | Description
--- | --- | --- | ---
MISCALE_MAC | string | Yes | Mac address of your scale
MISCALE_VERSION | int | No | `1` or `2` depending on the version of your scale, defaults to `2`
MQTT_HOST | string | Yes | MQTT Server (defaults to 127.0.0.1)
HCI_DEV | string | No | Bluetooth hci device to use. Defaults to hci0
MQTT_PREFIX | string | No | MQTT Topic Prefix. Defaults to miscale
Expand Down
2 changes: 1 addition & 1 deletion options.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"options": {
"MISCALE_MAC": "00:00:00:00:00:00",
"MQTT_HOST": "192.168.0.25",
"MQTT_HOST": "127.0.0.1",
"MQTT_USERNAME": "user",
"MQTT_PASSWORD": "passwd",

Expand Down
2 changes: 2 additions & 0 deletions src/Xiaomi_Scale.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,8 @@ def callback(device, advertising_data):


if __name__ == "__main__":
if MQTT_DISCOVERY:
MQTT_discovery()
sys.stdout.write('-------------------------------------\n')
sys.stdout.write(f"{datetime.now().strftime('%Y-%m-%d %H:%M:%S')} - Initialization Completed, Waiting for Scale...\n")
try:
Expand Down

0 comments on commit 61dca3c

Please sign in to comment.