SveinHa Skrevet 19. september 2021 Skrevet 19. september 2021 (endret) Begynte i natt å se litt på Node-Red og har nå fått til litt greier men trenger litt hjelp... Har en bevegelsessensor som skal slå på nattlys litt stille og rolig og slå av igjen etter en tid. Denne sender følgende via mqtt: Sitat {"battery":100,"illuminance":0,"illuminance_lux":0,"linkquality":255,"motion_sensitivity":"high","occupancy":false,"occupancy_timeout":0,"temperature":16.62,"update":{"state":"idle"},"update_available":false} Jeg ønsker å filtrerer ut "occupancy" og kjøre en flow når denne er "true". Lyset går da raskt opp til 30 for så å sakte gå opp til 100. 1 minutt senere skal det sakte slå seg av igjen. Denne flowen fungerer for så vidt men ved flere aktiveringer legger der seg flere "slå av" kommandoer i kø og det er ikke så lurt. Tatt i betraktning at jeg er heeeeelt fersk på Node-Red så er jeg fornøyd med at det virker sånn noenlunde men regner med det er ultraklønete laget. Noen som vil guide meg litt på vei? Noen flere parameter trengs også etterhvert som f.eks. er det ikke nødvendig med nattlys på dagtid, enten ut fra soloppgang/nedgang eller kanskje litt mer elegant vha. lyssensoren i bevegelssensoren. [{"id":"6e716fb5.71658","type":"tab","label":"Flow 2"},{"id":"8f9a50d4b09f6554","type":"mqtt in","z":"6e716fb5.71658","name":"Bev1","topic":"zigbee2mqtt/HUE/Sov1Beveg","qos":"0","datatype":"auto","broker":"6db118ed1b0c56de","nl":false,"rap":true,"rh":0,"x":190,"y":300,"wires":[["6be4bd0d5ef4eefb","a9c4f1bd5c640d81"]]},{"id":"042eecf372789b8e","type":"mqtt out","z":"6e716fb5.71658","name":"Nattlys","topic":"zigbee2mqtt/HUE/NattlysSov1/set","qos":"2","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"6db118ed1b0c56de","x":1230,"y":380,"wires":[]},{"id":"9abd98fd718357d6","type":"switch","z":"6e716fb5.71658","name":"Filtrer ut kun \"Bevegelse på\"","property":"payload.occupancy","propertyType":"msg","rules":[{"t":"cont","v":"true","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":580,"y":300,"wires":[["cd90cb56d0f52093"]],"outputLabels":["True"]},{"id":"6be4bd0d5ef4eefb","type":"json","z":"6e716fb5.71658","name":"","property":"payload","action":"","pretty":true,"x":360,"y":300,"wires":[["9abd98fd718357d6"]]},{"id":"d118a9f20f32cace","type":"change","z":"6e716fb5.71658","name":"På langsom","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"brightness\":100,\"transition\":25}","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":910,"y":380,"wires":[["042eecf372789b8e","a9c4f1bd5c640d81","555f9fffe3349a6b"]]},{"id":"599f78525155c46b","type":"change","z":"6e716fb5.71658","name":"Av","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"brightness\":0,\"transition\":30}","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":890,"y":480,"wires":[["042eecf372789b8e","a9c4f1bd5c640d81"]]},{"id":"555f9fffe3349a6b","type":"delay","z":"6e716fb5.71658","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"minutes","rate":"1","nbRateUnits":"1","rateUnits":"minute","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"allowrate":false,"x":720,"y":480,"wires":[["599f78525155c46b"]]},{"id":"cd90cb56d0f52093","type":"change","z":"6e716fb5.71658","name":"På rask","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"brightness\":30,\"transition\":1}","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":900,"y":280,"wires":[["042eecf372789b8e","a9c4f1bd5c640d81","0ccec4c709bd297b"]]},{"id":"0ccec4c709bd297b","type":"delay","z":"6e716fb5.71658","name":"","pauseType":"delay","timeout":"3","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"x":720,"y":380,"wires":[["d118a9f20f32cace"]]},{"id":"a9c4f1bd5c640d81","type":"debug","z":"6e716fb5.71658","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":850,"y":640,"wires":[]},{"id":"6db118ed1b0c56de","type":"mqtt-broker","name":"DaleMQTT","broker":"172.16.0.94","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":""}] Endret 19. september 2021 av SveinHa Siter
SveinHa Skrevet 19. september 2021 Forfatter Skrevet 19. september 2021 Da er jeg kommet litt nærmere: Lyset går på som planlagt men med flere aktiveringer av bevegelssessensoren køer det seg opp med "av" kommandoer, 5 i dette eksempelet. Ved HVER ny bevegelse vil jeg slette alt i køen og legge inn kun 1 ny forsinket kommando. Hvordan? [{"id":"6e716fb5.71658","type":"tab","label":"Flow 2"},{"id":"8f9a50d4b09f6554","type":"mqtt in","z":"6e716fb5.71658","name":"Bev1","topic":"zigbee2mqtt/HUE/Sov1Beveg","qos":"0","datatype":"auto","broker":"6db118ed1b0c56de","nl":false,"rap":true,"rh":0,"x":170,"y":160,"wires":[["b1faf566507cd1bb"]]},{"id":"042eecf372789b8e","type":"mqtt out","z":"6e716fb5.71658","name":"Nattlys","topic":"zigbee2mqtt/HUE/NattlysSov1/set","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"6db118ed1b0c56de","x":1230,"y":260,"wires":[]},{"id":"d118a9f20f32cace","type":"change","z":"6e716fb5.71658","name":"På langsom","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"brightness\":100,\"transition\":25}","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":910,"y":260,"wires":[["042eecf372789b8e","a9c4f1bd5c640d81","555f9fffe3349a6b"]]},{"id":"599f78525155c46b","type":"change","z":"6e716fb5.71658","name":"Av","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"brightness\":0,\"transition\":30}","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":890,"y":360,"wires":[["042eecf372789b8e","a9c4f1bd5c640d81"]]},{"id":"555f9fffe3349a6b","type":"delay","z":"6e716fb5.71658","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"minutes","rate":"1","nbRateUnits":"1","rateUnits":"minute","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"allowrate":false,"x":720,"y":360,"wires":[["599f78525155c46b"]]},{"id":"cd90cb56d0f52093","type":"change","z":"6e716fb5.71658","name":"På rask","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"brightness\":30,\"transition\":1}","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":900,"y":160,"wires":[["042eecf372789b8e","a9c4f1bd5c640d81","0ccec4c709bd297b"]]},{"id":"0ccec4c709bd297b","type":"delay","z":"6e716fb5.71658","name":"","pauseType":"delay","timeout":"3","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"x":720,"y":260,"wires":[["d118a9f20f32cace"]]},{"id":"a9c4f1bd5c640d81","type":"debug","z":"6e716fb5.71658","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1210,"y":340,"wires":[]},{"id":"b1faf566507cd1bb","type":"json","z":"6e716fb5.71658","name":"","property":"payload","action":"","pretty":false,"x":330,"y":160,"wires":[["317aadc39d87352b"]]},{"id":"317aadc39d87352b","type":"switch","z":"6e716fb5.71658","name":"Beveg","property":"payload.occupancy","propertyType":"msg","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":510,"y":160,"wires":[["1ba54974b376c742"]]},{"id":"1ba54974b376c742","type":"switch","z":"6e716fb5.71658","name":"Illum LUX","property":"payload.illuminance_lux","propertyType":"msg","rules":[{"t":"lt","v":"15","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":700,"y":160,"wires":[["cd90cb56d0f52093"]]},{"id":"6db118ed1b0c56de","type":"mqtt-broker","name":"DaleMQTT","broker":"172.16.0.94","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":""}] Siter
JohnMartin Skrevet 19. september 2021 Skrevet 19. september 2021 Skal ikke påberope meg noe kunnskaper i node-red, men holder selv å prøver å lære meg litt. Fant en sekvens på nettet som hjalp meg med denne problematikken. Bruker function node og msg.delay = 1000; var m1 = {reset:true}; return [[m1,msg]]; [{"id":"f8275102.af47b","type":"inject","z":"a68cca8a.e5ba98","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":160,"y":1560,"wires":[["193bbb8c.ee43a4"]]},{"id":"193bbb8c.ee43a4","type":"function","z":"a68cca8a.e5ba98","name":"","func":"msg.delay = 5000;\nvar m1 = {reset:true};\nreturn [[m1,msg]];","outputs":1,"noerr":0,"x":320,"y":1560,"wires":[["941932e.e9abcd"]]},{"id":"941932e.e9abcd","type":"delay","z":"a68cca8a.e5ba98","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":480,"y":1560,"wires":[["d02fef04.15e29"]]},{"id":"d02fef04.15e29","type":"debug","z":"a68cca8a.e5ba98","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":650,"y":1560,"wires":[]}] Men etter hva jeg har skjønt med Node-red, så er det virkelig mange forskjellige måter å gjøre ting på. 🤯 1 Siter
JohnMartin Skrevet 19. september 2021 Skrevet 19. september 2021 Har også denne: [{"id":"8abddf439586247b","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"f274001f4d4c8fbc","type":"change","z":"8abddf439586247b","name":"","rules":[{"t":"set","p":"reset","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":540,"y":300,"wires":[["3c1b34f675c6ec46"]]},{"id":"3c1b34f675c6ec46","type":"delay","z":"8abddf439586247b","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"x":760,"y":300,"wires":[["54e067a4c9bff0ca"]]},{"id":"c72d166db38b7224","type":"inject","z":"8abddf439586247b","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payloadType":"date","x":340,"y":300,"wires":[["f274001f4d4c8fbc","b6cb432c78b9908e"]]},{"id":"54e067a4c9bff0ca","type":"debug","z":"8abddf439586247b","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":930,"y":300,"wires":[]},{"id":"b6cb432c78b9908e","type":"delay","z":"8abddf439586247b","name":"","pauseType":"delay","timeout":"10","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"x":530,"y":340,"wires":[["5b2ab1d09d448065"]]},{"id":"5b2ab1d09d448065","type":"change","z":"8abddf439586247b","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"On","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":540,"y":400,"wires":[["3c1b34f675c6ec46"]]}] Siter
SveinHa Skrevet 19. september 2021 Forfatter Skrevet 19. september 2021 Da har jeg forenklet litt og fått det til å virke tilfredsstillende: [{"id":"6e716fb5.71658","type":"tab","label":"Flow 2"},{"id":"8f9a50d4b09f6554","type":"mqtt in","z":"6e716fb5.71658","name":"Bev1","topic":"zigbee2mqtt/HUE/Sov1Beveg","qos":"0","datatype":"auto","broker":"6db118ed1b0c56de","nl":false,"rap":true,"rh":0,"x":170,"y":160,"wires":[["b1faf566507cd1bb"]]},{"id":"042eecf372789b8e","type":"mqtt out","z":"6e716fb5.71658","name":"Nattlys","topic":"zigbee2mqtt/HUE/NattlysSov1/set","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"6db118ed1b0c56de","x":1170,"y":200,"wires":[]},{"id":"599f78525155c46b","type":"change","z":"6e716fb5.71658","name":"Av","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"brightness\":0,\"transition\":60}","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":930,"y":260,"wires":[["042eecf372789b8e"]]},{"id":"555f9fffe3349a6b","type":"delay","z":"6e716fb5.71658","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"minutes","rate":"1","nbRateUnits":"1","rateUnits":"minute","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"allowrate":false,"x":780,"y":260,"wires":[["599f78525155c46b"]]},{"id":"cd90cb56d0f52093","type":"change","z":"6e716fb5.71658","name":"På","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"brightness\":150,\"transition\":15}","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":930,"y":160,"wires":[["042eecf372789b8e"]]},{"id":"b1faf566507cd1bb","type":"json","z":"6e716fb5.71658","name":"","property":"payload","action":"","pretty":false,"x":330,"y":160,"wires":[["317aadc39d87352b"]]},{"id":"317aadc39d87352b","type":"switch","z":"6e716fb5.71658","name":"Beveg","property":"payload.occupancy","propertyType":"msg","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":510,"y":160,"wires":[["1ba54974b376c742"]]},{"id":"1ba54974b376c742","type":"switch","z":"6e716fb5.71658","name":"Illum LUX < 15","property":"payload.illuminance_lux","propertyType":"msg","rules":[{"t":"lt","v":"15","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":720,"y":160,"wires":[["cd90cb56d0f52093","4b62b6861f671f57"]]},{"id":"4b62b6861f671f57","type":"function","z":"6e716fb5.71658","name":"","func":"msg.delay = 60000;\nvar m1 = {reset:true};\nreturn [[m1,msg]];","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":620,"y":260,"wires":[["555f9fffe3349a6b"]]},{"id":"6db118ed1b0c56de","type":"mqtt-broker","name":"DaleMQTT","broker":"172.16.0.94","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":""}] Takker og bukker for hjelpen. Veldig greit å kjøre Node-Red parallellt med HomeSeer Siter
SveinHa Skrevet 20. september 2021 Forfatter Skrevet 20. september 2021 (endret) Putler i vei litt videre. Poster her når jeg har fått "hull på byllen", dvs. fått ting til å virke. Denne gangen er det en IKEA rund 5-knapp fjernkontroll via zigbee2mqtt som styrer en wallplug i HS4 og er Sunricher rele via mqtt/zigbee2mqtt: Litt for andre og litt for meg selv som huskeliste 😉 [{"id":"0e1f5a47dab01ac8","type":"tab","label":"IKEA Remote SW2","disabled":false,"info":""},{"id":"e7d4221599ac53c2","type":"mqtt in","z":"0e1f5a47dab01ac8","name":"SW2","topic":"zigbee2mqtt/IKEA/Tradfri_SW2","qos":"2","datatype":"auto","broker":"6db118ed1b0c56de","nl":false,"rap":true,"rh":0,"x":90,"y":80,"wires":[["1e2e7dccdd786a5f"]]},{"id":"40365f1ed2766793","type":"mqtt out","z":"0e1f5a47dab01ac8","name":"Spisebord","topic":"zigbee2mqtt/Lys/Spisebord/set","qos":"0","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"6db118ed1b0c56de","x":760,"y":80,"wires":[]},{"id":"1e2e7dccdd786a5f","type":"json","z":"0e1f5a47dab01ac8","name":"","property":"payload","action":"obj","pretty":false,"x":230,"y":80,"wires":[["064e9d908740e547"]]},{"id":"064e9d908740e547","type":"function","z":"0e1f5a47dab01ac8","name":"DekodSW2","func":"var svar = \"\";\nvar action=msg.payload.action;\nif (action==\"toggle\") {\n svar= {payload:\"TOGGLE\"};\n}\nif (action==\"brightness_up_click\") {\n svar= {payload:\"ON\"};\n}\nif (action==\"brightness_down_click\") {\n svar= {payload:\"OFF\"};\n}\nif (action==\"arrow_left_click\") {\n svar= {payload:\"L\"};\n}\nif (action==\"arrow_right_click\") {\n svar= {payload:\"R\"};\n}\n\nreturn svar;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":130,"y":160,"wires":[["07fb951a50e9c8c6"]]},{"id":"ecd3c99e5f1797a0","type":"hs-device","z":"0e1f5a47dab01ac8","name":"HjerterKjøk","device":"1688","server":"8cea2f7d775df12f","feature":0,"reportonstartup":false,"x":770,"y":180,"wires":[[]]},{"id":"07fb951a50e9c8c6","type":"switch","z":"0e1f5a47dab01ac8","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"ON","vt":"str"},{"t":"eq","v":"OFF","vt":"str"},{"t":"eq","v":"TOGGLE","vt":"str"},{"t":"eq","v":"L","vt":"str"},{"t":"eq","v":"R","vt":"str"}],"checkall":"true","repair":true,"outputs":5,"x":290,"y":160,"wires":[["40365f1ed2766793"],["40365f1ed2766793"],["40365f1ed2766793"],["6d6a304991a8d20b"],["579dcb740e976515"]],"outputLabels":["","","","Ev1","Ev2"]},{"id":"579dcb740e976515","type":"change","z":"0e1f5a47dab01ac8","name":"Av","rules":[{"t":"set","p":"topic","pt":"msg","to":"control","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"{\"status\":\"OFF\"}","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":470,"y":200,"wires":[["c1e0bc0d7ac004f4"]]},{"id":"c1e0bc0d7ac004f4","type":"json","z":"0e1f5a47dab01ac8","name":"","property":"payload","action":"","pretty":false,"x":590,"y":200,"wires":[["ecd3c99e5f1797a0"]]},{"id":"6d6a304991a8d20b","type":"change","z":"0e1f5a47dab01ac8","name":"På","rules":[{"t":"set","p":"topic","pt":"msg","to":"control","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"{\"status\":\"ON\"}","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":470,"y":160,"wires":[["49dbaad0fe1bd6b0"]]},{"id":"49dbaad0fe1bd6b0","type":"json","z":"0e1f5a47dab01ac8","name":"","property":"payload","action":"","pretty":false,"x":590,"y":160,"wires":[["ecd3c99e5f1797a0"]]},{"id":"bf58b55dadacba35","type":"comment","z":"0e1f5a47dab01ac8","name":"Telldus wallplug i HS4","info":"","x":960,"y":180,"wires":[]},{"id":"6097e1532a616b0b","type":"comment","z":"0e1f5a47dab01ac8","name":"Sunricher Zigbee rele","info":"","x":960,"y":80,"wires":[]},{"id":"8de42efafb168028","type":"comment","z":"0e1f5a47dab01ac8","name":"IKEA 5-knapp fjernkontroll","info":"","x":150,"y":40,"wires":[]},{"id":"6db118ed1b0c56de","type":"mqtt-broker","name":"DaleMQTT","broker":"172.16.0.94","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":"8cea2f7d775df12f","type":"hs-server","name":"HS4","host":"172.16.0.102","port":"80"}] Endret 17. oktober 2021 av SveinHa Siter
SveinHa Skrevet 3. oktober 2021 Forfatter Skrevet 3. oktober 2021 (endret) Leker litt med Node-Red Dashboard, ikke like rett frem for meg... Problemstilling: Har en slider som styrer en dimmer i HS4. Dimmeren styres også fra flere andre steder og må ha tilbakemelding i NR Dashboard uavhengig av hvor den er styrt fra. Har laget noe greier som virker men lite elegant. Dimmeren styres greit fra NRD men i det jeg har sluppet den hopper den til gammel verdi men retter seg da jeg kjører en Sync hvert 10 sek. Lite elegant, noen som har bedre løsninger? [{"id":"a17d57ca2bd415ed","type":"inject","z":"bd6892582b896458","name":"","props":[{"p":"topic","vt":"str"}],"repeat":"10","crontab":"","once":false,"onceDelay":0.1,"topic":"sync","x":90,"y":1080,"wires":[["51e7fbdbd2098aeb","3e2336b1e2952084"]]},{"id":"2b572d1453bf7926","type":"ui_slider","z":"bd6892582b896458","name":"Slider Lampetter","label":"Lampetter","tooltip":"","group":"7137fe863ebb3555","order":3,"width":0,"height":0,"passthru":false,"outs":"end","topic":"control","topicType":"str","min":0,"max":"100","step":1,"className":"","x":720,"y":1140,"wires":[["a1e001f80f23084e"]]},{"id":"3e2336b1e2952084","type":"hs-device","z":"bd6892582b896458","name":"Bolig Stue Dim Lampetter Goap Switch Dim Lampetter","device":"896","server":"8cea2f7d775df12f","feature":"901","reportonstartup":true,"x":260,"y":1140,"wires":[["33aa6ca6a604e474"]]},{"id":"33aa6ca6a604e474","type":"function","z":"bd6892582b896458","name":"Extract Value","func":"var svar = \"\";\nvar value=msg.payload.value;\nsvar = {payload:value.toFixed(0)};\nreturn svar;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":550,"y":1140,"wires":[["2b572d1453bf7926"]]},{"id":"a4806c0c2520326a","type":"function","z":"bd6892582b896458","name":"Create msg","func":"var svar = \"\";\nvar inn=msg.payload;\nif (inn != null) {\nvar msg1 = {payload: {\"value\":inn}, topic: \"control\"};\nreturn msg1;}","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1050,"y":1140,"wires":[["811709e3f452d914"]]},{"id":"811709e3f452d914","type":"show-value","z":"bd6892582b896458","name":"","path":"","x":1210,"y":1140,"wires":[["3e2336b1e2952084"]]},{"id":"a1e001f80f23084e","type":"show-value","z":"bd6892582b896458","name":"","path":"","x":890,"y":1140,"wires":[["a4806c0c2520326a"]]},{"id":"7137fe863ebb3555","type":"ui_group","name":"Kolonne2","tab":"e3ef94435f0945bf","order":2,"disp":false,"width":"6","collapse":false,"className":""},{"id":"8cea2f7d775df12f","type":"hs-server","name":"HS4","host":"172.16.0.102","port":"80"},{"id":"e3ef94435f0945bf","type":"ui_tab","name":"Home","icon":"home","order":1,"disabled":false,"hidden":false}] Samme problemstilling gjelder for brytere. Endret 3. oktober 2021 av SveinHa Siter
Frankis78 Skrevet 7. oktober 2021 Skrevet 7. oktober 2021 Kanskje du kan finne litt hjelp fra denne linken om hvordan holde ting i sync? https://forums.homeseer.com/forum/homeseer-products-services/cloud-service-integrations/node-red/1416996-keeping-a-node-red-dashboard-in-sync-with-homeseer 1 Siter
Anbefalte innlegg
Bli med i samtalen
Du kan publisere innhold nå og registrere deg senere. Hvis du har en konto, logg inn nå for å poste med kontoen din.