# Høiax Connected smart water heaters

**URL:** <https://community.homey.app/t/hoiax-connected-smart-water-heaters/63238>\
**Category:** Apps\
**Tags:** app\
**Created:** [May 2, 2022, 1:12am UTC](https://community.homey.app/t/hoiax-connected-smart-water-heaters/63238 "2022-05-02T01:12:35Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![frodeheg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frodeheg/32/49010_2.png) [@frodeheg](https://community.homey.app/u/frodeheg)\
**Post date:** [May 2, 2022, 1:12am UTC](https://community.homey.app/t/hoiax-connected-smart-water-heaters/63238/1 "2022-05-02T01:12:36Z")

</div>

This topic is about the new Høiax app for smart water heaters.  
It is being developed at [GitHub - frodeheg/no.hoiax: Adds Høiax devices to Homey](https://github.com/frodeheg/no.hoiax)  
If you want to test or do code reviews please let me know.

---

<div class="post-metadata">

**Author:** ![frodeheg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frodeheg/32/49010_2.png) [@frodeheg](https://community.homey.app/u/frodeheg)\
**Post date:** [May 2, 2022, 11:21pm UTC](https://community.homey.app/t/hoiax-connected-smart-water-heaters/63238/2 "2022-05-02T23:21:30Z")

</div>

All features intended for the first version of the app has been implemented and pushed to github. Will push for review as soon as I have cleaned up the code. Aiming to publish the app in the next few days.

---

<div class="post-metadata">

**Author:** ![frodeheg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frodeheg/32/49010_2.png) [@frodeheg](https://community.homey.app/u/frodeheg)\
**Post date:** [May 3, 2022, 11:36pm UTC](https://community.homey.app/t/hoiax-connected-smart-water-heaters/63238/3 "2022-05-03T23:36:43Z")

</div>

The first version was just submitted for Certification. It will be available for the public within two weeks 🙂

Not sure how the testing process work, but I think anyone that would like to test it can install it from [Homey Developer Tools](https://tools.developer.homey.app/apps/app/no.hoiax)

---

<div class="post-metadata">

**Author:** ![homeyhue99](https://avatars.discourse-cdn.com/v4/letter/h/7feea3/32.png) [@homeyhue99](https://community.homey.app/u/homeyhue99)\
**Post date:** [May 5, 2022, 9:11pm UTC](https://community.homey.app/t/hoiax-connected-smart-water-heaters/63238/4 "2022-05-05T21:11:17Z")

</div>

Awesome, just got my Høiax Connected. Looking forward to this!

---

<div class="post-metadata">

**Author:** ![frodeheg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frodeheg/32/49010_2.png) [@frodeheg](https://community.homey.app/u/frodeheg)\
**Post date:** [May 5, 2022, 10:32pm UTC](https://community.homey.app/t/hoiax-connected-smart-water-heaters/63238/5 "2022-05-05T22:32:29Z")

</div>

Nice!  
Since this is my first app I’m not entirely sure how this works, but I think you will be able to install the app from the above link before it is certified (if you want). It would be great to get any feedback on if everything works before it becomes public as Athom does not have a water tank to test it with. Also any improvement suggestions are welcomed 🙂 .

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [May 5, 2022, 11:02pm UTC](https://community.homey.app/t/hoiax-connected-smart-water-heaters/63238/6 "2022-05-05T23:02:49Z")

</div>

Don’t think other people than you can use this install link.

---

<div class="post-metadata">

**Author:** ![frodeheg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frodeheg/32/49010_2.png) [@frodeheg](https://community.homey.app/u/frodeheg)\
**Post date:** [May 5, 2022, 11:17pm UTC](https://community.homey.app/t/hoiax-connected-smart-water-heaters/63238/7 "2022-05-05T23:17:06Z")

</div>

Right, seems like I need to put it here: [https://store.homey.community/](https://store.homey.community/) but apparently I need approval to get it there too so not sure when I will get a beta test link available…

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [May 6, 2022, 8:04am UTC](https://community.homey.app/t/hoiax-connected-smart-water-heaters/63238/8 "2022-05-06T08:04:56Z")

</div>

Probably @MaxvandeLaar can inform you.

---

<div class="post-metadata">

**Author:** ![frodeheg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frodeheg/32/49010_2.png) [@frodeheg](https://community.homey.app/u/frodeheg)\
**Post date:** [May 7, 2022, 11:35pm UTC](https://community.homey.app/t/hoiax-connected-smart-water-heaters/63238/9 "2022-05-07T23:35:45Z")

</div>

Sounds like once they have approved my first submission they will allow for beta testing links in the regular store too so I guess it’s better to wait.

---

<div class="post-metadata">

**Author:** ![frodeheg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frodeheg/32/49010_2.png) [@frodeheg](https://community.homey.app/u/frodeheg)\
**Post date:** [May 9, 2022, 7:53am UTC](https://community.homey.app/t/hoiax-connected-smart-water-heaters/63238/10 "2022-05-09T07:53:36Z")

</div>

And it’s live 🙂

> **[Høiax](https://homey.app/no-no/app/no.hoiax/H%C3%B8iax/)**
>
> Smarte varmtvannsberedere

---

<div class="post-metadata">

**Author:** ![frodeheg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frodeheg/32/49010_2.png) [@frodeheg](https://community.homey.app/u/frodeheg)\
**Post date:** [May 9, 2022, 10:57pm UTC](https://community.homey.app/t/hoiax-connected-smart-water-heaters/63238/11 "2022-05-09T22:57:41Z")

</div>

A test version with some extra configuration settings is available here for testing:

> **[Hoiax](https://homey.app/en-us/app/no.hoiax/Hoiax/)**
>
> Smart Water Heaters

What is new:

- Norwegian readme.txt
- Ability to set some configuration settings:
  - “Average ambient temperature”
  - “Average inlet temperature”
  - “Regulation Difference”
  - “Legionella program frequency”
  - “Max water flow”
  - (Note that most of these have no effect other than to allow the tank to more accurately calculate the current capacity)

---

<div class="post-metadata">

**Author:** ![frodeheg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frodeheg/32/49010_2.png) [@frodeheg](https://community.homey.app/u/frodeheg)\
**Post date:** [May 13, 2022, 1:56pm UTC](https://community.homey.app/t/hoiax-connected-smart-water-heaters/63238/12 "2022-05-13T13:56:11Z")

</div>

Seems like there has been a few crashes of the app today.  
I don’t know much about these crashes as I don’t have any logs, if anyone has any details please share. I will try to fix as soon as possible

---

<div class="post-metadata">

**Author:** ![frodeheg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frodeheg/32/49010_2.png) [@frodeheg](https://community.homey.app/u/frodeheg)\
**Post date:** [May 13, 2022, 11:19pm UTC](https://community.homey.app/t/hoiax-connected-smart-water-heaters/63238/13 "2022-05-13T23:19:15Z")

</div>

Whoever experienced the crash can try this new version so I get some more insight so I can fix it:

> **[Høiax](https://homey.app/no-no/app/no.hoiax/H%C3%B8iax/)**
>
> Smarte varmtvannsberedere

(will be made public in a day or two in either case after I have tested it a bit)

---

<div class="post-metadata">

**Author:** ![frodeheg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frodeheg/32/49010_2.png) [@frodeheg](https://community.homey.app/u/frodeheg)\
**Post date:** [May 15, 2022, 11:29pm UTC](https://community.homey.app/t/hoiax-connected-smart-water-heaters/63238/14 "2022-05-15T23:29:13Z")

</div>

Crashes were presumably due to one of:

- bad internet connection
- bad username/password  
I have added handling to all internet communication so the app will no longer crash but instead turn the device into unavailable state and retry every 10 second until it get a new connection. Then it will make the device available again when the connection has been restored.

The test version linked above has been updated with this fix and will be pushed to certification tomorrow unless I find problems with it.

---

<div class="post-metadata">

**Author:** ![frodeheg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frodeheg/32/49010_2.png) [@frodeheg](https://community.homey.app/u/frodeheg)\
**Post date:** [May 17, 2022, 8:38pm UTC](https://community.homey.app/t/hoiax-connected-smart-water-heaters/63238/15 "2022-05-17T20:38:11Z")

</div>

Another bug has been discovered when deleting devices:

- Apparently a timer function kept triggering even after the device had been deleted causing the app to report crashes with invalid\_device. A new test version (1.3.1) now disposes of the timer in a clean fashion when the device is deleted.

A workaround for the problem would be to restart the app after a device has been deleted.  
For normal users this version of the app has no added improvements over the live version.

The new test version will go live tomorrow if I don’t have troubles with it.

---

<div class="post-metadata">

**Author:** ![frodeheg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frodeheg/32/49010_2.png) [@frodeheg](https://community.homey.app/u/frodeheg)\
**Post date:** [May 24, 2022, 8:43pm UTC](https://community.homey.app/t/hoiax-connected-smart-water-heaters/63238/16 "2022-05-24T20:43:15Z")

</div>

I wonder if Athom has some error-detection robot trying to do everything to break the app after it has been submitted. When one error has been fixed another one keep popping up and now I am starting to get extremely odd error reports for errors that should be utterly impossible.

Also since I am not getting any complaints from any humans with problems or bad reviews it seems more and more like a robot is trying to break the app.

Does anyone know?

I really like it if they do have such a robot.

---

<div class="post-metadata">

**Author:** ![frodeheg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frodeheg/32/49010_2.png) [@frodeheg](https://community.homey.app/u/frodeheg)\
**Post date:** [May 24, 2022, 9:31pm UTC](https://community.homey.app/t/hoiax-connected-smart-water-heaters/63238/17 "2022-05-24T21:31:17Z")

</div>

A new test version with some more bug-fixes has been submitted.  
It will be made public tomorrow if nothing goes wrong overnight.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [May 25, 2022, 5:08am UTC](https://community.homey.app/t/hoiax-connected-smart-water-heaters/63238/18 "2022-05-25T05:08:53Z")

</div>

> [@frodeheg](#):
>
> and now I am starting to get extremely odd error reports for errors that should be utterly impossible

Yes, this is “normal” in that a lot of other app developers (including myself) are getting crash reports that make no sense at all. These are impossible to fix, unless you wrap your entire app inside a giant `try/catch` handler and basically just ignore _all_ errors.

The reason these are showing up now is because Homey firmware 7.4.1 introduced a new Node.js version internally that is less lenient with uncaught errors. Previously, a lot of these crashes were just being ignored internally (but they still happened).

As to how these seemingly impossible errors can happen, I can only guess, but it’s either bit rot ór Homey is extremely susceptible to radiation flipping random bits. Or something.

Besides random errors, there are also quite a few SDK and Web API errors that have surfaced with 7.4.1. I started ignoring any errors on SDK methods (what else can I do?).

---

<div class="post-metadata">

**Author:** ![Joolee](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/joolee/32/3064_2.png) [@Joolee](https://community.homey.app/u/Joolee)\
**Post date:** [May 25, 2022, 4:59pm UTC](https://community.homey.app/t/hoiax-connected-smart-water-heaters/63238/19 "2022-05-25T16:59:52Z")

</div>

I actually went through this process before Athom made these changes. The reason was having enabled ‘strict mode’ in all my JS files and I set up a [telemetry system](https://github.com/Joolee/nl.joolee.homey.espeasy/blob/70c84bc501b1c97b2716bfa71ea75444141efe4e/lib/Telemetry.js#L173) that sends all program errors to me.

The errors are all fixable (except when the error occurs in the Homey SDK code of course) but requires some searching. A good start is to find all function calls that return promises and attaching a .catch() method to them or prefix them with ‘await’.

If you find any SDK errors that are really undescriptive, please report them in my repo:

> **[Undescriptive errors · Joolee/Homey-unofficial-documentation Wiki](https://github.com/Joolee/Homey-unofficial-documentation/wiki/Undescriptive-errors)**
>
> Unofficial documentation for Homey app developers. - Undescriptive errors · Joolee/Homey-unofficial-documentation Wiki

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [May 25, 2022, 5:46pm UTC](https://community.homey.app/t/hoiax-connected-smart-water-heaters/63238/20 "2022-05-25T17:46:00Z")

</div>

> [@Joolee](#):
>
> The errors are all fixable

No, I’m getting errors that are _impossible_ in a normal situation.

For example, I’m getting an error _“storage.initSync is not a function”_ on this line: [com.swttt.homekit/app.js at b7ff0b2e01240289ebe628c802ef88bb97f2e12c · swttt/com.swttt.homekit · GitHub](https://github.com/swttt/com.swttt.homekit/blob/b7ff0b2e01240289ebe628c802ef88bb97f2e12c/app.js#L22)

I’m getting that error once every few days. If it’s really not a function it shouldn’t work for any of the 7500 installs of the app, and I’m not getting thousands of crash reports. So there’s a particular installation where something is very wrong.

And this isn’t the only example.

[Next page](https://community.homey.app/t/hoiax-connected-smart-water-heaters/63238.md?page=2)
