Re: SmartEvse support
Posted: Friday 09 August 2024 20:40
thanks!rron wrote: ↑Friday 09 August 2024 19:48There ' s no further information in the mqtt explorer. I have made 2 screenshots from the explorer, 1 from zigbee2mqtt with information and 2 from smartevse without detailed information.FlyingDomotic wrote: ↑Friday 09 August 2024 19:26 Idea is to use a tool (like MQTT Explorer) to extract data from MQTT topic "SmartEVSE-5572" and copy it here.
Code: Select all
{
"SmartEVSE charge current": {
"topic": "[MQTTprefix]/ChargeCurrent",
"type": "243", "subtype": "23", "switchtype": "0",
"mapping": {"item": "", "multiplier": 0.1}
},
"SmartEVSE max current": {
"topic": "[MQTTprefix]/MaxCurrent",
"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 error": {
"topic": "[MQTTprefix]/Error",
"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}
}
}
Code: Select all
2024-08-10 11:53:04.258 Error: mapper: No SET parameters for SmartEVSE charge current/SmartEVSE-5572/ChargeCurrent in ('SmartEVSE charge current', {'topic': 'SmartEVSE-5572/ChargeCurrent', 'type': '243', 'subtype': '23', 'switchtype': '0', 'mapping': {'item': '', 'multiplier': 0.1}})
2024-08-10 11:53:27.780 Error: mapper: No SET parameters for SmartEVSE state/SmartEVSE-5572/State in ('SmartEVSE state', {'topic': 'SmartEVSE-5572/State', 'type': '243', 'subtype': '19', 'switchtype': '0', 'mapping': {'item': ''}})
2024-08-10 11:53:37.623 Error: mapper: No SET parameters for SmartEVSE max current/SmartEVSE-5572/MaxCurrent in ('SmartEVSE max current', {'topic': 'SmartEVSE-5572/MaxCurrent', 'type': '243', 'subtype': '23', 'switchtype': '0', 'mapping': {'item': '', 'multiplier': 0.1}})
2024-08-10 11:53:54.493 Error: mapper: No SET parameters for SmartEVSE error/SmartEVSE-5572/Error in ('SmartEVSE error', {'topic': 'SmartEVSE-5572/Error', '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'}}})
Code: Select all
2024-08-11 12:26:17.202 mapper: Setting SmartEVSE error to 0/0.0
2024-08-11 12:26:28.183 mapper: Setting SmartEVSE max current to 1/1.6
2024-08-11 12:26:28.191 mapper: Setting SmartEVSE charge current to 1/1.6
2024-08-11 12:26:28.199 mapper: Setting SmartEVSE charge current override to 0/0.0
2024-08-11 12:26:28.207 mapper: Setting SmartEVSE state to >Charging<
2024-08-11 12:26:28.215 mapper: testValue="None" (<class 'str'>), readValue="None" (<class 'str'>)
2024-08-11 12:26:28.215 mapper: testValue="No Power Available" (<class 'str'>), readValue="None" (<class 'str'>)
2024-08-11 12:26:28.216 mapper: testValue="Communication Error" (<class 'str'>), readValue="None" (<class 'str'>)
2024-08-11 12:26:28.216 mapper: testValue="Temperature High" (<class 'str'>), readValue="None" (<class 'str'>)
2024-08-11 12:26:28.217 mapper: testValue="EV Meter Comm Error" (<class 'str'>), readValue="None" (<class 'str'>)
2024-08-11 12:26:28.218 mapper: testValue="RCM Tripped" (<class 'str'>), readValue="None" (<class 'str'>)
2024-08-11 12:26:28.219 mapper: testValue="Waiting for Solar" (<class 'str'>), readValue="None" (<class 'str'>)
2024-08-11 12:26:28.219 mapper: testValue="Test IO" (<class 'str'>), readValue="None" (<class 'str'>)
2024-08-11 12:26:28.220 mapper: testValue="Flash Error" (<class 'str'>), readValue="None" (<class 'str'>)
2024-08-11 12:26:28.220 mapper: testValue="**Unknown**" (<class 'str'>), readValue="None" (<class 'str'>)
2024-08-11 12:26:28.221 mapper: Setting SmartEVSE error to 0/0.0
2024-08-11 12:26:39.151 mapper: Setting SmartEVSE max current to 1/1.6
2024-08-11 12:26:39.167 mapper: Setting SmartEVSE charge current to 1/1.6
2024-08-11 12:26:39.180 mapper: Setting SmartEVSE charge current override to 0/0.0
2024-08-11 12:26:39.194 mapper: Setting SmartEVSE state to >Charging<
2024-08-11 12:26:39.208 mapper: testValue="None" (<class 'str'>), readValue="None" (<class 'str'>)
2024-08-11 12:26:39.209 mapper: testValue="No Power Available" (<class 'str'>), readValue="None" (<class 'str'>)
2024-08-11 12:26:39.210 mapper: testValue="Communication Error" (<class 'str'>), readValue="None" (<class 'str'>)
2024-08-11 12:26:39.211 mapper: testValue="Temperature High" (<class 'str'>), readValue="None" (<class 'str'>)
2024-08-11 12:26:39.211 mapper: testValue="EV Meter Comm Error" (<class 'str'>), readValue="None" (<class 'str'>)
2024-08-11 12:26:39.211 mapper: testValue="RCM Tripped" (<class 'str'>), readValue="None" (<class 'str'>)
2024-08-11 12:26:39.212 mapper: testValue="Waiting for Solar" (<class 'str'>), readValue="None" (<class 'str'>)
2024-08-11 12:26:39.212 mapper: testValue="Test IO" (<class 'str'>), readValue="None" (<class 'str'>)
2024-08-11 12:26:39.214 mapper: testValue="Flash Error" (<class 'str'>), readValue="None" (<class 'str'>)
2024-08-11 12:26:39.215 mapper: testValue="**Unknown**" (<class 'str'>), readValue="None" (<class 'str'>)
2024-08-11 12:26:39.216 mapper: Setting SmartEVSE error to 0/0.0
2024-08-11 12:26:50.209 mapper: Setting SmartEVSE max current to 1/1.6
2024-08-11 12:26:50.225 mapper: Setting SmartEVSE charge current to 1/1.6
2024-08-11 12:26:50.240 mapper: Setting SmartEVSE charge current override to 0/0.0
2024-08-11 12:26:50.256 mapper: Setting SmartEVSE state to >Charging<
I think it's a bug, If you look at the mqtt explorer you can see the old topic smartevse (previous MqttMapper)and there was the ChargeCurrent 0 and in the latest release you can see the new topix SmartEVSE-5572 and now is the ChargeCurrent 16. The same is for MainsCurrent L1=-7, that should be -0,7FlyingDomotic wrote: ↑Monday 12 August 2024 23:37 Have a check with data in MQTT. As MqttMapper get changes through MQTT, if MQTT is false, MqttMapper has the same default.
Else, it's a MqttMapper bug![]()