-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Version of the custom_component
0.76 - Latest
Version of OpenHASP running on plate
openHASP 0.7.0-rc15
Configuration
- obj: "p1b31"
properties:
"val": '{{ 1 if is_state("light.bedroom", "on") else 0 }}'
"text": '{{ "\uE6E8 Bedroom" if is_state("light.bedroom", "on") else "\uE335 Bedroom" | e }}'
event:
"down":
- service: homeassistant.toggle
entity_id: "light.bedroom"
OpenHASP Configuration
{ "page" : 1, "id" : 31, "obj" : "btn", "x" : 15, "y" : 10, "w" : 180, "h" : 80, "parentid" : 30, "toggle" : true, "text" : "\uE335 Bedroom", "mode" : "break", "align" : "left", "radius" : 10, "pad_left" : 8 }
Describe the bug
When an event happens from pressing the button in openHASP, the new updated text no longer has any padding and is all the way to the left, ignoring the "pad_left:8" in the original jsonl. On bootup this shows correctly, but as soon as the button is interacted with the padding is lost
Debug log
2025-01-22 16:25:02.494 DEBUG (MainThread) [custom_components.openhasp.light] Idle state for display1 backlight is off - Dimming to 255; Backlight to on
2025-01-22 16:25:02.526 DEBUG (MainThread) [custom_components.openhasp.light] received backlight display1 backlight: {'state': True, 'brightness': 255}
2025-01-22 16:25:02.581 DEBUG (MainThread) [custom_components.openhasp.light] received backlight display1 backlight: {'state': True, 'brightness': 255}
2025-01-22 16:25:09.965 DEBUG (MainThread) [custom_components.openhasp] Service call for 'down' triggered by '{"event":"down","val":0}' on 'hasp/display1/state/p1b31' with variables {'event': 'down', 'val': 0}
2025-01-22 16:25:11.339 DEBUG (MainThread) [custom_components.openhasp] Service call for 'down' triggered by '{"event":"down","val":1}' on 'hasp/display1/state/p1b31' with variables {'event': 'down', 'val': 1}
2025-01-22 16:25:12.518 DEBUG (MainThread) [custom_components.openhasp] Service call for 'down' triggered by '{"event":"down","val":0}' on 'hasp/display1/state/p1b32' with variables {'event': 'down', 'val': 0}
2025-01-22 16:25:12.591 DEBUG (MainThread) [custom_components.openhasp] p1b32.text - Template<template=({{ "\uE6E8 Office" if is_state("switch.office_light", "on") else "\uE335 Office" | e }}) renders=14> changed, updating with: Office
2025-01-22 16:25:13.688 DEBUG (MainThread) [custom_components.openhasp] Service call for 'down' triggered by '{"event":"down","val":1}' on 'hasp/display1/state/p1b32' with variables {'event': 'down', 'val': 1}
2025-01-22 16:25:13.778 DEBUG (MainThread) [custom_components.openhasp] p1b32.text - Template<template=({{ "\uE6E8 Office" if is_state("switch.office_light", "on") else "\uE335 Office" | e }}) renders=16> changed, updating with: Office
Metadata
Metadata
Assignees
Labels
No labels