Sonoff NS Display

aber das in der tasmota konsole oder bin ich da am falschen ende xD hab heut iwie das brett zu nah vorm kopp

okay Brett beseitigt xD es lÀuft endlich ^^

GlĂŒckwunsch! Zeigt es auch die Namen der Schalter an?

ne das leider noch nicht muss den rest noch machen, genauso wie temperatur, aber endlich is die benutzeroberflÀche schon mal da

so heute hÀnge ich iwie hier fest xD komme nicht per ftp aufn pi, denke ich schon wieder zu kompliziert?

hÀnge nur noch an ADCParam1 2,12400,8800,3950

Leider komme ich wirklich nicht weiter und das frustriert sehr , bekomme am sonoff keine temp werte angezeigt :frowning:

@BC42
Bei mir wurden -18°C angezeigt
nachdem mich " ADCParam 2,14600,10000,3950 " in der Konsole eingegeben habe, ist die Temperatur OK
Gruß Arno

Heute hab ich das NS Panel in Betrieb genommen.

Es hat alles wie in der Anleitung funktioniert.

Allerdings habe ich nur den 230V Kram von der Platine entfernt, und die ganzen 5V Komponenten, einschließlich der Relais (5V Relais) auf der Platine gelassen. (Relais hat man ja nie genug :wink: ) Angeschlossen habe ich die 12 V an den Dicken Lötbahnen, somit kann ich die Vorhandenen Klemmen fĂŒr die Einspeisung und die Relais AusgĂ€nge weiter nutzen. Den 12 zu 5 Volt Spannungswandler habe ich mit doppelseitigem Klebeband auf den 230V Bereich geklebt.
grafik grafik grafik
grafik

Die Taster auf der Vorderseite schalten die Relais direkt. Das wollte ich nicht, ich wollte das auch ĂŒber Node-Red bedienen können. Dazu habe ich unter Configure Template die beiden Buttons auf Switch1 und Switch2 eingestellt. Und um Switch und Relais voneinander zu trennen und den Switch via MQTT zu senden In der Konsole: „ Switchmode1 15 „ und „ Switchmode2 15 „ eingeben-

Ohne Display und Relais zieht das Teil bei 12V 0,066A, mit Display 0,111A, mit beiden Relais 0,147A,
und nur mit Relais 0,102A.
wie schon geschrieben, musste ich fĂŒr den TemperaturfĂŒhler " ADCParam 2,14600,10000,3950 " eingeben.

Die Verbindung zum Dimmer auf der Originalseite habe ich gekappt.
grafik
Den Flow habe ich mir fĂŒr die Relais angepasst, und den TemperaturfĂŒhler auf Temp 5 gelegt.
grafik

[{"id":"b99a85c9f30a3de0","type":"mqtt in","z":"ced79efefefe35c7","name":"","topic":"tele/WifiTouch/SENSOR","qos":"2","datatype":"auto","broker":"0ddb07c65cbb68bc","nl":false,"rap":true,"rh":0,"inputs":0,"x":140,"y":2080,"wires":[["dde981daf963ce60"]]},{"id":"d7ffdd37cf9f279e","type":"debug","z":"ced79efefefe35c7","name":"NS_Relay1","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"payload","statusType":"auto","x":1370,"y":2020,"wires":[]},{"id":"0e31fe45d6700be8","type":"debug","z":"ced79efefefe35c7","name":"NS_Relay2","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"payload","statusType":"auto","x":1370,"y":2160,"wires":[]},{"id":"b21ac2504588d6b5","type":"comment","z":"ced79efefefe35c7","name":"NS_Panel Sonoff/Tasmota","info":"","x":690,"y":1920,"wires":[]},{"id":"c348979aae161eb6","type":"switch","z":"ced79efefefe35c7","name":"","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"OFF","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":670,"y":2020,"wires":[["e27304fd7777deec"]]},{"id":"e27304fd7777deec","type":"change","z":"ced79efefefe35c7","name":"convert string to boolean","rules":[{"t":"change","p":"payload","pt":"msg","from":"ON","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"OFF","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":850,"y":2020,"wires":[["62f41f7dbf9abcfa"]]},{"id":"62f41f7dbf9abcfa","type":"function","z":"ced79efefefe35c7","name":"globalVariable get one","func":"\n \n\nvar check = global.get(\"NS_one\");\n\n\n\n\nif (check === true)\n   { \n   check= false; \n\n   }\n    else\n    {\n    check = true; \n    }\n    \n    \n  msg.payload = check;  \nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1100,"y":2020,"wires":[["9fe0ab373903881e"]]},{"id":"9fe0ab373903881e","type":"ui_switch","z":"ced79efefefe35c7","name":"NS_Relay 1","label":"{{relayname}}","tooltip":"","group":"a152c3aa07d499ad","order":1,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":true,"x":690,"y":2060,"wires":[["18d3608c65cd2c3b","fa5caf649dbe58f1"]]},{"id":"18d3608c65cd2c3b","type":"function","z":"ced79efefefe35c7","name":"globalVariable set","func":"var check2 = flow.get(\"update\");\nif(check2 === true)\n{\n    return null\n}\nelse {\n    if (msg.payload == false) { \n        global.set(\"NS_one\", false);\n    }\n    else if (msg.payload == true) {\n        global.set(\"NS_one\", true);\n    }\n    return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":910,"y":2060,"wires":[[]]},{"id":"fa5caf649dbe58f1","type":"function","z":"ced79efefefe35c7","name":"set topic & payload","func":"msg.topic = \"cmnd/WifiTouch/POWER1\";\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1130,"y":2060,"wires":[["c78f591b7bc542f4","d7ffdd37cf9f279e"]]},{"id":"c78f591b7bc542f4","type":"mqtt out","z":"ced79efefefe35c7","name":"","topic":"","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"0ddb07c65cbb68bc","x":1350,"y":2080,"wires":[]},{"id":"6cc50c24a4cbb266","type":"switch","z":"ced79efefefe35c7","name":"","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"OFF","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":670,"y":2120,"wires":[["0c1e7c46f7a363e8"]]},{"id":"0c1e7c46f7a363e8","type":"change","z":"ced79efefefe35c7","name":"convert string to boolean","rules":[{"t":"change","p":"payload","pt":"msg","from":"ON","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"OFF","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":850,"y":2120,"wires":[["23d2d963518964a9"]]},{"id":"23d2d963518964a9","type":"function","z":"ced79efefefe35c7","name":"globalVariable get one","func":"\n \n\nvar check = global.get(\"NS_two\");\n\n\n\n\nif (check === true)\n   { \n   check= false; \n\n   }\n    else\n    {\n    check = true; \n    }\n    \n    \n  msg.payload = check;  \nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1100,"y":2120,"wires":[["5aba2722d6714421"]]},{"id":"5aba2722d6714421","type":"ui_switch","z":"ced79efefefe35c7","name":"NS_Relay 2","label":"{{relayname}}","tooltip":"","group":"a152c3aa07d499ad","order":2,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":true,"x":690,"y":2160,"wires":[["344673243d3c683e","57ccc862037dbe9a"]]},{"id":"344673243d3c683e","type":"function","z":"ced79efefefe35c7","name":"globalVariable set","func":"var check2 = flow.get(\"update\");\nif(check2 === true)\n{\n    return null\n}\nelse {\n    if (msg.payload == false) { \n        global.set(\"NS_two\", false);\n    }\n    else if (msg.payload == true) {\n        global.set(\"NS_two\", true);\n    }\n    return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":910,"y":2160,"wires":[[]]},{"id":"57ccc862037dbe9a","type":"function","z":"ced79efefefe35c7","name":"set topic & payload","func":"msg.topic = \"cmnd/WifiTouch/POWER2\";\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1130,"y":2160,"wires":[["c78f591b7bc542f4","0e31fe45d6700be8"]]},{"id":"3422c84df6a96f7e","type":"inject","z":"ced79efefefe35c7","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"120","crontab":"","once":true,"onceDelay":"30","topic":"","payload":"","payloadType":"date","x":270,"y":2360,"wires":[["82bcfd67bfeeaaa6"]]},{"id":"04ab024b905cc130","type":"function","z":"ced79efefefe35c7","name":"set update true","func":"flow.set(\"update\",true);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":560,"y":2300,"wires":[["f3b00b91ba9d1a96"]]},{"id":"82bcfd67bfeeaaa6","type":"delay","z":"ced79efefefe35c7","name":"","pauseType":"delay","timeout":"7","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":560,"y":2360,"wires":[["04ab024b905cc130","83c7b23d904967c5","955be3d9ec4d3fa0"]]},{"id":"cae632594f32a3f4","type":"ui_ui_control","z":"ced79efefefe35c7","name":"","events":"change","x":200,"y":2400,"wires":[["3beca7c89d49e702"]]},{"id":"3beca7c89d49e702","type":"function","z":"ced79efefefe35c7","name":"check tab","func":"if (msg.payload == \"change\" && msg.name == \"Relays\" && msg.tab == 1) {\n    return msg;\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":360,"y":2400,"wires":[["55128a0f5f7c086d"]]},{"id":"55128a0f5f7c086d","type":"delay","z":"ced79efefefe35c7","name":"","pauseType":"delay","timeout":"200","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":540,"y":2400,"wires":[["04ab024b905cc130","955be3d9ec4d3fa0","83c7b23d904967c5"]]},{"id":"378c82644c863d15","type":"ui_button","z":"ced79efefefe35c7","name":"","group":"a152c3aa07d499ad","order":4,"width":0,"height":0,"passthru":false,"label":"sync","tooltip":"check status again and resync it. ","color":"","bgcolor":"","icon":"","payload":"","payloadType":"str","topic":"topic","topicType":"msg","x":270,"y":2320,"wires":[["04ab024b905cc130","82bcfd67bfeeaaa6"]]},{"id":"f3b00b91ba9d1a96","type":"delay","z":"ced79efefefe35c7","name":"","pauseType":"delay","timeout":"3","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"outputs":1,"x":820,"y":2320,"wires":[["57ed3968f63fe523"]]},{"id":"57ed3968f63fe523","type":"function","z":"ced79efefefe35c7","name":"set update false","func":"flow.set(\"update\",false);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1060,"y":2320,"wires":[[]]},{"id":"83c7b23d904967c5","type":"function","z":"ced79efefefe35c7","name":"get NS_ Relay_name","func":"msg.relayname = global.get(\"N_NS_one\")\nvar check = global.get(\"N_NS_one\");\nmsg.payload = check;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":820,"y":2360,"wires":[["b3415f3caebbe0f0"]]},{"id":"955be3d9ec4d3fa0","type":"function","z":"ced79efefefe35c7","name":"get NS_ Relay_name","func":"msg.relayname = global.get(\"N_NS_two\")\nvar check = global.get(\"N_NS_two\");\nmsg.payload = check;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":820,"y":2400,"wires":[["11cd76a797163d8f"]]},{"id":"b3415f3caebbe0f0","type":"delay","z":"ced79efefefe35c7","name":"","pauseType":"delay","timeout":"50","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"outputs":1,"x":1060,"y":2360,"wires":[["9fe0ab373903881e"]]},{"id":"11cd76a797163d8f","type":"delay","z":"ced79efefefe35c7","name":"","pauseType":"delay","timeout":"100","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"outputs":1,"x":1070,"y":2400,"wires":[["5aba2722d6714421"]]},{"id":"6e9dde3e13c71fbd","type":"ui_text_input","z":"ced79efefefe35c7","name":"","label":"NS_Relay 1","tooltip":"","group":"93244e61960a92b2","order":1,"width":0,"height":0,"passthru":true,"mode":"text","delay":300,"topic":"","topicType":"str","x":250,"y":2500,"wires":[["b6d353b634438eb7","b3138e8a95953d60"]]},{"id":"9eb00cefda1b71f2","type":"ui_text_input","z":"ced79efefefe35c7","name":"","label":"NS_Relay 2","tooltip":"","group":"93244e61960a92b2","order":2,"width":0,"height":0,"passthru":true,"mode":"text","delay":300,"topic":"","topicType":"str","x":250,"y":2560,"wires":[["ad246d25c3ca6a10","d19baa0530ef8698"]]},{"id":"ad246d25c3ca6a10","type":"file","z":"ced79efefefe35c7","name":"","filename":"pekaway/NS_relay_name2","filenameType":"str","appendNewline":false,"createDir":true,"overwriteFile":"true","encoding":"none","x":520,"y":2560,"wires":[[]]},{"id":"b6d353b634438eb7","type":"file","z":"ced79efefefe35c7","name":"","filename":"pekaway/NS_relay_name1","filenameType":"str","appendNewline":false,"createDir":true,"overwriteFile":"true","encoding":"none","x":520,"y":2500,"wires":[[]]},{"id":"b3138e8a95953d60","type":"function","z":"ced79efefefe35c7","name":"","func":"global.set(\"N_NS_one\", msg.payload);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":740,"y":2500,"wires":[[]]},{"id":"d19baa0530ef8698","type":"function","z":"ced79efefefe35c7","name":"","func":"global.set(\"N_NS_two\", msg.payload);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":740,"y":2560,"wires":[[]]},{"id":"3685fa4fab6625d1","type":"function","z":"ced79efefefe35c7","name":"","func":"var str = msg.payload;\nglobal.set(\"N_NS_one\", str);\n\n\n \n\n ","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1240,"y":2500,"wires":[[]]},{"id":"5896b755633ed640","type":"function","z":"ced79efefefe35c7","name":"","func":"var str = msg.payload;\nglobal.set(\"NLilyGotwo\", str);\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1240,"y":2560,"wires":[[]]},{"id":"f4d40d398e6dce9f","type":"file in","z":"ced79efefefe35c7","name":"","filename":"pekaway/NS_relay_name1","filenameType":"str","format":"utf8","chunk":false,"sendError":false,"encoding":"none","allProps":false,"x":1020,"y":2500,"wires":[["3685fa4fab6625d1","6e9dde3e13c71fbd"]]},{"id":"c783ef94c9e2addb","type":"file in","z":"ced79efefefe35c7","name":"","filename":"pekaway/NS_relay_name2","filenameType":"str","format":"utf8","chunk":false,"sendError":false,"encoding":"none","allProps":false,"x":1020,"y":2560,"wires":[["5896b755633ed640","9eb00cefda1b71f2"]]},{"id":"be8d86aa119a0fd9","type":"inject","z":"ced79efefefe35c7","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":"2","topic":"","payload":"","payloadType":"date","x":210,"y":2620,"wires":[["e2acb5db768e5a06"]]},{"id":"e2acb5db768e5a06","type":"delay","z":"ced79efefefe35c7","name":"","pauseType":"delay","timeout":"200","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":420,"y":2620,"wires":[["f4d40d398e6dce9f","c783ef94c9e2addb"]]},{"id":"dde981daf963ce60","type":"json","z":"ced79efefefe35c7","name":"","property":"payload","action":"","pretty":false,"x":330,"y":2080,"wires":[["15ccfa1b73a189e3","1202834a0b139724","c7d9cd560ed1a29b"]]},{"id":"15ccfa1b73a189e3","type":"function","z":"ced79efefefe35c7","name":"set Temp ","func":"msg.payload=msg.payload.ANALOG.Temperature1;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":500,"y":1960,"wires":[["36f2a0f9197bc1b8"]]},{"id":"36f2a0f9197bc1b8","type":"function","z":"ced79efefefe35c7","name":"set global temp1","func":"global.set(\"temp5\",msg.payload);\nreturn msg","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":710,"y":1960,"wires":[["a984fd54c22c80e0","17f63340e8151969","c2a7802dcd582f6c"]]},{"id":"a984fd54c22c80e0","type":"ui_text","z":"ced79efefefe35c7","group":"b8db3199.f0dbe","order":6,"width":0,"height":0,"name":"","label":"Temperatur NS_Panel","format":"{{msg.payload}} °C","layout":"row-spread","x":960,"y":1940,"wires":[]},{"id":"17f63340e8151969","type":"ui_text","z":"ced79efefefe35c7","group":"a152c3aa07d499ad","order":3,"width":0,"height":0,"name":"","label":"Temperatur NS_Panel","format":"{{msg.payload}} °C","layout":"row-spread","x":960,"y":1960,"wires":[]},{"id":"c7d9cd560ed1a29b","type":"function","z":"ced79efefefe35c7","name":"set Switch1","func":"msg.payload = msg.payload.Switch1;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":510,"y":2020,"wires":[["c348979aae161eb6"]]},{"id":"1202834a0b139724","type":"function","z":"ced79efefefe35c7","name":"set Switch2","func":"msg.payload = msg.payload.Switch2;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":510,"y":2120,"wires":[["6cc50c24a4cbb266"]]},{"id":"c2a7802dcd582f6c","type":"debug","z":"ced79efefefe35c7","name":"NS_Temp","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"payload","statusType":"auto","x":1360,"y":1960,"wires":[]},{"id":"0ddb07c65cbb68bc","type":"mqtt-broker","name":"","broker":"http://localhost","port":"1883","clientid":"","usetls":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"sessionExpiry":""},{"id":"a152c3aa07d499ad","type":"ui_group","name":"NS_Panel","tab":"2fa37e0c8559eb92","order":6,"disp":true,"width":"6","collapse":false},{"id":"93244e61960a92b2","type":"ui_group","name":"NS_Panel","tab":"0eb1f7da3d0343f6","order":8,"disp":true,"width":"6","collapse":false},{"id":"b8db3199.f0dbe","type":"ui_group","name":"Temperature","tab":"deee53a800de461d","order":3,"disp":true,"width":"6","collapse":false},{"id":"2fa37e0c8559eb92","type":"ui_tab","name":"Switches","icon":"mi-toggle_on","order":2,"disabled":false,"hidden":false},{"id":"0eb1f7da3d0343f6","type":"ui_tab","name":"Meine Konfig","icon":"dashboard","order":23,"disabled":false,"hidden":false},{"id":"deee53a800de461d","type":"ui_tab","name":"Info","icon":"mi-info","order":1,"disabled":false,"hidden":false}]

Gruß Arno

1 Like

Bei mir wird leider keinerlei temp angezeigt hÀnge iwie an dem schritt fest ^^

moin,
hat es denn ĂŒberhaupt schon einmal eine Temperatur angezeigt?

nein leider noch gar nicht

nur im pi selber aber nicht aufm display

Wenndu den code “ADCParam1 2,12400,8800,3950” eingegeben hast liegt es eventuell an der 1 hinter param. Versuch den code denn ich gepostet habe.
Gruss Arno

also iwie brÀuchte ich beim letzten schritt mal 1 zu 1 betreuung ^^ selbst mit dem anderen code zeigt er mir keine temperaturen am display

Moin zusammen,
ich hÀnge leider noch an dieser Stelle.

  • Das Update ist auf meinem VanPi.
  • mqtt Verbindung steht - ich kann auf einem mqtt Explorer VanPI und SONOFF sehen.
  • autoexec.be hat auch noch geklappt
    nur das Flashen des Nextion gibt immer ein 404

Könnt Ihr mir hier einen Tip geben??
Danke!

ich konnte das Problem durch ein Workaround lösen.
Aber der vorgesehene Weg funktioniert bei mir nicht.