0Fazendo o OpenZWave funcionar com o Home Assistant

Estou migrando lentamente a configuração do meu smarthome para o HomeAssistant, que, como acontece com a maioria dos projetos de código aberto, é bastante hostil para começar e leva algum tempo para aprender a usar. Eu tenho um Aeotec ZStick e uma Aeotec Doorbell 6 que funcionam via Z-Wave e eu queria personalizar os tons e reduzir um pouco o volume. Você pensaria que seria fácil certo?

The first hurdle to over­come was to real­ise that Home Assist­ant has 2 ways to use Z‑Wave. Um é embutido, and one is built on the “Open­ZWave” sys­tem / soft­ware / dock­er image (or whatever it actu­ally is!). The built-in sys­tem does­n’t sup­port the latest Z‑Wave stand­ards and so could­n’t con­fig­ure my door­bell, but appar­ently the altern­at­ive Open­ZWave 1.6 sys­tem will be able to even­tu­ally, although it does­n’t seem to do so year. In order to avoid more issues in future the first thing to do is to switch from the built-in Z‑Wave sup­port to the Open­ZWave addon. Note that I am using the full “Home Assist­ant” (que costumava ser chamado de Hass.io). It is basic­ally an all-in-one install with Has­sOS, and then both Home Assist­ant and “Super­visor” run­ning on top of that. Many people run this setup on a Rasp­berry Pi although I am run­ning on a 4W mini PC with a Pen­ti­um 4200 que é muito parecido com um Intel NUC de baixa potência.

Antes que você comece

Unpair your door­bell from your USB manter se já estiver emparelhado, pois precisamos emparelhá-lo no modo seguro

Encontre o seu USB detalhes da vara

  • Super­visor
  • Sys­tem
  • “Host Sys­tem” box
  • “Hard­ware” but­ton
  • It should be some­thing like
    /dev / serial / by-id / usb-0658_0200-if00

Desativar zwave integrado

  • Con-fig-ur-a-ção
  • Integ­ra­tions
  • Caixa ZWave
  • Click con­fig­ure
  • Click “Stop Net­work”

Instale o corretor Mosquitto

  • Super­visor
  • Loja de complementos
  • Pesquisar por corretor mosquitto

Instale MQTT

  • Con-fig-ur-a-ção
  • Integ­ra­tions
  • Procure MQTT
  • You should see the mosquitto broker lis­ted. Click con­fig­ure

Instale OpenZWave

  • Super­visor
  • Loja de complementos
  • Pesquisar zwave

Gere uma chave aleatória para segurança

  • Vamos para Random.org and gen­er­ate a ran­dom hex code for a secur­ity key that you will need in the next step

Configure o OpenZWave com o seu USB detalhes

  • Super­visor
  • Dashboard
  • Open­ZWave
  • Con-fig-ur-a-ção
  • Edit the “device” entry to match the USB caminho de cima, and add the num­bers gen­er­ated in place of the ?? for the secur­ity key
  • Por exemplo.
    • dispositivo: /dev/seri­al/by-id/usb-0658_0200-if00
    • chave de rede: ‘0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??’
  • Clique em salvar
  • Click on “Info” tab
  • Clique em Iniciar

Configure a integração OpenZWave

  • Con-fig-ur-a-ção
  • Integ­ra­tions
  • “Open­ZWave (beta)” box
  • Click “Con­fig­ure”
  • Click “Con­firm Setup”

reinicialização!

I found at this point that I had to reboot for the sys­tem to start talk­ing to my USB Z‑Stick prop­erly, so I recom­mend reboot­ing at this point.

Configurando interface de configuração semi-amigável

  • Down­load and install the Open­ZWave GUI for win­dows (scroll to the bot­tom of the page and look for the link to the win­dows .msi)
  • To use the GUi first go to Super­visor -> Open­Zwave -> Con­fig­ur­a­tion and set the host field to 1983 (it is dis­abled by default unless you enter a value)
  • Then in Open­ZWave GUI apenas entre no IP or name of your home assist­ant. The port should already be cor­rect and no authen­tic­a­tion key is required
  • Observe que seu USB device may show as not being Z‑Wave plus, but if any con­nec­ted devices are show­ing as Z‑Wave Plus you can safely ignore this, it is mis­lead­ing.

Configurando o volume

Why on earth the default volume is set so loud it dis­torts is bey­ond me. Pre­sum­ably it is so that Aeotec can put some silly decibel num­ber on the box. No entanto, I don’t actu­ally want my door­bell to dam­age my ears, or wake my chil­dren at night either for that mat­ter, então a primeira coisa que eu realmente precisava fazer era diminuir o volume. Você pensaria que depois de todos os obstáculos que já tivemos que superar, pode ser (finalmente) fácil, but guess again…

Assistente de desligamento de casa

  • Shut­down Home Assist­ant
  • Remova o USB Z‑Wave stick
  • Con­nect it to a win­dows PC

Obtenha o software para PC da Silicon Labs

  • Go to the Sil­ic­on Labs web­site página para baixo cargas
  • Select to down­load the PC Con­trol­ler Soft­ware
  • Click on the “Cre­ate an Account” link and register
  • Once you have veri­fied your account and logged in, volte para o página para baixo cargas
  • Down­load the Z‑Wave SDK Primeiro
  • Then down­load the PC Con­trol­ler soft­ware
  • Execute o ZWaveControllerSetup.msi
  • Extrai-se a 2 arquivos na pasta ZW050x_USB_VCP_PC_Driver, then right-click on the extrac­ted INF file and select “install” to install the drivers
  • Plug your Z‑Wave dongle into your win­dows PC
  • Run the Z‑Wave PC Con­trol­ler soft­ware
  • Clique na roda dentada para selecionar o seu USB Stick — mine appeared as “UZB” on COM4 and click “Detect”, then click “OK”
  • Click on “Net­work Man­age­ment”
  • Click “add” and then press the pair­ing but­ton on the door­bell
  • Você vai precisar do primeiro 5 digits of the DSK code which are prin­ted on the back of the door­bell — the device will then pair in S2 mode
  • The device should then appear as a “Sound Switch” in the under “slaves” in the box near the top left.
  • Select the device and then click “Node Info”
  • A list of sub­devices should appear — approx­im­ately 8 deles. Each of these rep­res­ents a dif­fer­ent alert
  • Select the appro­pri­ate sub-device
  • In the box below double click on “79 — SOUND_SWITCH”
  • In the sec­tion to the right, in the drop­down box, select “0×05 — SOUND_SWITCH_CONFIGURATION_SET”
  • Defina o hex de volume como quiser (effect­ively in per­cent­age). eu encontrei 60 was about the same as my old door­bell — a clas­sic old elec­tric bell
  • Click on the Send but­ton at the bot­tom
  • Repita o último 5 steps for each of the dif­fer­ent alerts you wish to change — I did it for all of them

Restaurar Assistente de Casa

  • Close the PC Con­trol­ler Soft­ware
  • Unplug the Z‑Stick and recon­nect it to your Home Assist­ant sys­tem
  • Boot home assist­ant back up
  • The pair­ing with the door­bell, and your new volume set­tings, should be remembered by the Z‑Stick

Os créditos por isso vão para várias pessoas diferentes de quem consegui reunir todas as informações

Por favor envie-nos a sua opinião comentando abaixo! Se você deseja se inscrever, use o link de inscrição no menu no canto superior direito. Você também pode compartilhar isso com seus amigos usando os links sociais abaixo. Felicidades.

Deixe uma resposta