To make it, use your own editor (nano, vi, ... or even anything on a PC which will be copied then to the RPi).
Just cut and paste parts of the message you need, and make some cleanup (keep only one opening "{" at beginning of file and one closing "}" at end, add "," between parts. This should give you something like:
Code: Select all
{
"SmartEVSE charge current": {
"topic": "[MQTTprefix]/Charge Current",
"type": "243", "subtype": "23", "switchtype": "0",
"mapping": {"item": "", "multiplier": 0.1}
},
"SmartEVSE max current": {
"topic": "[MQTTprefix]/Max Current",
"type": "243", "subtype": "23", "switchtype": "0",
"mapping": {"item": "", "multiplier": 0.1}
},
"SmartEVSE state": {
"topic": "[MQTTprefix]/State",
"type": "243", "subtype": "19", "switchtype": "0",
"mapping": {"item": ""}
},
"SmartEVSE status": {
"topic": "[MQTTprefix]/Status",
"type": "244", "subtype": "73", "switchtype": "18",
"options": {"SelectorStyle":"1", "LevelOffHidden": "false", "LevelNames":"None|No Power Available|Communication Error|Temperature High|EV Meter Comm Error|RCM Tripped|Waiting for Solar|Test IO|Flash Error|**Unknown**"},
"mapping": {"item": "", "default": "90",
"values": {
"None": "0",
"No Power Available": "10",
"Communication Error": "20",
"Temperature High": "30",
"EV Meter Comm Error": "40",
"RCM Tripped": "50",
"Waiting for Solar": "60",
"Test IO": "70",
"Flash Error": "80",
"**Unknown**": "90"
}
}
},
"SmartEVSE charge current override": {
"topic": "[MQTTprefix]/ChargeCurrentOverride",
"type": "242", "subtype": "1", "switchtype": "0",
"options": {"ValueStep": "1", "ValueMin": "0", "ValueMax": "200", "ValueUnit": "A"},
"initial": {"nvalue": "0", "svalue": "0"},
"mapping": {"item": "", "multiplier": 0.1},
"set": {"topic": "[MQTTprefix]/Set/CurrentOverride", "digits": 0}
}
}