Hey there,
especially @fwestenberg (sorry for sneaky tagging ).
First: I thought creating a topic here is better than creating an issue in GutHub.
I’m unfortunately not getting the motion detection to work for my E1 Zoom. Camera stream works well (although the preview image only shows 50% of the time, dunno yet what the cause for that is) but the motion detection doens’t work for me. Neither the binary_sensor triggers, nor does the switch work to en/disable it. And the motion detection is always listed as “false”:
access_token: xxx
last_update: '2020-08-08T12:59:26.903392'
ftp_enabled: true
email_enabled: false
ir_lights_enabled: false
recording_enabled: true
ptzpresets: {}
motion_detection_enabled: false
friendly_name: '[Living Room] Camera'
entity_picture: >-
/api/camera_proxy/camera.living_room_camera?token=xxx
supported_features: 2
The motion detection though works in the Reolink app: When I walk pass the camera, I get an instant notification on my phone.
That’s my configuration:
ffmpeg:
camera:
- platform: reolink_dev
host: 192.168.178.57
username: admin
password: my-password
name: "[Living Room] Camera"
stream: main
protocol: rtmp
channel: 0
scan_interval: 30
switch:
- platform: template
switches:
living_room_camera_motion_detection:
value_template: "{{ is_state_attr('camera.living_room_camera', 'motion_detection_enabled', true) }}"
turn_on:
service: camera.enable_motion_detection
data:
entity_id: camera.living_room_camera
turn_off:
service: camera.disable_motion_detection
data:
entity_id: camera.living_room_camera
icon_template: >-
{% if is_state_attr('camera.living_room_camera', 'motion_detection_enabled', true) %}
mdi:motion-sensor
{% else %}
mdi:motion-sensor-off
{% endif %}
binaray_sensor:
- platform: template
sensors:
living_room_camera_motion:
friendly_name: "[Living Room] Camera Motion Detection"
device_class: motion
entity_id: camera.living_room_camera
value_template: "{{ is_state('camera.living_room_camera', 'motion') }}"
delay_off:
seconds: 30
I also have the IR, email and FTP switches configured, but I cut them out as I thought they are irrelevant for this topic.
Hope somebody has an idea
Thanks and greetings,
Andy!