0使OpenZWave与家庭助理一起工作

I am slowly migrat­ing my smarthome setup to Home­As­sist­ant which, as with most open-source pro­jects, is pretty unfriendly to start with and takes some learn­ing to use. I have an Aeotec ZStick and an Aeotec Door­bell 6 which work via Z‑Wave and I wanted to cus­tom­ise the tones and reduce the volume a little. 您会认为这很容易吧?

The first hurdle to over­come was to real­ise that Home Assist­ant has 2 ways to use Z‑Wave. 一个内置, 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” (以前叫做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 这很像低功耗的英特尔NUC.

在你开始前

Unpair your door­bell from your USB 如果已经配对,则粘贴,因为我们需要在安全模式下配对

找你的 USB 棒细节

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

禁用内置的zwave

  • CON-图-UR-A重刑
  • Integ­ra­tions
  • ZWave盒子
  • Click con­fig­ure
  • Click “Stop Net­work”

安装Mosquitto经纪人

  • Super­visor
  • 附加商店
  • 搜索蚊子经纪人

安装MQTT

  • CON-图-UR-A重刑
  • Integ­ra­tions
  • 搜索MQTT
  • You should see the mosquitto broker lis­ted. Click con­fig­ure

安装OpenZWave

  • Super­visor
  • 附加商店
  • 搜索zwave

生成安全性随机密钥

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

使用以下命令配置OpenZWave USB 细节

  • Super­visor
  • 仪表板
  • Open­ZWave
  • CON-图-UR-A重刑
  • Edit the “device” entry to match the USB 上面的路径, and add the num­bers gen­er­ated in place of the ?? for the secur­ity key
  • E.G.
    • 设备: /dev/seri­al/by-id/usb-0658_0200-if00
    • 网络密钥: ‘0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??
  • 点击保存
  • Click on “Info” tab
  • 点击开始

配置OpenZWave集成

  • CON-图-UR-A重刑
  • Integ­ra­tions
  • “Open­ZWave (公测)” box
  • Click “Con­fig­ure”
  • Click “Con­firm Setup”

重启!

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.

设置半友好的配置界面

  • Down­load and install the Open­ZWave 图形用户界面 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 图形用户界面 只需输入 知识产权 or name of your home assist­ant. The port should already be cor­rect and no authen­tic­a­tion key is required
  • 请注意, 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.

配置音量

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. 但是, 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, 所以我要做的第一件事就是把它调低. 您会认为,在我们已经经历的所有困境之后, (最后) 易, but guess again…

关机家庭助理

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

获取Silicon Labs PC软件

  • Go to the Sil­ic­on Labs web­site 降负荷页
  • 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, 回到 降负荷页
  • Down­load the Z‑Wave SDK 第一
  • Then down­load the PC Con­trol­ler soft­ware
  • 运行ZWaveControllerSetup.msi
  • 提取 2 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
  • 单击齿轮以选择您的 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
  • 您将需要第一个 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 他们之中. 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”
  • 根据需要设置十六进制音量 (effect­ively in per­cent­age). 我发现 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
  • 重复最后一个 5 steps for each of the dif­fer­ent alerts you wish to change — I did it for all of them

恢复家庭助理

  • 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

这归功于几个不同的人,我设法从这些人中将信息全部收集到一起

认为我们已经错过了什么? 让我们通过下面的评论知道. 如果您想订阅,请使用菜单上的订阅链接右上方. 您还可以通过使用下面的链接社会分享这与你的朋友. 干杯.

发表评论