Closed dennislv closed 1 year ago
Home assistant unfortunately does not make it intuitive to do that. Here's a quick rundown:
Put the alarm-keypad-card.js and *.mp3 files into your config/www folder. Add a reference to alarm-keypad-card.js in Lovelace. There’s two way to do that: Using UI: Configuration → Lovelace Dashboards → Resources Tab → Click Plus button → Set Url as /local/alarm-keypad-card.js → Set Resource type as JavaScript Module. Note: If you do not see the Resources Tab, you will need to enable Advanced Mode in your User Profile Using YAML: Add following code to lovelace section resources:
Thank you! That helped me get it working. I greatly appreciate your project and assistance!
One thing, your mqtt sensor example is now out of date. They've changed the yaml format, among other things.
I also added unique_id's becuase I thought it was causing me grief, but I'm not sure if they're required. Regardless, this works for me:
mqtt:
sensor:
- name: "DisplayLine1"
unique_id: vistadisplayline1
state_topic: "vista/Get/DisplayLine1/1"
- name: "DisplayLine2"
unique_id: vistadisplayline2
state_topic: "vista/Get/DisplayLine2/1"
- name: "vistaaway"
unique_id: vistastatusaway
state_topic: "vista/Get/Status/AWAY/1"
- name: "vistastay"
unique_id: vistastatusstay
state_topic: "vista/Get/Status/STAY/1"
- name: "vistaready"
unique_id: vistastatusready
state_topic: "vista/Get/Status/READY/1"
- name: "vistatrouble"
unique_id: vistastatustrouble
state_topic: "vista/Get/Status/TROUBLE/1"
- name: "vistabypass"
unique_id: vistastatusbypass
state_topic: "vista/Get/Status/BYPASS/1"
- name: "vistachime"
unique_id: vistastatuschime
state_topic: "vista/Get/Status/CHIME/1"
The only thing I can't seem to get are the beeps. I have the 3 files in the correct folder. If I visit 'http://homeassistant.local:8123/local/3_beeps.mp3' I hear them play in my browser. Am I missing a step? Its definitely not critical to me and I can totally live without them. Thanks again!
No sure why you cant hear them. Try doing an F5 on the dashboard to force a reload to see if that helps. All that's needed is to have the files in the local directory which you already have. They are not really necessary anyhow, just an added feature that someone had requested. Sometimes I find the beeps more annoying than anything since I test a few different panels with different partitions.
You are correct about the mqtt format changes. I will be making some updates to the dev. I'm working with @lorenzodeveloper to update it and make it a little more user friendly.
I got it working by adding vistabeeps, and now I agree with them being annoying. Thank you again for your help.
- name: "vistabeeps"
unique_id: vistabeeps
state_topic: "vista/Get/Beeps/1"
Are there instructions for adding the alarm card into Home Assistant? I'm using the MQTT version.
As far as the interface goes, I use MQTT Explorer I can see the updates, as well as manually publish to /vista/Set/Cmd without problem.
Thanks in advance