# Zaptec app for Homey?

**URL:** <https://community.homey.app/t/zaptec-app-for-homey/74887>\
**Category:** Questions & Help\
**Created:** [January 10, 2023, 5:23pm UTC](https://community.homey.app/t/zaptec-app-for-homey/74887 "2023-01-10T17:23:46Z")\
**Posts on this page:** 20\
**Page:** 4

<div class="post-metadata">

**Author:** ![rh\_rh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rh_rh/32/35144_2.png) [@rh\_rh](https://community.homey.app/u/rh_rh)\
**Post date:** [March 21, 2023, 2:04pm UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/61 "2023-03-21T14:04:03Z")

</div>

[2023-03-21T13:46:00.764Z] Updated charger state  
[2023-03-21T13:46:30.900Z] Failed to handle charger state 721: SyntaxError: Unexpected token u in JSON at position 0  
[2023-03-21T13:46:30.903Z] Updated charger state  
[2023-03-21T13:47:01.064Z] Failed to handle charger state 721: SyntaxError: Unexpected token u in JSON at position 0  
[2023-03-21T13:47:01.066Z] Updated charger state  
[2023-03-21T13:48:00.480Z] Failed to handle charger state 721: SyntaxError: Unexpected token u in JSON at position 0  
[2023-03-21T13:48:00.486Z] Updated charger state  
[2023-03-21T13:48:30.582Z] Failed to handle charger state 721: SyntaxError: Unexpected token u in JSON at position 0  
[2023-03-21T13:48:30.586Z] Updated charger state  
[2023-03-21T13:49:00.764Z] Failed to handle charger state 721: SyntaxError: Unexpected token u in JSON at position 0  
[2023-03-21T13:49:00.766Z] Updated charger state  
[2023-03-21T13:49:31.578Z] Failed to handle charger state 721: SyntaxError: Unexpected token u in JSON at position 0  
[2023-03-21T13:49:31.581Z] Updated charger state  
[2023-03-21T13:50:01.029Z] Failed to handle charger state 721: SyntaxError: Unexpected token u in JSON at position 0  
[2023-03-21T13:50:01.033Z] Updated charger state  
[2023-03-21T13:50:31.203Z] Failed to handle charger state 721: SyntaxError: Unexpected token u in JSON at position 0  
[2023-03-21T13:50:31.206Z] Updated charger state  
[2023-03-21T13:51:00.548Z] Failed to handle charger state 721: SyntaxError: Unexpected token u in JSON at position 0  
[2023-03-21T13:51:00.551Z] Updated charger state  
[2023-03-21T13:51:30.492Z] Failed to handle charger state 721: SyntaxError: Unexpected token u in JSON at position 0  
[2023-03-21T13:51:30.495Z] Updated charger state  
[2023-03-21T13:52:00.662Z] Failed to handle charger state 721: SyntaxError: Unexpected token u in JSON at position 0  
[2023-03-21T13:52:00.665Z] Updated charger state  
[2023-03-21T13:52:30.879Z] Failed to handle charger state 721: SyntaxError: Unexpected token u in JSON at position 0  
[2023-03-21T13:52:30.883Z] Updated charger state  
[2023-03-21T13:53:01.007Z] Failed to handle charger state 721: SyntaxError: Unexpected token u in JSON at position 0  
[2023-03-21T13:53:01.010Z] Updated charger state  
[2023-03-21T13:53:31.142Z] Failed to handle charger state 721: SyntaxError: Unexpected token u in JSON at position 0  
[2023-03-21T13:53:31.146Z] Updated charger state  
[2023-03-21T13:54:00.422Z] Failed to handle charger state 721: SyntaxError: Unexpected token u in JSON at position 0  
[2023-03-21T13:54:00.426Z] Updated charger state  
[2023-03-21T13:54:30.607Z] Failed to handle charger state 721: SyntaxError: Unexpected token u in JSON at position 0  
[2023-03-21T13:54:30.610Z] Updated charger state  
[2023-03-21T13:55:00.731Z] Charge mode update: 1 to 2  
[2023-03-21T13:55:00.731Z] Car connected: null  
[2023-03-21T13:55:00.753Z] Updated charger state  
[2023-03-21T13:55:30.865Z] Updated charger state  
[2023-03-21T13:56:01.105Z] Updated charger state  
[2023-03-21T13:56:16.120Z] Updated available current  
[2023-03-21T13:56:31.247Z] Charge mode update: 2 to 3  
[2023-03-21T13:56:31.247Z] Car connected: null  
[2023-03-21T13:56:31.877Z] Updated charger state  
[2023-03-21T13:57:00.470Z] Updated charger state  
[2023-03-21T13:57:30.551Z] Updated charger state  
[2023-03-21T13:58:01.073Z] Updated charger state  
[2023-03-21T13:58:31.061Z] Updated charger state  
[2023-03-21T13:59:01.144Z] Updated charger state  
[2023-03-21T13:59:31.244Z] Updated charger state  
[2023-03-21T14:00:00.505Z] Updated charger state  
[2023-03-21T14:00:30.662Z] Updated charger state

---

<div class="post-metadata">

**Author:** ![rh\_rh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rh_rh/32/35144_2.png) [@rh\_rh](https://community.homey.app/u/rh_rh)\
**Post date:** [March 22, 2023, 12:57pm UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/62 "2023-03-22T12:57:00Z")

</div>

car is currently not connected…

[2023-03-22T12:38:30.592Z] Failed to handle charger state 721: SyntaxError: Unexpected token u in JSON at position 0  
[2023-03-22T12:38:30.595Z] Updated charger state  
[2023-03-22T12:39:01.119Z] Failed to handle charger state 721: SyntaxError: Unexpected token u in JSON at position 0  
[2023-03-22T12:39:01.122Z] Updated charger state  
[2023-03-22T12:39:31.377Z] Failed to handle charger state 721: SyntaxError: Unexpected token u in JSON at position 0  
[2023-03-22T12:39:31.380Z] Updated charger state  
[2023-03-22T12:40:01.053Z] Failed to handle charger state 721: SyntaxError: Unexpected token u in JSON at position 0

---

<div class="post-metadata">

**Author:** ![pwad](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pwad/32/70965_2.png) [@pwad](https://community.homey.app/u/pwad)\
**Post date:** [March 22, 2023, 3:47pm UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/63 "2023-03-22T15:47:18Z")

</div>

Do you get the charging starts and car connected triggers in your flows?

---

<div class="post-metadata">

**Author:** ![MHN](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mhn/32/71676_2.png) [@MHN](https://community.homey.app/u/MHN)\
**Post date:** [March 23, 2023, 9:25pm UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/64 "2023-03-23T21:25:22Z")

</div>

Page not found when trying to find the app (link in one of the earlier posts).

Is it due to pending approval from Athom after update of app?

---

<div class="post-metadata">

**Author:** ![emzky](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/emzky/32/73226_2.png) [@emzky](https://community.homey.app/u/emzky)\
**Post date:** [March 24, 2023, 12:08pm UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/65 "2023-03-24T12:08:05Z")

</div>

Hi, how can I start testing the app? The link does not work.

---

<div class="post-metadata">

**Author:** ![rh\_rh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rh_rh/32/35144_2.png) [@rh\_rh](https://community.homey.app/u/rh_rh)\
**Post date:** [March 24, 2023, 6:59pm UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/66 "2023-03-24T18:59:53Z")

</div>

> [@pwad](#):
>
> Do you get the charging starts and car connected triggers in your flows?

- Yes, I have a “if car connects” and “if car disconnects” flow in use. These are both not working right now.
- The “When car starts” charging and “When car stopps” charging works as expected.

Here is a log after I connected my car, but without starting to charge:

[2023-03-24T18:35:30.799Z] Failed to handle charger state 721: SyntaxError: Unexpected token u in JSON at position 0  
[2023-03-24T18:35:30.802Z] Updated charger state  
[2023-03-24T18:36:01.565Z] Failed to handle charger state 721: SyntaxError: Unexpected token u in JSON at position 0  
[2023-03-24T18:36:01.567Z] Updated charger state  
[2023-03-24T18:36:30.886Z] Failed to handle charger state 721: SyntaxError: Unexpected token u in JSON at position 0  
[2023-03-24T18:36:30.889Z] Updated charger state  
[2023-03-24T18:37:00.968Z] Failed to handle charger state 721: SyntaxError: Unexpected token u in JSON at position 0  
[2023-03-24T18:37:00.971Z] Updated charger state  
[2023-03-24T18:37:31.347Z] Failed to handle charger state 721: SyntaxError: Unexpected token u in JSON at position 0  
[2023-03-24T18:37:31.349Z] Updated

---

<div class="post-metadata">

**Author:** ![Kell\_Jacobsen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kell_jacobsen/32/49913_2.png) [@Kell\_Jacobsen](https://community.homey.app/u/Kell_Jacobsen)\
**Post date:** [March 27, 2023, 5:39am UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/67 "2023-03-27T05:39:24Z")

</div>

First of all - thank you for developping to Zaptec. Don’t know if this is of any help.  
Created a flow that collects alle variables when a flow is activated. See below.

 ![Flow data](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/6/8647f3702a4b932c13696e05ba17f38ae9c5f074.jpeg)  
(Hope the image shows)

---

<div class="post-metadata">

**Author:** ![pwad](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pwad/32/70965_2.png) [@pwad](https://community.homey.app/u/pwad)\
**Post date:** [March 27, 2023, 7:51am UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/68 "2023-03-27T07:51:24Z")

</div>

Okay, it looks like the `CarDetected` state is not triggering at all. I will check into it later tonight. I still don’t get why the `SessionIdentifier` state (721) is failing to parse. It doesn’t really do anything. My current guess is that homey does some internal parsing of states which I’ve managed to bork with previous releases. Would it be possible for any of you to try and remove and re-add your charger and see if the messages disappears? That would at least (dis)prove the thesis.

---

<div class="post-metadata">

**Author:** ![pwad](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pwad/32/70965_2.png) [@pwad](https://community.homey.app/u/pwad)\
**Post date:** [March 27, 2023, 6:17pm UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/69 "2023-03-27T18:17:47Z")

</div>

I’ve pushed another release which uses the charging operation mode to trigger car disconnected / connected. Let’s see if we get the behaviour we expect.

As for those asking for the link to the app, since I’m pushing fairly small and continuous changes I don’t want to submit for certification each time. It’s better that we get the base functionality in place and then I will formally publish it all the way and continue iterating!

---

<div class="post-metadata">

**Author:** ![rh\_rh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rh_rh/32/35144_2.png) [@rh\_rh](https://community.homey.app/u/rh_rh)\
**Post date:** [March 27, 2023, 7:49pm UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/70 "2023-03-27T19:49:13Z")

</div>

@pwad

I tried it. Result: Start / Stop Flow are no longer working. Car connected / Car Disconnected are still not working.

Here’s the log:

[2023-03-27T19:43:25.351Z] Renewed token successfully  
[2023-03-27T19:43:26.073Z] Got yearly power history  
[2023-03-27T19:43:30.753Z] Updated charger state  
[2023-03-27T19:44:00.945Z] Failed to handle charger state 710: Error: Invalid Capability: car\_connected  
[2023-03-27T19:44:00.956Z] Updated charger state  
[2023-03-27T19:44:30.999Z] Updated charger state  
[2023-03-27T19:45:01.270Z] Updated charger state  
[2023-03-27T19:45:30.519Z] Failed to handle charger state 710: Error: Invalid Capability: car\_connected  
[2023-03-27T19:45:30.528Z] Updated charger state

---

<div class="post-metadata">

**Author:** ![pwad](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pwad/32/70965_2.png) [@pwad](https://community.homey.app/u/pwad)\
**Post date:** [March 27, 2023, 8:59pm UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/71 "2023-03-27T20:59:44Z")

</div>

Let’s see if it’s remedied now.

---

<div class="post-metadata">

**Author:** ![THN](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thn/32/18363_2.png) [@THN](https://community.homey.app/u/THN)\
**Post date:** [March 28, 2023, 8:09am UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/72 "2023-03-28T08:09:46Z")

</div>

I only have “Updated charger state” in the logs for my 3 chargers now.  
(They have not been used since the last app update)

---

<div class="post-metadata">

**Author:** ![Kell\_Jacobsen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kell_jacobsen/32/49913_2.png) [@Kell\_Jacobsen](https://community.homey.app/u/Kell_Jacobsen)\
**Post date:** [March 28, 2023, 10:27am UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/73 "2023-03-28T10:27:19Z")

</div>

Here is my flow data. It now detects that car is connected and disconnected.

 ![Flow data 2](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/4/44a0c084083814f09b814342e6db7097151c9210.jpeg)

---

<div class="post-metadata">

**Author:** ![Kell\_Jacobsen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kell_jacobsen/32/49913_2.png) [@Kell\_Jacobsen](https://community.homey.app/u/Kell_Jacobsen)\
**Post date:** [March 28, 2023, 11:58am UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/74 "2023-03-28T11:58:21Z")

</div>

![Flow data 3](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/9/69216826410b50220c4c203c022ca2ccc9966efc.jpeg)  
I have Eco mode activated so it didn’t (correctly) start charging when the car was connected.  
It started charging around 1 PM which is also the cheapest hour before midnight - (controlled by Eco Mode).

---

<div class="post-metadata">

**Author:** ![Kell\_Jacobsen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kell_jacobsen/32/49913_2.png) [@Kell\_Jacobsen](https://community.homey.app/u/Kell_Jacobsen)\
**Post date:** [March 28, 2023, 2:56pm UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/75 "2023-03-28T14:56:30Z")

</div>

Discard my coment about starting from Eco mode. My wife started the charging from the zaptec app.

 ![Screenshot 2023-03-28 at 16.52.56](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/4/642c21f1571e6e8fcf09c13dd0c7e27de38b1bc2.png)  
Charging stopped 3:32 PM and it shows in the flow data.

---

<div class="post-metadata">

**Author:** ![rh\_rh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rh_rh/32/35144_2.png) [@rh\_rh](https://community.homey.app/u/rh_rh)\
**Post date:** [March 28, 2023, 8:33pm UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/77 "2023-03-28T20:33:44Z")

</div>

@pwad : Start / Stop / Disconnect / Connect Flows successfully tested! They work as expected. Good job!

There is a issue with the boolean “Charging”. It stayed on “yes” after the charging ended. Charge mode has been set correct. The value changed to “no” after I disconnected my car.  
 ![Charge Boolean](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/2/12aff3df49410c30554e1ca37baa358d794213b6.jpeg)

---

<div class="post-metadata">

**Author:** ![Sviken](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sviken/32/47838_2.png) [@Sviken](https://community.homey.app/u/Sviken)\
**Post date:** [March 29, 2023, 11:11pm UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/78 "2023-03-29T23:11:03Z")

</div>

@pwad, the link you posted earlier does not work “404 failed”. Is there a newer version?

---

<div class="post-metadata">

**Author:** ![THN](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thn/32/18363_2.png) [@THN](https://community.homey.app/u/THN)\
**Post date:** [March 30, 2023, 6:49am UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/79 "2023-03-30T06:49:42Z")

</div>

As @pwad mentioned [here](https://community.homey.app/t/zaptec-app-for-homey/74887/69), he has chosen to not release it before it is working as it should.

---

<div class="post-metadata">

**Author:** ![pwad](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pwad/32/70965_2.png) [@pwad](https://community.homey.app/u/pwad)\
**Post date:** [March 30, 2023, 6:56am UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/80 "2023-03-30T06:56:05Z")

</div>

@rh_rh The “Charging” token should’ve been fixed now. This affects the charging button in the device in the UI, i.e. when you want to manually start a charge using the Homey app. Could you try to start a charge manually via homey, just to see the experience?

Edit: I’ve also pushed a fix for the token in the latest version 🙂

---

<div class="post-metadata">

**Author:** ![Atle\_Lunde](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/atle_lunde/32/48219_2.png) [@Atle\_Lunde](https://community.homey.app/u/Atle_Lunde)\
**Post date:** [March 30, 2023, 7:45am UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/81 "2023-03-30T07:45:26Z")

</div>

It seems like the “then” cards doesnt work.  
I had problems with the charging button aswell. It worked after pressing the button a couple of times

[Previous page](https://community.homey.app/t/zaptec-app-for-homey/74887.md?page=3)

[Next page](https://community.homey.app/t/zaptec-app-for-homey/74887.md?page=5)
