Mein Plan ist ebenfalls, den Zugriff auf die Lademodi und im Idealfall auch die Vorklimatisierung des Fahrzeugs möglichst einfach meiner Frau und mir
bereitzustellen.
Da ich mit ESP mir zwar was basteln könnte, aber auch lieber eine professionellere Optik erzielen wollte, möchte ich das per Phillips Hue Dimmer Switch realisieren. Schön per Funk und von den Tasten her auch ziemlich passend für die Lademodi.
Die oberste wäre Sofortladen, die "heller" Taste mit dem größeren Sonnensymbol PV Laden, die "dunkler" Taste Min + PV und Aus ist Stopp.
Einziger Wehrmutstropfen: Man braucht eine Hue Bridge - Was bei mir aber eh gegeben ist.
Code: Alles auswählen
[{"id":"c1de56d7.8a602","type":"tab","label":"OpenWB-EVU","disabled":false,"info":""},{"id":"fbb90dc5.fbb6","type":"switch","z":"c1de56d7.8a602","name":"OPENWB EVU","property":"topic","propertyType":"msg","rules":[{"t":"cont","v":"evu/VPhase1","vt":"str"},{"t":"cont","v":"evu/VPhase2","vt":"str"},{"t":"cont","v":"evu/VPhase3","vt":"str"},{"t":"cont","v":"evu/APhase1","vt":"str"},{"t":"cont","v":"evu/APhase2","vt":"str"},{"t":"cont","v":"evu/APhase3","vt":"str"},{"t":"eq","v":"openWB/evu/W","vt":"str"}],"checkall":"true","repair":true,"outputs":7,"x":500,"y":380,"wires":[["cc1bf6d5.6d2c1"],["b5e8c2f4.623d28"],["7f78c5b4.b3acac"],["4f78d5f8.254f14","799d0d80.bb3da4"],["d670dab5.7f7f18","fe6f6572.572228"],["8b00022d.9bb71","c4bb8075.2f3498"],["d165eda.37b251"]]},{"id":"cc1bf6d5.6d2c1","type":"ui_text","z":"c1de56d7.8a602","group":"910cd9b8.54f308","order":6,"width":"3","height":"1","name":"EVU V1","label":"V1:","format":"{{msg.payload}}V","layout":"row-center","x":1020,"y":160,"wires":[]},{"id":"b5e8c2f4.623d28","type":"ui_text","z":"c1de56d7.8a602","group":"910cd9b8.54f308","order":7,"width":"3","height":"1","name":"EVU V2","label":"V2:","format":"{{msg.payload}}V","layout":"row-center","x":1020,"y":200,"wires":[]},{"id":"7f78c5b4.b3acac","type":"ui_text","z":"c1de56d7.8a602","group":"910cd9b8.54f308","order":8,"width":"3","height":"1","name":"EVU V3","label":"V3:","format":"{{msg.payload}}V","layout":"row-center","x":1020,"y":240,"wires":[]},{"id":"4f78d5f8.254f14","type":"ui_gauge","z":"c1de56d7.8a602","name":"","group":"910cd9b8.54f308","order":9,"width":"3","height":"2","gtype":"gage","title":"EVU A1","label":"A","format":"{{value}}","min":0,"max":"64","colors":["#00b500","#e6e600","#ca3838"],"seg1":"16","seg2":"32","x":1020,"y":280,"wires":[]},{"id":"d670dab5.7f7f18","type":"ui_gauge","z":"c1de56d7.8a602","name":"","group":"910cd9b8.54f308","order":10,"width":"3","height":"2","gtype":"gage","title":"EVU A2","label":"A","format":"{{value}}","min":0,"max":"64","colors":["#00b500","#e6e600","#ca3838"],"seg1":"16","seg2":"32","x":1020,"y":320,"wires":[]},{"id":"8b00022d.9bb71","type":"ui_gauge","z":"c1de56d7.8a602","name":"","group":"910cd9b8.54f308","order":11,"width":"3","height":"2","gtype":"gage","title":"EVU A3","label":"A","format":"{{value}}","min":0,"max":"64","colors":["#00b500","#e6e600","#ca3838"],"seg1":"16","seg2":"32","x":1020,"y":360,"wires":[]},{"id":"92024dfb.661c9","type":"ui_text","z":"c1de56d7.8a602","group":"910cd9b8.54f308","order":1,"width":"9","height":"1","name":"Datum","label":"Datum","format":"{{msg.payload}}","layout":"row-center","x":1010,"y":560,"wires":[]},{"id":"d165eda.37b251","type":"ui_text","z":"c1de56d7.8a602","group":"910cd9b8.54f308","order":3,"width":"3","height":"1","name":"EVU Leistung","label":"EVU","format":"{{msg.payload}}W","layout":"row-spread","x":1040,"y":480,"wires":[]},{"id":"799d0d80.bb3da4","type":"change","z":"c1de56d7.8a602","name":"L1","rules":[{"t":"set","p":"topic","pt":"msg","to":"L1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":730,"y":40,"wires":[["8d3ebe41.6f0ed"]]},{"id":"fe6f6572.572228","type":"change","z":"c1de56d7.8a602","name":"L2","rules":[{"t":"set","p":"topic","pt":"msg","to":"L2","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":730,"y":80,"wires":[["8d3ebe41.6f0ed"]]},{"id":"c4bb8075.2f3498","type":"change","z":"c1de56d7.8a602","name":"L3","rules":[{"t":"set","p":"topic","pt":"msg","to":"L3","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":730,"y":120,"wires":[["8d3ebe41.6f0ed"]]},{"id":"8d3ebe41.6f0ed","type":"ui_chart","z":"c1de56d7.8a602","name":"EVU Amps","group":"910cd9b8.54f308","order":12,"width":0,"height":0,"label":"EVU - L1 L2 L3 (A)","chartType":"line","legend":"true","xformat":"HH:mm","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"86400","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#0080ff","#00ff40","#ff0000","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":1,"x":930,"y":80,"wires":[[]]},{"id":"84042e47.755ed","type":"mqtt in","z":"c1de56d7.8a602","name":"EVU","topic":"openWB/evu/+","qos":"2","datatype":"auto","broker":"82560540.6c0f78","x":170,"y":380,"wires":[["fbb90dc5.fbb6"]]},{"id":"feaa483b.0f9168","type":"rbe","z":"c1de56d7.8a602","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload","x":850,"y":640,"wires":[["92024dfb.661c9"]]},{"id":"8066c64b.9ff89","type":"mqtt out","z":"c1de56d7.8a602","name":"to openWB","topic":"","qos":"","retain":"","broker":"82560540.6c0f78","x":1030,"y":700,"wires":[]},{"id":"cd29ee39.63a3d8","type":"ui_text","z":"c1de56d7.8a602","group":"910cd9b8.54f308","order":4,"width":"3","height":"1","name":"PV Leistung","label":"PV","format":"{{msg.payload}}W","layout":"row-spread","x":1030,"y":520,"wires":[]},{"id":"7dcb682a.0d8708","type":"ui_text","z":"c1de56d7.8a602","group":"910cd9b8.54f308","order":5,"width":"3","height":"1","name":"Verbrauch","label":"Verbrauch","format":"{{msg.payload}}W","layout":"row-spread","x":1030,"y":440,"wires":[]},{"id":"917a7b.94239d88","type":"ui_text","z":"c1de56d7.8a602","group":"910cd9b8.54f308","order":2,"width":"9","height":"1","name":"","label":"Leistung","format":"","layout":"row-center","x":1020,"y":400,"wires":[]},{"id":"d7e55154.4aace8","type":"mqtt in","z":"c1de56d7.8a602","name":"PV","topic":"openWB/pv/+","qos":"2","datatype":"auto","broker":"82560540.6c0f78","x":170,"y":480,"wires":[["f583653f.663ed"]]},{"id":"f583653f.663ed","type":"switch","z":"c1de56d7.8a602","name":"OPENWB PV","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"openWB/pv/W","vt":"str"},{"t":"eq","v":"openWB/pv/DailyYieldKwh","vt":"str"}],"checkall":"true","repair":true,"outputs":2,"x":500,"y":480,"wires":[["90e59c41.b79cc"],[]]},{"id":"90e59c41.b79cc","type":"function","z":"c1de56d7.8a602","name":"pvPlus","func":"var pvPlus = msg.payload;\npvPlus = -pvPlus;\nreturn {payload:pvPlus};","outputs":1,"noerr":0,"initialize":"","finalize":"","x":770,"y":520,"wires":[["cd29ee39.63a3d8"]]},{"id":"4ce1694d.be774","type":"ui_dropdown","z":"c1de56d7.8a602","name":"Charge Mode","label":"Lademodus","tooltip":"","place":"Select option","group":"910cd9b8.54f308","order":12,"width":0,"height":0,"passthru":false,"multiple":false,"options":[{"label":"Sofortladen","value":"0","type":"str"},{"label":"Min + PV","value":"1","type":"str"},{"label":"PV-Laden","value":"2","type":"str"},{"label":"Stop","value":"3","type":"str"},{"label":"Standby","value":"4","type":"str"}],"payload":"","topic":"openWB/set/ChargeMode","x":520,"y":700,"wires":[["8066c64b.9ff89"]]},{"id":"c2decfa8.b827e","type":"mqtt in","z":"c1de56d7.8a602","name":"ChargeMode","topic":"openWB/set/ChargeMode","qos":"2","datatype":"auto","broker":"82560540.6c0f78","x":190,"y":700,"wires":[["4ce1694d.be774"]]},{"id":"e331ead8.bf015","type":"mqtt in","z":"c1de56d7.8a602","name":"HouseConsumption","topic":"openWB/global/WHouseConsumption","qos":"2","datatype":"auto","broker":"82560540.6c0f78","x":210,"y":560,"wires":[["7dcb682a.0d8708"]]},{"id":"b9634ee.ce783b","type":"hue-switch","z":"c1de56d7.8a602","name":"WallBoxTestSwitch","bridge":"3ecd5974.25f146","sensorid":"60","skipevents":false,"universalevents":false,"x":190,"y":820,"wires":[["37270091.76fb2"]]},{"id":"37270091.76fb2","type":"function","z":"c1de56d7.8a602","name":"ChargeModeSetter","func":"var buttonIn = msg.payload;\n\nvar newChargeModeTarget;\nswitch(buttonIn.button){\n case 1002: // DIRECT charge\n newChargeModeTarget = 0;\n break;\n case 2002: // PV Charge\n newChargeModeTarget = 2;\n break;\n case 3002: // MIN + PV Charge\n newChargeModeTarget = 1;\n break;\n case 4002: // STOP Charging\n newChargeModeTarget = 3; \n break;\n}\nmsg.topic = \"openWB/set/ChargeMode\";\nmsg.payload = newChargeModeTarget;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":610,"y":820,"wires":[["8066c64b.9ff89"]]},{"id":"910cd9b8.54f308","type":"ui_group","name":"Übersicht","tab":"d55078b2.26bcd8","order":1,"disp":true,"width":"9","collapse":false},{"id":"82560540.6c0f78","type":"mqtt-broker","name":"WallBoxGarage","broker":"192.168.177.60","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"3ecd5974.25f146","type":"hue-bridge","name":"Philips hue","bridge":"192.168.177.90","key":"","interval":"3000","disableupdates":false},{"id":"d55078b2.26bcd8","type":"ui_tab","name":"OPENWB","icon":"dashboard","order":2,"disabled":false,"hidden":false}]