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

 找回密码
 立即注册
12
返回列表 发新帖
楼主: ptlzx

[求助] 大方摄像头接入HA、homekit问题求解

[复制链接]

174

主题

634

帖子

3792

积分

论坛元老

Rank: 8Rank: 8

积分
3792
金钱
3153
HASS币
0
 楼主| 发表于 2018-12-16 08:18:10 | 显示全部楼层
本帖最后由 ptlzx 于 2018-12-16 20:20 编辑

请教下automations.yaml文件有没有错
- alias: 'Motion detected' #运动检测
  trigger:
    payload: 'ON'
    platform: mqtt
    topic: myhome/mycamera/motion
  action:
    service: notify.ios__iphone
    data:
      title: "Motion"
      message: "detected."

- alias: 'Start motion detection when not at home' #不在家时开始运动检测
  trigger:
      platform: zone
      event: leave
      zone: zone.home
      entity_id: switch.dafang_motion_tracking
  action:
    service: switch.turn_on
    data:
      entity_id: switch.dafang_motion_detection

- alias: 'Stop motion detection when at home' #在家时停止运动检测
  trigger:
      platform: zone
      event: enter
      zone: zone.home
      entity_id: switch.dafang_motion_tracking
  action:
    service: switch.turn_off
    data:
      entity_id: switch.dafang_motion_detection

回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-24 05:58 , Processed in 0.103577 second(s), 21 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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