Replies: 1 comment
-
If you import the flow, be sure to have the homeassistant library installed otherwise you get errors cause ha-device-config, ha-entity-config couldn't be found and all your nodes stop working until the error is fixed and you installed the librarys in nodered or you delete all as "unknown" marked entries in nodered.. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hy all,
the last days i was analyzing my BYD Seal - here is the actual status:
lowest voltage cell (3,32V):
TX: {"bus":"0","type":"tx","ts":12342,"frame":[{"id":2023,"dlc":8,"rtr":false,"extd":false,"data":[3,34,0,43,170,170,170,170]}]}
RX: {"bus":"0","type":"rx","ts":12348,"frame":[{"id":2031,"dlc":8,"rtr":false,"extd":false,"data":[5,98,0,43,252,12,170,170]}]}
highest voltage cell (3,33V):
TX: {"bus":"0","type":"tx","ts":31858,"frame":[{"id":2023,"dlc":8,"rtr":false,"extd":false,"data":[3,34,0,45,170,170,170,170]}]}
RX: {"bus":"0","type":"rx","ts":31864,"frame":[{"id":2031,"dlc":8,"rtr":false,"extd":false,"data":[5,98,0,45,0,13,170,170]}]}
lowest voltage cell number (44):
TX: {"bus":"0","type":"tx","ts":15021,"frame":[{"id":2023,"dlc":8,"rtr":false,"extd":false,"data":[3,34,0,42,170,170,170,170]}]}
RX: {"bus":"0","type":"rx","ts":57225,"frame":[{"id":2031,"dlc":8,"rtr":false,"extd":false,"data":[4,98,0,42,43,170,170,170]}]}
highest voltage cell number (88):
TX: {"bus":"0","type":"tx","ts":15021,"frame":[{"id":2023,"dlc":8,"rtr":false,"extd":false,"data":[3,34,0,44,170,170,170,170]}]}
RX: {"bus":"0","type":"rx","ts":7962,"frame":[{"id":2031,"dlc":8,"rtr":false,"extd":false,"data":[4,98,0,44,87,170,170,170]}]}
lowest temperatur cell number (5)
TX: {"bus":"0","type":"tx","ts":28163,"frame":[{"id":2023,"dlc":8,"rtr":false,"extd":false,"data":[3,34,0,46,170,170,170,170]}]}
RX: {"bus":"0","type":"rx","ts":7149,"frame":[{"id":2031,"dlc":8,"rtr":false,"extd":false,"data":[4,98,0,46,4,170,170,170]}]}
lowest temperatur cell (22 °C)
TX: {"bus":"0","type":"tx","ts":35633,"frame":[{"id":2023,"dlc":8,"rtr":false,"extd":false,"data":[3,34,0,47,170,170,170,170]}]}
RX: {"bus":"0","type":"rx","ts":54490,"frame":[{"id":2031,"dlc":8,"rtr":false,"extd":false,"data":[4,98,0,47,62,170,170,170]}]}
highest temperatur cell number (5)
TX: {"bus":"0","type":"tx","ts":10232,"frame":[{"id":2023,"dlc":8,"rtr":false,"extd":false,"data":[3,34,0,48,170,170,170,170]}]}
RX: {"bus":"0","type":"rx","ts":14861,"frame":[{"id":2031,"dlc":8,"rtr":false,"extd":false,"data":[4,98,0,48,1,170,170,170]}]}
highest temperatur cell (23 °C)
TX: {"bus":"0","type":"tx","ts":45461,"frame":[{"id":2023,"dlc":8,"rtr":false,"extd":false,"data":[3,34,0,49,170,170,170,170]}]}
RX: {"bus":"0","type":"rx","ts":18397,"frame":[{"id":2031,"dlc":8,"rtr":false,"extd":false,"data":[4,98,0,49,63,170,170,170]}]}
Front Drive Motor temperatur (30 °C)
TX: {"bus":"0","type":"tx","ts":42239,"frame":[{"id":2019,"dlc":8,"rtr":false,"extd":false,"data":[3,34,0,15,170,170,170,170]}]}
RX: {"bus":"0","type":"rx","ts":7939,"frame":[{"id":2027,"dlc":8,"rtr":false,"extd":false,"data":[4,98,0,15,70,170,170,170]}]}
Battery total Voltage (572 V)
TX: {"bus":"0","type":"tx","ts":13789,"frame":[{"id":2023,"dlc":8,"rtr":false,"extd":false,"data":[3,34,0,8,170,170,170,170]}]}
RX: {"bus":"0","type":"rx","ts":7048,"frame":[{"id":2031,"dlc":8,"rtr":false,"extd":false,"data":[5,98,0,8,60,2,170,170]}]}
Battery Aavarage temperatur (22 °C)
TX: {"bus":"0","type":"tx","ts":17603,"frame":[{"id":2023,"dlc":8,"rtr":false,"extd":false,"data":[3,34,0,50,170,170,170,170]}]}
RX: {"bus":"0","type":"rx","ts":8303,"frame":[{"id":2031,"dlc":8,"rtr":false,"extd":false,"data":[4,98,0,50,62,170,170,170]}]}
Charge times (42)
TX: {"bus":"0","type":"tx","ts":8337,"frame":[{"id":2023,"dlc":8,"rtr":false,"extd":false,"data":[3,34,0,11,170,170,170,170]}]}
RX: {"bus":"0","type":"rx","ts":50613,"frame":[{"id":2031,"dlc":8,"rtr":false,"extd":false,"data":[5,98,0,11,42,0,170,170]}]}
SOC
TX: {"bus":"0","type":"tx","ts":19302,"frame":[{"id":2023,"dlc":8,"rtr":false,"extd":false,"data":[3,34,31,252,170,170,170,170]}]}
RX: {"bus":"0","type":"rx","ts":19313,"frame":[{"id":2031,"dlc":8,"rtr":false,"extd":false,"data":[7,98,31,252,32,33,96,59]}]}
I did a Node Red flow for my automations and for translating/calculate the CAN data.
Here is the flow in json for importing:
[{"id":"cfa234aa85220d6c","type":"tab","label":"BYD Seal to HA / OpenWB","disabled":false,"info":"","env":[]},{"id":"306a9c3def3cec36","type":"mqtt out","z":"cfa234aa85220d6c","name":"Send to BYD Requests","topic":"","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"f86413f49509202e","x":590,"y":300,"wires":[]},{"id":"154c81fae497ce59","type":"inject","z":"cfa234aa85220d6c","name":"SOC","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"15","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/5432048f34c1/can/tx","payload":"{\"bus\":\"0\",\"type\":\"tx\",\"frame\":[{\"id\":2023,\"dlc\":8,\"rtr\":false,\"extd\":false,\"data\":[3,34,31,252,170,170,170,170]}]}","payloadType":"json","x":110,"y":80,"wires":[["306a9c3def3cec36"]]},{"id":"33484382472e7fa5","type":"mqtt in","z":"cfa234aa85220d6c","name":"","topic":"wican/5432048f34c1/can/rx","qos":"2","datatype":"auto-detect","broker":"f86413f49509202e","nl":false,"rap":true,"rh":0,"inputs":0,"x":590,"y":200,"wires":[["e28a91d67be36074","a7a631fc6b77be41"]]},{"id":"e28a91d67be36074","type":"switch","z":"cfa234aa85220d6c","name":"","property":"payload.frame[0].data[2]","propertyType":"msg","rules":[{"t":"eq","v":"31","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":790,"y":140,"wires":[["837d2fdb07d2da02"]]},{"id":"837d2fdb07d2da02","type":"function","z":"cfa234aa85220d6c","name":"Calculate SOC","func":"var BIT4 = msg.payload.frame[0].data[4];\nvar BIT5 = msg.payload.frame[0].data[5];\nvar SOC = ((BIT5*256)+BIT4)/100;\nmsg.payload = SOC;\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1000,"y":120,"wires":[["86dcc06708499e30","e2fe78f742205ba6"]]},{"id":"86dcc06708499e30","type":"ha-sensor","z":"cfa234aa85220d6c","name":"BYD Seal SOC","entityConfig":"2436368cf391f4e9","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1300,"y":120,"wires":[[]]},{"id":"e2fe78f742205ba6","type":"mqtt out","z":"cfa234aa85220d6c","name":"","topic":"openWB/set/vehicle/1/get/soc","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"c10d09170577090c","x":1350,"y":60,"wires":[]},{"id":"a7a631fc6b77be41","type":"switch","z":"cfa234aa85220d6c","name":"","property":"payload.frame[0].data[3]","propertyType":"msg","rules":[{"t":"eq","v":"43","vt":"str"},{"t":"eq","v":"45","vt":"str"},{"t":"eq","v":"42","vt":"str"},{"t":"eq","v":"44","vt":"str"},{"t":"eq","v":"8","vt":"str"},{"t":"eq","v":"11","vt":"str"},{"t":"eq","v":"46","vt":"str"},{"t":"eq","v":"48","vt":"str"},{"t":"eq","v":"47","vt":"str"},{"t":"eq","v":"49","vt":"str"},{"t":"eq","v":"50","vt":"str"}],"checkall":"true","repair":false,"outputs":11,"x":790,"y":280,"wires":[["a6dbf4ad667627c5"],["c049ab397822dbdd"],["a4204e195195a59d"],["e0fa2f99e46881a4"],["cc03f7bced646c2e"],["b593c385169043a9"],["e7b481444cf8aae0"],["ec1bcb66284b6bae"],["274fb6d17dfc733a"],["53231bff1b3fcddf"],["dae9e6c5d30173de"]]},{"id":"a6dbf4ad667627c5","type":"function","z":"cfa234aa85220d6c","name":"Calculate Lowest Cell Voltage","func":"var BIT4 = msg.payload.frame[0].data[4];\nvar BIT5 = msg.payload.frame[0].data[5];\nvar LCV = ((BIT5*256)+BIT4)/1000;\nmsg.payload = LCV;\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1050,"y":160,"wires":[["12f934c761695786"]]},{"id":"12f934c761695786","type":"ha-sensor","z":"cfa234aa85220d6c","name":"Lowest Cell Voltage","entityConfig":"a291176d5bb2a2c8","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1310,"y":160,"wires":[[]]},{"id":"a57e3e60577b02f6","type":"inject","z":"cfa234aa85220d6c","name":"Lowest Cell Voltage","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"60","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/5432048f34c1/can/tx","payload":"{\"bus\":\"0\",\"type\":\"tx\",\"frame\":[{\"id\":2023,\"dlc\":8,\"rtr\":false,\"extd\":false,\"data\":[3,34,0,43,170,170,170,170]}]}","payloadType":"json","x":160,"y":120,"wires":[["306a9c3def3cec36"]]},{"id":"c049ab397822dbdd","type":"function","z":"cfa234aa85220d6c","name":"Calculate Highest Cell Voltage","func":"var BIT4 = msg.payload.frame[0].data[4];\nvar BIT5 = msg.payload.frame[0].data[5];\nvar HCV = ((BIT5*256)+BIT4)/1000;\nmsg.payload = HCV;\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1050,"y":200,"wires":[["7d21cf15ee8cc6ee"]]},{"id":"7d21cf15ee8cc6ee","type":"ha-sensor","z":"cfa234aa85220d6c","name":"Highest Cell Voltage","entityConfig":"ba968f194a4ed4b3","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1320,"y":200,"wires":[[]]},{"id":"d7df82c7468b70c1","type":"inject","z":"cfa234aa85220d6c","name":"Highest Cell Voltage","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"60","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/5432048f34c1/can/tx","payload":"{\"bus\":\"0\",\"type\":\"tx\",\"frame\":[{\"id\":2023,\"dlc\":8,\"rtr\":false,\"extd\":false,\"data\":[3,34,0,45,170,170,170,170]}]}","payloadType":"json","x":160,"y":160,"wires":[["306a9c3def3cec36"]]},{"id":"e0fa2f99e46881a4","type":"function","z":"cfa234aa85220d6c","name":"Calculate Highest Cell Number","func":"var BIT4 = msg.payload.frame[0].data[4];\nvar BIT5 = msg.payload.frame[0].data[5];\nvar COUNT = 1\nvar HCN = (BIT4+COUNT);\nmsg.payload = HCN;\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1050,"y":280,"wires":[["9ec492cfb4100e32"]]},{"id":"a4204e195195a59d","type":"function","z":"cfa234aa85220d6c","name":"Calculate Lowest Cell Number","func":"var BIT4 = msg.payload.frame[0].data[4];\nvar BIT5 = msg.payload.frame[0].data[5];\nvar COUNT = 1\nvar LCN = (BIT4+COUNT);\nmsg.payload = LCN;\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1050,"y":240,"wires":[["65590bbcfce9b635"]]},{"id":"9ec492cfb4100e32","type":"ha-sensor","z":"cfa234aa85220d6c","name":"Highest Cell Number","entityConfig":"7cdc95ac7056b981","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1320,"y":280,"wires":[[]]},{"id":"8918316794bda547","type":"inject","z":"cfa234aa85220d6c","name":"Highest Cell Number","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"60","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/5432048f34c1/can/tx","payload":"{\"bus\":\"0\",\"type\":\"tx\",\"frame\":[{\"id\":2023,\"dlc\":8,\"rtr\":false,\"extd\":false,\"data\":[3,34,0,44,170,170,170,170]}]}","payloadType":"json","x":160,"y":240,"wires":[["306a9c3def3cec36"]]},{"id":"b6f926d72cec1944","type":"inject","z":"cfa234aa85220d6c","name":"Lowest Cell Number","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"60","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/5432048f34c1/can/tx","payload":"{\"bus\":\"0\",\"type\":\"tx\",\"frame\":[{\"id\":2023,\"dlc\":8,\"rtr\":false,\"extd\":false,\"data\":[3,34,0,42,170,170,170,170]}]}","payloadType":"json","x":160,"y":200,"wires":[["306a9c3def3cec36"]]},{"id":"65590bbcfce9b635","type":"ha-sensor","z":"cfa234aa85220d6c","name":"Lowest Cell Number","entityConfig":"24964c8d69dc1c9b","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1320,"y":240,"wires":[[]]},{"id":"716033885ce4644e","type":"inject","z":"cfa234aa85220d6c","name":"Battery total Voltage","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"60","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/5432048f34c1/can/tx","payload":"{\"bus\":\"0\",\"type\":\"tx\",\"frame\":[{\"id\":2023,\"dlc\":8,\"rtr\":false,\"extd\":false,\"data\":[3,34,0,8,170,170,170,170]}]}","payloadType":"json","x":160,"y":280,"wires":[["306a9c3def3cec36"]]},{"id":"cc03f7bced646c2e","type":"function","z":"cfa234aa85220d6c","name":"Calculate Battery total Voltage","func":"var BIT4 = msg.payload.frame[0].data[4];\nvar BIT5 = msg.payload.frame[0].data[5];\nvar LCV = ((BIT5*256)+BIT4);\nmsg.payload = LCV;\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1050,"y":320,"wires":[["fba4c27e0f2154c5"]]},{"id":"fba4c27e0f2154c5","type":"ha-sensor","z":"cfa234aa85220d6c","name":"Battery total Voltage","entityConfig":"6bfaaa099edde2e0","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1320,"y":320,"wires":[[]]},{"id":"26231fe2d67c2888","type":"inject","z":"cfa234aa85220d6c","name":"Charge Times","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"300","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/5432048f34c1/can/tx","payload":"{\"bus\":\"0\",\"type\":\"tx\",\"frame\":[{\"id\":2023,\"dlc\":8,\"rtr\":false,\"extd\":false,\"data\":[3,34,0,11,170,170,170,170]}]}","payloadType":"json","x":140,"y":320,"wires":[["306a9c3def3cec36"]]},{"id":"b593c385169043a9","type":"function","z":"cfa234aa85220d6c","name":"Charge Times","func":"var BIT4 = msg.payload.frame[0].data[4];\nvar BIT5 = msg.payload.frame[0].data[5];\nvar LCV = BIT4;\nmsg.payload = LCV;\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1000,"y":360,"wires":[["4cc32115b94c3076"]]},{"id":"4cc32115b94c3076","type":"ha-sensor","z":"cfa234aa85220d6c","name":"Charge Times","entityConfig":"331da441f0bfa063","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1300,"y":360,"wires":[[]]},{"id":"10f728c752fe220f","type":"inject","z":"cfa234aa85220d6c","name":"Lowest Temperatur Cell Number","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"3600","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/5432048f34c1/can/tx","payload":"{\"bus\":\"0\",\"type\":\"tx\",\"ts\":28163,\"frame\":[{\"id\":2023,\"dlc\":8,\"rtr\":false,\"extd\":false,\"data\":[3,34,0,46,170,170,170,170]}]}","payloadType":"json","x":200,"y":360,"wires":[["306a9c3def3cec36"]]},{"id":"e7b481444cf8aae0","type":"function","z":"cfa234aa85220d6c","name":"Lowest Temperatur Cell Number","func":"var BIT4 = msg.payload.frame[0].data[4];\nvar BIT5 = msg.payload.frame[0].data[5];\nvar COUNT = 1\nvar LCN = (BIT4+COUNT);\nmsg.payload = LCN;\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1050,"y":400,"wires":[["9dda0020bd45eb82"]]},{"id":"480f2687f9703bb2","type":"inject","z":"cfa234aa85220d6c","name":"Highest Temperatur Cell Number","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"3600","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/5432048f34c1/can/tx","payload":"{\"bus\":\"0\",\"type\":\"tx\",\"ts\":10232,\"frame\":[{\"id\":2023,\"dlc\":8,\"rtr\":false,\"extd\":false,\"data\":[3,34,0,48,170,170,170,170]}]}","payloadType":"json","x":200,"y":400,"wires":[["306a9c3def3cec36"]]},{"id":"ec1bcb66284b6bae","type":"function","z":"cfa234aa85220d6c","name":"Highest Temperatur Cell Number","func":"var BIT4 = msg.payload.frame[0].data[4];\nvar BIT5 = msg.payload.frame[0].data[5];\nvar COUNT = 1\nvar LCN = (BIT4+COUNT);\nmsg.payload = LCN;\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1060,"y":440,"wires":[["1809080a83617120"]]},{"id":"9dda0020bd45eb82","type":"ha-sensor","z":"cfa234aa85220d6c","name":"Lowest Temperatur Cell Number","entityConfig":"f81d3328f816c53a","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1350,"y":400,"wires":[[]]},{"id":"1809080a83617120","type":"ha-sensor","z":"cfa234aa85220d6c","name":"Highest Temperatur Cell Number","entityConfig":"93bec59570254e96","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1360,"y":440,"wires":[[]]},{"id":"76dfc7143e466a77","type":"inject","z":"cfa234aa85220d6c","name":"Lowest Temperatur Cell ","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"3600","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/5432048f34c1/can/tx","payload":"{\"bus\":\"0\",\"type\":\"tx\",\"ts\":35633,\"frame\":[{\"id\":2023,\"dlc\":8,\"rtr\":false,\"extd\":false,\"data\":[3,34,0,47,170,170,170,170]}]}","payloadType":"json","x":170,"y":440,"wires":[["306a9c3def3cec36"]]},{"id":"901b8ed43b6c7807","type":"inject","z":"cfa234aa85220d6c","name":"Highest Temperatur Cell ","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"3600","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/5432048f34c1/can/tx","payload":"{\"bus\":\"0\",\"type\":\"tx\",\"ts\":45461,\"frame\":[{\"id\":2023,\"dlc\":8,\"rtr\":false,\"extd\":false,\"data\":[3,34,0,49,170,170,170,170]}]}","payloadType":"json","x":170,"y":480,"wires":[["306a9c3def3cec36"]]},{"id":"274fb6d17dfc733a","type":"function","z":"cfa234aa85220d6c","name":"Lowest Temperatur Cell","func":"var BIT4 = msg.payload.frame[0].data[4];\nvar BIT5 = msg.payload.frame[0].data[5];\nvar COUNT = 40\nvar LCN = (BIT4-COUNT);\nmsg.payload = LCN;\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1030,"y":480,"wires":[["384061a5de232008"]]},{"id":"53231bff1b3fcddf","type":"function","z":"cfa234aa85220d6c","name":"Highest Temperatur Cell","func":"var BIT4 = msg.payload.frame[0].data[4];\nvar BIT5 = msg.payload.frame[0].data[5];\nvar COUNT = 40\nvar LCN = (BIT4-COUNT);\nmsg.payload = LCN;\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1030,"y":520,"wires":[["28f7d184449303e9"]]},{"id":"384061a5de232008","type":"ha-sensor","z":"cfa234aa85220d6c","name":"Lowest Temperatur Cell","entityConfig":"1a6bb87f7e649182","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1330,"y":480,"wires":[[]]},{"id":"28f7d184449303e9","type":"ha-sensor","z":"cfa234aa85220d6c","name":"Highest Temperatur Cell","entityConfig":"7a815c02089b8dcc","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1330,"y":520,"wires":[[]]},{"id":"0d159dd38ca6d640","type":"inject","z":"cfa234aa85220d6c","name":"Battery Aavarage temperatur","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"3600","crontab":"","once":false,"onceDelay":0.1,"topic":"wican/5432048f34c1/can/tx","payload":"{\"bus\":\"0\",\"type\":\"tx\",\"ts\":17603,\"frame\":[{\"id\":2023,\"dlc\":8,\"rtr\":false,\"extd\":false,\"data\":[3,34,0,50,170,170,170,170]}]}","payloadType":"json","x":190,"y":520,"wires":[["306a9c3def3cec36"]]},{"id":"dae9e6c5d30173de","type":"function","z":"cfa234aa85220d6c","name":"Battery Aavarage temperatur","func":"var BIT4 = msg.payload.frame[0].data[4];\nvar BIT5 = msg.payload.frame[0].data[5];\nvar COUNT = 40\nvar LCN = (BIT4-COUNT);\nmsg.payload = LCN;\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1040,"y":560,"wires":[["11bafa262b8fb86a"]]},{"id":"11bafa262b8fb86a","type":"ha-sensor","z":"cfa234aa85220d6c","name":"Battery Aavarage temperatur","entityConfig":"187bcc9be904d248","version":0,"state":"payload","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":1340,"y":560,"wires":[[]]},{"id":"ffd56aab4528434f","type":"comment","z":"cfa234aa85220d6c","name":"CAN Requests","info":"","x":120,"y":40,"wires":[]},{"id":"dd073e3c5b6a021b","type":"comment","z":"cfa234aa85220d6c","name":"CAN Answers","info":"","x":550,"y":160,"wires":[]},{"id":"f86413f49509202e","type":"mqtt-broker","name":"Hassio-MQTT","broker":"localhost","port":"1883","clientid":"","autoConnect":true,"usetls":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"autoUnsubscribe":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closeRetain":"false","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willRetain":"false","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":""},{"id":"2436368cf391f4e9","type":"ha-entity-config","server":"e1b226eb.e2d278","deviceConfig":"837a4170b95cc24e","name":"SOC","version":"6","entityType":"sensor","haConfig":[{"property":"name","value":"SOC"},{"property":"icon","value":"mdi:battery"},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":"battery"},{"property":"unit_of_measurement","value":"%"},{"property":"state_class","value":"measurement"}],"resend":false,"debugEnabled":false},{"id":"c10d09170577090c","type":"mqtt-broker","name":"OpenWB","broker":"openwb.netzwerk-service.at","port":"1883","clientid":"","autoConnect":true,"usetls":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"autoUnsubscribe":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closeRetain":"false","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willRetain":"false","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":""},{"id":"a291176d5bb2a2c8","type":"ha-entity-config","server":"e1b226eb.e2d278","deviceConfig":"837a4170b95cc24e","name":"Lowest Cell Voltage","version":"6","entityType":"sensor","haConfig":[{"property":"name","value":"Lowest Cell Voltage"},{"property":"icon","value":"mdi:sine-wave"},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":"voltage"},{"property":"unit_of_measurement","value":"V"},{"property":"state_class","value":"measurement"}],"resend":false,"debugEnabled":false},{"id":"ba968f194a4ed4b3","type":"ha-entity-config","server":"e1b226eb.e2d278","deviceConfig":"837a4170b95cc24e","name":"Highest Cell Voltage","version":"6","entityType":"sensor","haConfig":[{"property":"name","value":"Highest Cell Voltage"},{"property":"icon","value":"mdi:sine-wave"},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":"voltage"},{"property":"unit_of_measurement","value":"V"},{"property":"state_class","value":"measurement"}],"resend":false,"debugEnabled":false},{"id":"7cdc95ac7056b981","type":"ha-entity-config","server":"e1b226eb.e2d278","deviceConfig":"837a4170b95cc24e","name":"Highest Cell Number","version":"6","entityType":"sensor","haConfig":[{"property":"name","value":"Highest Cell Number"},{"property":"icon","value":"mdi:number"},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":""},{"property":"unit_of_measurement","value":""},{"property":"state_class","value":""}],"resend":false,"debugEnabled":false},{"id":"24964c8d69dc1c9b","type":"ha-entity-config","server":"e1b226eb.e2d278","deviceConfig":"837a4170b95cc24e","name":"Lowest Cell Number","version":"6","entityType":"sensor","haConfig":[{"property":"name","value":"Lowest Cell Number"},{"property":"icon","value":"mdi:number"},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":""},{"property":"unit_of_measurement","value":""},{"property":"state_class","value":""}],"resend":false,"debugEnabled":false},{"id":"6bfaaa099edde2e0","type":"ha-entity-config","server":"e1b226eb.e2d278","deviceConfig":"837a4170b95cc24e","name":"Battery total Voltage","version":"6","entityType":"sensor","haConfig":[{"property":"name","value":"Battery total Voltage"},{"property":"icon","value":"mdi:sine-wave"},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":"voltage"},{"property":"unit_of_measurement","value":"V"},{"property":"state_class","value":"measurement"}],"resend":false,"debugEnabled":false},{"id":"331da441f0bfa063","type":"ha-entity-config","server":"e1b226eb.e2d278","deviceConfig":"837a4170b95cc24e","name":"Charge Times","version":"6","entityType":"sensor","haConfig":[{"property":"name","value":"Charge Times"},{"property":"icon","value":""},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":""},{"property":"unit_of_measurement","value":""},{"property":"state_class","value":""}],"resend":false,"debugEnabled":false},{"id":"f81d3328f816c53a","type":"ha-entity-config","server":"e1b226eb.e2d278","deviceConfig":"837a4170b95cc24e","name":"Lowest Temperatur Cell Number","version":"6","entityType":"sensor","haConfig":[{"property":"name","value":"Lowest Temperatur Cell Number"},{"property":"icon","value":""},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":""},{"property":"unit_of_measurement","value":""},{"property":"state_class","value":""}],"resend":false,"debugEnabled":false},{"id":"93bec59570254e96","type":"ha-entity-config","server":"e1b226eb.e2d278","deviceConfig":"837a4170b95cc24e","name":"Highest Temperatur Cell Number","version":"6","entityType":"sensor","haConfig":[{"property":"name","value":"Highest Temperatur Cell Number"},{"property":"icon","value":""},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":""},{"property":"unit_of_measurement","value":""},{"property":"state_class","value":""}],"resend":false,"debugEnabled":false},{"id":"1a6bb87f7e649182","type":"ha-entity-config","server":"e1b226eb.e2d278","deviceConfig":"837a4170b95cc24e","name":"Lowest Temperatur Cell","version":"6","entityType":"sensor","haConfig":[{"property":"name","value":"Lowest Temperatur Cell"},{"property":"icon","value":""},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":"temperature"},{"property":"unit_of_measurement","value":"°C"},{"property":"state_class","value":"measurement"}],"resend":false,"debugEnabled":false},{"id":"7a815c02089b8dcc","type":"ha-entity-config","server":"e1b226eb.e2d278","deviceConfig":"837a4170b95cc24e","name":"Highest Temperatur Cell","version":"6","entityType":"sensor","haConfig":[{"property":"name","value":"Highest Temperatur Cell"},{"property":"icon","value":""},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":"temperature"},{"property":"unit_of_measurement","value":"°C"},{"property":"state_class","value":"measurement"}],"resend":false,"debugEnabled":false},{"id":"187bcc9be904d248","type":"ha-entity-config","server":"e1b226eb.e2d278","deviceConfig":"837a4170b95cc24e","name":"Battery Aavarage temperatur","version":"6","entityType":"sensor","haConfig":[{"property":"name","value":"Battery Aavarage temperatur"},{"property":"icon","value":""},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":"temperature"},{"property":"unit_of_measurement","value":"°C"},{"property":"state_class","value":"measurement"}],"resend":false,"debugEnabled":false},{"id":"e1b226eb.e2d278","type":"server","name":"Home Assistant","addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"","connectionDelay":true,"cacheJson":false,"heartbeat":true,"heartbeatInterval":"10","areaSelector":"friendlyName","deviceSelector":"id","entitySelector":"id","statusSeparator":"","statusYear":"2-digit","statusMonth":"numeric","statusDay":"2-digit","statusHourCycle":"h23","statusTimeFormat":"h:m:s","enableGlobalContextStore":false},{"id":"837a4170b95cc24e","type":"ha-device-config","name":"BYD","hwVersion":"","manufacturer":"Node-RED","model":"Seal","swVersion":""}]
Beta Was this translation helpful? Give feedback.
All reactions