fredrikpersson92 / minihass

MiniHass UI Dashboard for Home Assistant
Creative Commons Attribution 4.0 International
150 stars 10 forks source link

Security card #23

Open jamorenom opened 4 months ago

jamorenom commented 4 months ago

Congratulations on your amazing job here! I need your help, basically I "recreated" your security card and added it into my dashboard, everything works like a charm except for the "triggered" version of the card, it just turns black, card doesn't show any kind of message/icon. What am I doing wrong?

Thank you in advance

Screenshot_20240411-232112~2.png

type: custom:button-card entity: alarm_control_panel.alarmo show_name: false show_icon: false show_label: true show_state: false tap_action: action: more-info styles: grid:

fredrikpersson92 commented 4 months ago

Hey, glad you like it! Hmm I'm not following in your code. It seems you have not defined any styles for the icon? And also looks like you have doubled some things? Can you paste the code in proper format so it's easier to read? or Pastebin and share the link?

jamorenom commented 4 months ago

Thank you on your quick response. Here it is: https://pastebin.com/X8vRfGnX

jamorenom commented 4 months ago

Screenshot_20240412-072915~2.png

This is how the card looks like when the alarm is triggered

fredrikpersson92 commented 4 months ago

I just pasted your code without changing anything and it works just fine. Are you sure you installed Alarmo correct?

jamorenom commented 4 months ago

I just pasted your code without changing anything and it works just fine. Are you sure you installed Alarmo correct?

Thank you for your answer. Maybe I'm missing something from your minihass theme (I'm not using it) I'm just using the code from your security card. Alarmo Is working fine (when I use it with its own card, it works fine).

Your card works perfect, just when the alarm is triggered I can't make it work.Screenshot_20240414-093426~2.png

Screenshot_20240414-093437~2.png

Screenshot_20240414-093445~2.png

Alarm triggered: Screenshot_20240412-072915~2.png

fredrikpersson92 commented 4 months ago

oh okay now I understand. I have not actually though about the triggered state :) I should design for it. Is the state called "triggered"? Screenshot 2024-04-14 at 18 43 51

jamorenom commented 4 months ago

oh okay now I understand. I have not actually though about the triggered state :) I should design for it. Is the state called "triggered"? Screenshot 2024-04-14 at 18 43 51

Yes, "triggered". It happens when your alarm is armed and you activate one of your triggers/sensors (example, open a door)

Here an example

Screenshot_20240414-101832~2.png

Screenshot_20240414-101815~2.png

fredrikpersson92 commented 4 months ago

add this next to the other states and define the styles you wish to have - value: triggered

jamorenom commented 4 months ago

add this next to the other states and define the styles you wish to have - value: triggered

Thank you for all your answers!

this is my final card, hope you like it:

https://pastebin.com/Hkz4rGeD