AzonInc / Doorman

ESP32-S3 based Intercom Gateway (TCS:Bus / Koch TC:Bus / Niko / Scantron / Analogue Systems)
https://doorman.azon.ai
GNU General Public License v3.0
35 stars 1 forks source link

Feature: Second Doorbell #24

Open m4n0v31 opened 3 weeks ago

m4n0v31 commented 3 weeks ago

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:

The system has:

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 :

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

AzonInc commented 3 weeks ago

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".

m4n0v31 commented 3 weeks ago

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

AzonInc commented 3 weeks ago

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.

m4n0v31 commented 3 weeks ago

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.
AzonInc commented 3 weeks ago

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.

m4n0v31 commented 3 weeks ago

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?

AzonInc commented 3 weeks ago

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.

m4n0v31 commented 3 weeks ago

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?

AzonInc commented 3 weeks ago

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 commented 3 weeks ago

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:

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

This needs to be done:

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.