Clooos / Bubble-Card

Bubble Card is a minimalist card collection for Home Assistant with a nice pop-up touch.
MIT License
1.46k stars 41 forks source link

Hi! #373

Closed Trzinka closed 5 months ago

Trzinka commented 5 months ago

Hi!

I am looking for a solution to my problem.

I have a floor plan card before/through which I load a horizontal-stack card and then a vertical-stack card where I have 4 cameras set up with a custom:webrtc-camera card.

This is how it looks right now and I don't like it:

20240126-FP cameras

Would it be possible to arrange via the popup so that the video would be displayed if some of these sensors were detected

Frigat camera_1

I currently have it set up like this

type: vertical-stack
cards:
  - type: custom:bubble-card
    card_type: pop-up
    hash: '#pop-up-jedilnica'
    trigger_entity: binary_sensor.diane_all_occupancy
    trigger_close: true
    state: camera.jedilnica
    trigger_state: 'on'

I don't know iftrigger_state: 'on'' is correct given:`

20240127-Frigat-Jedilnica-HA Developer tools

I would like to have such an appearance that if the camera detects an object, a pop-up video play, if possible.

20240126-FP cameras-Motion

Originally posted by @Trzinka in https://github.com/Clooos/Bubble-Card/discussions/289#discussioncomment-8264390

Clooos commented 5 months ago

Hi, your YAML should work. What is the problem exactly?

Trzinka commented 5 months ago

Hi!

Thanks for the reply.

I found a solution with a conditional function that suits me better.

I found that the frigates lacked sensors that would better suit my needs.

If you are interested in how I solved it, see https://github.com/ExperienceLovelace/ha-floorplan/discussions/416