From de9a6a21be8c7eaaf07fbb844022fe2360e7f32a Mon Sep 17 00:00:00 2001 From: Nitwel Date: Thu, 25 Apr 2024 17:27:17 +0200 Subject: [PATCH] fix lights --- app/content/entities/light/light.gd | 7 +------ app/content/entities/light/light_on.tres | 1 + 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/app/content/entities/light/light.gd b/app/content/entities/light/light.gd index 7335c40..c14c9d9 100644 --- a/app/content/entities/light/light.gd +++ b/app/content/entities/light/light.gd @@ -126,9 +126,4 @@ func quick_action(): _toggle() func _toggle(): - var attributes = {} - - if !active.value&&brightness.value != null: - attributes["brightness"] = int(brightness.value) - - HomeApi.set_state(entity_id, "off" if active.value else "on", attributes) \ No newline at end of file + HomeApi.set_state(entity_id, "off" if active.value else "on") \ No newline at end of file diff --git a/app/content/entities/light/light_on.tres b/app/content/entities/light/light_on.tres index e590915..03bfde0 100644 --- a/app/content/entities/light/light_on.tres +++ b/app/content/entities/light/light_on.tres @@ -2,5 +2,6 @@ [resource] resource_local_to_scene = true +albedo_color = Color(0.231373, 0.231373, 0.231373, 1) emission = Color(1, 0.65098, 0, 1) emission_energy_multiplier = 0.0