feat(shelly): raise taupunktschwelle and add Terraform output for script status

This commit is contained in:
Moritz Graf
2026-07-05 08:03:05 +02:00
parent 4082a155a4
commit db9ce2b538
5 changed files with 88 additions and 1 deletions
+14
View File
@@ -39,3 +39,17 @@ resource "null_resource" "upload_script" {
depends_on = [shelly_script_config.taupi]
}
data "external" "script_status" {
program = ["python3", "${path.module}/scripts/get_status.py", var.shelly_ip, "1"]
# Trigger re-run whenever upload finishes
query = {
trigger = null_resource.upload_script.id
}
}
output "script_status" {
value = data.external.script_status.result
description = "The runtime status of the Shelly script"
}