Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
b30988f869
|
|||
|
aacb11aba3
|
|||
|
0ef3f33746
|
|||
|
d353fa9759
|
@@ -12,7 +12,7 @@ use bambulab::{Command, Message};
|
||||
use google_home::errors::{self};
|
||||
use google_home::traits::OnOff;
|
||||
use lua_typed::Typed;
|
||||
use tracing::trace;
|
||||
use tracing::{debug, trace};
|
||||
|
||||
use crate::{DebugWrap, LuaDeviceCreate};
|
||||
|
||||
@@ -104,6 +104,7 @@ impl LuaDeviceCreate for Bambu {
|
||||
bambu.config.callbacks.state.call(bambu.clone()).await;
|
||||
}
|
||||
Message::Connected => {
|
||||
debug!(id = bambu.config.device_id, "Connected");
|
||||
client.publish(Command::PushAll).await.unwrap();
|
||||
|
||||
bambu.config.callbacks.connected.call(bambu.clone()).await;
|
||||
|
||||
+2
-2
@@ -10,12 +10,12 @@ return {
|
||||
openid_url = "https://login.huizinga.dev/api/oidc",
|
||||
},
|
||||
mqtt = {
|
||||
host = ((host == "zeus" or host == "hephaestus") and "olympus.lan.huizinga.dev") or "mosquitto",
|
||||
host = ((host == "zeus" or host == "hephaestus") and "olympus.huizinga.lan") or "mosquitto",
|
||||
port = 8883,
|
||||
client_name = "automation-" .. host,
|
||||
username = "mqtt",
|
||||
password = secrets.mqtt_password,
|
||||
tls = host == "zeus" or host == "hephaestus",
|
||||
tls = false,
|
||||
},
|
||||
modules = {
|
||||
require("config.battery"),
|
||||
|
||||
Reference in New Issue
Block a user