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

 找回密码
 立即注册
查看: 5604|回复: 0

[求助] aqara无线开关的自动化配置不起作用,请各位大神指点一下

[复制链接]

1

主题

55

帖子

529

积分

高级会员

Rank: 4

积分
529
金钱
473
HASS币
0
发表于 2021-1-24 21:56:41 | 显示全部楼层 |阅读模式
- alias: doorbell on single press
  trigger:
    platform: event
    event_type: xiaomi_aqara.click
    event_data:
      entity_id: sensor_switch.aq3_158d00054d7cc6
      click_type: single
  action:
    service: media_player.play_media
    entity_id:
      - media_player.homepod_2
      - media_player.homepod
    media_content_id: /media/doorbell-once.mp3
    media_content_type: music

- alias: doorbell on double press
  trigger:
    platform: event
    event_type: xiaomi_aqara.click
    event_data:
      entity_id: sensor_switch.aq3_158d00054d7cc6
      click_type: double
  action:
    service: media_player.play_media
    entity_id:
      - media_player.homepod_2
      - media_player.homepod
    media_content_id: /media/doorbell-twice.mp3
    media_content_type: music

- alias: doorbell on long press
  trigger:
    platform: event
    event_type: xiaomi_aqara.click
    event_data:
      entity_id: sensor_switch.aq3_158d00054d7cc6
      click_type: long_click_press
  action:
    service: media_player.play_media
    entity_id:
      - media_player.homepod_2
      - media_player.homepod
    media_content_id: /media/doorbell-always.mp3
    media_content_type: music

回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-25 07:57 , Processed in 0.281716 second(s), 23 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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