diff --git a/Cargo.lock b/Cargo.lock index f33cad05..cfbf9d3d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -852,7 +852,7 @@ checksum = "fed44880c466736ef9a5c5b5facefb5ed0785676d0c02d612db14e54f0d84286" [[package]] name = "homie-controller" -version = "0.8.0" +version = "0.9.0" dependencies = [ "flume", "futures", @@ -868,7 +868,7 @@ dependencies = [ [[package]] name = "homie-device" -version = "0.8.0" +version = "0.9.0" dependencies = [ "flume", "futures", @@ -1330,7 +1330,7 @@ dependencies = [ [[package]] name = "mijia" -version = "0.7.0" +version = "0.7.1" dependencies = [ "backoff", "bluez-async", @@ -1347,7 +1347,7 @@ dependencies = [ [[package]] name = "mijia-homie" -version = "0.2.6" +version = "0.2.7" dependencies = [ "backoff", "btsensor", diff --git a/applehat/Cargo.toml b/applehat/Cargo.toml index 4a9bbcd9..e0359177 100644 --- a/applehat/Cargo.toml +++ b/applehat/Cargo.toml @@ -13,8 +13,8 @@ categories = ["network-programming"] color-backtrace = "0.6.0" eyre = "0.6.8" futures = "0.3.27" -homie-controller = { version = "0.8.0", path = "../homie-controller" } -homie-device = { version = "0.8.0", path = "../homie-device" } +homie-controller = { version = "0.9.0", path = "../homie-controller" } +homie-device = { version = "0.9.0", path = "../homie-device" } log = "0.4.20" pretty_env_logger = "0.5.0" rainbow-hat-rs = "0.2.1" @@ -34,9 +34,21 @@ section = "net" maintainer-scripts = "debian-scripts" conf-files = ["/etc/applehat/applehat.toml"] assets = [ - ["target/release/applehat", "usr/bin/", "755"], - ["applehat.example.toml", "etc/applehat/applehat.toml", "640"], - ["README.md", "usr/share/doc/applehat/", "644"], + [ + "target/release/applehat", + "usr/bin/", + "755", + ], + [ + "applehat.example.toml", + "etc/applehat/applehat.toml", + "640", + ], + [ + "README.md", + "usr/share/doc/applehat/", + "644", + ], ] # This section needs to be here even if it's empty, for the systemd integration to work. diff --git a/btsensor/CHANGELOG.md b/btsensor/CHANGELOG.md new file mode 100644 index 00000000..f5a2a4fc --- /dev/null +++ b/btsensor/CHANGELOG.md @@ -0,0 +1,6 @@ +# Changelog + +## 0.1.0 + +First release of `btsensor`. This supports BTHome v1 and v2 (unencrypted), atc1441 format and pvvx +custom format. diff --git a/homie-controller/CHANGELOG.md b/homie-controller/CHANGELOG.md index 7bfd3d45..1a02c337 100644 --- a/homie-controller/CHANGELOG.md +++ b/homie-controller/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 0.9.0 + +### Breaking changes + +- Updated to `rumqttc` 0.22. + ## 0.8.0 ### Breaking changes diff --git a/homie-controller/Cargo.toml b/homie-controller/Cargo.toml index 1bca9b95..0e94cf9a 100644 --- a/homie-controller/Cargo.toml +++ b/homie-controller/Cargo.toml @@ -1,7 +1,10 @@ [package] name = "homie-controller" -version = "0.8.0" -authors = ["Andrew Walbran ", "David Laban "] +version = "0.9.0" +authors = [ + "Andrew Walbran ", + "David Laban ", +] edition = "2018" license = "MIT OR Apache-2.0" description = "A library for creating controllers to talk to devices implementing the Homie convention for MQTT." @@ -17,8 +20,13 @@ thiserror = "1.0.47" [dev-dependencies] flume = "0.10.14" futures = "0.3.27" -homie-device = { version = "0.8.0", path = "../homie-device" } +homie-device = { version = "0.9.0", path = "../homie-device" } pretty_env_logger = "0.5.0" rumqttd = "0.13.0" rumqttlog = "0.9.0" -tokio = { version = "1.32.0", features = ["macros", "rt", "rt-multi-thread", "time"] } +tokio = { version = "1.32.0", features = [ + "macros", + "rt", + "rt-multi-thread", + "time", +] } diff --git a/homie-controller/src/lib.rs b/homie-controller/src/lib.rs index 1339470f..485572ee 100644 --- a/homie-controller/src/lib.rs +++ b/homie-controller/src/lib.rs @@ -541,7 +541,7 @@ impl HomieController { node_id, property_id, ) { - Ok(mut property) => { + Ok(property) => { property.value = Some(payload.to_owned()); vec![Event::property_value( device_id, diff --git a/homie-device/CHANGELOG.md b/homie-device/CHANGELOG.md index 811ac272..b25e859a 100644 --- a/homie-device/CHANGELOG.md +++ b/homie-device/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 0.9.0 + +### Breaking changes + +- Updated to `rumqttc` 0.22. + ## 0.8.0 ### Breaking changes diff --git a/homie-device/Cargo.toml b/homie-device/Cargo.toml index 33e302bf..1bee47ba 100644 --- a/homie-device/Cargo.toml +++ b/homie-device/Cargo.toml @@ -1,7 +1,10 @@ [package] name = "homie-device" -version = "0.8.0" -authors = ["Andrew Walbran ", "David Laban "] +version = "0.9.0" +authors = [ + "Andrew Walbran ", + "David Laban ", +] edition = "2018" license = "MIT OR Apache-2.0" description = "A library for creating devices implementing the Homie convention for MQTT." @@ -22,4 +25,9 @@ thiserror = "1.0.47" [dev-dependencies] pretty_env_logger = "0.5.0" rand = "0.8.5" -tokio = { version = "1.32.0", features = ["macros", "rt", "rt-multi-thread", "time"] } +tokio = { version = "1.32.0", features = [ + "macros", + "rt", + "rt-multi-thread", + "time", +] } diff --git a/homie-influx/Cargo.toml b/homie-influx/Cargo.toml index 8fbba029..8f960904 100644 --- a/homie-influx/Cargo.toml +++ b/homie-influx/Cargo.toml @@ -13,8 +13,10 @@ categories = ["network-programming"] color-backtrace = "0.6.0" eyre = "0.6.8" futures = "0.3.27" -homie-controller = { version = "0.8.0", path = "../homie-controller" } -influx_db_client = { version = "0.5.1", default-features = false, features = ["rustls-tls"] } +homie-controller = { version = "0.9.0", path = "../homie-controller" } +influx_db_client = { version = "0.5.1", default-features = false, features = [ + "rustls-tls", +] } log = "0.4.20" pretty_env_logger = "0.5.0" rumqttc = "0.22.0" @@ -32,12 +34,31 @@ url = { version = "2.4.1", features = ["serde"] } depends = "adduser, libc6" section = "net" maintainer-scripts = "debian-scripts" -conf-files = ["/etc/homie-influx/homie-influx.toml", "/etc/homie-influx/mappings.toml"] +conf-files = [ + "/etc/homie-influx/homie-influx.toml", + "/etc/homie-influx/mappings.toml", +] assets = [ - ["target/release/homie-influx", "usr/bin/", "755"], - ["homie-influx.example.toml", "etc/homie-influx/homie-influx.toml", "640"], - ["mappings.example.toml", "etc/homie-influx/mappings.toml", "644"], - ["README.md", "usr/share/doc/homie-influx/", "644"], + [ + "target/release/homie-influx", + "usr/bin/", + "755", + ], + [ + "homie-influx.example.toml", + "etc/homie-influx/homie-influx.toml", + "640", + ], + [ + "mappings.example.toml", + "etc/homie-influx/mappings.toml", + "644", + ], + [ + "README.md", + "usr/share/doc/homie-influx/", + "644", + ], ] # This section needs to be here even if it's empty, for the systemd integration to work. diff --git a/mijia-homie/CHANGELOG.md b/mijia-homie/CHANGELOG.md index b987a03c..e17555b2 100644 --- a/mijia-homie/CHANGELOG.md +++ b/mijia-homie/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## Unreleased +## 0.2.7 ### New features diff --git a/mijia-homie/Cargo.toml b/mijia-homie/Cargo.toml index 116d0ba1..5c52d7d9 100644 --- a/mijia-homie/Cargo.toml +++ b/mijia-homie/Cargo.toml @@ -1,7 +1,10 @@ [package] name = "mijia-homie" -version = "0.2.6" -authors = ["David Laban ", "Andrew Walbran "] +version = "0.2.7" +authors = [ + "David Laban ", + "Andrew Walbran ", +] edition = "2018" license = "MIT OR Apache-2.0" description = "Service to connect to Xiaomi Mijia 2 temperature/humidity sensors over Bluetooth and report their readings to an MQTT broker following the Homie convention." @@ -29,11 +32,13 @@ color-backtrace = "0.6.0" eyre = "0.6.8" futures = "0.3.27" futures-channel = "0.3.28" -homie-device = { version = "0.8.0", path = "../homie-device" } -influx_db_client = { version = "0.5.1", default-features = false, features = ["rustls-tls"] } +homie-device = { version = "0.9.0", path = "../homie-device" } +influx_db_client = { version = "0.5.1", default-features = false, features = [ + "rustls-tls", +] } itertools = "0.11.0" log = "0.4.20" -mijia = { version = "0.7.0", path = "../mijia" } +mijia = { version = "0.7.1", path = "../mijia" } pretty_env_logger = "0.5.0" rumqttc = "0.22.0" rustls = "0.21.7" @@ -52,12 +57,36 @@ section = "net" maintainer-scripts = "debian-scripts" conf-files = ["/etc/mijia-homie/mijia-homie.toml"] assets = [ - ["target/release/mijia-history-influx", "usr/bin/", "755"], - ["target/release/mijia-homie", "usr/bin/", "755"], - ["target/release/mijia-names", "usr/bin/", "755"], - ["mijia-homie.example.toml", "etc/mijia-homie/mijia-homie.toml", "640"], - ["mijia-history-influx.example.toml", "etc/mijia-homie/mijia-history-influx.toml", "640"], - ["README.md", "usr/share/doc/mijia-homie/", "644"], + [ + "target/release/mijia-history-influx", + "usr/bin/", + "755", + ], + [ + "target/release/mijia-homie", + "usr/bin/", + "755", + ], + [ + "target/release/mijia-names", + "usr/bin/", + "755", + ], + [ + "mijia-homie.example.toml", + "etc/mijia-homie/mijia-homie.toml", + "640", + ], + [ + "mijia-history-influx.example.toml", + "etc/mijia-homie/mijia-history-influx.toml", + "640", + ], + [ + "README.md", + "usr/share/doc/mijia-homie/", + "644", + ], ] # This section needs to be here even if it's empty, for the systemd integration to work. diff --git a/mijia/CHANGELOG.md b/mijia/CHANGELOG.md index f1d4beb8..5bf34df2 100644 --- a/mijia/CHANGELOG.md +++ b/mijia/CHANGELOG.md @@ -1,11 +1,11 @@ # Changelog -## Unreleased +## 0.7.1 ### New features - Exposed `MijiaEvent::from`, for converting a `bluez-async` `BluetoothEvent` into a `MijiaEvent`. - This can be useful if you want to handle other bluetooth events directly as well as Mijia events. + This can be useful if you want to handle other Bluetooth events directly as well as Mijia events. ## 0.7.0 diff --git a/mijia/Cargo.toml b/mijia/Cargo.toml index c7c47ef4..f704e4dd 100644 --- a/mijia/Cargo.toml +++ b/mijia/Cargo.toml @@ -1,7 +1,11 @@ [package] name = "mijia" -version = "0.7.0" -authors = ["Luis Félix ", "Andrew Walbran ", "David Laban "] +version = "0.7.1" +authors = [ + "Luis Félix ", + "Andrew Walbran ", + "David Laban ", +] edition = "2018" license = "MIT OR Apache-2.0" description = "A library for connecting to Xiaomi Mijia 2 Bluetooth temperature/humidity sensors." @@ -23,4 +27,9 @@ backoff = { version = "0.4.0", features = ["tokio"] } chrono = "0.4.28" eyre = "0.6.8" pretty_env_logger = "0.5.0" -tokio = { version = "1.32.0", features = ["macros", "rt", "rt-multi-thread", "time"] } +tokio = { version = "1.32.0", features = [ + "macros", + "rt", + "rt-multi-thread", + "time", +] }