diff --git a/CHANGELOG.md b/CHANGELOG.md index 9818077..75ee713 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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)) diff --git a/README.md b/README.md index 26a0264..a94064a 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/options.json b/options.json index 076e1a8..3110001 100644 --- a/options.json +++ b/options.json @@ -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", diff --git a/src/Xiaomi_Scale.py b/src/Xiaomi_Scale.py index 8a0d460..11ab064 100755 --- a/src/Xiaomi_Scale.py +++ b/src/Xiaomi_Scale.py @@ -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: