fix lights

This commit is contained in:
Nitwel 2024-04-25 17:27:17 +02:00
parent c7958d82fa
commit de9a6a21be
2 changed files with 2 additions and 6 deletions

View File

@ -126,9 +126,4 @@ func quick_action():
_toggle() _toggle()
func _toggle(): func _toggle():
var attributes = {} HomeApi.set_state(entity_id, "off" if active.value else "on")
if !active.value&&brightness.value != null:
attributes["brightness"] = int(brightness.value)
HomeApi.set_state(entity_id, "off" if active.value else "on", attributes)

View File

@ -2,5 +2,6 @@
[resource] [resource]
resource_local_to_scene = true resource_local_to_scene = true
albedo_color = Color(0.231373, 0.231373, 0.231373, 1)
emission = Color(1, 0.65098, 0, 1) emission = Color(1, 0.65098, 0, 1)
emission_energy_multiplier = 0.0 emission_energy_multiplier = 0.0