mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-20 14:37:01 +01:00
Shutter Fix in GenerateDetailPage
- Wrong delimiter in payload - Added RegisterDetailEntityWatcher
This commit is contained in:
@@ -659,11 +659,14 @@ function GenerateDetailPage(type: string, pageItem: PageItem): Payload[] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (type == "popupShutter") {
|
if (type == "popupShutter") {
|
||||||
if (existsState(id + ".ACTUAL"))
|
if (existsState(id + ".ACTUAL")) {
|
||||||
val = getState(id + ".ACTUAL").val;
|
val = getState(id + ".ACTUAL").val;
|
||||||
else if (existsState(id + ".SET"))
|
RegisterDetailEntityWatcher(id + ".ACTUAL", pageItem, type);
|
||||||
|
} else if (existsState(id + ".SET")) {
|
||||||
val = getState(id + ".SET").val;
|
val = getState(id + ".SET").val;
|
||||||
out_msgs.push({ payload: "entityUpdateDetail," + val })
|
RegisterDetailEntityWatcher(id + ".SET", pageItem, type);
|
||||||
|
}
|
||||||
|
out_msgs.push({ payload: "entityUpdateDetail~" + val })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return out_msgs
|
return out_msgs
|
||||||
|
|||||||
Reference in New Issue
Block a user