@ciotlosm Great job on the card, exactly what I needed!
Quick question, Iām pretty sure itās lovelace related and not the custom cardā¦but when I navigate to the page holding the alarm - I see a quick flash of a big red ācannot find card, etcā error message (posted several times above). It only lasts probably sub quarter of a second before the element loads normally but itās enough to see it each time you change to/fro the page.
Any idea what might be causing this?, at the moment itās the only custom card I use so may not be limited to that.
The touch response om my wall mounted lenovo tablet is infuriatingly bad, resulting in quite a few missed touch presses when i try to disarm/arm.
I tried adding a beep sound, similar to the real alarm keypads and it seems to have made the experience a bit better. It is still slow but at least now I know if my press failed or succeeded.
Since i am not a js developer, i just added this to the click event.
var sound = new Audio('http://hass:8123/local/sounds/beep.wav');
sound.play();
Maybe an optional click sound is something that can be added to the configuration?
Would love to get rid of my own hackā¦
@Galazar That is how lovelace implemented custom card loading. It assumes the card wonāt work/load and then when load is successful it replaced the error with the card DOM.
I guess it needs a patch in core for different behaviour and avoid the big red box.
I will have a look. I will be away for a week unfortunately. I think best way would be to fix the button tap speed to be seamless. I find it lagging as well, which is very annoying.
You could try using Fully Kiosk Browser .
It suits the alarm card combined with the kiosk option very well, and can be configured to use the deviceās own touch beep. I use it with an old Sony Z1 with great result.
As a feature request, Iād like to require the code to be able to arm any state of the alarm (to avoid my kids arming it). Would that be possible in this card, or is that related to the alarm component (I use this) ?
@boneheadfraggle the backend needs to support arming and disarming only with code. The generic alarm implementation has this, no idea on your particular implementation, but this is not something for the card itself.
So I am having the same problem as quattro had in his post ( alarm card very thin without any text ) but I am still living in the āDohā moment. What do I need to define in configuration.yaml?
I have this in configuration.yaml
frontend:
javascript_version: latest
I have components (hardware) and a node-red panel UI working. I was wanting to replace the panel to a HA UI panel. I will read the linked documentation. Thank youā¦
Got it working. For those having the same issue as me, add this to configuration.yaml:
alarm_control_panel:
platform: manual
name: āHomeā
code: 1234
pending_time: 60
delay_time: 60
disarmed:
trigger_time: 0