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

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

[复制链接]

175

主题

462

回帖

3832

积分

论坛元老

积分
3832
金钱
3190
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, 2025-5-5 09:10 , Processed in 0.141243 second(s), 22 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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