Flow Details
You need a running MQTT and awtrix connected to it. It is possible to switch to HTTP calls. Please refer to the awtrix documentation.
Need to switch the IPs for awtrix and the mqtt broker. Also check the MQTT topic to fit your config. Icons 32930, 44625 and 1095 needs to be present on the system
{
"name": "EVCC to AWTRIX",
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{
"field": "seconds",
"secondsInterval": 15
}
]
}
},
"name": "Schedule Trigger",
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1.1,
"position": [
-660,
160
]
},
{
"parameters": {
"url": "http://yourEVCCIPhere/api/state",
"options": {}
},
"id": "f7c74fef-d4c9-48ca-a7e8-15843ad1b030",
"name": "EVCC get",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.1,
"position": [
-420,
160
]
},
{
"parameters": {
"topic": "yourbasetopicforawtrixhere/custom/homepower",
"sendInputData": false,
"message": "=[\n {\n \"text\":\"{{ $json[\"result\"][\"homePower\"] }} W\",\n \"icon\":\"32930\"\n },\n {\n \"text\":\"{{ $json[\"result\"][\"pv\"][0][\"power\"] }} W\",\n \"icon\":\"44625\"\n },\n {\n \"text\":\"{{ $json[\"result\"][\"batterySoc\"] }} %\",\n \"icon\":\"1095\"\n }\n]\n",
"options": {}
},
"name": "ulanzi",
"type": "n8n-nodes-base.mqtt",
"typeVersion": 1,
"position": [
-160,
160
],
"alwaysOutputData": true,
"credentials": {
"mqtt": {
"id": "2",
"name": "MQTT bottich"
}
}
}
],
"pinData": {},
"connections": {
"Schedule Trigger": {
"main": [
[
{
"node": "EVCC get",
"type": "main",
"index": 0
}
]
]
},
"EVCC get": {
"main": [
[
{
"node": "ulanzi",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {},
"versionId": "d004fa55-882f-420f-914b-92f3fa7023a4",
"id": "HqQDSlAga3MLmqO3",
"meta": {
"instanceId": ""
},
"tags": []
}
-- Flow first published on September 5, 2023.