esphome / feature-requests

ESPHome Feature Request Tracker
https://esphome.io/
420 stars 26 forks source link

Sending DTMF codes after answering of a call. SIM800L #2169

Open runestone74 opened 1 year ago

runestone74 commented 1 year ago

Describe the problem you have/What new integration you would like

Please describe your use case for this integration and alternatives you've tried:

Additional context

It would be nice to make a SIM800 module that listens for incoming calls from the entrance phone, that is linked to a ordinary phone number. As with many entrance systems, it is used by answering the call, listening who is there and pressing "5" on the phone keypad to open the gate.

This would need an option to send DTMF tones after answering the call. The command is the same either way AT+VTD=x where x is *#1234567890 (and ABCD?) This command is optional, and is used to set the DTMF tone duration in 100mS steps: AT+VTS=x

runestone74 commented 1 year ago

Made a custom template that works in the meantime, maybe someone else will have use for that :)

  - platform: template
    name: "SIM800_PRESS_5"
    turn_on_action:
      - uart.write: "AT+CLDTMF=2,\"5\"\r\n"
    restore_mode: ALWAYS_OFF
nagyrobi commented 1 year ago

used by answering the call, listening who is there

How do you listen to who is there?

runestone74 commented 1 year ago

I will make a custom made HomeKit template in Home Assistant with a camera showing video when someone calls, and then I just open the gate when I see who it is. I made a similar Frankenstein-mod for opening of the the carport via Apples native carport integration, with templating in Home Assistant.

Something like this:

homekit:
  entity_config:
    camera.doorbell
      name: Doorbell
      support_audio: false
      linked_doorbell_sensor: binary_sensor.some_other_button