Broadlink + Google Home + IFTTT/Webhooks = "Ok Google, Channel 269" or "Ok Google, change to my favourite channel" or "Ok Google, change to Cartoon Network"

@Hugo_Serras em que sentido é que as frases no HA são mais versáteis? Tu podes usar OK Google change to fox, ou OK Google change to channel one. Eu uso a primeira.

@maxcalavera Concordo plenamente contigo. Funciona porreiro, mas nem sempre. Mas pode ser que tenha sido algo errado do meu lado e ainda vou fazer mais testes. Por exemplo, a chamar o canal Hollywood, o Google Home Mini não se orienta. Chateia-me também que um gajo em certos comandos uma pessoa tem de dizer “on device” ou “on set top box”. Mas no geral funciona bem, sem dúvida. E agradeço imenso a tua ajuda. Como disse, ainda vou fazer mais testes e depois faço aqui uns updates.

Podes criar rotinas…

Ou…

1 Curtiu

Viva,

Eu peguei num tuturial que existe aqui no forum (este) e alterei os comandos para o novo formato do serviço. Carreguei no ficheiro scripts.yaml a informação:



#scripts com comandos para envio por broadlink 
  vdf_on_off:
    sequence:
    - service: broadlink.send
      data:
        host: 192.168.1.199
        packet:
          - 'JgBOAAsUFBYUFRUKCxQVFQoLCgoVFRUKChUKAAtmDBMUFRUVFAsLFBUVCgoLChUUFQsKFQoAC2YLFBQVFRUUCwsUFRUKCgsKFBUVCwoVCgANBQAAAAAAAAAAAAA' 
  vdf_ok:
    sequence:
    - service: broadlink.send
      data:
        host: 192.168.1.199
        packet:
          - 'JgBUAAsUFBUUFhUKCxQUFgoKCwoVCgsKCgoLFAsAC2UMExQWFBUUCwsUFBYKCgsKFQoLCgoLChUKAAtmCxQUFRQWFAsKFRQVCwoLChUKCwoKCgsUCwANBQAAAAA=' 
  vdf_cima:
    sequence:
    - service: broadlink.send
      data:
        host: 192.168.1.199
        packet:
          - 'JgBOAAwTFBUVFRQLCxQUFQsKCwoVCgsUCwoUAAtxCxQUFRUVFAsLFBUUCwoLChQLCxQLChUAC28LFBUVFBUUCwsUFRULCgoKFAsLFAsKFAANBQAAAAAAAAAAAAA=' 
  vdf_baixo:
    sequence:
    - service: broadlink.send
      data:
        host: 192.168.1.199
        packet:
          - 'JgA0AAwTFBUVFRQLCxQUFgoKCwoUCwsUFRUKAAtmDBMUFRQWFAsLFBQVCwoLChQLChUVFAsADQUAAAAA' 
  vdf_esquerda:
    sequence:
    - service: broadlink.send
      data:
        host: 192.168.1.199
        packet:
          - 'JgBOAAsVFBUUFRULChUUFQsKCgoVCwoKCxQVAAtwCxQVFRQVFQoLFBUVCgoLChQLCwoLFBUAC3ALFBUUFRUVCgsUFRQLCgsKFQoLCgoVFAANBQAAAAAAAAAAAAA=' 
  vdf_direita:
    sequence:
    - service: broadlink.send
      data:
        host: 192.168.1.199
        packet:
          - 'JgA0AAsUFBUVFRQLCxQUFQsKFBYKCgsKCwoVAAtvCxQVFRUUFAsLFBUVCgoVFQsKCgoLChQADQUAAAAA' 
  vdf_play_pausa:
    sequence:
    - service: broadlink.send
      data:
        host: 192.168.1.199
        packet:
          - 'JgA0AAsUFBUUFhUKChUUFQsKFAsLFBQLCxQLAAtlDBQUFRQVFQsKFRQVCwoUCwsUFAsLFAsADQUAAAAA' 
  vdf_stop:
    sequence:
    - service: broadlink.send
      data:
        host: 192.168.1.199
        packet:
          - 'JgAwAAsVFRQVFBULChUUFQsKFQoKFRQVFAALcQsUFBUVFRUKCxQUFQsKFQoLFBUVFQANBQAAAAAAAAAA=' 
  vdf_gravar:
    sequence:
    - service: broadlink.send
      data:
        host: 192.168.1.199
        packet:
          - 'JgA0AAwTFBYUFRQLCxQUFgoKFQsKCgsUCwoUAAtxDBMUFRUVFAsLFBQVCwoVCgsKCxQLChUADQUAAAAA'
  vdf_guide:
    sequence:
    - service: broadlink.send
      data:
        host: 192.168.1.199
        packet:
          - 'JgA4AAoVFBUVFRQLChUUFQsKFAsLCgoLCgoLFAsAC2ULFBUVFRQUCwsUFRUKCxQLCgoLCgsKChUKAA0F'

  vdf_sair:
    sequence:
    - service: broadlink.send
      data:
        host: 192.168.1.199
        packet:
          - 'JgA0AAsUFRUUFRQLCxQVFQsKFQoKCgsKCxQUAAtxCxQVFBUVFAsLFBUUCwoUCwsKCwoKFRUADQUAAAAA'
  vdf_voltar:
    sequence:
    - service: broadlink.send
      data:
        host: 192.168.1.199
        packet:
          - 'JgBOAAwTFRQUFRULChUVFAsKFAsLCgoVFRQLAAtlDRIVFRUUFAsLFBUVCwoVCgoKCxUUFQsAC2UMExUUFRUUCwoVFRQLChQLCwoKFRUUCwANBQAAAAAAAAAAAAA='
  
  vdf_tecla1:
    sequence:
    - service: broadlink.send
      data:
        host: 192.168.1.199
        packet:
          - 'JgBUAAwTFhQVFBYIDBQWEwwIDAgNCAwJDAgXEwwAC1kMExYUFhMWCA0TFhMMCAwIDQgNCAwIFxQLAAtaDBMWExYUFQkMExYUCwgNCA0IDAgNCBcTDAANBQAAAAA='
  vdf_tecla2:
    sequence:
    - service: broadlink.send
      data:
        host: 192.168.1.199
        packet:
          - 'JgBOAAwTFhMWExYKCxMWFAsKCwoKCgsKFRMWAAtkDBMWExYTFgkMExYUCwkMCAwLCgoVExYAC2QNEhYTFhQWCgoUFhMLCwoKCQsLCxQUFgANBQAAAAAAAAAAAAA='
  vdf_tecla3:
    sequence:
    - service: broadlink.send
      data:
        host: 192.168.1.199
        packet:
          - 'JgBUAAwTFhMWExYIDRMWFAsIDQgMCQwIFwgNEwwAC1kMExYUFhMWCA0TFhMMCAwIDQgNCBgGDRQLAAtaDBMWExYUFggMFBYTCwkMCA0IDAkWCA0TDAANBQAAAAA='
  vdf_tecla4:
    sequence:
    - service: broadlink.send
      data:
        host: 192.168.1.199
        packet:
          - 'JgBOAAwTFhMXExYIDBQWEwsJDAgNCBcTDAgXAAtkCxQWExYTFggNExYUCwgNCAwJFhQLCBcAC2ULExYUFhMWCA0TFhMMCA0IDAgXFAsIFwANBQAAAAAAAAAAAAA='
  vdf_tecla5:
    sequence:
    - service: broadlink.send
      data:
        host: 192.168.1.199
        packet:
          - 'JgBOAAwTFhMWFBYIDBQWEwsJDAgNCBcTFhMMAAtZDBMWFBYTFggNExYTDAgNCAwIFxMWFAsAC1oMExcTFhMWCAwUFhMMCAwIDQgYEhcTCwANBQAAAAAAAAAAAAA='
  vdf_tecla6:
    sequence:
    - service: broadlink.send
      data:
        host: 192.168.1.199
        packet:
          - 'JgBOAAkWExYUFRQLChUUFQoLCgsJCxQLChUUAAtmCRYUFRQVFAsKFRQWCQsKCwkLFAsKFRQAC2YKFRQWFBUUCwoVFBUKCwoLCQsUCwoVFAANBQAAAAAAAAAAAAA='
  vdf_tecla7:
    sequence:
    - service: broadlink.send
      data:
        host: 192.168.1.199
        packet:
          - ' JgA4AAsVFRQUFRULChUUFQsKCgsKChQLCwoLFAsAC2UMExQWFBUUCwsUFBYKCgsKCwoUCwoLChUKAA0F'
  vdf_tecla8:
    sequence:
    - service: broadlink.send
      data:
        host: 192.168.1.199
        packet:
          - 'JgBOAAsUFhMWExYIDRMWFAsIDQgXEwwIDAkWAAtlChQWFBYTFggNExYTDAgMCRYUCwkMCBcAC2QMExYTFhQWCAwUFhMLCQwIFxMMCA0IFwANBQAAAAAAAAAAAAA='
  vdf_tecla9:
    sequence:
    - service: broadlink.send
      data:
        host: 192.168.1.199
        packet:
          - 'JgBOAAwTFhMWExYIDRMWFAsJDAgXEwwIFxMMAAtZDBMWExYTFgkMExYUCwkMCBcTDAgXEwwAC1kMExYUFhMWCA0TFhMMCA0IFxMLCRYUCwANBQAAAAAAAAAAAAA='
  vdf_tecla0:
    sequence:
    - service: broadlink.send
      data:
        host: 192.168.1.199
        packet:
          - 'JgBIAAwTFhQVFBYIDBQWEwwIDAgXFBYTFgALZAsUFhMWExYIDRMWEwwIDQgXExYTFgALZAwTFhQWExYIDRMWEwwIDAkWFBYTFgANBQ=='
  vdf_menu:
    sequence:
    - service: broadlink.send
      data:
        host: 192.168.1.199
        packet:
          - 'JgAwAAwTFBUVFRQLCxQVFBUVFAsLFBUVCgALZg0SFRUUFRQLCxQVFRUUFQoLFRQVCwANBQAAAAAAAAAA'
        
  vdf_canal_cima:
    sequence:
    - service: broadlink.send
      data:
        host: 192.168.1.199
        packet:
          - 'JgAwAAoVFBUUFhQLChUUFQsKFRQUFgoKFQALcAsUFBYUFRQLCxQVFQoKFRUVFAsKFQANBQAAAAAAAAAA'
        
  vdf_canal_baixo:
    sequence:
    - service: broadlink.send
      data:
        host: 192.168.1.199
        packet:
          - 'JgAwAAoVFBUVFBULChUUFQsKFRQUCwsUFQALcAsUFRUVFBQLCxQUFgoKFRUVCgsUFQANBQAAAAAAAAAA'

Abr

4 posts were split to a new topic: Controlar um projector com broadlink


Copyright © 2017-2021. Todos os direitos reservados
CPHA.pt - info@cpha.pt


FAQ | Termos de Serviço/Regras | Política de Privacidade