neilimixamo / Home-Assistant-Quick-Look-Mobile

119 stars 6 forks source link

Custom Lock Card #14

Open hAMMERlized opened 1 year ago

hAMMERlized commented 1 year ago

Hi,

a lock card would be also a useful addition.

Examples:

neilimixamo commented 1 year ago

Absolutely! Lock cards will enhance the security section, even more with the new Lock dialog that Home Assistant 2023.7 is bringing. I'll provide both simple and expandable versions, ensuring flexibility while maintaining the overall security style, like this :

image

hAMMERlized commented 1 year ago

Nice. Can't wait to see the new improvements!

I think some kind of security step would be useful to prevent opening the door with only one accidental tap.

Something like in the picture below. There is a little lock symbol in the upper right which means the card is blocked for "one tap" actions. You need to double tap the unlock icon on the left than the lock icon on the upper right will disappear for X seconds / minutes and you are good to go. This is a really smart improvement.

And a little icon for the battery status is also useful to see the if a change / reload is needed. Maybe even in 3 steps and colors (75% - 100% = green, 26% - 74% = orange, <=25% = red). What do you think?

image

neilimixamo commented 1 year ago

Nice, I'll add all these features then. But since I don't own any lock entity, could you please send me a screenshot of one of yours to see which attributes exist (battery, door, ...)

hAMMERlized commented 1 year ago

Sure. Here you go. Or do you need all the entities as seperate?

image

image

neilimixamo commented 1 year ago

Thanks, could you also show its attributes, visible in the "Dev/state" panel ?

image

hAMMERlized commented 1 year ago

Not sure if this helps you as there is not much to see. This is the repo I am using for my nuki door lock klick

image image image image image image image image image

neilimixamo commented 1 year ago

Thanks for the screenshots. Did you create a lock template ? I was expecting a lock. entity_id instead of a sensor. one

hAMMERlized commented 1 year ago

Yea, lol. Forgot that one, sorry. Also not much to see 🤷🏻‍♂️

image

neilimixamo commented 1 year ago

Great, even without many attributes, it still provides me with the understanding I need to manage this entity effectively.

neilimixamo commented 1 year ago

Hi, are you happy with the implementation of the new "security v2.0" card, which includes the "lock" functionality? It can also handle contact, occupancy binary_sensors separately or simultaneously, integrates the battery feature, provides attention when in "unlocked" state only and avoids unintended activation by requiring the user to open the (newly introduced 2023.7) lock dialog, wich, I think, keep this card minimalist and consistent with the other cards.

hAMMERlized commented 1 year ago

Hey man,

i am sorry but i am pretty buisy with some real life stuff so i can not really test the new release.

But could you provide me quick_look_mobile.yaml 1.0 file please? I have somehow overwritten it and can not use my dashboard anymore. As i have it customized a lot i would have to start from 0 again. Thanks.

neilimixamo commented 1 year ago

Yes, unfortunately, the v2 release brings some breaking changes, which is why I recommend keeping the v1 version and installing the new v2 dashboard alongside it to ensure a smoother transition.

/config/dashboards/dashboards.yaml ``` /config/dashboards/dashboards.yaml quick-look-mobile-dashboard_v1: mode: yaml title: QLM v1 icon: mdi:cellphone show_in_sidebar: true filename: dashboards/quick_look_mobile_v1/qlm.yaml quick-look-mobile-dashboard: mode: yaml title: QLM v2 icon: mdi:cellphone show_in_sidebar: true filename: dashboards/quick_look_mobile/qlm.yaml ```

v1 files : Quick Look Mobile v1.zip

hAMMERlized commented 1 year ago

Hi, are you happy with the implementation of the new "security v2.0" card, which includes the "lock" functionality? It can also handle contact, occupancy binary_sensors separately or simultaneously, integrates the battery feature, provides attention when in "unlocked" state only and avoids unintended activation by requiring the user to open the (newly introduced 2023.7) lock dialog, wich, I think, keep this card minimalist and consistent with the other cards.

Sorry for the late response. Right now i am strongly customizing my v2 dashboard and until now i didn't try the lock card yet. As soon as i do i will give you some feedback!