Hikvision Doorbell / Videointercom integration

No, don’t install the go2rtc add-on , update the version inside the frigate add-on, as explained on my GitHub

I believe the new beta frigate add-on already includes a newer version

Ok ok thanks I solved it, now that part works.

Now my problem is the Hass frigate card, I copy pasted your code, changed the entity-id with mine, but it gives error in Lovelace, I tried it all, checked indentation 10 times, something I am missing?

When I keep this part, it works but of course shows only the camera no controls,


      - type: custom:frigate-card
        cameras:
          - camera_entity: camera.door12n_f
            live_provider: go2rtc
            go2rtc:
              modes:
                - webrtc

once I add all code I get the error

Screenshot 2024-01-26 092045


      - type: custom:frigate-card
        cameras:
          - camera_entity: camera.door12n_f
            live_provider: go2rtc
            go2rtc:
              modes:
                - webrtc
        menu:
          style: outside
          position: bottom
          buttons:
            microphone:
              enabled: true
              type: toggle
            screenshot:
              enabled: false
            download:
              enabled: false
            fullscreen:
              enabled: false
            snapshots:
              enabled: false
            timeline:
              enabled: false
            media_player:
              enabled: false
            clips:
              enabled: false
            live:
              enabled: false
            cameras:
              enabled: false
            frigate:
              enabled: false
            camera_ui:
              enabled: false
        live:
          auto_mute: never
          controls:
            builtin: true
            title:
              mode: none
          layout:
            fit: fill
        elements:
          - type: custom:frigate-card-menu-icon
            icon: mdi:volume-high
            tap_action:
              - action: custom:frigate-card-action
                frigate_card_action: unmute
          - type: custom:frigate-card-menu-icon
            icon: mdi:volume-off
            tap_action:
              - action: custom:frigate-card-action
                frigate_card_action: mute
          - type: custom:frigate-card-menu-icon
            icon: mdi:phone
            tap_action:
              - action: call-service
                service: button.press
                data:
                  entity_id: button.door12_answer_call
              - action: call-service
                service: button.press
                data:
                  entity_id: button.door12_hangup_call
              - action: custom:frigate-card-action
                frigate_card_action: unmute
              - action: custom:frigate-card-action
                frigate_card_action: microphone_unmute
          - type: custom:frigate-card-menu-icon
            icon: mdi:phone-hangup
            tap_action:
              - action: custom:frigate-card-action
                frigate_card_action: microphone_mute
          - type: custom:frigate-card-menu-icon
            icon: mdi:door-open
            hold_action:
              - action: call-service
                service: switch.turn_on
                data:
                  entity_id: switch.door12_door_relay_0
         dimensions:
          aspect_ratio_mode: static
          aspect_ratio: '16:9'

its not about code/identitaion, your frigate card isnt installed correctly
Maybe a cache issue, maybe you ddnt add it to your resources?

I edited my message after your answer: with simple code it works, with all the code it gives error. I edited my previous message, to show the two cases

your code is fine, its the card that isnt installed correctly

custom element doesnt exist means => card is not found
if its the code, then you will see other errors , it would even load the UI

Try deleting cache, i always test in chrome incognito mode, thats the best test to see if all cards are installed

Yeah some weird HACS thing, I solved I don’t even know how to replicate, just a good combination of clearing cache and restart.

Now all works except the answer button, when I click on it I get this as a popup in chrome bottom left

Failed to call service button/press. must contain at least one of entity_id, device_id, area_id.

yes, check the service with dev tools, and then paste it in the card

also try to use “service_data” instead of “data”

i updated the docs, but seems the new card is not released yet, so you need to use “service_data”
I changed my github page back to old version

its strange sometimes it does it sometomes not, changing to service_data its the same

what error do you see then in the log? it should work always, maybe again a cache issue
what error do you see now then? check also HA log itself

Just now someone ringed doorbell, when I press answer button gives popup error.
Failed to call service button/press. must contain at least one of entity_id, device_id, area_id

Below the log.
Maybe has to do because I use frigate full access version?

Can’t send file with kwargs: {‘url’: ‘https://myip/api/frigate/notifications/1706342144.5153-vnb13e/door12n-f/clip.mp4’, ‘timeout’: 1000, ‘caption’: ‘A person was detected on door12n-f camera’}
09:11:04 – (ERROR) Telegram bot - message first occurred at January 26, 2024 at 22:34:46 and shows up 82 times
Can’t load data into ByteIO: HTTPConnectionPool(host=‘ccab4aaf-frigate’, port=5000): Max retries exceeded with url: /api/events/1706340416.666693-7go9zx/thumbnail.jpg (Caused by NewConnectionError(‘<urllib3.connection.HTTPConnection object at 0x7fb0b4692810>: Failed to establish a new connection: [Errno -5] Name has no usable address’))
09:10:18 – (ERROR) Telegram bot - message first occurred at January 26, 2024 at 22:34:46 and shows up 41 times

You are still with an issue with the code/cache/card…

Maybe your code is wrong? I changed like this
(sorry I am with phone doesn’t show code icon for formatting code)
(BTW why unmute and after microphone_unmute?)

MY CODE


elements:
  - type: custom:frigate-card-menu-icon
    icon: mdi:volume-high
    tap_action:
      - action: custom:frigate-card-action
        frigate_card_action: unmute
  - type: custom:frigate-card-menu-icon
    icon: mdi:volume-off
    tap_action:
      - action: custom:frigate-card-action
        frigate_card_action: mute
  - type: custom:frigate-card-menu-icon
    icon: mdi:phone
    tap_action:
      - action: call-service
        service: button.press
        service_data:
          entity_id: button.door12_answer_call
      - action: custom:frigate-card-action
        frigate_card_action: unmute
      - action: custom:frigate-card-action
        frigate_card_action: microphone_unmute
  - type: custom:frigate-card-menu-icon
    icon: mdi:phone-hangup
    tap_action:
      - action: call-service
        service: button.press
        service_data:
          entity_id: button.door12_hangup_call
      - action: custom:frigate-card-action
        frigate_card_action: microphone_mute
  - type: custom:frigate-card-menu-icon
    icon: mdi:door-open
    hold_action:
      - action: call-service
        service: switch.turn_on
        data:
          entity_id: switch.door12_door_relay_0
dimensions:
  aspect_ratio_mode: static
  aspect_ratio: '16:9'

YOUR CODE


 elements:
          - type: custom:frigate-card-menu-icon
            icon: mdi:volume-high
            tap_action:
              - action: custom:frigate-card-action
                frigate_card_action: unmute
          - type: custom:frigate-card-menu-icon
            icon: mdi:volume-off
            tap_action:
              - action: custom:frigate-card-action
                frigate_card_action: mute
          - type: custom:frigate-card-menu-icon
            icon: mdi:phone
            tap_action:
              - action: call-service
                service: button.press
                data:
                  entity_id: button.door12_answer_call
              - action: call-service
                service: button.press
                data:
                  entity_id: button.door12_hangup_call  #  <====== ??????
              - action: custom:frigate-card-action
                frigate_card_action: unmute
              - action: custom:frigate-card-action
                frigate_card_action: microphone_unmute
          - type: custom:frigate-card-menu-icon
            icon: mdi:phone-hangup
            tap_action:                                          #     <==========  missing hang up call?
              - action: custom:frigate-card-action
                frigate_card_action: microphone_mute   
          - type: custom:frigate-card-menu-icon
            icon: mdi:door-open
            hold_action:
              - action: call-service
                service: switch.turn_on
                data:
                  entity_id: switch.door12_door_relay_0

Yeah, try to post formatted code… But I think you didn’t intent the “entity_id”

Microphone_mute and mute and different things, one is audio, one is micro

Ok I edited the post from PC. Ok got it the mute and microphone_mute difference.

Is not possible to have a button press like the Hikconnect app (the micriphone icon in that app), when pressed it acrivates the dual audio communication ?

The microphone button enables two way audio, the same as in hikconnect…

Only on a real incoming call, you first need to answer it, then unmute, that’s why there are multiple services

I don’t see the microphone button…?

Did you check my edited post?

Show me with a picture

On android phone. On pc shows microphone, now I noticed