The control_pilot
topic message has been cleaned up.
It now complies to the DIN EN 61851-1:201 and provides status A,B,C,E,F
on it.
Additionally the topics control_pilot_detail
and control_pilot_detail_message
were added.
Those provide more information about the current CP state.
var ControlPilotStates = map[int]ControlPilotState{
0xE: {
Status: "E",
Detail: "E",
Message: "Error",
},
0xF: {
Status: "F",
Detail: "F",
Message: "Failure",
},
0xA1: {
Status: "A",
Detail: "A1",
Message: "Ready (S1 at 12V, car not connected)",
},
0xA2: {
Status: "A",
Detail: "A2",
Message: "Ready",
},
0xB1: {
Status: "B",
Detail: "B1",
Message: "Connected (S1 at 9V, car connected not allowed charge)",
},
0xB2: {
Status: "B",
Detail: "B2",
Message: "Connected (S1 at Oscillator, car connected allowed charge)",
},
0xC1: {
Status: "C",
Detail: "C1",
Message: "Charging",
},
0xC2: {
Status: "C",
Detail: "C2",
Message: "Charging (S2 closed))",
},
}
Important
You should save your configuration and recreated it with the installation process since the control_pilot
topic need to be added to the interval updated topics to make sure the state doesn't get stale.