feat(shelly): raise taupunktschwelle and add Terraform output for script status
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user