Doorman icon indicating copy to clipboard operation
Doorman copied to clipboard

Feature: Second Doorbell

Open m4n0v31 opened this issue 1 year ago • 10 comments

Description

Hi, I received and installed the doorman3 and it is grerat. I've the following question.

my building has a setup a little different:

  • Entrance Door: with Doorbell and Camera
  • Second Door: with Doorbell and Camera
  • Apartment Door: with Doorbell

The system has:

  • command to open entrance door (already supported in the stock configuration)
  • command to open second door (already supported in the stock configuration)
  • command for doorbell at entrance (already supported in the stock configuration)
  • command for doorbell at second door (not available in stock configuration)
  • command to pick up phone at entrance, show video at entrance (already supported in the stock configuration)
  • command to pick up phone at second door, show video at entrance
  • command to hang up at entrance
  • command to hang up at second door
  • command to switch from entrance video to second door video

There is only one button to pick up phone, and it starts showing the video last seen or where the last doorbell was rang. So if I press the button it could be any of the two command picking up the phone.

I would like to :

  • be able to configure the command for the doorbell at second door and show this as an entity (in the same way "apartment doorbell" and "entrance doorbell" are made)
  • be able to detect and react on pattern at second doorbell
  • be able to have "ring to open" active also at second doorbell, or have the possibility of configure "ring to open" so that the entrance door is open and after 10s the second door is open.
  • be able to insert two command for the phone pick up (any of the two is valid as phone pick up)
  • be able to insert two command for the phone hand up (any of the two is valid as phone hang up)

What's the best way to support this setup?

Logs

No response

Which version of the ESPHome Doorman firmware config are you running?

Firmware: 2024.9.1

How do you manage your Doorman's updates?

None

If you're using an ESPHome YAML config, which version of ESPHome are you running?

2024.9.1

ESPHome Config

No response

m4n0v31 avatar Sep 28 '24 21:09 m4n0v31

Are you running the latest Dev firmware or stable one?

Because the latest dev includes a few of your requested features:

Second door sensor Second door opener button Extended patterns for second door Second door phone pickup sensor Second door phone hangup sensor Extended patterns for second door phone pickup

The other things can be easily extended. I considered to extend the ring to open mode with a setting like applies to "both doors", "only first door", "only secomd door".

AzonInc avatar Sep 29 '24 22:09 AzonInc

I'm running stable. I'll try out dev and let you know. Thx

m4n0v31 avatar Sep 30 '24 04:09 m4n0v31

I'm running stable. I'll try out dev and let you know. Thx

But please note that the Dev version is mostly a rewrite and works differently.

It doesn't really use commands in the way stable used them. So you have to set it up again.

Please follow the getting started guide of the Dev version. It has all the information you will need.

AzonInc avatar Sep 30 '24 08:09 AzonInc

OK, I tried to switch to dev by changing the package in the doorman-s3.yaml file from esphome to: AzonInc.Doorman: github://AzonInc/doorman/firmware/doorman-stock.yaml@dev

but I get the following:

Failed config

number.template: [source /config/.esphome/packages/efae6b5d/firmware/addons/memory-utils.yaml:22]
  
  optimistic cannot be used with lambda.

m4n0v31 avatar Sep 30 '24 08:09 m4n0v31

but I get the following:

Should be fixed now.

Please do not use the new entities for memory dump, Ringtones and Volume yet. As I dont know the impact on models other than ISH3030.

AzonInc avatar Sep 30 '24 09:09 AzonInc

On the other side. How long until the changes I'm interested in make it to "stable"? Is it worth to switch to dev and then stay there?

m4n0v31 avatar Sep 30 '24 09:09 m4n0v31

On the other side. How long until the changes I'm interested in make it to "stable"? Is it worth to switch to dev and then stay there?

Maybe two or three more weeks when im Back in Germany with more time.

The dev version improves the Plug & Play experience a lot as no commands are needed and the TCS protocol is implemented to some extent. But also has some breaking changes due to removal or renaming some entities.

I will write everything down(Discord announcements) in detail when it's ready.

AzonInc avatar Sep 30 '24 09:09 AzonInc

do you know if it is possible to override the "initial_value" of the globals in the yaml file, so I can already put in my commands and don't care if I switch from one branch to the other?

m4n0v31 avatar Sep 30 '24 11:09 m4n0v31

Thats not gonna work as all the commands dont exist in dev.

Can you tell me the commands to switch the video? So I can implement the protocol for it.

The new system is using serial numbers only and is saving them separately. A new setup process is necessary to save the serial number to the flash. It's as simple as pressing a button.

AzonInc avatar Sep 30 '24 12:09 AzonInc

I just looked at the code and it's like that: There is a pick up phone sensor which triggers whenever you talk to the entrance or second door. So both of them trigger the pickup phone pattern.

It's the same behaviour for the hang up phone sensor. it doesn't matter which station youre talking to. Whenever you hang up the phone it will trigger.

If you however want to separate the sensors for the two phone pickup and hang up commands, you would need to edit the yaml and add two the sensors accordingly.

The second doorbell sensor triggers the same doorbell pattern event entity. But it uses the second_ event types: - "apartment_single" - "apartment_double" - "apartment_triple" - "entrance_single" - "entrance_double" - "entrance_triple" - "second_entrance_single" - "second_entrance_double" - "second_entrance_triple"

So based on your request the following is already in dev:

  • be able to configure the command for the doorbell at second door and show this as an entity (in the same way "apartment doorbell" and "entrance doorbell" are made)
  • be able to detect and react on pattern at second doorbell
  • be able to insert two command for the phone pick up (any of the two is valid as phone pick up)
  • be able to insert two command for the phone hand up (any of the two is valid as phone hang up)

This needs to be done:

  • be able to have "ring to open" active also at second doorbell, or have the possibility of configure "ring to open" so that the entrance door is open and after 10s the second door is open.

Ring To Open The ring to open changes are more complex as they involve more than one door and has a ring once option. This option turns off the mode after then entrance station rings.

Soo I changed the behaviour and introduced a Triggering Door Station Select where you can select which door triggers the automation. Either Entrance, Second Entrance or Any.

However Any is not compatible with the Ring Once Mode.

AzonInc avatar Sep 30 '24 17:09 AzonInc

Please check the latest release and open a new issue if there is still something missing.

AzonInc avatar Nov 16 '24 22:11 AzonInc