Bwalarm (akasma74 edition)

Not really I’m afraid. Basically it’s currently most of the PRs and fixes (check my post in the original thread and my PRs at Github) that keep this component running rather than “Oops something went wrong”.

I used @gazoscalvertos alarm a long time ago. Then multiple codes were in the works. Is it implemented now? I can’t see that in the configuration description, but it would be great.

I am fine with original features (enough for me). If your fork is just fixes I am glad to install it

Hey, I’ve been “away” from this component for a while, and just upgraded to your version (thanks for keeping the development going!), and I have an issue.

This seems really silly, but I can’t figure out how to gain access to the settings through frontend. I put in the admin password, but nothing happens when I press enter. Regardless of what I put as password. I’ve tried both without any password set (using component default) and by setting one manually. And there’s no “enter” button, or anything to click…

Sorry if this is covered somewhere, but I couldn’t find anything when searching through the (slightly fragmented) documentation and threads.



alarm_control_panel.py version:    1.1.5_ak74
alarm.html version:                1.3.6_ak74
Chrome version:                    73.0.3683.103

EDIT: And I noticed this in my logs, though not every time I tried to access Settings:

https://MYEXTERNALIP/api/panel_custom/alarm:1913:9 Uncaught ReferenceError: sha256_digest is not defined

Currently there is support for per-used codes.
This component imports all existing users from HA, but one can define their own users within the component as far as I understand.

Well, I didn’t 'update’t the docs, just copied them over and made sure the installation bit is up-to-date.
It’s actually mentioned here.

yep, I’m not adding anything fancy but try to keep it going as I’m using the component.

@Aephir what do you call “admin password” and what exactly happens when you enter the password and hit enter ? Have you changed it from the default HG28!!&dn ?
Yes, there is no “enter” button, but it usually works fine.
By the way, if you paste it, there is no need to even hit enter :wink:

Can’t comment on sha256_digest at the moment, have you tried to clear your browser’s cache after upgrading? There is nothing at panels/alarm.html:1913…

2 Likes

@AhmadK Problem solved. I ended up re-installing, clearing cache, and doing a force-refresh of the browser as per instructions in a different post. :+1:

Glad to hear that. Think the main cause was cached alarm.html and other outdated browser-related stuff.

I am getting the same error, have you been able to find a fix?

I did a little research, looks like this is the culprit: https://github.com/home-assistant/home-assistant/pull/21959

I see that the ak74 version addressed this and I have updated my code. Thank you!

Can you confirm that the current code from my repo is working for you?

@AhmadK I can confirm that the message_received(msg) and the msg.payload lines are working correctly. I am still using an old version of bwalarm and have just been making code adjustments as things have broken.

I see.
Was asking because there is an open issue and I have changed the code (and it works for me), but it still doesn’t work for him for some reason…

Yeah, I saw that :thinking:

I wont have time to update my code to your repo until next week, but I can test it then.

Hi,
Is there a way to increase the keypad button size to approximately what it was in the “pre mwc-button” days? I have to put my reading glasses on to arm and disarm from a Fire tablet now!!!
Thanks

Try to search www/alarm/alarm.css for “div.digits” and increase height/width values.
Don’t forget to save changes and clear your browser’s cache and then reload the panel.

I tried that, but once you start getting to the size needed to see without glasses, it starts bringing up the scroll bars even on a desktop Chrome browser. I also played with the width and height settings in div.arm to make those more readable but had the same results.

2019-05-09 12:51:53 ERROR (MainThread) [frontend.js.latest.201904270] http://hassio.local/api/panel_custom/alarm:2029:37 Uncaught TypeError: Cannot read property ‘classList’ of undefined
2019-05-09 12:51:54 ERROR (MainThread) [frontend.js.latest.201904270] http://hassio.local/api/panel_custom/alarm:2029:37 Uncaught TypeError: Cannot read property ‘classList’ of undefined

Is it possible to use custom_updater?

restart and cache clear fixed the issue. thanks

I’m not familiar with custom_updater at all… is it something that people might need?

@rgregrowe I see… will look into it when I have time :wink:

@jenmonk yeah, it’s always good to restart HA and clear cache of all of your browsers before opening a new issue