-
Hi.I have a question: how/with what would I make the floor plan card play the camera video (pop-up) in the window if figate detects objects on the individual camera?
|
Beta Was this translation helpful? Give feedback.
Answered by
Trzinka
Jan 27, 2024
Replies: 2 comments 2 replies
-
I’m not 100% sure but you would have to start by finding an entity with a state that changes on object detection. |
Beta Was this translation helpful? Give feedback.
2 replies
-
I finally found a solution that works best for me (it's not perfect).
views:
- title: Floor plan
path: floorplan
theme: blue_night
icon: mdi:floor-plan
panel: true
type: panel
badges: []
cards:
- type: horizontal-stack
cards:
- type: vertical-stack
cards:
- type: conditional
conditions:
- condition: state
entity: binary_sensor.jedilnica_motion
state: 'on'
card:
type: custom:webrtc-camera
card_mod:
style: |
:host {
position: absolute !important;
heigh: auto;
max-width: 18vw !important;
top: 100px !important;
left: 40px !important;
z-index: 1 !important;
}
url: rtsp://192.168.1.42:8554/Jedilnica
ui: true
poster: /local/img/fp/prosojna.png
muted: true
background: true
intersection: 0.75
mode: webrtc,webrtc/tcp,mse,hls,mjpeg
- type: conditional
conditions:
- condition: state
entity: binary_sensor.diane_motion
state: 'on'
card:
type: custom:webrtc-camera
card_mod:
style: |
:host {
position: absolute !important;
heigh: auto;
max-width: 18vw !important;
bottom: 100px !important;
left: 40px !important;
z-index: 1 !important;
}
url: rtsp://192.168.1.42:8554/Di
ui: true
poster: /local/img/fp/prosojna.png
muted: true
background: true
intersection: 0.75
mode: webrtc,webrtc/tcp,mse,hls,mjpeg
- type: conditional
conditions:
- condition: state
entity: binary_sensor.nathalie_motion
state: 'on'
card:
type: custom:webrtc-camera
card_mod:
style: |
:host {
position: absolute !important;
heigh: auto;
max-width: 18vw !important;
top: 100px !important;
right: 40px !important;
z-index: 1 !important;
}
url: rtsp://192.168.1.42:8554/Nata
ui: true
poster: /local/img/fp/prosojna.png
muted: true
background: true
intersection: 0.75
mode: webrtc,webrtc/tcp,mse,hls,mjpeg
- type: conditional
conditions:
- condition: state
entity: binary_sensor.spalnica_motion
state: 'on'
card:
type: custom:webrtc-camera
card_mod:
style: |
:host {
position: absolute !important;
heigh: auto;
max-width: 18vw !important;
bottom: 100px !important;
right: 40px !important;
z-index: 1 !important;
}
url: rtsp://192.168.1.42:8554/Spalnica
ui: true
poster: /local/img/fp/prosojna.png
muted: true
background: true
intersection: 0.75
mode: webrtc,webrtc/tcp,mse,hls,mjpeg
- type: custom:floorplan-card
//this is where the floor plan card begins
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Trzinka
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I finally found a solution that works best for me (it's not perfect).
I'm using a Frigate for the sensor:
fp yaml code