『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
楼主: ms2

[经验分享] tp-link摄像头基于ONVIF的移动监测及PTZ设置分享

  [复制链接]

21

主题

717

帖子

3674

积分

论坛元老

Rank: 8Rank: 8

积分
3674
金钱
2952
HASS币
20
 楼主| 发表于 2024-7-12 14:50:17 | 显示全部楼层
henry2022 发表于 2024-7-6 18:40
博主会开发SDK吗?我找tp的技术要来了 物联APP 的SDK包含所有APP可用功能,就是部署在本地获取和控制摄像头 ...

理论上应该是为了省成本物理阉割了,跟SDK无关
回复

使用道具 举报

11

主题

401

帖子

2154

积分

金牌会员

Rank: 6Rank: 6

积分
2154
金钱
1753
HASS币
0
发表于 2024-7-12 15:15:47 | 显示全部楼层
type: picture-glance
entities:
  - entity: camera.hkipc_ke_ting_substream
    tap_action:
      action: call-service
      service: onvif.ptz
      service_data:
        tilt: UP
        speed: 1
        distance: 0.5
        move_mode: ContinuousMove
      target:
        entity_id: camera.hkipc_ke_ting_substream
    name: Pan Up
    show_state: false
    icon: mdi:arrow-up
    show_icon: true
  - entity: camera.hkipc_ke_ting_substream
    tap_action:
      action: call-service
      service: onvif.ptz
      service_data:
        tilt: DOWN
        speed: 1
        distance: 0.5
        move_mode: ContinuousMove
      target:
        entity_id: camera.hkipc_ke_ting_substream
    name: Pan Down
    show_state: false
    icon: mdi:arrow-down
    show_icon: true
  - entity: camera.hkipc_ke_ting_substream
    tap_action:
      action: call-service
      service: onvif.ptz
      service_data:
        pan: LEFT
        speed: 1
        distance: 0.5
        move_mode: ContinuousMove
      target:
        entity_id: camera.hkipc_ke_ting_substream
    name: Pan Left
    show_state: false
    icon: mdi:arrow-left
    show_icon: true
  - entity: camera.hkipc_ke_ting_substream
    tap_action:
      action: call-service
      service: onvif.ptz
      service_data:
        pan: RIGHT
        speed: 1
        distance: 0.5
        move_mode: ContinuousMove
      target:
        entity_id: camera.hkipc_ke_ting_substream
    name: Pan Right
    show_state: false
    icon: mdi:arrow-right
    show_icon: true
  - entity: camera.hkipc_ke_ting_substream
    tap_action:
      action: call-service
      service: onvif.ptz
      service_data:
        zoom: ZOOM_IN
        distance: 0.5
        move_mode: ContinuousMove
      target:
        entity_id: camera.hkipc_ke_ting_substream
    name: Zoom In
    show_state: false
    icon: mdi:magnify-plus
    show_icon: true
  - entity: camera.hkipc_ke_ting_substream
    tap_action:
      action: call-service
      service: onvif.ptz
      service_data:
        zoom: ZOOM_OUT
        distance: 0.5
        move_mode: ContinuousMove
      target:
        entity_id: camera.hkipc_ke_ting_substream
    name: Zoom Out
    show_state: false
    icon: mdi:magnify-minus
    show_icon: true
  - entity: camera.hkipc_ke_ting_substream
    tap_action:
      action: call-service
      service: onvif.ptz
      service_data:
        entity_id: camera.hkipc_ke_ting_substream
        preset: 预置点1
        distance: 0.5
        move_mode: ContinuousMove
    name: Preset 1
    show_state: false
    icon: mdi:numeric-1-box
    show_icon: true
  - entity: camera.hkipc_ke_ting_substream
    tap_action:
      action: call-service
      service: onvif.ptz
      service_data:
        entity_id: camera.hkipc_ke_ting_substream
        preset: 预置点 8
        distance: 0.5
        move_mode: ContinuousMove
    name: Preset 2
    show_state: false
    icon: mdi:numeric-2-box
    show_icon: true
camera_image: camera.hkipc_ke_ting_substream
camera_view: live
title: 客厅
用的这个卡片,左右上下变焦都正常,就是预置点调用不行,语音对讲,去搜了一下go2rtc WebRTC有点懵逼
回复

使用道具 举报

3

主题

37

帖子

1032

积分

论坛DIY达人

积分
1032
金钱
995
HASS币
0
发表于 2024-7-12 15:22:05 | 显示全部楼层
ms2 发表于 2024-7-12 14:50
理论上应该是为了省成本物理阉割了,跟SDK无关

他们技术说,只要摄像头硬件支持,在物联APP可以实现的功能,SDK内的功能都能实现。
回复

使用道具 举报

0

主题

3

帖子

28

积分

新手上路

Rank: 1

积分
28
金钱
25
HASS币
0
发表于 2024-7-14 14:33:25 | 显示全部楼层
多谢分享,看看怎么接入
回复

使用道具 举报

1

主题

12

帖子

60

积分

注册会员

Rank: 2

积分
60
金钱
48
HASS币
0
发表于 2024-7-15 08:49:40 | 显示全部楼层
回复

使用道具 举报

11

主题

401

帖子

2154

积分

金牌会员

Rank: 6Rank: 6

积分
2154
金钱
1753
HASS币
0
发表于 2024-7-15 08:59:21 | 显示全部楼层
penwong 发表于 2024-7-15 08:49
https://post.smzdm.com/p/al8n22n0/
试试这个

这个资源占用很大,已经弃了
回复

使用道具 举报

25

主题

215

帖子

1577

积分

金牌会员

Rank: 6Rank: 6

积分
1577
金钱
1362
HASS币
0
发表于 2024-7-15 10:54:41 | 显示全部楼层
物联APP里的云台的遮蔽和开启怎么实现
回复

使用道具 举报

0

主题

31

帖子

190

积分

注册会员

Rank: 2

积分
190
金钱
159
HASS币
0
发表于 2024-7-15 10:57:06 | 显示全部楼层
謝謝分享
回复

使用道具 举报

0

主题

2

帖子

18

积分

新手上路

Rank: 1

积分
18
金钱
16
HASS币
0
发表于 2024-7-15 15:01:44 | 显示全部楼层
我的也是TP-LINK,刚接触HA,看看。。
回复

使用道具 举报

0

主题

20

帖子

164

积分

注册会员

Rank: 2

积分
164
金钱
144
HASS币
0
发表于 2024-7-18 09:05:05 | 显示全部楼层
学习一下
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-9-8 10:06 , Processed in 0.056786 second(s), 30 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表