Skip to content

Added the option 'muted' and hass.callService per stream - #954

Open
slydiman wants to merge 1 commit into
AlexxIT:masterfrom
slydiman:stream-click-service
Open

Added the option 'muted' and hass.callService per stream#954
slydiman wants to merge 1 commit into
AlexxIT:masterfrom
slydiman:stream-click-service

Conversation

@slydiman

@slydiman slydiman commented Jul 17, 2026

Copy link
Copy Markdown

I'm trying to implement Hikvision doorbell using only WebRTC Camera. The idea was here. But go2rtc is native for WebRTC Camera. The minimal card configuration for HikVision DS-KB8113-IME1(B) is the following:

- type: 'custom:webrtc-camera'
  ui: true
  muted: false
  streams:
    - url: doorbell_2way_audio
      mode: webrtc
      name: "😶"
      muted: true
      media: video,audio
    - url: doorbell_2way_audio
      mode: webrtc
      name: "🗣️"
      muted: false
      media: video,audio,microphone
      service: button.press
      service_data:
        entity_id: button.doorbell_answer_call
  shortcuts:
  - name: Unlock
    icon: mdi:door-open
    service: switch.turn_on
    service_data:
      entity_id: switch.doorbell_door_relay_0
  style: "video {aspect-ratio: 16/9; object-fit: fill;} .pictureinpicture {display: none} .mode {display: none} .screenshot {display: none} .stream {font-size: 60px} ha-icon { --mdc-icon-size: 100px; }"

I'm trying to implement Hikvision doorbell using only WebRTC Camera.
The idea was https://github.com/pergolafabio/Hikvision-Addons/blob/main/advanced_card/twowayaudio.with.advanced.camera.card.md
But go2rtc is native for WebRTC Camera.
The minimal card configuration is the following:
```
- type: 'custom:webrtc-camera'
  poster: mycam_snapshot
  ui: true
  muted: false
  streams:
    - url: mycam_2way_audio
      mode: webrtc
      name: "😶"
      muted: true
      media: video,audio
      service: button.press
      service_data:
        entity_id: button.ds_kh9510_answer_call
    - url: mycam_2way_audio
      mode: webrtc
      name: "🗣️"
      muted: false
      media: video,audio,microphone
      service: text.set_value
      service_data:
        entity_id: text.ds_kd8003_isapi_request
        value: PUT /ISAPI/System/TwoWayAudio/channels/1/close
        message: "Domofon Call"
  shortcuts:
  - name: Unlock
    icon: mdi:door-open
    service: switch.turn_on
    service_data:
      entity_id: switch.ds_kd8003_door_relay_0
  style: "video {aspect-ratio: 16/9; object-fit: fill;} .pictureinpicture {display: none} .mode {display: none} .screenshot {display: none} .stream {font-size: 60px} ha-icon { --mdc-icon-size: 100px; }"
```
If button.press for button.ds_kh9510_answer_call is not enough you can create a script and call it here instead of button.press.
@slydiman
slydiman force-pushed the stream-click-service branch from 73f245d to 28df66c Compare July 17, 2026 18:13
@slydiman slydiman changed the title Added hass.callService on the stream click Added the option 'muted' and hass.callService per stream Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant