Compare commits

..

4 Commits

Author SHA1 Message Date
Dreaded_X b30988f869 feat: Sync printer light with room light
Build and deploy / build (push) Successful in 18m25s
Build and deploy / Deploy container (push) Successful in 37s
2026-06-20 00:44:21 +02:00
Dreaded_X aacb11aba3 feat: Add basic support for bambu printer 2026-06-20 00:44:20 +02:00
Dreaded_X 0ef3f33746 feat: Build fully static binary 2026-06-19 21:36:30 +02:00
Dreaded_X d353fa9759 fix: MQTT broke after internal domain change
Build and deploy / build (push) Successful in 14m8s
Build and deploy / Deploy container (push) Successful in 5m38s
2026-06-19 03:46:26 +02:00
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -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
View File
@@ -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"),