DIY وسائل الإعلام الرئيسية الشعار

الموقع النهائي لتصميم وإنشاء مسرح منزلي الخاص ومرحبا فاي الإعداد الخاصة.

0الحصول على OpenZWave يعمل مع Home Assistant

أقوم بترحيل إعداد المنزل الذكي الخاص بي ببطء إلى HomeAssistant الذي, كما هو الحال مع معظم المشاريع مفتوحة المصدر, غير ودي إلى حد كبير في البداية ويتطلب بعض التعلم لاستخدامه. لديّ Aeotec ZStick و Aeotec Doorbell 6 التي تعمل عبر Z ‑ Wave وأردت تخصيص النغمات وتقليل الصوت قليلاً. كنت تعتقد أنه سيكون من السهل الحق?

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 وهو يشبه إلى حد كبير Intel NUC منخفض الطاقة.

قبل ان تبدا

Unpair your door­bell from your USB التمسك إذا كان مقترنًا بالفعل حيث نحتاج إلى إقرانه في الوضع الآمن

تجد الخاص بك USB تفاصيل العصا

  • Super­visor
  • Sys­tem
  • “Host Sys­tem” box
  • “Hard­ware” button
  • It should be some­thing like
    /ديف / المسلسل / عن طريق معرف / usb-0658_0200-if00

تعطيل المدمج في zwave

  • يخدع التين اور واحد في نشوئها
  • Integ­ra­tions
  • مربع ZWave
  • Click con­fig­ure
  • Click “Stop Network”

قم بتثبيت Mosquitto broker

  • Super­visor
  • متجر الإضافات
  • ابحث عن وسيط البعوض

قم بتثبيت MQTT

  • يخدع التين اور واحد في نشوئها
  • Integ­ra­tions
  • ابحث عن MQTT
  • You should see the mosquitto broker lis­ted. انقر فوق تكوين

قم بتثبيت 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
  • يخدع التين اور واحد في نشوئها
  • 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??, 0س??, 0س??, 0س??, 0س??, 0س??, 0س??, 0س??, 0س??, 0س??, 0س??, 0س??, 0س??, 0س??, 0س??, 0س??
  • انقر فوق حفظ
  • Click on “Info” tab
  • انقر فوق ابدأ

تكوين تكامل OpenZWave

  • يخدع التين اور واحد في نشوئها
  • 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 واجهة المستخدم الرسومية فقط أدخل IP 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, إنه مضلل.

تكوين الحجم

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 Assistant
  • مسح ال 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 Software
  • 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 software
  • قم بتشغيل 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 software
  • انقر فوق عجلة التروس لتحديد ملف USB Stick — mine appeared as “UZB” on COM4 and click “Detect”, then click “OK”
  • Click on “Net­work Management”
  • Click “add” and then press the pair­ing but­ton on the doorbell
  • سوف تحتاج الأول 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 bottom
  • كرر الماضي 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 Software
  • Unplug the Z‑Stick and recon­nect it to your Home Assist­ant system
  • 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

يتم منح الاعتمادات الخاصة بهذا الأمر إلى عدة أشخاص مختلفين تمكنت من جمع المعلومات منهم بشكل كامل

Leave a Reply