# 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:** 2

<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 8, 2023, 6:03am UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/21 "2023-03-08T06:03:35Z")

</div>

Fantastic! Looks great. I will test this as fast as possible.

In the new app are two **then** cards missing:  
Start charging  
Stop Charging

---

<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 8, 2023, 7:51am UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/22 "2023-03-08T07:51:01Z")

</div>

It seems like the link to the app doesn’t work anymore.

---

<div class="post-metadata">

**Author:** ![Caseda](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/caseda/32/138695_2.png) [@Caseda](https://community.homey.app/u/Caseda)\
**Post date:** [March 8, 2023, 8:33am UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/23 "2023-03-08T08:33:00Z")

</div>

As the app was only in test, a new test version needs to be approved by Athom making the old test version overwritten already, but not available (404) because it needs to be approved.  
Automatic updates should still update the existing test version I believe.

---

<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 8, 2023, 8:34am UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/24 "2023-03-08T08:34:30Z")

</div>

Correct! I pushed a minor patch restoring the start/stop charging cards this morning.

Once you have it installed it will update. I can see that at least two people have gotten the latest update.

---

<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 8, 2023, 8:47am UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/25 "2023-03-08T08:47:52Z")

</div>

It’s up again!

---

<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 8, 2023, 9:04am UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/26 "2023-03-08T09:04:15Z")

</div>

I received the update. I will run some tests tonight and will provide the results asap.

Thank you so much for your work!

---

<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 8, 2023, 12:02pm UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/27 "2023-03-08T12:02:22Z")

</div>

One of my chargers does not give me “Energy previous session” altough it is available in the Zaptec Portal.  
The other charger(s) seem to work in this regard. Could this be because I have two installations (for technical reason - even though they are located almost next to each other)?

I have not tested much of the “active” (startig, stopping and so on…) part of the app yet as I am really only after the statistics here, but what I have tried looks fine.

One small thing; I would prefer having the current meters on the bottom of the list and have Power (W) and previous session (kWh) on the top as those last two are the ones I would look at “in a glance”.

---

<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 8, 2023, 1:19pm UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/28 "2023-03-08T13:19:58Z")

</div>

It looks like the readings and status doesn’t update unless I log out and then log in.

---

<div class="post-metadata">

**Author:** ![Magnus\_P](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/magnus_p/32/4344_2.png) [@Magnus\_P](https://community.homey.app/u/Magnus_P)\
**Post date:** [March 8, 2023, 1:28pm UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/29 "2023-03-08T13:28:40Z")

</div>

Really happy to see the Zaptec app is started to be developed…

- App version v1.1.1
- Two zaptec chargers (Left & Right)

I managed to start/stop the charger using the Homey device - Great!

The status in the Homey device is not in sync with the Zaptec portal i.e. reality. See picture where Left (Vänster) is in state Charging where the Homey Device status is not updated and in sync!

EDIT: It seems after a while (\>15min) the status is updated!

Questions:

- How often is the app getting updated status from Zaptec cloud?
- Is the status pushed or pulled from Zaptec cloud?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/4/0428447c07cec5b0f10570bb9166dd07eb23b52c.png)

---

<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 8, 2023, 3:35pm UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/30 "2023-03-08T15:35:16Z")

</div>

There is no update of values since the last update. I started some tests but no value was updated (connections stat, energy values). **Then** - flows are working (start, stop, load balancing).

I even reinstalled the device to homey, but no difference.

---

<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 8, 2023, 4:54pm UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/31 "2023-03-08T16:54:20Z")

</div>

Right, all very good feedback. I found issues in the polling. The current and “fast values” should update every 30 seconds. The yearly consumption is only updated every day at 07:00. This should now be working.

I’m considering implement AMQP support to get messages pushed to the Homey directly. But I prefer to have a PoC working first 🙂

Energy previous session is taken from Zaptecs “last session” state variable. I’m a bit curious when that changes etc. But it might also be a parsing error.

I have pushed a patched version to address the issues. I’ve also added a debug log in the device settings view. It should normally be empty, it’s updated every 60 second.

---

<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 8, 2023, 6:47pm UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/32 "2023-03-08T18:47:22Z")

</div>

I received the update. The polling works as expected. Great!

**About the status “charging finished”**  
The status doesn’t change to “charging finished” There seems to be an error . The Zaptec app itself recognizes this status. See picture

 ![IMG_8669](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/8/f8f2c74a5786876f4db4c22c0cf7f150361538ee.jpeg)

**About “last charging”**  
This value is set, when you disconnect your car. The Zaptec App stores the last charging value aswell after you disconnect your car. So this works as expected.

**Missing" “current charging”**  
The value about kWh that has been charging in the current session should be available somewhere. The Zaptec App displays it. I recommend to add this value as well.

**Charge mode**  
What do you mean with “Charge mode” in the variables?

 ![IMG_8670](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/8/28a3641a6130541db71b6378c4b7e2e3af1b2d0a.jpeg)

**Then not available some times**  
I expirience, that “then” Cards are sometimes missing. After I reopen the “then” section again the are displayes as expected.

---

<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 8, 2023, 10:12pm UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/33 "2023-03-08T22:12:08Z")

</div>

It looks like there is still a delay in the update of status (Charging, Charging finished etc.). The power (Watt) looks like it’s updated like it should.

---

<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 9, 2023, 10:29am UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/34 "2023-03-09T10:29:14Z")

</div>

It also looks like Power doesn’t update if the Zaptec increases its power during a charging process.

Edit: I might only be a delay

---

<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 10, 2023, 6:28am UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/35 "2023-03-10T06:28:00Z")

</div>

Right. I’ll try to address the speed of updates when I get to do AMQP subscription instead of polling. Currently polling every 30 seconds, so there should be at most 30 seconds delay in value updates. This should resolve to “real-time” with AMQP subscriptions later on.

@rh_rh I had a typo for the finishing state. Let’s see if the latest publish solves it. I also addressed the charge mode. It’s intended to reflect the charging state. But a number is harder to understand 🙂

---

<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 10, 2023, 7:59am UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/36 "2023-03-10T07:59:12Z")

</div>

@pwad  
“Current Session” and latest Session in kWh works! Love it!

Charging stats won’t be updated at all at the moment. It’s “freezed” on status charging, even if I disconnect the cable.

---

<div class="post-metadata">

**Author:** ![Magnus\_P](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/magnus_p/32/4344_2.png) [@Magnus\_P](https://community.homey.app/u/Magnus_P)\
**Post date:** [March 10, 2023, 8:02am UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/37 "2023-03-10T08:02:32Z")

</div>

@pwad Some feedback from debug log

> Failed to handle charger state: Error: charge\_mode InvalidEnumValueError: Disconnected is not a valid enum value (invalid\_enum\_value)

> Failed to handle charger state: Error: charge\_mode InvalidEnumValueError: Charging finished is not a valid enum value (invalid\_enum\_value)

---

<div class="post-metadata">

**Author:** ![Magnus\_P](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/magnus_p/32/4344_2.png) [@Magnus\_P](https://community.homey.app/u/Magnus_P)\
**Post date:** [March 10, 2023, 8:41am UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/38 "2023-03-10T08:41:05Z")

</div>

@pwad Can you please list the Charge mode [number] to corresponding Charge 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 10, 2023, 10:14am UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/39 "2023-03-10T10:14:30Z")

</div>

I just switched the charge mode numbers to english string instead. Made more sense. Perhaps it needs some thought regarding language. The latest update should switch the token to a readable format for you.

---

<div class="post-metadata">

**Author:** ![Magnus\_P](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/magnus_p/32/4344_2.png) [@Magnus\_P](https://community.homey.app/u/Magnus_P)\
**Post date:** [March 10, 2023, 10:53am UTC](https://community.homey.app/t/zaptec-app-for-homey/74887/40 "2023-03-10T10:53:35Z")

</div>

I think that is better and more understandable, thanks! The available charge modes are these?

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/e/7e4852afc37cab3a1e092a46272cd228c0895f10.png)

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

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