<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p id="reply-intro">On 2025-02-02 22:30, Chris Box via OvmsDev wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div id="replybody1" style="font-size: 10pt; font-family: Verdana,Geneva,sans-serif;">
<div>This evening, I enabled vehicle-poll debug while it was charging. As you can see from the log below, there was no SetState after charging stopped. Therefore the poller continued in its current state, and polled every minute. So something is causing it to miss the state transition.</div>
<div> </div>
</div>
</blockquote>
<div id="replybody1" style="font-size: 10pt; font-family: Verdana,Geneva,sans-serif;">
<div> </div>
<div>The poller eventually realised the car wasn't charging at 05:50 this morning, after it was informed of an interruption to pilot signal.</div>
<div> </div>
<div><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 05:48:24.512 GMT D (369703402) vehicle-poll: [1]PollerSend(PRI)[3]: entry at[type=21, pid=1], ticker=240, wait=0, cnt=0/0</span><br /><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 05:48:25.512 GMT D (369704402) vehicle-poll: [1]PollerSend(PRI)[3]: entry at[type=21, pid=2], ticker=240, wait=0, cnt=0/0</span><br /><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 05:48:26.512 GMT D (369705402) vehicle-poll: [1]PollerSend(PRI)[3]: entry at[type=21, pid=6], ticker=240, wait=0, cnt=0/0</span><br /><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 05:49:27.512 GMT D (369766402) vehicle-poll: [1]PollerSend(PRI)[3]: entry at[type=21, pid=1], ticker=300, wait=0, cnt=0/0</span><br /><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 05:49:28.512 GMT D (369767402) vehicle-poll: [1]PollerSend(PRI)[3]: entry at[type=21, pid=2], ticker=300, wait=0, cnt=0/0</span><br /><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 05:49:29.512 GMT D (369768402) vehicle-poll: [1]PollerSend(PRI)[3]: entry at[type=21, pid=6], ticker=300, wait=0, cnt=0/0</span><br /><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 05:49:30.512 GMT D (369769402) vehicle-poll: [1]PollerSend(PRI)[3]: entry at[type=21, pid=4], ticker=300, wait=0, cnt=0/0</span><br /><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 05:50:03.222 GMT D (369802112) vehicle-poll: Pollers: Queue SetState()</span><br /><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 05:50:03.222 GMT D (369802112) vehicle-poll: Pollers: PollState(0)</span><br /><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 05:50:03.222 GMT D (369802112) events: Signal(vehicle.charge.pilot.off)</span><br /><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 05:50:03.232 GMT D (369802122) events: Signal(vehicle.charge.state)</span><br /><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 05:50:03.322 GMT D (369802212) events: Signal(vehicle.charge.pilot.on)</span><br /><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 05:50:08.432 GMT D (369807322) events: Signal(vehicle.charge.state)</span><br /><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 05:50:16.182 GMT D (369815072) events: Signal(notify.info.charge.stopped)</span></div>
<div> </div>
<div>Subsequently it seems to have followed changes of car state in a timely manner:</div>
<div> </div>
<div>
<div><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 07:20:04.352 GMT D (375203242) vehicle-poll: Pollers: Queue SetState()</span></div>
<div><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 07:20:04.352 GMT D (375203242) vehicle-poll: Pollers: PollState(3)</span></div>
<div><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;"> </span></div>
<div><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 07:58:32.552 GMT D (377511442) vehicle-poll: Pollers: Queue SetState()</span></div>
<div><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 07:58:32.552 GMT D (377511442) vehicle-poll: Pollers: PollState(0)</span></div>
<div><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;"> </span></div>
<div><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 07:59:02.052 GMT D (377540942) vehicle-poll: Pollers: Queue SetState()</span></div>
<div><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 07:59:02.052 GMT D (377540942) vehicle-poll: Pollers: PollState(1)</span></div>
<div><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;"> </span></div>
<div><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 07:59:04.332 GMT D (377543222) vehicle-poll: Pollers: Queue SetState()</span></div>
<div><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 07:59:04.332 GMT D (377543222) vehicle-poll: Pollers: PollState(2)</span></div>
<div><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;"> </span></div>
<div><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 08:22:29.712 GMT D (378948592) vehicle-poll: Pollers: Queue SetState()</span></div>
<div><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 08:22:29.712 GMT D (378948592) vehicle-poll: Pollers: PollState(1)</span></div>
<div><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;"> </span></div>
<div><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 08:22:32.582 GMT D (378951462) vehicle-poll: Pollers: Queue SetState()</span></div>
<div><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 08:22:32.582 GMT D (378951462) vehicle-poll: Pollers: PollState(0)</span></div>
<div><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;"> </span></div>
<div><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 08:24:43.792 GMT D (379082672) vehicle-poll: Pollers: Queue SetState()</span></div>
<div><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 08:24:43.792 GMT D (379082672) vehicle-poll: Pollers: PollState(1)</span></div>
<div><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;"> </span></div>
<div><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 08:24:45.382 GMT D (379084262) vehicle-poll: Pollers: Queue SetState()</span></div>
<div><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 08:24:45.382 GMT D (379084262) vehicle-poll: Pollers: PollState(2)</span></div>
<div><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;"> </span></div>
<div><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 08:36:10.722 GMT D (379769602) vehicle-poll: Pollers: Queue SetState()</span></div>
<div><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 08:36:10.722 GMT D (379769602) vehicle-poll: Pollers: PollState(1)</span></div>
<div><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;"> </span></div>
<div><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 08:37:10.492 GMT D (379829372) vehicle-poll: Pollers: Queue SetState()</span></div>
<div><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 08:37:10.492 GMT D (379829372) vehicle-poll: Pollers: PollState(2)</span></div>
<div><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;"> </span></div>
<div><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 08:45:37.572 GMT D (380336452) vehicle-poll: Pollers: Queue SetState()</span></div>
<div><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 08:45:37.582 GMT D (380336462) vehicle-poll: Pollers: PollState(1)</span></div>
<div><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;"> </span></div>
<div><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 08:45:41.462 GMT D (380340342) vehicle-poll: Pollers: Queue SetState()</span></div>
<div><span style="font-family: 'courier new', courier, monospace; font-size: 9pt;">2025-02-03 08:45:41.462 GMT D (380340342) vehicle-poll: Pollers: PollState(0)</span></div>
<div> </div>
<div><span>For the Leaf,</span></div>
<div style="padding-left: 40px;"><span>0 = Off<br />1 = On<br />2 = Drive<br />3 = Charging</span></div>
<div> </div>
<div><span>So it might be that the only state transition it struggles with is the one where charging is terminated by OVMS itself.</span></div>
<div> </div>
<div><span>Chris</span></div>
<div> </div>
</div>
</div>

</body></html>