homeassistant+broadlink

Posted _WILLPOWER_

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了homeassistant+broadlink相关的知识,希望对你有一定的参考价值。

文章目录






获取学习的base64码

Broadlink Manager下载链接

在下面这个路径保存着base64的json文件

C:\\Users\\Administrator\\AppData\\Roaming\\Broadlink

将其以脚本形式添加

文档

Broadlink集成的文档链接

以开关形式添加

switch:
  - platform: broadlink
    mac: 78:0F:77:47:C1:C5
    switches:
      - name: Changhong_TV
        command_on: JgBQAAABKZQTNxM3ExISEhM3EzcTEhI4EhITEhI4EjcTEhMSEjcTEhMSEhITEhISExISEhMSEjgSOBI4EjgSNxM3EzcTNxMSEgAFXgABKksTAA0FAAAAAAAAAAA=
        command_off: JgBQAAABKZQTNxM3ExISEhM3EzcTEhI4EhITEhI4EjcTEhMSEjcTEhMSEhITEhISExISEhMSEjgSOBI4EjgSNxM3EzcTNxMSEgAFXgABKksTAA0FAAAAAAAAAAA=

scripts

  sequence:
    - service: remote.send_command
      target:
        entity_id: remote.zhi_neng_yao_kong_remote
      data:
        command: b64:JgBIAAABK5MUNhQ2FBAVEBQ2FDYUEBU1FRAUEBU1FTUVEBISFTUVEBQQFDYUERQ1FRATEhM3EzYUNhQREzcTERQ2FTUUERMRFAANBQ==

tv_down:
  sequence:
    - service: remote.send_command
      target:
        entity_id: remote.zhi_neng_yao_kong_remote
      data:
        command: b64:JgBQAAABKZUSOBI4EhITEhI4EjcTEhM3ExISEhQ2EzcTEhISEzcTEhISEzcTEhISEzcTEhI4EjcTNxMSEzcTNxISEzcTEhISEwAFXgABKUwSAA0FAAAAAAAAAAA=

tv_left:
  sequence:
    - service: remote.send_command
      target:
        entity_id: remote.zhi_neng_yao_kong_remote
      data:
        command: b64:JgBQAAABK5IVNRU1FRAVDxU1FTUVDxU1FRAVDxU1FTUVEBUPFjQWDxU1FBAWDxQ2FTUUEBUQFDYUEBU1FjQVEBUPFjQWNBUQFQAFWwABK0oUAA0FAAAAAAAAAAA=

tv_right:
  sequence:
    - service: remote.send_command
      target:
        entity_id: remote.zhi_neng_yao_kong_remote
      data:
        command: b64:JgBIAAABKZQTNxM3ExITERM3EzcTEhM3EhITEhI4EjgSEhMSEjgSEhM3FRASEhMSEhITEhM3EjgSEhM3EzcTNxM3EzcTERMSEwANBQ==

tv_local:
  sequence:
    - service: remote.send_command
      target:
        entity_id: remote.zhi_neng_yao_kong_remote
      data:
        command: b64:JgBIAAABKZQTNxM3ExEUERM3EzcTERQ2FBETERM3FDYTERQREzcTERQREzcTERQRExEUERMRFDYUNhQREzcTNxQ2EzcUNRUQFQANBQ==

tv_mainpage:
  sequence:
    - service: remote.send_command
      target:
        entity_id: remote.zhi_neng_yao_kong_remote
      data:
        command: b64:JgBQAAABKZQUNhM3ExITERM3EzcTEhI4EhITEhI4EjgSEhMSEjgSEhMSEhITEhM3EhITEhISEzcTNxM3FDYTEhI4EzcTNhMSEwAFXQABKksTAA0FAAAAAAAAAAA=

tv_return:
  sequence:
    - service: remote.send_command
      target:
        entity_id: remote.zhi_neng_yao_kong_remote
      data:
        command: b64:JgBIAAABKZQTNxM3ExITERM3FDYUERI4EhITEhI4EjgSEhMSEjgSEhM3FBESOBISFBESEhM3FDYTEhI4EhITNxM3EzcTERMSEwANBQ==

tv_sure:
  sequence:
    - service: remote.send_command
      target:
        entity_id: remote.zhi_neng_yao_kong_remote
      data:
        command: b64:JgBIAAABKZQTNxM3ExETEhM3EzcSEhM3ExISEhM3EzcTEhISEzcTEhISEzcTNxM3ExISEhM3EzcTNxISExITERM3EzcTEhISEwANBQ==

tv_power:
  sequence:
    - service: remote.send_command
      target:
        entity_id: remote.zhi_neng_yao_kong_remote
      data:
        command: b64:JgBIAAABKZQSExM3ExMSExMSEzcTExITEzcTEhM3EzcUNhMTEzYTNxM3FDYVNRMTEhMTEhMTEzcSExMTEhMTNxI4EjgSOBMSFAANBQ==

tv_vdown:
  sequence:
    - service: remote.send_command
      target:
        entity_id: remote.zhi_neng_yao_kong_remote
      data:
        command: b64:JgBIAAABKpMUNhM3ExETEhM3EzcSEhM3ExISEhM3EzcTEhISEzcTEhI4EhITEhISExISEhMSEjgSEhM3EzcTNxI4EjgSOBISEwANBQ==

tv_vup:
  sequence:
    - service: remote.send_command
      target:
        entity_id: remote.zhi_neng_yao_kong_remote
      data:
        command: b64:JgBQAAABKZQTNxM3ExISEhM3EzcTEhI4EhITEhI4EjcTEhMSEjcTEhMSEhITEhISExISEhMSEjgSOBI4EjgSNxM3EzcTNxMSEgAFXgABKksTAA0FAAAAAAAAAAA=

tv_showup:
  sequence:
    - service: remote.send_command
      target:
        entity_id: remote.zhi_neng_yao_kong_remote
      data:
        command: b64:JgBIAAABKZQTNxI4EhITEhI4EjgSEhM3FBESEhM3FDYTERMSEzcTERM3ExITNxISFBESEhMSEzcTERM3FBESOBM3EjgSOBMREwANBQ==

tv_showdown:
  sequence:
    - service: remote.send_command
      target:
        entity_id: remote.zhi_neng_yao_kong_remote
      data:
        command: b64:JgBIAAABKpMTNxM3ExISEhM3EzcTEhI3FBETEhI3FDYTEhMSEjcUERMSEjcTNxMSEhITEhMREzcTNxMSExETNxQ2FDYTNxMSEwANBQ==

tv_1:
  sequence:
    - service: remote.send_command
      target:
        entity_id: remote.zhi_neng_yao_kong_remote
      data:
        command: b64:JgBIAAABKpQUNhQ2EhITEhQ2EzcUEBU1ExIUEBM3EzcTEhQQEzcVEBQQEzcVEBMREzcUERMREzcVNRUQFDYSOBQQEzcTNxUQFAANBQ==

tv_2:
  sequence:
    - service: remote.send_command
      target:
        entity_id: remote.zhi_neng_yao_kong_remote
      data:
        command: b64:JgBIAAABK5MUNhQ2FBAVEBQ2FDYUEBU1FRAUEBU1FTUVEBQQFTUVEBQ2FDUVEBUQFDUVEBUQFDUVEBUQFDUVNRUQFDYUNhQQFQANBQ==

tv_3:
  sequence:
    - service: remote.send_command
      target:
        entity_id: remote.zhi_neng_yao_kong_remote
      data:
        command: b64:JgBIAAABKpQTNxM3EhITEhM3EzcSEhM3ExIUEBM3EzcTEhISEzcTEhISExISOBI4EhITEhI4EjgSOBI3ExITEhI3EzcTEhMSEgANBQ==

tv_4:
  sequence:
    - service: remote.send_command
      target:
        entity_id: remote.zhi_neng_yao_kong_remote
      data:
        command: b64:JgBMAAkABngAASmUEzcTNxMSExETNxM3FBESOBISExISOBI4EhITEhQ2EhIUERI4EjgTNxMRExISEhQ2EzcUERMRExISOBM3EjgSEhQADQUAAAAAAAAAAAAAAAA=

tv_5:
  sequence:
    - service: remote.send_command
      target:
        entity_id: remote.zhi_neng_yao_kong_remote
      data:
        command: b64:JgBIAAABK5MSOBI4EhITEhI4EjgSEhM3ExISEhM3EzcTEhISEzcTEhI4EjcTNxM3ExITERMSEzcTERMSExISEhM3EzcTNxISEwANBQ==

tv_6:
  sequence:
    - service: remote.send_command
      target:
        entity_id: remote.zhi_neng_yao_kong_remote
      data:
        command: b64:JgBMAAABKZQTNxQ2EhITEhI4EjgSEhM3ExISEhM3EzcTEhISEzcTEhISFBESEhM3ExISEhM3EzcTNxM3EzcSEhM3EzcTEhISEwAL2QcADQUAAAAAAAAAAAAAAAA=

tv_7:
  sequence:
    - service: remote.send_command
      target:
        entity_id: remote.zhi_neng_yao_kong_remote
      data:
        command: b64:JgBIAAABKZUSOBI4EhITEhI4EjgSEhM3ExISEhM3EzcTEhISEzcTEhISEzcTEhI4EhITEhISEzcTNxMSEjgSEhM3EzcTNxMREwANBQ==

tv_8:
  sequence:
    - service: remote.send_command
      target:
        entity_id: remote.zhi_neng_yao_kong_remote
      data:
        command: b64:JgBIAAABKZQTNxM3ExISEhM3EzcTEhI4EhITEhI4EjgSEhMSEjgSEhM3EzcTEhI3ExITEhISEzcTEhISEzcTEhI3EzcTNxMSEwANBQ==

tv_9:
  sequence:
    - service: remote.send_command
      target:
        entity_id: remote.zhi_neng_yao_kong_remote
      data:
        command: b64:JgBIAAABKZQTNxM3ExISEhM3EzcTEhI4EhITEhI4EjgSEhUQEjgSEhMSEhITNxMSEhITEhI4EjgSOBI4EhITNxM3EzcTEhISEwANBQ==

tv_0:
  sequence:
    - service: remote.send_command
      target:
        entity_id: remote.zhi_neng_yao_kong_remote
      data:
        command: b64:JgBQAAABK5IVNRQ2FQ8VEBQ2FTUUEBU1FRAUEBY0FTUWDxUPFTUWDxU1FTUVNRQQFg8VDxUQFTUUEBUQFBAWNBU1FTUVNRYPFAAFXAABLEkVAA0FAAAAAAAAAAA=

tv_set:
  sequence:
    - service: remote.send_command
      target:
        entity_id: remote.zhi_neng_yao_kong_remote
      data:
        command: b64:JgBIAAABK5IVNRU1FRAUEBU1FTUVEBQ2FBAVEBQ2FDYUEBUQFDYUEBU1FRAUNhQ2FBAUERMRFTUUERQ2FBAVEBQ2FDYUNhQQFQANBQ==

以上是关于homeassistant+broadlink的主要内容,如果未能解决你的问题,请参考以下文章

homeassistant+broadlink

小米智能家居接入智能家居平台homeassistant的方法

homeassistant影响网速

cm101s-2安装homeassistant

homebridge和homeassistant有啥区别?

安装homeassistant+python3.6