NEWS
SONOFF NSPanel mit Lovelace UI
-
@armilar
Vorher war nichts im Log.
Nach dem lösche und Neustart kam ne menge....javascript.0 2023-01-01 16:38:10.853 warn script.js.common.System.NS_Panel_01: get_tasmota_status0Cannot read properties of undefined (reading 'Version') javascript.0 2023-01-01 16:38:10.849 info State value to set for "0_userdata.0.NSPanel.01.Berry_Driver.currentVersion" has to be type "string" but received type "object" javascript.0 2023-01-01 16:38:10.521 warn at processImmediate (node:internal/timers:466:21) javascript.0 2023-01-01 16:38:10.521 warn at Immediate._onImmediate (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:5916:56) javascript.0 2023-01-01 16:38:10.521 warn at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:593:29) javascript.0 2023-01-01 16:38:10.521 warn at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1244:38) javascript.0 2023-01-01 16:38:10.521 warn at Object.<anonymous> (script.js.common.System.NS_Panel_01:2075:17) javascript.0 2023-01-01 16:38:10.521 warn at HandleMessage (script.js.common.System.NS_Panel_01:2131:21) javascript.0 2023-01-01 16:38:10.521 warn at GeneratePage (script.js.common.System.NS_Panel_01:2194:29) javascript.0 2023-01-01 16:38:10.521 warn at GenerateEntitiesPage (script.js.common.System.NS_Panel_01:2277:34) javascript.0 2023-01-01 16:38:10.521 warn at GeneratePageElements (script.js.common.System.NS_Panel_01:2318:21) javascript.0 2023-01-01 16:38:10.520 warn getState "0_userdata.0.NSPanel.01.NSPanel_Version" not found (3) javascript.0 2023-01-01 16:38:10.498 warn at processImmediate (node:internal/timers:466:21) javascript.0 2023-01-01 16:38:10.498 warn at Immediate._onImmediate (/opt/iobroker/node_modules/@iobroker/db-states-redis/lib/states/statesInRedisClient.js:324:37) javascript.0 2023-01-01 16:38:10.498 warn at change (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:5871:46) javascript.0 2023-01-01 16:38:10.498 warn at Array.forEach (<anonymous>) javascript.0 2023-01-01 16:38:10.498 warn at /opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:5885:41 javascript.0 2023-01-01 16:38:10.498 warn at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:593:29) javascript.0 2023-01-01 16:38:10.498 warn at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1244:38) javascript.0 2023-01-01 16:38:10.498 warn at Object.<anonymous> (script.js.common.System.NS_Panel_01:2790:40) javascript.0 2023-01-01 16:38:10.498 warn at GeneratePageElements (script.js.common.System.NS_Panel_01:2318:21) javascript.0 2023-01-01 16:38:10.498 warn getState "0_userdata.0.NSPanel.01.NSPanel_Version" not found (3) javascript.0 2023-01-01 16:38:10.497 warn at processImmediate (node:internal/timers:466:21) javascript.0 2023-01-01 16:38:10.497 warn at Immediate._onImmediate (/opt/iobroker/node_modules/@iobroker/db-states-redis/lib/states/statesInRedisClient.js:324:37) javascript.0 2023-01-01 16:38:10.497 warn at change (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:5871:46) javascript.0 2023-01-01 16:38:10.497 warn at Array.forEach (<anonymous>) javascript.0 2023-01-01 16:38:10.497 warn at /opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:5885:41 javascript.0 2023-01-01 16:38:10.497 warn at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:593:29) javascript.0 2023-01-01 16:38:10.497 warn at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1244:38) javascript.0 2023-01-01 16:38:10.497 warn at Object.<anonymous> (script.js.common.System.NS_Panel_01:2790:40) javascript.0 2023-01-01 16:38:10.497 warn at GeneratePageElements (script.js.common.System.NS_Panel_01:2318:21) javascript.0 2023-01-01 16:38:10.496 warn getState "0_userdata.0.NSPanel.01.NSPanel_Version" not found (3) javascript.0 2023-01-01 16:38:10.469 warn at processImmediate (node:internal/timers:466:21) javascript.0 2023-01-01 16:38:10.469 warn at Immediate._onImmediate (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:5916:56) javascript.0 2023-01-01 16:38:10.469 warn at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:593:29) javascript.0 2023-01-01 16:38:10.469 warn at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1244:38) javascript.0 2023-01-01 16:38:10.469 warn at Object.<anonymous> (script.js.common.System.NS_Panel_01:840:12) javascript.0 2023-01-01 16:38:10.469 warn at __awaiter (script.js.common.System.NS_Panel_01:4:12) javascript.0 2023-01-01 16:38:10.469 warn at new Promise (<anonymous>) javascript.0 2023-01-01 16:38:10.469 warn at script.js.common.System.NS_Panel_01:8:71 javascript.0 2023-01-01 16:38:10.469 warn at Object.next (script.js.common.System.NS_Panel_01:14:53) javascript.0 2023-01-01 16:38:10.469 warn at step (script.js.common.System.NS_Panel_01:33:23) javascript.0 2023-01-01 16:38:10.469 warn at Object.<anonymous> (script.js.common.System.NS_Panel_01:846:21) javascript.0 2023-01-01 16:38:10.469 warn at GeneratePage (script.js.common.System.NS_Panel_01:2194:29) javascript.0 2023-01-01 16:38:10.469 warn at GenerateEntitiesPage (script.js.common.System.NS_Panel_01:2277:34) javascript.0 2023-01-01 16:38:10.469 warn at GeneratePageElements (script.js.common.System.NS_Panel_01:2318:21) javascript.0 2023-01-01 16:38:10.468 warn getState "0_userdata.0.NSPanel.01.NSPanel_Version" not found (3) javascript.0 2023-01-01 16:38:10.449 warn at processImmediate (node:internal/timers:437:9) javascript.0 2023-01-01 16:38:10.449 warn at runNextTicks (node:internal/process/task_queues:61:5) javascript.0 2023-01-01 16:38:10.449 warn at runMicrotasks (<anonymous>) javascript.0 2023-01-01 16:38:10.449 warn at fulfilled (script.js.common.System.NS_Panel_01:5:58) javascript.0 2023-01-01 16:38:10.449 warn at Object.next (script.js.common.System.NS_Panel_01:14:53) javascript.0 2023-01-01 16:38:10.449 warn at step (script.js.common.System.NS_Panel_01:33:23) javascript.0 2023-01-01 16:38:10.449 warn at script.js.common.System.NS_Panel_01:823:42 javascript.0 2023-01-01 16:38:10.449 warn at /opt/iobroker/node_modules/iobroker.javascript/lib/tools.js:81:16 javascript.0 2023-01-01 16:38:10.449 warn at new Promise (<anonymous>) javascript.0 2023-01-01 16:38:10.449 warn at /opt/iobroker/node_modules/iobroker.javascript/lib/tools.js:82:16 javascript.0 2023-01-01 16:38:10.449 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1719:20) javascript.0 2023-01-01 16:38:10.448 warn You are assigning a object to the state "0_userdata.0.NSPanel.01.PageNavi" which expects a string. Please fix your code to use a string or change the state type to object. This warning might become an error in future versions. javascript.0 2023-01-01 16:38:10.436 error at Immediate.<anonymous> (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:5916:56) javascript.0 2023-01-01 16:38:10.436 error at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:593:29) javascript.0 2023-01-01 16:38:10.436 error at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1244:38) javascript.0 2023-01-01 16:38:10.436 error at Object.<anonymous> (script.js.common.System.NS_Panel_01:840:12) javascript.0 2023-01-01 16:38:10.436 error at __awaiter (script.js.common.System.NS_Panel_01:4:12) javascript.0 2023-01-01 16:38:10.436 error at new Promise (<anonymous>) javascript.0 2023-01-01 16:38:10.436 error at script.js.common.System.NS_Panel_01:8:71 javascript.0 2023-01-01 16:38:10.436 error at Object.next (script.js.common.System.NS_Panel_01:14:53) javascript.0 2023-01-01 16:38:10.436 error at step (script.js.common.System.NS_Panel_01:33:23) javascript.0 2023-01-01 16:38:10.436 error at Object.<anonymous> (script.js.common.System.NS_Panel_01:845:26) javascript.0 2023-01-01 16:38:10.435 error script.js.common.System.NS_Panel_01: TypeError: Cannot read properties of null (reading 'pagetype') javascript.0 2023-01-01 16:38:10.430 warn at processImmediate (node:internal/timers:466:21) javascript.0 2023-01-01 16:38:10.430 warn at Immediate._onImmediate (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:5916:56) javascript.0 2023-01-01 16:38:10.430 warn at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:593:29) javascript.0 2023-01-01 16:38:10.430 warn at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1244:38) javascript.0 2023-01-01 16:38:10.429 warn at Object.<anonymous> (script.js.common.System.NS_Panel_01:594:12) javascript.0 2023-01-01 16:38:10.429 warn at __awaiter (script.js.common.System.NS_Panel_01:4:12) javascript.0 2023-01-01 16:38:10.429 warn at new Promise (<anonymous>) javascript.0 2023-01-01 16:38:10.429 warn at script.js.common.System.NS_Panel_01:8:71 javascript.0 2023-01-01 16:38:10.429 warn at Object.next (script.js.common.System.NS_Panel_01:14:53) javascript.0 2023-01-01 16:38:10.429 warn at step (script.js.common.System.NS_Panel_01:33:23) javascript.0 2023-01-01 16:38:10.429 warn at Object.<anonymous> (script.js.common.System.NS_Panel_01:598:26) javascript.0 2023-01-01 16:38:10.377 warn getState "0_userdata.0.NSPanel.01.ScreensaverInfo.activeBrightness" not found (3) javascript.0 2023-01-01 16:38:10.320 info script.js.common.System.NS_Panel_01: registered 20 subscriptions, 4 schedules, 0 messages, 0 logs and 0 file subscriptions javascript.0 2023-01-01 16:38:10.316 error script.js.common.System.NS_Panel_01: schedule(cron=*/null * * * * *): cannot create schedule javascript.0 2023-01-01 16:38:10.316 warn at script.js.common.System.NS_Panel_01:1188:17 javascript.0 2023-01-01 16:38:10.312 warn getState "0_userdata.0.NSPanel.01.ScreensaverInfo.entityChangeTime" not found (3) javascript.0 2023-01-01 16:38:10.310 info script.js.common.System.NS_Panel_01: Wetter-Alias existiert bereits javascript.0 2023-01-01 16:38:10.293 info script.js.common.System.NS_Panel_01: source code did not change, using cached compilation result... javascript.0 2023-01-01 16:38:10.107 info script.js.common.System.NS_Panel_01: compiling TypeScript source... javascript.0 2023-01-01 16:37:31.248 info Stop script script.js.common.System.NS_Panel_01
-
Starte nochmal neu. Ich denke da kommt ne Menge vom Anlegen der DP's
Dann die restlichen Warnungen senden
-
@armilar
Nur eine ist übrig gebliebenjavascript.0 2023-01-01 16:41:48.885 warn script.js.common.System.NS_Panel_01: get_tasmota_status0Cannot read properties of undefined (reading 'Version')
Datenpunkte bleiben aber mehrere leer
-
Sieh mal in die neu angelegten Datenpunkte. Ist da etwas nicht gefüllt?
-
@armilar
hatte ich gerade editiert -
Danke hab's noch gesehen. Da geht ein http-Request nicht durch...
Was passiert, wenn du
http://IP_vom_Panel/cm?cmnd=Status0
mit der IP vom Panel im Browser absendest
-
@johgre said in SONOFF NSPanel mit Lovelace UI:
@armilar Ja, ist bzw. war Erste Seite, nun die Zweite. Es kommt aber ein anderes Warning
6:56:38.830 warn javascript.0 (1121) script.js.Energie.NSPanel.NSPanelTs_ts: function GeneratePowerPage: Cannot read properties of undefined (reading 'red') 16:56:38.830 warn javascript.0 (1121) script.js.Energie.NSPanel.NSPanelTs_ts: function SendToPanel: Cannot read properties of undefined (reading 'payload')
Ist es eigentlich zwingend notwendig alle Elemete [0-6] in der richtigen Reihenfolge bzw. alle im JSON zu haben?
Konntest du das Problem mittlerweile lösen? Ich habe es auch, konnte aber keine Lösung finden.
-
@armilar sagte in SONOFF NSPanel mit Lovelace UI:
Was passiert, wenn du
http://IP_vom_Panel/cm?cmnd=Status0Kommt das :
{"Status":{"Module":0,"DeviceName":"NSPanel_01","FriendlyName":["NSPanel_01","NSPanel_01"],"Topic":"NSPanel_01","ButtonTopic":"0","Power":1,"PowerOnState":3,"LedState":1,"LedMask":"FFFF","SaveData":1,"SaveState":1,"SwitchTopic":"0","SwitchMode":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0,"InfoRetain":0,"StateRetain":0,"StatusRetain":0},"StatusPRM":{"Baudrate":115200,"SerialConfig":"8N1","GroupTopic":"tasmotas","OtaUrl":"https://ota.tasmota.com/tasmota32/release/tasmota32.bin","RestartReason":"Vbat power on reset","Uptime":"0T07:23:29","StartupUTC":"2023-01-01T08:29:16","Sleep":0,"CfgHolder":4617,"BootCount":19,"BCResetTime":"2022-12-31T21:21:45","SaveCount":73},"StatusFWR":{"Version":"12.3.1(tasmota)","BuildDateTime":"2022.12.16 10:36:41","Core":"2_0_5_3","SDK":"v4.4.3","CpuFrequency":160,"Hardware":"ESP32-D0WD-V3 rev.3","CR":"461/699"},"StatusLOG":{"SerialLog":2,"WebLog":2,"MqttLog":0,"SysLog":0,"LogHost":"192.168.50.10","LogPort":514,"SSId":["SmartHome",""],"TelePeriod":10,"Resolution":"558180C0","SetOption":["00008009","2805C80001000600003C5A0A192800000000","00000080","00006000","00004000","00000001"]},"StatusMEM":{"ProgramSize":1481,"Free":1856,"Heap":125,"StackLowMark":3,"PsrMax":0,"PsrFree":0,"ProgramFlashSize":4096,"FlashSize":4096,"FlashChipId":"16405E","FlashFrequency":40,"FlashMode":"DIO","Features":["00000407","9F9AD7CF","0015A001","B7F7BFCF","05DA9BC0","E0360DC7","400840D2","20200000","D43C482D","000000A1"],"Drivers":"1,2,3,4,5,7,8,9,10,11,12,14,16,17,20,21,24,26,27,29,34,35,38,50,52,59,60,62,63,82,86,87,88","Sensors":"1,2,3,5,6,7,8,9,10,11,12,13,14,15,17,18,19,20,21,22,26,28,31,34,37,39,40,42,43,45,51,52,55,56,58,59,64,66,67,74,85,92,95,98,127"},"StatusNET":{"Hostname":"NSPanel-01","IPAddress":"192.168.50.62","Gateway":"192.168.50.1","Subnetmask":"255.255.255.0","DNSServer1":"192.168.2.4","DNSServer2":"0.0.0.0","Mac":"E0:E2:E6:0C:0E:54","Ethernet":{"Hostname":"","IPAddress":"0.0.0.0","Gateway":"0.0.0.0","Subnetmask":"0.0.0.0","DNSServer1":"0.0.0.0","DNSServer2":"0.0.0.0","Mac":"00:00:00:00:00:00"},"Webserver":2,"HTTP_API":1,"WifiConfig":4,"WifiPower":17.0},"StatusMQT":{"MqttHost":"192.168.50.10","MqttPort":8883,"MqttClientMask":"NSPanel_01","MqttClient":"NSPanel_01","MqttUser":"nspanel","MqttCount":2,"MAX_PACKET_SIZE":1200,"KEEPALIVE":30,"SOCKET_TIMEOUT":4},"StatusTIM":{"UTC":"2023-01-01T15:52:45","Local":"2023-01-01T16:52:45","StartDST":"2023-03-26T02:00:00","EndDST":"2023-10-29T03:00:00","Timezone":"+01:00","Sunrise":"08:43","Sunset":"17:03"},"StatusSNS":{"Time":"2023-01-01T16:52:45","ANALOG":{"Temperature1":22.1},"ESP32":{"Temperature":61.1},"TempUnit":"C"},"StatusSTS":{"Time":"2023-01-01T16:52:45","Uptime":"0T07:23:29","UptimeSec":26609,"Heap":124,"SleepMode":"Dynamic","Sleep":0,"LoadAvg":999,"MqttCount":2,"Berry":{"HeapUsed":16,"Objects":239},"POWER1":"ON","POWER2":"OFF","Wifi":{"AP":1,"SSId":"SmartHome","BSSId":"E6:63:DA:74:AA:33","Channel":11,"Mode":"11n","RSSI":64,"Signal":-68,"LinkCount":2,"Downtime":"0T00:00:04"}}}
sieht ja eigentlich nicht so schlecht aus
-
Ja, das sieht auch sehr schön aus. Wie erwartet. Aber warum kann es dann der ioBroker nicht?
Sieh mal nach, ob in deiner ioBroker JavaScript-Adapter-Instanz u.a.
request
unter npm-Module eingetragen ist?
Falls nicht, kurz eintragen, speichern und den ioBroker mal durchstarten
-
auf meinem Raspberry, dort läuft mein ioBroker, ist die Zeit auch korrekt,
habs mit Date ausgelesen, Neustart vom Pi hat auch nichts gebracht -
Erstelle kurz ein Blockly
<xml xmlns="https://developers.google.com/blockly/xml"> <block type="schedule" id="6Yu`)QwfE4qpNfmr268P" x="87" y="37"> <field name="SCHEDULE">* * * * * *</field> <statement name="STATEMENT"> <block type="debug" id="l?5O/}11]yr#/m#;`2FP"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id=";K3bqfLSLWG6r5B(k/C{"> <field name="TEXT">test</field> </shadow> <block type="time_get" id="(NH7-ko5K-Lstw6QrhtK"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">hh:mm:ss.sss</field> </block> </value> </block> </statement> </block> </xml>
Dann vergleiche es mit der Uhrzeit
-
@armilar
War nicht drin, hat aber auch nichts verändert -
Das ist die Funktion über die wir sprechen. Trage mal die IP fest ein und starte neu? Was passiert?
EDIT: Also wie gerade eben im Browser:
`http://${get_current_tasmota_ip_address()}/cm?cmnd=Status0`
Die Formatierung der Anführungszeichen sollte ` sein.
-
@armilar sagte in SONOFF NSPanel mit Lovelace UI:
Erstelle kurz ein Blockly
<xml xmlns="https://developers.google.com/blockly/xml"> <block type="schedule" id="6Yu`)QwfE4qpNfmr268P" x="87" y="37"> <field name="SCHEDULE">* * * * * *</field> <statement name="STATEMENT"> <block type="debug" id="l?5O/}11]yr#/m#;`2FP"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id=";K3bqfLSLWG6r5B(k/C{"> <field name="TEXT">test</field> </shadow> <block type="time_get" id="(NH7-ko5K-Lstw6QrhtK"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">hh:mm:ss.sss</field> </block> </value> </block> </statement> </block> </xml>
Dann vergleiche es mit der Uhrzeit
Ok, damit geht es, danke
-
@chrille1507 sagte in SONOFF NSPanel mit Lovelace UI:
red
Es gibt im Script keine Farbekonstante mit kleingeschriebenen "red" sondern mit großgeschriebenen "Red". Da dürfte der Fehler liegen
-
Wie damit geht es? Ist die gleiche Funktion wie im Script??? Sollte auch die gleiche Zeit anzeigen...
-
@frank579
WebAdmin Passwort im Tasmota vergeben ?
das war mein Thema -
@armilar
sieht jetzt so ausfunction get_tasmota_status0() { try { if (Debug) { console.log('Requesting tasmota status0'); } request({ url: `http://192.168.50.62/cm?cmnd=Status0`, headers: { 'User-Agent': 'ioBroker'
kommt aber auch nichts
-
guter Hinweis... darf nämlich nicht
-
@egal sagte in SONOFF NSPanel mit Lovelace UI:
WebAdmin Passwort im Tasmota vergeben ?
Natürlich
Habe überall Passwörter gesetzt ...