@armilar said in SONOFF NSPanel mit Lovelace UI:
@danny_v1
Auch das habe ich eben bei mir getestet und kann es bei mir nicht reproduzieren.
Hier wäre noch interessant, welche Scriptversion benutzt und welche TFT du geflashed hast.
Die Seiten dennoch posten
So hier erstmal das Blockly für das Popup:
<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable id="R~BQm7Yu#BbrO:@1hYG`">Liste</variable>
</variables>
<block type="on_ext" id="a%DPZsY5iws70Ed},E3%" x="13" y="63">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="4aHqOyyla%kbv^{3?XSm">
<field name="oid">alias.0.TreppeFlur.Hauster.ACTUAL</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="oq}K|1j:OEY(cV!ddU/Z">
<value name="IF0">
<block type="logic_operation" id="KTvGE~~ixhmj^$rBSGx.">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="+IZdNsnGc]vRnyG~70mr">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="+pMs-~9I+y/64)d~0A!T">
<field name="ATTR">val</field>
<field name="OID">alias.0.TreppeFlur.Hauster.ACTUAL</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="_:QS0Z*UtbpGMIxVZZw9">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="WvQAzcpIid+b,^Bm;v[L">
<field name="OP">LT</field>
<value name="A">
<block type="get_value" id="HpF~iQ%$,m7y./^Qm@!/">
<field name="ATTR">val</field>
<field name="OID">0_userdata.0.Zaehlen.FensterTueren.FensterTueren</field>
</block>
</value>
<value name="B">
<block type="math_number" id="qd6,D/U8{75gR5x)C=64">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="JsX_CdG{}Eux,aOKN{sD">
<field name="VAR" id="R~BQm7Yu#BbrO:@1hYG`">Liste</field>
<value name="VALUE">
<block type="get_value" id=":3{K0p`SJGO`tq28$J3y">
<field name="ATTR">val</field>
<field name="OID">0_userdata.0.Zaehlen.FensterTueren.OffenListe</field>
</block>
</value>
<next>
<block type="control" id="pt9rokdru:_awWj{=+Sn">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.NSPanel.Panel4.popupNotify.popupNotifySleepTimeout</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="8RqH)Q9*YmKF9k6^rcj%">
<field name="NUM">20</field>
</block>
</value>
<next>
<block type="control" id="CO=U[yf[y5/O9NzSOIHX">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.NSPanel.Panel4.popupNotify.popupNotifyButton1Text</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="I6iZt6FYoe[%(SuE$!;T">
<field name="TEXT"></field>
</block>
</value>
<next>
<block type="control" id="`^[q=o-`gN{tVQvj/GKG">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.NSPanel.Panel4.popupNotify.popupNotifyButton2Text</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id=":R~uc4Yb`ONXPsDfXTz1">
<field name="TEXT">OK</field>
</block>
</value>
<next>
<block type="control" id="#O@ugcHc+a{3=8VcI!PP">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.NSPanel.Panel4.popupNotify.popupNotifyHeading</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="e7NgkZ~cXsUx7Qq.;-63">
<field name="TEXT">Offene Fenster</field>
</block>
</value>
<next>
<block type="control" id="KUV{;XK+g?7`G2PjnweE">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.NSPanel.Panel4.popupNotify.popupNotifyIcon</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="QQq9iq,C#++?!]j|S2Xw">
<field name="TEXT">window-open-variant</field>
</block>
</value>
<next>
<block type="control" id="ShFP`}0@,p_~~%/(T%Nt">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.NSPanel.Panel4.popupNotify.popupNotifyFontIdText</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id=",Bh7Y]k^cVEZzF7(Np*W">
<field name="NUM">0</field>
</block>
</value>
<next>
<block type="control" id="[B)HT?8r~8aok{b%oy.5">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.NSPanel.Panel4.popupNotify.popupNotifyText</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="variables_get" id="?V%b^4o}NO/5B`g*aU1=">
<field name="VAR" id="R~BQm7Yu#BbrO:@1hYG`">Liste</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</statement>
</block>
</xml>
und hier die Seiten:
let Wohnzimmer1 = <PageGrid>
{
"type": "cardGrid",
"heading": "Wohnzimmer 1",
"useColor": true,
"subPage": true,
"parent": Obergeschoss,
'prev': undefined,
'next': 'Wohnzimmer2',
'home': 'Obergeschoss',
"items": [
<PageItem>{ navigate: true, id: "Deckenlampen_WZ", icon: "ceiling-light-multiple", onColor: White, name: "Deckenlampen"},
<PageItem>{ navigate: true, id: "Lampen_WZ", icon: "floor-lamp", onColor: White, name: "Lampen"},
<PageItem>{ navigate: true, id: "Lampen2_WZ", icon: "floor-lamp", onColor: White, name: "Lampen sonstige"},
<PageItem>{ navigate: true, id: "Themostat_WZ", icon: "temperature-celsius", onColor: White, name: "Temperaturen"},
<PageItem>{ navigate: true, id: "Status_WZ", icon: "state-machine", onColor: White, name: "Status"},
<PageItem>{ navigate: true, id: "Alexa_WZ", icon: "music", onColor: White, name: "Alexa"}
]
};
let Wohnzimmer2= <PageGrid>
{
"type": "cardGrid",
"heading": "Wohnzimmer 2",
"useColor": true,
"subPage": true,
"parent": Obergeschoss,
'prev': undefined,
'next': 'Wohnzimmer1',
'home': 'Obergeschoss',
"items": [
<PageItem>{ navigate: true, id: "Szenen_WZ", icon: "ceiling-light-multiple", onColor: White, name: "Szenen"},
<PageItem>{ navigate: true, id: "WLED", icon: "led-strip-variant", onColor: White, name: "WLED"},
<PageItem>{ id: "alias.0.TIMER1", icon: "timer-outline", name: "Timer", onColor: White}
]
};
let Deckenlampen_WZ= <PageEntities>
{
"type": "cardEntities",
"heading": "Deckenlampen",
"useColor": true,
"subPage": true,
"parent": Wohnzimmer1,
"items": [
<PageItem>{ id: "alias.0.Wohnzimmer.Deckenlampe.SofaRGB.Gruppe", name: "Sofa RGB", icon: "ceiling-light-multiple", minValueBrightness: 0, maxValueBrightness: 100, minValueColorTemp: 150, maxValueColorTemp: 500, interpolateColor: true, colormode: "xy"},
<PageItem>{ id: "alias.0.Wohnzimmer.Deckenlampe.Gross.GruppeNSP", name: "Gross", icon: "ceiling-light-multiple", minValueColorTemp: 153, maxValueColorTemp: 370, interpolateColor: true}
]
};
Folgende Versionen verwende ich:
TypeScript v4.3.1.3
Nextion 53 / v4.3.1
Berry Driver 9
Tasmota 13.2.0
Javascriptadapter 7.1.4