Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. milanissimo

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    M
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 30
    • Best 0
    • Groups 1

    milanissimo

    @milanissimo

    Starter

    0
    Reputation
    16
    Profile views
    30
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    milanissimo Follow
    Starter

    Latest posts made by milanissimo

    • Function Node welche zwei Werte vergleicht

      Hallo,

      ich probiere mich seit geraumer Zeit meine Heizung noch intelligenter schalten zu lassen. Leider bekomme ich es bisher aber nicht so hin wie ich es gern hätte.

      Ich würde gern in einer Function zwei Werte vergleichen (Flow) und wenn beide Werte meine Vorgaben erfüllen eine Trigger zu schalten.

      In meinen Beispiel soll durch die Function ein true (msg.payload) gesendet werden wenn der Flow "heizdif" größer als 20 und der Flow wwdif größer als 5 ist.

      Wäre sehr dank wenn mir da nochmal einer auf die Sprünge helfen kann wo mein Fehler liegt.

      Liebe Grüße Milan

      [
          {
              "id": "0d30e281996aaebd",
              "type": "tab",
              "label": "Flow 2",
              "disabled": false,
              "info": "",
              "env": []
          },
          {
              "id": "b065417068e26386",
              "type": "change",
              "z": "0d30e281996aaebd",
              "name": "",
              "rules": [
                  {
                      "t": "set",
                      "p": "wwdif",
                      "pt": "flow",
                      "to": "payload",
                      "tot": "msg"
                  },
                  {
                      "t": "delete",
                      "p": "topic",
                      "pt": "msg"
                  }
              ],
              "action": "",
              "property": "",
              "from": "",
              "to": "",
              "reg": false,
              "x": 1150,
              "y": 640,
              "wires": [
                  [
                      "77da2cce3ae2683d"
                  ]
              ]
          },
          {
              "id": "44a30c20f9a153e6",
              "type": "change",
              "z": "0d30e281996aaebd",
              "name": "",
              "rules": [
                  {
                      "t": "set",
                      "p": "heizdif",
                      "pt": "flow",
                      "to": "payload",
                      "tot": "msg"
                  },
                  {
                      "t": "delete",
                      "p": "topic",
                      "pt": "msg"
                  }
              ],
              "action": "",
              "property": "",
              "from": "",
              "to": "",
              "reg": false,
              "x": 1150,
              "y": 580,
              "wires": [
                  [
                      "77da2cce3ae2683d"
                  ]
              ]
          },
          {
              "id": "77da2cce3ae2683d",
              "type": "function",
              "z": "0d30e281996aaebd",
              "name": "",
              "func": "var heizdif = flow.get('heizdif'); \nvar wwdif = flow.get('wwdif');\nmsg.heizdif = heizdif;\nmsg.wwdif = wwdif;\nif (msg.heizdif > 20 && msg.wwdif > 5) {\nmsg.payload === true;\n}\nelse {\nmsg.payload === false;\n}\nreturn msg;",
              "outputs": 1,
              "noerr": 0,
              "initialize": "",
              "finalize": "",
              "libs": [],
              "x": 1400,
              "y": 620,
              "wires": [
                  [
                      "42abd2fecf659b8d",
                      "9822534383101b8a"
                  ]
              ]
          },
          {
              "id": "f0c2e0d3753c0549",
              "type": "inject",
              "z": "0d30e281996aaebd",
              "name": "",
              "props": [
                  {
                      "p": "payload"
                  }
              ],
              "repeat": "",
              "crontab": "",
              "once": false,
              "onceDelay": 0.1,
              "topic": "",
              "payload": "6",
              "payloadType": "num",
              "x": 810,
              "y": 640,
              "wires": [
                  [
                      "b065417068e26386"
                  ]
              ]
          },
          {
              "id": "9822534383101b8a",
              "type": "debug",
              "z": "0d30e281996aaebd",
              "name": "",
              "active": true,
              "tosidebar": true,
              "console": false,
              "tostatus": false,
              "complete": "false",
              "statusVal": "",
              "statusType": "auto",
              "x": 1650,
              "y": 360,
              "wires": []
          },
          {
              "id": "6c40bb7ab28ef804",
              "type": "inject",
              "z": "0d30e281996aaebd",
              "name": "",
              "props": [
                  {
                      "p": "payload"
                  }
              ],
              "repeat": "",
              "crontab": "",
              "once": false,
              "onceDelay": 0.1,
              "topic": "",
              "payload": "30",
              "payloadType": "num",
              "x": 810,
              "y": 580,
              "wires": [
                  [
                      "44a30c20f9a153e6"
                  ]
              ]
          },
          {
              "id": "a93efb39ddd6888c",
              "type": "trigger",
              "z": "0d30e281996aaebd",
              "name": "",
              "op1": "on",
              "op2": "off",
              "op1type": "str",
              "op2type": "str",
              "duration": "10",
              "extend": false,
              "overrideDelay": false,
              "units": "min",
              "reset": "",
              "bytopic": "all",
              "topic": "topic",
              "outputs": 1,
              "x": 1840,
              "y": 620,
              "wires": [
                  [
                      "9822534383101b8a"
                  ]
              ]
          },
          {
              "id": "42abd2fecf659b8d",
              "type": "switch",
              "z": "0d30e281996aaebd",
              "name": "",
              "property": "payload",
              "propertyType": "msg",
              "rules": [
                  {
                      "t": "true"
                  }
              ],
              "checkall": "true",
              "repair": false,
              "outputs": 1,
              "x": 1590,
              "y": 620,
              "wires": [
                  [
                      "a93efb39ddd6888c"
                  ]
              ]
          }
      ]
      
      posted in Node-Red
      M
      milanissimo
    • RE: Stromzähler per Sonoff ESP8266 auslesen

      @bobofet

      hey also meins schaut aktuell so aus.

      Ich bin nur auch am verzweifeln den die variablen p: außer vom Tag bleiben einfach nicht dauerhaft gespeichert.

      Vermute das liegt evtl. daran das es zu viele wahrscheinlich sind.

      >D
      rssi=0
      s1="Tagesverbrauch: {m}<b><span style=>"
      v2=0
      v3=0
      sec=0
      hr=0
      md=0
      yr=0
      p:sm=0
      sd=0
      p:sme=0
      sde=0
      p:sma=0
      p:smb=0
      smn=0
      smo=0
      p:sya=0
      p:syb=0
      syn=0
      syo=0
      sspr=0.2599
      ssps=0.078
      yspr=0
      ysps=0
      yspt=0
      ysgp=150.00
      ysfak=0.4109
      getag=0
      ystag=0
      yetag=0
       
      >T
      v2=SML#Total_in
      v3=SML#Total_out
      rssi=Wifi#RSSI
       
      >B
      ->sensor53 r
       
      >S
      
      ;Tagesverbrauch
      hr=hours
      if chg[hr]>0
      and hr==0
      then
      sm=v2
      sme=v3
      svars
      endif
      if upsecs%tper==0
      then
      sd=v2-sm
      sde=v3-sme
      endif
      
      
       
      ;Monatsverbrauch
      md=day
      if chg[md]>0
      and hr==0
      and md==1
      then
      sma=v2
      smb=v3
      svars
      endif
      if upsecs%tper==0
      then
      smn=v2-sma
      smo=v3-smb
      endif
       
      ;Jahresverbrauch
      yr=year
      if chg[yr]>0
      and hr==0
      and md==1
      then
      sya=v2
      syb=v3
      svars
      endif
      if upsecs%tper==0
      then
      syn=v2-sya
      syo=v3-syb
      endif
       
      ;Kosten
      ystag=sd*sspr+ysfak
      yetag=sde*ssps
      getag=ystag-yetag
      yspr=syn*sspr+ysgp
      ysps=syo*ssps
      yspt=yspr-ysps
      endif
       
      >J
      ,"Verbrauch Tag":"%sd%"
      ,"Einspeisung Tag":"%sde%"
      ,"Verbrauch Monat":"%smn%"
      ,"Einspeisung Monat":"%smo%"
      ,"Verbrauch Jahr":"%syn%"
      ,"Kosten pro Tag":"%2getag%"
      
      >W
      WLAN Empfang: {m}%rssi%
      ==============
      Tagesverbrauch:  {m} %2sd%  KWh
      Tageskosten:  {m} %2getag%  €
      TagesverbrauchEins:  {m} %2sde%  KWh
      Monatsverbrauch: {m} %2smn% KWh
      MonatsverbrauchEins: {m} %2smo% KWh
      Jahresverbrauch: {m} %2syn% KWh
      JahresverbrauchEins: {m} %2syo% KWh
      ==============
      Strom Preis/kWh:       {m} %4sspr% €
      Strom Grundpreis:      {m} %2ysgp% €
      --------------
      Strom Bezug lfd. Jahr:{m} %2yspr% €
      Strom Einspeisung lfd. Jahr:{m} %2ysps% €
      Strom Gesamtkosten lfd. Jahr:{m} %2yspt% €
      ==============
      Strom Zählerstände:
      aktuell:         {m} %2v2% KWh
      0:00 Uhr:        {m} %2sm% KWh
      0:00 UhrEins:        {m} %2sme% KWh
      Monatsanfang:    {m} %2sma% KWh
      MonatsanfangEins:    {m} %2smb% KWh
      Jahresanfang:    {m} %2sya% KWh
      ==============
       
      >M 1
      +1,13,s,1,9600,SML
      1,77070100010800ff@1000,Zählerstand,KWh,Total_in,2
      1,77070100020800ff@1000,Einspeisung,KWh,Total_out,2
      1,77070100100700ff@1,Stromverbrauch,W,Power_curr,0
      1,77070100100700ff@1000,Aktuell,kW,Actual_pow,3
      1,7707010060320101@#,Meter Nr,,Meter_number,0
      
      #
      
      posted in Praktische Anwendungen (Showcase)
      M
      milanissimo
    • RE: Node Red Priorisierung von Switch im Dashboard

      @mickym

      hey kam in letzter Zeit leider nicht dazu. Bei deinen Flow hab ich immer das Problem das es mir im Dashboard nicht den richtigen Schaltzustand angezeigt hatte. Ich denke das Problem liegt bei den Passthrough der bei on oder off ja aus ist.

      Habe das jetzt wie folgt gelöst, funktioniert so einwandfrei. Bei auto werden die errechneten on off werte durchgelassen und sobald ich auf on off im Dashboard schalte werden diese gesperrt und einmalig ein on oder off gesendet, zudem wird mir auch der aktuelle Schaltzustand korrekt angezeigt. Wird jetzt nicht die Gold Lösung sein geht aber so.

      [
          {
              "id": "eeb85c27a9a061c0",
              "type": "tab",
              "label": "Flow 2",
              "disabled": false,
              "info": "",
              "env": []
          },
          {
              "id": "efecc435cbe469bc",
              "type": "inject",
              "z": "eeb85c27a9a061c0",
              "name": "None",
              "props": [
                  {
                      "p": "inputmsg",
                      "v": "none",
                      "vt": "str"
                  }
              ],
              "repeat": "",
              "crontab": "",
              "once": false,
              "onceDelay": 0.1,
              "topic": "",
              "payloadType": "str",
              "x": 510,
              "y": 920,
              "wires": [
                  []
              ]
          },
          {
              "id": "8fc85f04d65d9d7b",
              "type": "inject",
              "z": "eeb85c27a9a061c0",
              "name": "All",
              "props": [
                  {
                      "p": "inputmsg",
                      "v": "all",
                      "vt": "str"
                  }
              ],
              "repeat": "",
              "crontab": "",
              "once": false,
              "onceDelay": 0.1,
              "topic": "",
              "payloadType": "str",
              "x": 510,
              "y": 960,
              "wires": [
                  []
              ]
          },
          {
              "id": "cf79aa2977aabf31",
              "type": "comment",
              "z": "eeb85c27a9a061c0",
              "name": "Input msg mode",
              "info": "",
              "x": 480,
              "y": 880,
              "wires": []
          },
          {
              "id": "62310eca805de6ee",
              "type": "debug",
              "z": "eeb85c27a9a061c0",
              "name": "",
              "active": true,
              "tosidebar": true,
              "console": false,
              "tostatus": false,
              "complete": "payload",
              "targetType": "msg",
              "statusVal": "",
              "statusType": "auto",
              "x": 1890,
              "y": 100,
              "wires": []
          },
          {
              "id": "cc37e3355a81889e",
              "type": "inject",
              "z": "eeb85c27a9a061c0",
              "name": "",
              "props": [
                  {
                      "p": "payload"
                  }
              ],
              "repeat": "",
              "crontab": "",
              "once": false,
              "onceDelay": 0.1,
              "topic": "",
              "payload": "on",
              "payloadType": "str",
              "x": 90,
              "y": 280,
              "wires": [
                  [
                      "43fecd69490f24eb"
                  ]
              ]
          },
          {
              "id": "2c6d0d42856204a0",
              "type": "inject",
              "z": "eeb85c27a9a061c0",
              "name": "",
              "props": [
                  {
                      "p": "payload"
                  }
              ],
              "repeat": "",
              "crontab": "",
              "once": false,
              "onceDelay": 0.1,
              "topic": "",
              "payload": "off",
              "payloadType": "str",
              "x": 90,
              "y": 340,
              "wires": [
                  [
                      "43fecd69490f24eb"
                  ]
              ]
          },
          {
              "id": "b11714a6388e76fa",
              "type": "inject",
              "z": "eeb85c27a9a061c0",
              "name": "",
              "props": [
                  {
                      "p": "payload"
                  }
              ],
              "repeat": "1",
              "crontab": "",
              "once": true,
              "onceDelay": 0.1,
              "topic": "",
              "payloadType": "date",
              "x": 510,
              "y": 220,
              "wires": [
                  [
                      "8489d5e1a2678080"
                  ]
              ]
          },
          {
              "id": "8489d5e1a2678080",
              "type": "file in",
              "z": "eeb85c27a9a061c0",
              "name": "",
              "filename": "/home/pi/logs/multisw.log",
              "format": "utf8",
              "chunk": false,
              "sendError": false,
              "encoding": "none",
              "allProps": false,
              "x": 550,
              "y": 260,
              "wires": [
                  [
                      "43fecd69490f24eb"
                  ]
              ]
          },
          {
              "id": "43fecd69490f24eb",
              "type": "ui_multistate_switch",
              "z": "eeb85c27a9a061c0",
              "name": "",
              "group": "2361e78c.9b49c8",
              "order": 33,
              "width": 3,
              "height": 1,
              "label": " {{label}}",
              "stateField": "payload",
              "enableField": "enable",
              "passthroughField": "passthrough",
              "inputMsgField": "inputmsg",
              "rounded": true,
              "useThemeColors": true,
              "hideSelectedLabel": false,
              "multilineLabel": false,
              "passThrough": "always",
              "inputMsg": "all",
              "userInput": "enabled_show",
              "options": [
                  {
                      "label": "Auto",
                      "value": "3",
                      "valueType": "str",
                      "color": "#ff6666"
                  },
                  {
                      "label": "On",
                      "value": "1",
                      "valueType": "str",
                      "color": "#009933"
                  },
                  {
                      "label": "Off",
                      "value": "2",
                      "valueType": "str",
                      "color": "#999999"
                  }
              ],
              "topic": "",
              "x": 300,
              "y": 520,
              "wires": [
                  [
                      "7a5919f604d9db1a",
                      "716ac3679b53dbda"
                  ]
              ]
          },
          {
              "id": "4861775a37b35355",
              "type": "change",
              "z": "eeb85c27a9a061c0",
              "name": "",
              "rules": [
                  {
                      "t": "set",
                      "p": "passthrough",
                      "pt": "msg",
                      "to": "always",
                      "tot": "str"
                  },
                  {
                      "t": "delete",
                      "p": "payload",
                      "pt": "msg"
                  }
              ],
              "action": "",
              "property": "",
              "from": "",
              "to": "",
              "reg": false,
              "x": 670,
              "y": 620,
              "wires": [
                  [
                      "43fecd69490f24eb"
                  ]
              ]
          },
          {
              "id": "5b454092467f26ee",
              "type": "rbe",
              "z": "eeb85c27a9a061c0",
              "name": "",
              "func": "rbe",
              "gap": "",
              "start": "",
              "inout": "out",
              "septopics": false,
              "property": "payload",
              "topi": "topic",
              "x": 410,
              "y": 700,
              "wires": [
                  [
                      "2b57b770e938c06f"
                  ]
              ]
          },
          {
              "id": "7a5919f604d9db1a",
              "type": "switch",
              "z": "eeb85c27a9a061c0",
              "name": "",
              "property": "payload",
              "propertyType": "msg",
              "rules": [
                  {
                      "t": "eq",
                      "v": "1",
                      "vt": "num"
                  },
                  {
                      "t": "eq",
                      "v": "2",
                      "vt": "num"
                  },
                  {
                      "t": "eq",
                      "v": "3",
                      "vt": "num"
                  },
                  {
                      "t": "eq",
                      "v": "on",
                      "vt": "str"
                  },
                  {
                      "t": "eq",
                      "v": "off",
                      "vt": "str"
                  }
              ],
              "checkall": "true",
              "repair": false,
              "outputs": 5,
              "x": 770,
              "y": 480,
              "wires": [
                  [
                      "7dfa2057e75f5a7a",
                      "3189c51abb3cc8cb"
                  ],
                  [
                      "7dfa2057e75f5a7a",
                      "0b748c903c5dfe60"
                  ],
                  [
                      "4861775a37b35355"
                  ],
                  [
                      "5b454092467f26ee"
                  ],
                  [
                      "5b454092467f26ee"
                  ]
              ]
          },
          {
              "id": "716ac3679b53dbda",
              "type": "file",
              "z": "eeb85c27a9a061c0",
              "name": "",
              "filename": "/home/pi/logs/multisw.log",
              "appendNewline": false,
              "createDir": false,
              "overwriteFile": "true",
              "encoding": "none",
              "x": 810,
              "y": 380,
              "wires": [
                  []
              ]
          },
          {
              "id": "0b748c903c5dfe60",
              "type": "change",
              "z": "eeb85c27a9a061c0",
              "name": "",
              "rules": [
                  {
                      "t": "set",
                      "p": "payload",
                      "pt": "msg",
                      "to": "off",
                      "tot": "str"
                  }
              ],
              "action": "",
              "property": "",
              "from": "",
              "to": "",
              "reg": false,
              "x": 1170,
              "y": 340,
              "wires": [
                  [
                      "5b454092467f26ee"
                  ]
              ]
          },
          {
              "id": "3189c51abb3cc8cb",
              "type": "change",
              "z": "eeb85c27a9a061c0",
              "name": "",
              "rules": [
                  {
                      "t": "set",
                      "p": "payload",
                      "pt": "msg",
                      "to": "on",
                      "tot": "str"
                  }
              ],
              "action": "",
              "property": "",
              "from": "",
              "to": "",
              "reg": false,
              "x": 1180,
              "y": 420,
              "wires": [
                  [
                      "5b454092467f26ee"
                  ]
              ]
          },
          {
              "id": "7dfa2057e75f5a7a",
              "type": "change",
              "z": "eeb85c27a9a061c0",
              "name": "",
              "rules": [
                  {
                      "t": "set",
                      "p": "passthrough",
                      "pt": "msg",
                      "to": "never",
                      "tot": "str"
                  },
                  {
                      "t": "delete",
                      "p": "payload",
                      "pt": "msg"
                  }
              ],
              "action": "",
              "property": "",
              "from": "",
              "to": "",
              "reg": false,
              "x": 1230,
              "y": 500,
              "wires": [
                  [
                      "43fecd69490f24eb"
                  ]
              ]
          },
          {
              "id": "2b57b770e938c06f",
              "type": "debug",
              "z": "eeb85c27a9a061c0",
              "name": "",
              "active": true,
              "tosidebar": true,
              "console": false,
              "tostatus": false,
              "complete": "false",
              "statusVal": "",
              "statusType": "auto",
              "x": 620,
              "y": 720,
              "wires": []
          },
          {
              "id": "2361e78c.9b49c8",
              "type": "ui_group",
              "name": "HOME",
              "tab": "d02fd18cf63f0e19",
              "order": 1,
              "disp": false,
              "width": "7",
              "collapse": false,
              "className": ""
          },
          {
              "id": "d02fd18cf63f0e19",
              "type": "ui_tab",
              "name": "Zuhause",
              "icon": "dashboard",
              "disabled": false,
              "hidden": false
          }
      ]
      
      posted in Node-Red
      M
      milanissimo
    • RE: Node Red Priorisierung von Switch im Dashboard

      @mickym

      Vielen dank mit den Tipp zu diesen Multistate Switch.

      Hab alles soweit hinbekommen, dass wenn ich auf on und off stelle (über das Dashboard), keine Werte mehr durchgelassen werden. Sobald ich auf auto stell werden wieder Werte durchgereicht das funktioniert gut.

      Ich hab jetzt nur ein Problem, sobald ich das Dashboard einmal verlasse und wieder lade springt der Switch (Visuell wieder auf auto) so das man nicht wirklich sieht wie gerade der aktuelle Zustand ist.

      Vielleicht hast du ja noch ne Idee wo hier das Problem liegt.

      Am liebsten hätte ich auch noch einen kleinen grün/rot Button der mir den realen Schaltzustand anzeigt, hab da was mit integriert zieht aber irgendwie nicht gut aus.

      iobroker2.PNG

      [
          {
              "id": "0d30e281996aaebd",
              "type": "tab",
              "label": "Flow 2",
              "disabled": false,
              "info": "",
              "env": []
          },
          {
              "id": "11506b7d5d6627a3",
              "type": "ui_multistate_switch",
              "z": "0d30e281996aaebd",
              "name": "",
              "group": "2361e78c.9b49c8",
              "order": 33,
              "width": 3,
              "height": 1,
              "label": " {{label}}",
              "stateField": "state",
              "enableField": "enable",
              "passthroughField": "passthrough",
              "inputMsgField": "inputmsg",
              "rounded": true,
              "useThemeColors": true,
              "hideSelectedLabel": false,
              "multilineLabel": false,
              "passThrough": "always",
              "inputMsg": "all",
              "userInput": "enabled_show",
              "options": [
                  {
                      "label": "Auto",
                      "value": "auto",
                      "valueType": "str",
                      "color": "#ff6666"
                  },
                  {
                      "label": "On",
                      "value": "on",
                      "valueType": "str",
                      "color": "#009933"
                  },
                  {
                      "label": "Off",
                      "value": "off",
                      "valueType": "str",
                      "color": "#999999"
                  }
              ],
              "topic": "",
              "x": 760,
              "y": 440,
              "wires": [
                  [
                      "feb30fabfe6ed27e",
                      "67f4a4c3e7740f0d"
                  ]
              ]
          },
          {
              "id": "5855f71ddd5a2c3d",
              "type": "inject",
              "z": "0d30e281996aaebd",
              "name": "ON",
              "props": [
                  {
                      "p": "state",
                      "v": "ON",
                      "vt": "str"
                  }
              ],
              "repeat": "",
              "crontab": "",
              "once": false,
              "onceDelay": 0.1,
              "topic": "",
              "payloadType": "str",
              "x": 510,
              "y": 420,
              "wires": [
                  [
                      "11506b7d5d6627a3"
                  ]
              ]
          },
          {
              "id": "ed9d477deb467c5c",
              "type": "inject",
              "z": "0d30e281996aaebd",
              "name": "OFF",
              "props": [
                  {
                      "p": "state",
                      "v": "OFF",
                      "vt": "str"
                  }
              ],
              "repeat": "",
              "crontab": "",
              "once": false,
              "onceDelay": 0.1,
              "topic": "",
              "payloadType": "str",
              "x": 510,
              "y": 460,
              "wires": [
                  [
                      "11506b7d5d6627a3"
                  ]
              ]
          },
          {
              "id": "a425953ee814b3b2",
              "type": "inject",
              "z": "0d30e281996aaebd",
              "name": "Enabled and show",
              "props": [
                  {
                      "p": "enable",
                      "v": "enabled_show",
                      "vt": "str"
                  }
              ],
              "repeat": "",
              "crontab": "",
              "once": false,
              "onceDelay": 0.1,
              "topic": "",
              "payloadType": "str",
              "x": 470,
              "y": 560,
              "wires": [
                  [
                      "11506b7d5d6627a3"
                  ]
              ]
          },
          {
              "id": "e9666d623e1d868d",
              "type": "inject",
              "z": "0d30e281996aaebd",
              "name": "Enabled but don't show",
              "props": [
                  {
                      "p": "enable",
                      "v": "enabled_not_show",
                      "vt": "str"
                  }
              ],
              "repeat": "",
              "crontab": "",
              "once": false,
              "onceDelay": 0.1,
              "topic": "",
              "x": 460,
              "y": 600,
              "wires": [
                  [
                      "11506b7d5d6627a3"
                  ]
              ]
          },
          {
              "id": "37a286db4c7748ee",
              "type": "comment",
              "z": "0d30e281996aaebd",
              "name": "User input mode",
              "info": "",
              "x": 480,
              "y": 520,
              "wires": []
          },
          {
              "id": "609e76e4f916aa15",
              "type": "inject",
              "z": "0d30e281996aaebd",
              "name": "Disabled",
              "props": [
                  {
                      "p": "enable",
                      "v": "disabled",
                      "vt": "str"
                  }
              ],
              "repeat": "",
              "crontab": "",
              "once": false,
              "onceDelay": 0.1,
              "topic": "",
              "payloadType": "str",
              "x": 500,
              "y": 640,
              "wires": [
                  [
                      "11506b7d5d6627a3"
                  ]
              ]
          },
          {
              "id": "e4705650f84cb8d3",
              "type": "inject",
              "z": "0d30e281996aaebd",
              "name": "Never",
              "props": [
                  {
                      "p": "passthrough",
                      "v": "never",
                      "vt": "str"
                  }
              ],
              "repeat": "",
              "crontab": "",
              "once": false,
              "onceDelay": 0.1,
              "topic": "",
              "payloadType": "str",
              "x": 510,
              "y": 740,
              "wires": [
                  [
                      "11506b7d5d6627a3"
                  ]
              ]
          },
          {
              "id": "238d490fc8b97ec8",
              "type": "inject",
              "z": "0d30e281996aaebd",
              "name": "Always",
              "props": [
                  {
                      "p": "passthrough",
                      "v": "always",
                      "vt": "str"
                  }
              ],
              "repeat": "",
              "crontab": "",
              "once": false,
              "onceDelay": 0.1,
              "topic": "",
              "payloadType": "str",
              "x": 510,
              "y": 780,
              "wires": [
                  [
                      "11506b7d5d6627a3"
                  ]
              ]
          },
          {
              "id": "c0107c6053d6714f",
              "type": "comment",
              "z": "0d30e281996aaebd",
              "name": "Passthrough mode",
              "info": "",
              "x": 470,
              "y": 700,
              "wires": []
          },
          {
              "id": "ceeed4ba0ecacb38",
              "type": "inject",
              "z": "0d30e281996aaebd",
              "name": "If state changes",
              "props": [
                  {
                      "p": "passthrough",
                      "v": "change",
                      "vt": "str"
                  }
              ],
              "repeat": "",
              "crontab": "",
              "once": false,
              "onceDelay": 0.1,
              "topic": "",
              "payloadType": "str",
              "x": 480,
              "y": 820,
              "wires": [
                  [
                      "11506b7d5d6627a3"
                  ]
              ]
          },
          {
              "id": "fca788f1b8bd013a",
              "type": "inject",
              "z": "0d30e281996aaebd",
              "name": "None",
              "props": [
                  {
                      "p": "inputmsg",
                      "v": "none",
                      "vt": "str"
                  }
              ],
              "repeat": "",
              "crontab": "",
              "once": false,
              "onceDelay": 0.1,
              "topic": "",
              "payloadType": "str",
              "x": 510,
              "y": 920,
              "wires": [
                  [
                      "11506b7d5d6627a3"
                  ]
              ]
          },
          {
              "id": "0d0325d920a6cc8d",
              "type": "inject",
              "z": "0d30e281996aaebd",
              "name": "All",
              "props": [
                  {
                      "p": "inputmsg",
                      "v": "all",
                      "vt": "str"
                  }
              ],
              "repeat": "",
              "crontab": "",
              "once": false,
              "onceDelay": 0.1,
              "topic": "",
              "payloadType": "str",
              "x": 510,
              "y": 960,
              "wires": [
                  [
                      "11506b7d5d6627a3"
                  ]
              ]
          },
          {
              "id": "9e0df016e26a9159",
              "type": "comment",
              "z": "0d30e281996aaebd",
              "name": "Input msg mode",
              "info": "",
              "x": 480,
              "y": 880,
              "wires": []
          },
          {
              "id": "e2eec88a1195e351",
              "type": "inject",
              "z": "0d30e281996aaebd",
              "name": "Auto",
              "props": [
                  {
                      "p": "state",
                      "v": "auto",
                      "vt": "str"
                  }
              ],
              "repeat": "",
              "crontab": "",
              "once": true,
              "onceDelay": "2",
              "topic": "",
              "payloadType": "str",
              "x": 480,
              "y": 380,
              "wires": [
                  [
                      "11506b7d5d6627a3"
                  ]
              ]
          },
          {
              "id": "7dc085ac32e6ce58",
              "type": "switch",
              "z": "0d30e281996aaebd",
              "name": "",
              "property": "payload",
              "propertyType": "msg",
              "rules": [
                  {
                      "t": "eq",
                      "v": "on",
                      "vt": "str"
                  },
                  {
                      "t": "eq",
                      "v": "off",
                      "vt": "str"
                  },
                  {
                      "t": "eq",
                      "v": "auto",
                      "vt": "str"
                  }
              ],
              "checkall": "true",
              "repair": false,
              "outputs": 3,
              "x": 1210,
              "y": 380,
              "wires": [
                  [
                      "010e9bf3d7c0a902",
                      "3b21e3a1dc123bde"
                  ],
                  [
                      "010e9bf3d7c0a902",
                      "3b21e3a1dc123bde"
                  ],
                  [
                      "5119c646c34863cc"
                  ]
              ]
          },
          {
              "id": "010e9bf3d7c0a902",
              "type": "change",
              "z": "0d30e281996aaebd",
              "name": "",
              "rules": [
                  {
                      "t": "set",
                      "p": "passthrough",
                      "pt": "msg",
                      "to": "never",
                      "tot": "str"
                  },
                  {
                      "t": "delete",
                      "p": "payload",
                      "pt": "msg"
                  }
              ],
              "action": "",
              "property": "",
              "from": "",
              "to": "",
              "reg": false,
              "x": 1510,
              "y": 380,
              "wires": [
                  [
                      "11506b7d5d6627a3"
                  ]
              ]
          },
          {
              "id": "feb30fabfe6ed27e",
              "type": "change",
              "z": "0d30e281996aaebd",
              "name": "",
              "rules": [
                  {
                      "t": "set",
                      "p": "payload",
                      "pt": "msg",
                      "to": "state",
                      "tot": "msg"
                  },
                  {
                      "t": "delete",
                      "p": "state",
                      "pt": "msg"
                  }
              ],
              "action": "",
              "property": "",
              "from": "",
              "to": "",
              "reg": false,
              "x": 1010,
              "y": 420,
              "wires": [
                  [
                      "7dc085ac32e6ce58"
                  ]
              ]
          },
          {
              "id": "5119c646c34863cc",
              "type": "change",
              "z": "0d30e281996aaebd",
              "name": "",
              "rules": [
                  {
                      "t": "set",
                      "p": "passthrough",
                      "pt": "msg",
                      "to": "always",
                      "tot": "str"
                  },
                  {
                      "t": "delete",
                      "p": "payload",
                      "pt": "msg"
                  }
              ],
              "action": "",
              "property": "",
              "from": "",
              "to": "",
              "reg": false,
              "x": 1450,
              "y": 500,
              "wires": [
                  [
                      "11506b7d5d6627a3"
                  ]
              ]
          },
          {
              "id": "3b21e3a1dc123bde",
              "type": "debug",
              "z": "0d30e281996aaebd",
              "name": "",
              "active": true,
              "tosidebar": true,
              "console": false,
              "tostatus": false,
              "complete": "payload",
              "targetType": "msg",
              "statusVal": "",
              "statusType": "auto",
              "x": 1530,
              "y": 240,
              "wires": []
          },
          {
              "id": "67f4a4c3e7740f0d",
              "type": "change",
              "z": "0d30e281996aaebd",
              "name": "",
              "rules": [
                  {
                      "t": "change",
                      "p": "payload",
                      "pt": "msg",
                      "from": "1",
                      "fromt": "str",
                      "to": "on",
                      "tot": "str"
                  },
                  {
                      "t": "change",
                      "p": "payload",
                      "pt": "msg",
                      "from": "2",
                      "fromt": "str",
                      "to": "off",
                      "tot": "str"
                  }
              ],
              "action": "",
              "property": "",
              "from": "",
              "to": "",
              "reg": false,
              "x": 820,
              "y": 260,
              "wires": [
                  [
                      "3b21e3a1dc123bde"
                  ]
              ]
          },
          {
              "id": "6f526c1d7e7d592d",
              "type": "change",
              "z": "0d30e281996aaebd",
              "name": "",
              "rules": [
                  {
                      "t": "change",
                      "p": "payload",
                      "pt": "msg",
                      "from": "on",
                      "fromt": "str",
                      "to": "🟢",
                      "tot": "str"
                  },
                  {
                      "t": "change",
                      "p": "payload",
                      "pt": "msg",
                      "from": "off",
                      "fromt": "str",
                      "to": "🔴",
                      "tot": "str"
                  }
              ],
              "action": "",
              "property": "",
              "from": "",
              "to": "",
              "reg": false,
              "x": 370,
              "y": 40,
              "wires": [
                  [
                      "4e271289e933b0d4"
                  ]
              ]
          },
          {
              "id": "4e271289e933b0d4",
              "type": "ui_text_input",
              "z": "0d30e281996aaebd",
              "name": "",
              "label": "",
              "tooltip": "",
              "group": "2361e78c.9b49c8",
              "order": 36,
              "width": 1,
              "height": 1,
              "passthru": true,
              "mode": "text",
              "delay": 300,
              "topic": "topic",
              "sendOnBlur": true,
              "className": "",
              "topicType": "msg",
              "x": 560,
              "y": 40,
              "wires": [
                  []
              ]
          },
          {
              "id": "a7711b7ee36418e3",
              "type": "inject",
              "z": "0d30e281996aaebd",
              "name": "",
              "props": [
                  {
                      "p": "payload"
                  }
              ],
              "repeat": "",
              "crontab": "",
              "once": false,
              "onceDelay": 0.1,
              "topic": "",
              "payload": "on",
              "payloadType": "str",
              "x": 90,
              "y": 180,
              "wires": [
                  [
                      "6f526c1d7e7d592d",
                      "87885d0a3fc890c8"
                  ]
              ]
          },
          {
              "id": "498a333bec260df8",
              "type": "inject",
              "z": "0d30e281996aaebd",
              "name": "",
              "props": [
                  {
                      "p": "payload"
                  }
              ],
              "repeat": "",
              "crontab": "",
              "once": false,
              "onceDelay": 0.1,
              "topic": "",
              "payload": "off",
              "payloadType": "str",
              "x": 90,
              "y": 340,
              "wires": [
                  [
                      "6f526c1d7e7d592d",
                      "87885d0a3fc890c8"
                  ]
              ]
          },
          {
              "id": "87885d0a3fc890c8",
              "type": "change",
              "z": "0d30e281996aaebd",
              "name": "",
              "rules": [
                  {
                      "t": "change",
                      "p": "payload",
                      "pt": "msg",
                      "from": "on",
                      "fromt": "str",
                      "to": "1",
                      "tot": "str"
                  },
                  {
                      "t": "change",
                      "p": "payload",
                      "pt": "msg",
                      "from": "off",
                      "fromt": "str",
                      "to": "2",
                      "tot": "str"
                  }
              ],
              "action": "",
              "property": "",
              "from": "",
              "to": "",
              "reg": false,
              "x": 390,
              "y": 260,
              "wires": [
                  [
                      "11506b7d5d6627a3"
                  ]
              ]
          },
          {
              "id": "2361e78c.9b49c8",
              "type": "ui_group",
              "name": "HOME",
              "tab": "d02fd18cf63f0e19",
              "order": 1,
              "disp": false,
              "width": "7",
              "collapse": false,
              "className": ""
          },
          {
              "id": "d02fd18cf63f0e19",
              "type": "ui_tab",
              "name": "Zuhause",
              "icon": "dashboard",
              "disabled": false,
              "hidden": false
          }
      ]
      
      posted in Node-Red
      M
      milanissimo
    • Node Red Priorisierung von Switch im Dashboard

      Hallo, leider komme ich bei meinen Vorhaben leider nicht weiter.
      Ist denk ich auch keine Einsteigerfrage deswegen habe ich es hier gepostet.

      Ich habe meine Hausautomatisierung mittlerweile zu meiner großen Zufrieden hinbekommen.

      Jetzt bin ich aber an einen Punkt wo ich nicht weiter weis.

      Was habe ich vor? Ich würde gern wie in meinen Beispielflow zusehen, das der Dashboardswitch Vorrang hat gegenüber den zugelieferten Werten (im Beispiel -3000 und 500) wenn dieser über das Dashboard geschalten wird. Ich möchte damit quasi die automatische on off Schaltung aufgrund von zugelieferten Werten unterbinden. Jetzt weis ich nicht ob dies so überhaupt möglich ist. Eine Möglichkeit die ich mir überlegt habe, wäre ein weiterer DashboardSwitch der die Zulieferung der Werte einfach unterbindet (Wäre bei den vielen Switch die ich ansteuere dann im Dashboard sicher unübersichtlich). Auch hier weis ich nicht so recht wie ich das dann mache.

      Am allerliebsten wäre mir ein Dasboardswitch mit 3 Einstellstufen: On (dauerhaft), Off (dauerhaft), Steuerung über zugelieferte Werte.

      Zu Guter Letzt würde ich auch noch gern, wahrscheinlich ein Trigger einbauen der wirklich nur bei Zustandsänderung einmalig ein on bzw. off schickt. Aktuell wird wie die Werte kommen (minütlich) auch wenn das Relay schon auf on steht ein weiters on ans Relay geschickt.

      Ich hoffe Ihr könnt mir da mal irgendwie weiterhelfen.

      Danke schon mal im Voraus.

      [
          {
              "id": "83ea19d9f3c7a02c",
              "type": "tab",
              "label": "Flow 2",
              "disabled": false,
              "info": "",
              "env": []
          },
          {
              "id": "9d4c5a2fabb90024",
              "type": "mqtt in",
              "z": "83ea19d9f3c7a02c",
              "name": "",
              "topic": "tele/Keller/STATE",
              "qos": "2",
              "datatype": "auto",
              "broker": "5fc36d085397ac76",
              "nl": false,
              "rap": true,
              "rh": 0,
              "inputs": 0,
              "x": 360,
              "y": 100,
              "wires": [
                  [
                      "f427c327c70df223"
                  ]
              ]
          },
          {
              "id": "b00161350d1014d1",
              "type": "switch",
              "z": "83ea19d9f3c7a02c",
              "name": "",
              "property": "payload",
              "propertyType": "msg",
              "rules": [
                  {
                      "t": "btwn",
                      "v": "500",
                      "vt": "num",
                      "v2": "20000",
                      "v2t": "num"
                  },
                  {
                      "t": "btwn",
                      "v": "-3000",
                      "vt": "num",
                      "v2": "-10000",
                      "v2t": "num"
                  }
              ],
              "checkall": "true",
              "repair": false,
              "outputs": 2,
              "x": 350,
              "y": 200,
              "wires": [
                  [
                      "a2e1f88777ee4b5a"
                  ],
                  [
                      "58d724091e61ba4f"
                  ]
              ]
          },
          {
              "id": "a2e1f88777ee4b5a",
              "type": "change",
              "z": "83ea19d9f3c7a02c",
              "name": "",
              "rules": [
                  {
                      "t": "set",
                      "p": "payload",
                      "pt": "msg",
                      "to": "off",
                      "tot": "str"
                  }
              ],
              "action": "",
              "property": "",
              "from": "",
              "to": "",
              "reg": false,
              "x": 630,
              "y": 200,
              "wires": [
                  [
                      "afc1ca654faa0953"
                  ]
              ]
          },
          {
              "id": "58d724091e61ba4f",
              "type": "change",
              "z": "83ea19d9f3c7a02c",
              "name": "",
              "rules": [
                  {
                      "t": "set",
                      "p": "payload",
                      "pt": "msg",
                      "to": "on",
                      "tot": "str"
                  }
              ],
              "action": "",
              "property": "",
              "from": "",
              "to": "",
              "reg": false,
              "x": 630,
              "y": 260,
              "wires": [
                  [
                      "afc1ca654faa0953"
                  ]
              ]
          },
          {
              "id": "afc1ca654faa0953",
              "type": "ui_switch",
              "z": "83ea19d9f3c7a02c",
              "name": "",
              "label": "WW Elektro",
              "tooltip": "",
              "group": "2361e78c.9b49c8",
              "order": 15,
              "width": 2,
              "height": 1,
              "passthru": true,
              "decouple": "false",
              "topic": "topic",
              "topicType": "msg",
              "style": "",
              "onvalue": "on",
              "onvalueType": "str",
              "onicon": "",
              "oncolor": "",
              "offvalue": "off",
              "offvalueType": "str",
              "officon": "",
              "offcolor": "",
              "animate": false,
              "className": "",
              "x": 890,
              "y": 200,
              "wires": [
                  [
                      "af0bf45b7e9d1287",
                      "dab91925d2dca690"
                  ]
              ]
          },
          {
              "id": "dab91925d2dca690",
              "type": "debug",
              "z": "83ea19d9f3c7a02c",
              "name": "",
              "active": true,
              "tosidebar": true,
              "console": false,
              "tostatus": false,
              "complete": "false",
              "statusVal": "",
              "statusType": "auto",
              "x": 1030,
              "y": 80,
              "wires": []
          },
          {
              "id": "af0bf45b7e9d1287",
              "type": "mqtt out",
              "z": "83ea19d9f3c7a02c",
              "name": "",
              "topic": "cmnd/Keller/POWER1",
              "qos": "1",
              "retain": "",
              "respTopic": "",
              "contentType": "",
              "userProps": "",
              "correl": "",
              "expiry": "",
              "broker": "5fc36d085397ac76",
              "x": 1040,
              "y": 280,
              "wires": []
          },
          {
              "id": "5d6b0f7b4fea59c1",
              "type": "change",
              "z": "83ea19d9f3c7a02c",
              "name": "",
              "rules": [
                  {
                      "t": "set",
                      "p": "payload",
                      "pt": "msg",
                      "to": "payload.POWER",
                      "tot": "msg"
                  },
                  {
                      "t": "change",
                      "p": "payload",
                      "pt": "msg",
                      "from": "OFF",
                      "fromt": "str",
                      "to": "off",
                      "tot": "str"
                  },
                  {
                      "t": "change",
                      "p": "payload",
                      "pt": "msg",
                      "from": "ON",
                      "fromt": "str",
                      "to": "on",
                      "tot": "str"
                  }
              ],
              "action": "",
              "property": "",
              "from": "",
              "to": "",
              "reg": false,
              "x": 670,
              "y": 100,
              "wires": [
                  [
                      "afc1ca654faa0953"
                  ]
              ]
          },
          {
              "id": "f427c327c70df223",
              "type": "json",
              "z": "83ea19d9f3c7a02c",
              "name": "",
              "property": "payload",
              "action": "",
              "pretty": false,
              "x": 510,
              "y": 100,
              "wires": [
                  [
                      "5d6b0f7b4fea59c1"
                  ]
              ]
          },
          {
              "id": "ef034eebf5117f88",
              "type": "inject",
              "z": "83ea19d9f3c7a02c",
              "name": "",
              "props": [
                  {
                      "p": "payload"
                  }
              ],
              "repeat": "",
              "crontab": "",
              "once": false,
              "onceDelay": 0.1,
              "topic": "",
              "payload": "-3000",
              "payloadType": "num",
              "x": 130,
              "y": 200,
              "wires": [
                  [
                      "b00161350d1014d1"
                  ]
              ]
          },
          {
              "id": "c807eafa8c32ea61",
              "type": "inject",
              "z": "83ea19d9f3c7a02c",
              "name": "",
              "props": [
                  {
                      "p": "payload"
                  }
              ],
              "repeat": "",
              "crontab": "",
              "once": false,
              "onceDelay": 0.1,
              "topic": "",
              "payload": "500",
              "payloadType": "num",
              "x": 140,
              "y": 260,
              "wires": [
                  [
                      "b00161350d1014d1"
                  ]
              ]
          },
          {
              "id": "5fc36d085397ac76",
              "type": "mqtt-broker",
              "name": "sol",
              "broker": "localhost",
              "port": "1883",
              "clientid": "",
              "autoConnect": true,
              "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": "2361e78c.9b49c8",
              "type": "ui_group",
              "name": "HOME",
              "tab": "d02fd18cf63f0e19",
              "order": 1,
              "disp": false,
              "width": "7",
              "collapse": false,
              "className": ""
          },
          {
              "id": "d02fd18cf63f0e19",
              "type": "ui_tab",
              "name": "Zuhause",
              "icon": "dashboard",
              "disabled": false,
              "hidden": false
          }
      ]
      

      iobroker.PNG

      posted in Node-Red
      M
      milanissimo
    • RE: Shelly 1PM mit Tasmota Firmware einen Wert senden

      @milanissimo said in Shelly 1PM mit Tasmota Firmware einen Wert senden:

      @mickym

      Also ich hab erstmal den Fehler gefunden. Da ich das Script in Tasmota nutze kann ich nicht die Rules nutzen.

      "Select either USE_RULES or USE_SCRIPT. They can't both be used at the same time"
         #error "Select either USE_RULES or USE_SCRIPT. They can't both be used at the same time"
      

      Und soweit ich mir das angeschaut habe kann man mit den rules keine Werte rechnen lassen oder hab ich da was übersehen?

      Was ich gefunden habe ist folgendes:

      >D
      
      Preis=0
      
      >B
      
      =>Subscribe Preis, solaranzeige/anzeige/1/preis
      
      >J
      ,"Verbrauch Tag":"%PreisGarage%"
      
      

      Nachricht auf den MQTT Server:

      Topic: solaranzeige/anzeige/1/preis
      Wert: 24

      Leider funktioniert das auch nicht, vielleicht kann mir ja mal noch einer helfen.

      10:44:56.687 Script: performs "Subscribe Preis, solaranzeige/anzeige/1/preis"
      10:44:56.694 MQT: stat/Garagenzähler/RESULT = {"Command":"Unknown"}
      
      posted in Hardware
      M
      milanissimo
    • RE: Shelly 1PM mit Tasmota Firmware einen Wert senden

      @mickym

      Also ich hab erstmal den Fehler gefunden. Da ich das Script in Tasmota nutze kann ich nicht die Rules nutzen.

      "Select either USE_RULES or USE_SCRIPT. They can't both be used at the same time"
         #error "Select either USE_RULES or USE_SCRIPT. They can't both be used at the same time"
      

      Und soweit ich mir das angeschaut habe kann man mit den rules keine Werte rechnen lassen oder hab ich da was übersehen?

      posted in Hardware
      M
      milanissimo
    • RE: Shelly 1PM mit Tasmota Firmware einen Wert senden

      @mickym

      okay danke. Ich werde mal mein Glück versuchen und berichten. Danke erstmal :))))

      posted in Hardware
      M
      milanissimo
    • RE: Shelly 1PM mit Tasmota Firmware einen Wert senden

      @mickym

      ne das muss ich mal probieren. Gibt es den für windows?

      posted in Hardware
      M
      milanissimo
    • RE: Shelly 1PM mit Tasmota Firmware einen Wert senden

      @mickym

      Nein, damit habe ich noch nie gearbeitet 😕

      posted in Hardware
      M
      milanissimo
    Community
    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
    The ioBroker Community 2014-2023
    logo