This commit is contained in:
joBr99
2022-09-04 21:07:59 +02:00
2 changed files with 4 additions and 1 deletions

View File

@@ -299,7 +299,7 @@ class LuiController(object):
else:
self._ha_api.get_entity(entity_id).call_service("return_to_base")
elif entity_id.startswith('service'):
self._ha_api.call_service(entity_id.replace('service.', '', 1), **le.data)
self._ha_api.call_service(entity_id.replace('service.', '', 1).replace('.','/', 1), **le.data)
# for media page
if button_type == "media-next":

View File

@@ -585,6 +585,9 @@ class LuiPagesGen(object):
brightness = "disable"
color_temp = "disable"
color = "disable"
if "onoff" not in entity.attributes.supported_color_modes:
brightness = 0
if entity.state == "on":
if "brightness" in entity.attributes:
# scale 0-255 brightness from ha to 0-100