mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-26 19:02:15 +01:00
Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
+++ /dev/fd/62 2023-02-04 16:55:42.887439874 +0000
|
+++ /dev/fd/62 2023-02-08 21:45:33.503663885 +0000
|
||||||
+le list
|
+le list
|
||||||
+ +14,8 @@
|
+ +14,8 @@
|
||||||
+n.txt
|
+n.txt
|
||||||
|
|||||||
@@ -347,9 +347,9 @@ Text e1Name
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 5
|
x coordinate : 5
|
||||||
y coordinate : 198
|
y coordinate : 195
|
||||||
Width : 70
|
Width : 70
|
||||||
Height : 20
|
Height : 25
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -377,9 +377,9 @@ Text e1Val
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 5
|
x coordinate : 5
|
||||||
y coordinate : 254
|
y coordinate : 252
|
||||||
Width : 70
|
Width : 70
|
||||||
Height : 20
|
Height : 25
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -437,9 +437,9 @@ Text e2Name
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 78
|
x coordinate : 78
|
||||||
y coordinate : 198
|
y coordinate : 195
|
||||||
Width : 70
|
Width : 70
|
||||||
Height : 20
|
Height : 25
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -467,9 +467,9 @@ Text e2Val
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 79
|
x coordinate : 79
|
||||||
y coordinate : 254
|
y coordinate : 252
|
||||||
Width : 70
|
Width : 70
|
||||||
Height : 20
|
Height : 25
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -527,9 +527,9 @@ Text e3Name
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 153
|
x coordinate : 153
|
||||||
y coordinate : 198
|
y coordinate : 195
|
||||||
Width : 70
|
Width : 70
|
||||||
Height : 20
|
Height : 25
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -557,9 +557,9 @@ Text e3Val
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 153
|
x coordinate : 153
|
||||||
y coordinate : 254
|
y coordinate : 252
|
||||||
Width : 70
|
Width : 70
|
||||||
Height : 20
|
Height : 25
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -617,9 +617,9 @@ Text e4Name
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 230
|
x coordinate : 230
|
||||||
y coordinate : 198
|
y coordinate : 195
|
||||||
Width : 70
|
Width : 70
|
||||||
Height : 20
|
Height : 25
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -647,9 +647,9 @@ Text e4Val
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 230
|
x coordinate : 230
|
||||||
y coordinate : 254
|
y coordinate : 252
|
||||||
Width : 70
|
Width : 70
|
||||||
Height : 20
|
Height : 25
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -707,9 +707,9 @@ Text e5Name
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 304
|
x coordinate : 304
|
||||||
y coordinate : 198
|
y coordinate : 195
|
||||||
Width : 70
|
Width : 70
|
||||||
Height : 20
|
Height : 25
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -737,9 +737,9 @@ Text e5Val
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 304
|
x coordinate : 304
|
||||||
y coordinate : 254
|
y coordinate : 252
|
||||||
Width : 70
|
Width : 70
|
||||||
Height : 20
|
Height : 25
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -797,9 +797,9 @@ Text e6Name
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 377
|
x coordinate : 377
|
||||||
y coordinate : 198
|
y coordinate : 195
|
||||||
Width : 70
|
Width : 70
|
||||||
Height : 20
|
Height : 25
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -827,9 +827,9 @@ Text e6Val
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 377
|
x coordinate : 377
|
||||||
y coordinate : 254
|
y coordinate : 252
|
||||||
Width : 70
|
Width : 70
|
||||||
Height : 20
|
Height : 25
|
||||||
Effect : load
|
Effect : load
|
||||||
Effect Priority : 0
|
Effect Priority : 0
|
||||||
Effect Time : 300
|
Effect Time : 300
|
||||||
@@ -1258,7 +1258,7 @@ Text tNotifyText
|
|||||||
Send Component ID : disabled
|
Send Component ID : disabled
|
||||||
Opacity : 127
|
Opacity : 127
|
||||||
x coordinate : 0
|
x coordinate : 0
|
||||||
y coordinate : 220
|
y coordinate : 221
|
||||||
Width : 448
|
Width : 448
|
||||||
Height : 58
|
Height : 58
|
||||||
Effect : load
|
Effect : load
|
||||||
|
|||||||
@@ -194,9 +194,6 @@ class LuiController(object):
|
|||||||
|
|
||||||
def button_press(self, entity_id, button_type, value):
|
def button_press(self, entity_id, button_type, value):
|
||||||
apis.ha_api.log(f"Button Press Event; entity_id: {entity_id}; button_type: {button_type}; value: {value} ")
|
apis.ha_api.log(f"Button Press Event; entity_id: {entity_id}; button_type: {button_type}; value: {value} ")
|
||||||
if entity_id.startswith('uuid'):
|
|
||||||
entity_config = self._config._config_entites_table.get(entity_id)
|
|
||||||
entity_id = entity_config.entityId
|
|
||||||
# internal buttons
|
# internal buttons
|
||||||
if entity_id == "screensaver" and button_type == "bExit":
|
if entity_id == "screensaver" and button_type == "bExit":
|
||||||
# get default card if there is one
|
# get default card if there is one
|
||||||
@@ -270,6 +267,10 @@ class LuiController(object):
|
|||||||
|
|
||||||
|
|
||||||
if button_type == "button":
|
if button_type == "button":
|
||||||
|
if entity_id.startswith('uuid'):
|
||||||
|
entity_config = self._config._config_entites_table.get(entity_id)
|
||||||
|
entity_id = entity_config.entityId
|
||||||
|
|
||||||
if entity_id.startswith('navigate'):
|
if entity_id.startswith('navigate'):
|
||||||
# internal navigation for next/prev
|
# internal navigation for next/prev
|
||||||
if entity_id.startswith('navigate.uuid'):
|
if entity_id.startswith('navigate.uuid'):
|
||||||
|
|||||||
Reference in New Issue
Block a user