OK a lot of data for you to look at but I think this is suggesting that “Session state” is what we need to translate to a useable state. I have mostly provided the debug sensors you created but in some cases I’ve shown the logbook entry as several events occur too fast to capture.
Startup, not plugged in:
Added energy 30,709.3 Wh
Added range 0.0 km
Cable connected Unplugged
Charging power 0.0 W
Control pilot 161: Ready
Cumulative added energy 844,956.0 Wh
M2W status 6
S2 open 1
Session start timestamp 1
Session state 209: Lock
Status Locked
Plugged in: - this is the status that currently looks wrong as it reports paused instead of locked which you can get for session state.
Added energy 30,709.3 Wh
Added range 0.0 km
Cable connected Plugged in
Charging power 0.0 W
Control pilot 177: Connected 1
Cumulative added energy 844,956.0 Wh
M2W status 4
S2 open 1
Session start timestamp 1
Session state 210: Wait Unlock
Status Paused
Unlock:
Added energy 30,709.3 Wh
Added range 0.0 km
Cable connected Plugged in
Charging power 0.0 W
Control pilot 177: Connected 1
Cumulative added energy 844,956.0 Wh
M2W status 3
S2 open 1
Session start timestamp 1.70268e+09
Session state 179: Connected 3
Status Connected waiting schedule
After auto lock reengaged (but plugged in so still should be ready to charge):
Added energy 30,709.3 Wh
Added range 0.0 km
Cable connected Plugged in
Charging power 0.0 W
Control pilot 177: Connected 1
Cumulative added energy 844,956.0 Wh
M2W status 3
S2 open 1
Session start timestamp 1.70268e+09
Session state 179: Connected 3
Status Connected waiting schedule
Charging:
Wallbox Control pilot changed to 194: Charging 2
22:44:54 - 1 minute ago
Wallbox Session state changed to 194: Charging 2
22:44:54 - 1 minute ago
Wallbox S2 open changed to 0
22:44:54 - 1 minute ago
Wallbox Control pilot changed to 178: Connected 2
22:44:53 - 1 minute ago
Wallbox M2W status changed to 1
22:44:53 - 1 minute ago
Wallbox Status changed to Charging
22:44:53 - 1 minute ago
Wallbox Session state changed to 180: Connected 4
22:44:52 - 1 minute ago
Wallbox Charging enable turned on triggered by service Switch: Turn on
22:44:52 - 1 minute ago - Paul
Wallbox M2W status changed to 2
22:44:52 - 1 minute ago
Wallbox Status changed to Connected waiting car
22:44:52 - 1 minute ago
Added energy 2.7 Wh
Added range 0.0 km
Cable connected Plugged in
Charging power 1,434.0 W
Control pilot 194: Charging 2
Cumulative added energy 844,956.0 Wh
M2W status 1
S2 open 0
Session start timestamp 1.70268e+09
Session state 194: Charging 2
Status Charging
Paused charging:
Wallbox Control pilot changed to 177: Connected 1
22:47:13 - Now
Wallbox Session state changed to 182: Connected 6
22:47:13 - Now
Wallbox S2 open changed to 1
22:47:13 - Now
Wallbox Session state changed to 178: Connected 2
22:47:12 - 1 second ago
Wallbox Charging enable turned off triggered by service Switch: Turn off
22:47:12 - 1 second ago - Paul
Wallbox M2W status changed to 4
22:47:12 - 1 second ago
Wallbox Status changed to Paused
22:47:12 - 1 second ago
Added energy 51.3 Wh
Added range 0.0 km
Cable connected Plugged in
Charging power 0.0 W
Control pilot 177: Connected 1
Cumulative added energy 845,008.0 Wh
M2W status 4
S2 open 1
Session start timestamp 1.70268e+09
Session state 182: Connected 6
Status Paused
Unplugged:
Wallbox Session state changed to 209: Lock
22:49:04 - 25 seconds ago
Wallbox M2W status changed to 6
22:49:04 - 25 seconds ago
Wallbox Status changed to Locked
22:49:04 - 25 seconds ago
Wallbox Session start timestamp changed to 1
22:49:03 - 26 seconds ago
Wallbox Control pilot changed to 161: Ready
22:49:03 - 26 seconds ago
Wallbox Session state changed to 161: Ready
22:49:03 - 26 seconds ago
Wallbox Cable connected was unplugged
22:49:02 - 27 seconds ago
Wallbox M2W status changed to 0
22:49:02 - 27 seconds ago
Wallbox Status changed to Ready
22:49:02 - 27 seconds ago
Added energy 51.3 Wh
Added range 0.0 km
Cable connected Unplugged
Charging power 0.0 W
Control pilot 161: Ready
Cumulative added energy 845,008.0 Wh
M2W status 6
S2 open 1
Session start timestamp 1
Session state 209: Lock
Status Locked
Unlocked (cable disconnected):
Wallbox Session state changed to 161: Ready
22:50:54 - In 1 second
Wallbox Lock was unlocked triggered by service Lock: Unlock
22:50:54 - In 1 second - Paul
Wallbox M2W status changed to 0
22:50:54 - In 1 second
Wallbox Status changed to Ready
22:50:54 - In 1 second
Added energy 51.3 Wh
Added range 0.0 km
Cable connected Unplugged
Charging power 0.0 W
Control pilot 161: Ready
Cumulative added energy 845,008.0 Wh
M2W status 0
S2 open 1
Session start timestamp 1
Session state 161: Ready
Status Ready
Autolock engaged (cable disconnected):
Wallbox Session state changed to 209: Lock
22:51:55 - In 1 second
Wallbox Lock was locked
22:51:55 - In 1 second
Wallbox M2W status changed to 6
22:51:55 - In 1 second
Wallbox Status changed to Locked
22:51:55 - In 1 second
Added energy 51.3 Wh
Added range 0.0 km
Cable connected Unplugged
Charging power 0.0 W
Control pilot 161: Ready
Cumulative added energy 845,008.0 Wh
M2W status 6
S2 open 1
Session start timestamp 1
Session state 209: Lock
Status Locked