I managed to implement my bentel absoluta smart thanks to you !!! I just can’t see the siren between the binary-sensors. moreover, so the control panel is always online and I cannot access it from the app, can you do something? Thank you
Bentel’ Servers do allow only one connection at a time, so you have to choose if you want the HA integration or the app.
Thank you nicomedia
I’m trying your add-on my I have a error:
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
internal/modules/cjs/loader.js:905
throw err;
^
Error: Cannot find module 'tough-cookie'
Require stack:
- /Release/node_modules/jsdom/lib/api.js
- /Release/bin/index.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
at Function.Module._load (internal/modules/cjs/loader.js:746:27)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:93:18)
at Object.<anonymous> (/Release/node_modules/jsdom/lib/api.js:5:21)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Module.require (internal/modules/cjs/loader.js:974:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/Release/node_modules/jsdom/lib/api.js', '/Release/bin/index.js' ]
}
[cmd] /run.sh exited 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
That’s weird, what are you running HA on, a RPi, Docker, a PC?
I’m investigating this, and I found that sometimes the server sends a malformed response which is crashing the addon. I’m working on a fix, since this is an intermittent issue it could take some time to release as I do the testing. For now the only solution is to restart the plugin when it stops working.
Thank you! Yesterday I was wondering… What happens if there is any notification from the alarm station? For instance, yesterday I received a “battery fault” notification… Without the app I would never have known it…
Moreover, I haven’t been able to set up the alarm control panel so that I could arm the system… Would you help me?
I’m running HA on Docker:
Sistema operativo
Debian GNU/Linux 10 (buster)
Versione Docker
19.03.8
The addon uses the alarm_panel
entities to arm/disarm the system. On the Global partition you can only arm/disarm, while on the normal partitions you can arm home, away, or night(which corresponds to the “no delay” arm on the Bentel panel). The Addon creates an alarm_panel
entity per partition(including the global one).
I tried running the addon in Docker but unfortunately can’t reproduce the issue. For now what I can suggest is try to copy over the folder again and see if the copy process works. Sometimes it leaves out some folders, which may be your case since the tough-cookie
module is in the node_modules
folder.
Great!
It worked, thx
But now I don’t understand that I should use it.
I don’t have alarm_panel entity
Have you entered all of the parameters in the configuration tab? If you did and they are correct, you should not be able to access the alarm panel via the app and it should create all the sensor and alarm panel entities automatically.
Yesssss
Now there are!
And I see mqtt messages! Fantastic
I also have this problem, after a few hours I have to restart the addon because it doesn’t work. Yes also to me in the folder has not added some files, I try to redo the passage and I update you
Hello,
Thank you very much, this is exactly what I was looking for.
Unfortunately when I try to install the addon, I get the following error message:
The command ‘/bin/ash -o pipefail -c apk add --update nodejs’ returned a non-zero code: 1
If I add quotes manually on the command line like -c “apk add…”, this one works. Would you help me?
ok, found, it was linked to the RUN command in the file absoluta/Dockerfile
Me too
Addon works but after a few hours I have to restart the addon.
It disconnects because I can connect with app.
I found out that the addon crashes because sometimes the server sends a malformed message that can’t be parsed. I’m currently testing a fix, if it works I’ll release an updated version.
I know it’s not the best practice and it would be much better if the addon worked by itself, but in the meanwhile I patched the issue with this simple automation, hoping it’s useful to anyone else:
alias: Bentel restart
description: ''
trigger:
- platform: time_pattern
hours: /1
condition: []
action:
- service: hassio.addon_restart
data:
addon: local_absoluta
mode: single
The new version is undergoing final testing, I’ll release it as soon as I get an error from the server and verify that the add-on handles it correctly. I also fixed a bug which caused the global partition state to always be “disarmed”.
Here is version 1.1 of the Addon. To install uninstall the old Addon from HASS, delete the “absoluta” folder from the addons, copy over the new one, reload the addon store from the three dots on the top left, refresh the webpage and you should see version 1.1 of the Addon.
Configuration and usage is exactly the same, the only differences are the bugfixes: now the addon handles malformed messages from the server without crashing, and the global partition shows the correct state(if the system has at least one partition armed the global partition is displayed as armed).
Here is the download link.