Ich verwende eine C210 auch mit Tapo-Control aus dem HACS.
In diesem Sinne teile ich mal meine Karten: (die Kamera ist gerade offline, daher kein Bild und kein Motion Sensor)
type: vertical-stack
cards:
- type: custom:vertical-stack-in-card
cards:
- type: picture-glance
title: Küche
camera_image: camera.tapocam_hd_stream
camera_view: live
entity: camera.tapocam_hd_stream
entities:
- entity: camera.tapocam_hd_stream
style: |
:host .box {
display: none
}
- type: custom:layout-card
layout_type: custom:grid-layout
layout:
grid-template-columns: auto auto
cards:
- type: custom:mushroom-chips-card
chips:
- type: entity
entity: button.tapocam_move_left
tap_action:
action: toggle
- type: entity
entity: button.tapocam_move_up
tap_action:
action: toggle
- type: entity
entity: button.tapocam_move_down
tap_action:
action: toggle
- type: entity
entity: button.tapocam_move_right
tap_action:
action: toggle
- type: custom:mushroom-chips-card
chips:
- type: entity
entity: select.tapocam_motion_detection
- type: entity
entity: input_select.tapocam_modus
alignment: end
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
primary: Foto speichern
icon: mdi:camera-plus
entity: camera.tapocam_hd
tap_action:
action: call-service
service: camera.snapshot
data:
filename: >-
/config/www/tapocam/snap_{{ now().strftime("%d.%m.%Y_%H.%M")
}}.jpg
target:
entity_id: camera.tapocam_hd
icon_color: blue
- type: custom:mushroom-template-card
primary: Fotos anschauen
icon: mdi:view-gallery
entity: camera.tapocam_hd
tap_action:
action: navigate
navigation_path: >-
/media-browser/browser/app%2Cmedia-source%3A%2F%2Fmedia_source/%2Cmedia-source%3A%2F%2Fmedia_source%2Flocal%2Ftapocam
icon_color: blue
- type: custom:vertical-stack-in-card
cards:
- type: custom:mushroom-entity-card
entity: automation.kamera_foto_bei_bewegung
name: Automatisches Foto bei Bewegung
icon: mdi:camera-plus
tap_action:
action: toggle
- type: custom:mushroom-entity-card
name: Automatisches Video bei Bewegung (10 Sek.)
entity: automation.15_sek_video_bei_bewegung
icon: mdi:video
tap_action:
action: toggle
- type: custom:vertical-stack-in-card
horizontal: true
cards:
- type: custom:mushroom-entity-card
entity: binary_sensor.tapocam_motion
name: Bei Bewegung
icon_color: blue
secondary_info: none
- type: custom:mushroom-chips-card
chips:
- type: entity
entity: automation.notification_tapocam_bewegung
name: Alex benachrichtigen
content_info: name
icon: mdi:message
tap_action:
action: toggle
icon_color: blue
- type: entity
entity: automation.tapocam_4_renzo
name: Rene benachrichtigen
content_info: name
icon: mdi:message
tap_action:
action: toggle
icon_color: blue
Und hier die Automation für ein 10-sekündiges Video bei Bewegung:
alias: "Kamera: 10 Sek. Video bei Bewegung"
description: ""
trigger:
- platform: state
entity_id:
- binary_sensor.tapocam_motion
from: "off"
to: "on"
for:
hours: 0
minutes: 0
seconds: 1
condition: []
action:
- service: camera.record
data:
filename: >-
/config/www/tapocam/videos/{{ now().strftime("%d.%m.%Y") }}/{{
now().strftime("%H-%M") }}.mp4
duration: 10
target:
device_id: b52ed24fd7f331190902677f0554fc16
mode: single
