Blackymas / NSPanel_HA_Blueprint

This allows you to configure your complete NSPanel via Blueprint with UI and without changing anything in the code
1.4k stars 253 forks source link

`Enhancement` suport for locks with latching mechanism #2154

Open finipini opened 3 months ago

finipini commented 3 months ago

Enhancement Summary

suport for locks with latching mechanism

Detailed Description

Hello, i was trying to use my lock entity in the buttons page, and i see it only allows to lock or unlock an lock entity, but my lock entity have another option that is unlatch , and this is the only way to really open the door. I know that this door type if diferent depending on the country . Here in Portugal, we have the lock, but even with the door unlocked we have an latch, form the inside we can use the handle to open the door , but from the outside that are no handle.

Additional Context

Screenshot 2024-06-15 164731

edwardtfn commented 3 months ago

Which integration are you using with your lock? And when you go to Developer tools, tab Services, and then type lock., which services are shown?

IMG_6813

finipini commented 3 months ago

Which integration are you using with your lock?

The switchbot(ble) integration, with the switchbot lock and a bluetooth proxy as gateway.

And when you go to Developer tools, tab Services, and then type lock., which services are shown?

The same has you shown. But thats exactly the thing: In the nspanel it seems it only uses 2 services : lock.lock and lock.unlock, but to completly open the door i need the lock.open service.

edwardtfn commented 3 months ago

Ok, so one more question…

On the same Developer Tools, but now on the tab States, could please find the lock entity for this case and share its attributes? Please hide any sensitive info before sharing. 😉

finipini commented 3 months ago

k, but it don,t have much...

Screenshot 2024-06-16 111257

finipini commented 3 months ago

maybe this could be more usefull.....

The red underlined is when i push the button "open door" ( first picture i put in this thread) and that is when the door i fuly open and unlatched. I see that in this case there is no state for this, the state is unlock if it is latched or unlatched. But the door only stays unlatched for 3 seconds ( or the door would be completly loosen) and then it goes back to the unlock position. So the unlatch is just an event that occurs for 3 seconds.

Screenshot 2024-06-16 112510