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

 找回密码
 立即注册
查看: 3682|回复: 3

[求助] 天猫精灵怎么语音控制博联红外遥控控制电扇调速摇头定时

[复制链接]

34

主题

709

帖子

4693

积分

论坛元老

Rank: 8Rank: 8

积分
4693
金钱
3974
HASS币
50
发表于 2019-6-4 15:12:36 | 显示全部楼层 |阅读模式
现在用HA脚本发送红外码可以在网页控制,,怎么用猫精语音控制,设置开关只能开机关机。那么调速,摇头,定时等红外按键怎么用语音控制。。
configuration.yaml
fan:
  - platform: template
    fans:
      bedroom_fan:
        friendly_name: "Bedroom fan"
        value_template: "{{ states('input_boolean.state') }}"
        speed_template: "{{ states('input_select.speed') }}"
        oscillating_template: "{{ states('input_select.osc') }}"
        direction_template: "{{ states('input_select.direction') }}"
        turn_on:
          service: script.fan_on
        turn_off:
          service: script.fan_off
        set_speed:
          service: script.fan_speed
          data_template:
            speed: "{{ speed }}"
        set_oscillating:
          service: script.fan_oscillating
          data_template:
            oscillating: "{{ oscillating }}"
        set_direction:
          service: script.fan_direction
          data_template:
            direction: "{{ direction }}"
        speeds:
          - '1'
          - '2'
          - '3'


scripts.yaml
# 风扇开启
fan_on:
  sequence:
    - service_template:
        switch.broadlink_send_packet_192_168_123_206
      data:
        packet:
          - "JgDQACsOKQ4OKSoNKw4OKA8pDygPKQ8oKw0PAAEGKw0qDQ8pKg0rDg4oDykPKA8pDygrDQ8AAQYrDSsNDikrDSoODikOKQ8pDikPKSoODgABByoOKg4OKCsNKg4OKQ8oDykPKA8pKg0PAAEHKg0rDg4oKw0qDQ8pDygPKQ8oDykrDA8AAQcrDSoNDykqDSsNDikPKQ4pDykOKSsNDwABBisNKg0PKSoNKw4OKA8pDygPKQ8oKw4OAAEGKw0qDQ8pKwwrDQ8oDykPKA8pDygrDQ8ADQUAAAAAAAAAAA=="
# 风扇关闭
fan_off:
  sequence:
    - service_template:
        switch.broadlink_send_packet_192_168_123_206
      data:
        packet:
          - "JgDCACsNKg0PKCsNKw0OKQ8pDikPKQ4pDykq6ysNKg0PKSoNKw0PKA8pDygPKQ8oDykq6ysNKwwPKSsMKw0PKA8pDygPKQ8oDykr6isNKw0OKSsNKg0PKQ8oDykPKA8pDygr6yoNKw0PKCsNKg0PKQ8oDykPKA8pDygr6ysMKw0PKCsNKw0OKQ8oDykPKA8pDykq6ysNKg0PKSoNKw0PKA8pDygPKQ8oDykq6ysNKg0PKSoNKw0PKA8pDygPKQ8oDykrAA0FAAAAAAAA"
# 风扇摇头
fan_speed:
  sequence:
    - service_template:
        switch.broadlink_send_packet_192_168_123_206
      data:
        packet:
          - "JgDQACsOKQ4OKSoNKw4OKA8pDygPKQ8oKw0PAAEGKw0qDQ8pKg0rDg4oDykPKA8pDygrDQ8AAQYrDSsNDikrDSoODikOKQ8pDikPKSoODgABByoOKg4OKCsNKg4OKQ8oDykPKA8pKg0PAAEHKg0rDg4oKw0qDQ8pDygPKQ8oDykrDA8AAQcrDSoNDykqDSsNDikPKQ4pDykOKSsNDwABBisNKg0PKSoNKw4OKA8pDygPKQ8oKw4OAAEGKw0qDQ8pKwwrDQ8oDykPKA8pDygrDQ8ADQUAAAAAAAAAAA=="
# 风扇调速
fan_oscillating:
  sequence:
    - service_template:
        switch.broadlink_send_packet_192_168_123_206
      data:
        packet:
          - "JgAEASkPKQ8MKioPKA4OKg0rKQ4OKQ8pDikPAAEHKg0rDg4oKw4qDA8pDykqDg4oDykPKQ4AAQcrDSoODikqDioNDikPKSoODikOKQ8pDgABByoPKA8NKikPKA8NKg4qKA8NKwwrDSsNAAEIKQ8oDw0rKBAoDwwsDCsoEAwrDSsMKw0AAQkoDygQDCsoECgPDSsMKygQDCsNKwwrDQABCSgPKg4MKyoOKg0PKQ4pKw4NKQ8pDikPAAEHKA8sDA8oLAwrDg0pDykqDg4pDikPKQ8AAQYqDioNDykqDSoODikOKisMDykOKQ8pDgABBysOKQ4OKSoNKw4NKQ0rKg0NKwwrDSsMAA0FAAAAAA=="
# 风扇运行模式
fan_direction:
  sequence:
    - service_template:
        switch.broadlink_send_packet_192_168_123_206
      data:
        packet:
          - ""

回复

使用道具 举报

8

主题

2073

帖子

6053

积分

论坛元老

流水无味

Rank: 8Rank: 8

积分
6053
金钱
3980
HASS币
145

灌水之王

发表于 2019-6-4 15:25:17 | 显示全部楼层
尝试下直接在 智慧星对接天猫精灵
反正没反馈
回复

使用道具 举报

27

主题

2143

帖子

8930

积分

论坛元老

Rank: 8Rank: 8

积分
8930
金钱
6782
HASS币
30

论坛元老

发表于 2019-6-4 15:44:40 | 显示全部楼层
同楼上,没有反馈的东西,随便接一下就好了
回复

使用道具 举报

40

主题

2176

帖子

8286

积分

元老级技术达人

积分
8286
金钱
6095
HASS币
110
发表于 2019-6-5 14:17:30 | 显示全部楼层
要看猫精语音里允不允许这些指令
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-24 13:57 , Processed in 0.156156 second(s), 26 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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