All posts by Aleks

Знайомство з потужним одноканальним Wi-Fi реле Shelly 1

Сьогодні я хочу познайомити вас з дуже цікавим девайсом. Це Wi-Fi реле на основі контролера ESP8266, саме тому його буде дуже легко інтегрувати до вашого розумного будинку. В статтях на сайті ви вже зустрічали пристрої інших компаній, які виготовлені з використанням ESP32\ESP8266, як, наприклад Sonoff (  1,   2,   3  ).

Shelly – це досить молодий, але потужний стартап з Болгарії. Пристрої компанії отримують багато європейських та американських сертифікатів якості, а також різноманітні нагороди в галузі розумного будинку. Shelly має магазин на Aliexpress, але також є власний інтернет-магазин компанії з цінами в євро. Він має не дорогу доставку майже по всьому світу.

Зараз компанія має досить потужне виробництво. На фабриці Shelly виробляють широку лінійку реле, освітлювальні прилади, лічильники, вимикачі та розетки, безпровідні кнопки та всілякі датчики для розумного будинку.

Апаратна частина Shelly 1

Shelly 1 можна використовувати і для дистанційного керування розетками, і для керування освітленням. Перевагою є те, що освітленням можна керувати як дистанційно, (з додатка), так і за допомогою звичного вам вимикача.

Як видно на фото, пристрій досить компактний. Основною задачею при його розробці було те, щоб девайс міг поміститися в звичний нам підрозетник разом з корпусом вимикача чи розетки. Давайте подивимось як інженери виконали цю задачу. Нижче на фото два підрозетника для гіпсокартону, один з них глибший.

Як бачите, на першому фото з меншим підрозетником, корпус розетки або вимикача буде виступати приблизно на три-чотири міліметри, враховуйте це при закупівлі електричного обладнання перед ремонтом. А ще треба розраховувати на місце для дротів. Мушу сказати, я використовував стандартну розетку, існують також такі, корпус яких трохи віддалений від площини стіни.

Якщо ви використовуєте вимикачі, зверніть увагу на flex вимикач, про який я вже писав, його внутрішня частина дуже компактна і вимикач не буде «виглядати» з підрозетника.
На другому фото використано глибший підрозетник. При використанні корпусу такого розміру проблем з вільним місцем для Shelly 1 не має виникнути. Крім того, Shelly 1 можна розмістити в звичайній монтажній коробці.

Одна зі схем підключення Shelly 1 може бути такою

При монтажі враховуйте, що реле девайсу розраховане максимум на 16А. Як ви вже зрозуміли, для керування реле вимикач підключати не обов’язково. Клеми «0» та «I» це виходи реле, іноді такі контакти називають «сухими» бо вони ніяк не зв’язані з основною логічною схемою пристрою. Теоретично до таких контактів можна підключати пристрої з малою напругою живлення, і керувати подачею напруги до таких девайсів за допомогою Shelly 1. Напруга живлення на реле Shelly 1 має подаватися на клеми «L» та «N».

До речі, діапазон напруги живлення девайсу дуже широкий, від 110V до 240V змінного струму або 24-60V постійного. Також можна змінити режим живлення за допомогою джампера на корпусі, тоді напруга живлення буде 12V постійного струму. Джампер знаходиться під заглушкою, і дістатися до нього може бути досить складною.

Поруч є роз’єм, через який можна завантажувати власні прошивки для Shelly 1, але, на мою думку, робити це особливого сенсу немає. Справа в тому, що Shelly дозволяє відв’язувати свої девайси від своєї хмари і вмикати локальне керування. Такі дії дають можливість керувати Shelly 1 із альтернативних систем управління розумним будинком, як, наприклад, Home Assistant. Крім того, можна керувати реле навіть з браузера.

Налаштування та керування пристроями в додатку Shelly

В першу чергу завантажте і встановіть і фірмовий додаток Shelly на свій смартфон. Потім зареєструйте власний обліковий запис, це дозволить керувати пристроями Shelly з будь-якої точки світу, де є доступ до мережі.

Для початкового налаштування та додавання девайсу в систему вашого розумного будинку достатньо під’єднати дроти живлення, як показано на фото.

Після вмикання Shelly 1 створить власну точку доступу Wi-Fi, тепер можна під’єднати і налаштувати пристрій. Для цього в меню виберіть пункт «Add device» (додати пристрій). Після виявлення ви побачите його в списку. Далі ви можете додати його до необхідної кімнати, чи змінити зображення девайсу.

Щоб перейти до налаштувань Shelly 1 натисніть на його зображення у «вікні кімнати». Як бачите, перелік можливих налаштувань дуже великий. Маємо змогу користуватися таймером та розкладом роботи девайсу. Нижче, в розділі «Cloud» можемо відв’язати пристрій від хмари. В розділі «Settings» знайдете налаштування Shelly 1, щодо поведінки пристрою після втрати електроенергії. До речі, варіантів стану після вмикання є чотири, це «увімкнути», «вимкнути», «зберегти стан після витрати живлення» і «згідно стану вимикача». На мою думку, це унікальна і досить корисна функція. Крім того, в налаштуваннях є можливість вказати яким вимикачем ви будете користуватися, клавішним (кнопка, flex), або звичайним.

Цікавим є також те, що ми можемо обрати чим буде керувати наше реле, наприклад розеткою чи освітленням.

В налаштуваннях також ми можемо перезавантажити девайс, видалити його або зкинути до заводських налаштувань

Web інтерфейс Shelly 1

Для того, щоб мати змогу зайти до веб Інтерфейсу пристрою вам необхідно знати його IP адресу. Для цього можна подивитись адресу в налаштуваннях вашого роутера. Але, для того, щоб не робити це щоразу, варто задати пристрою фіксовану IP адресу. Інтерфейс веб сторінки трохи нагадує інтерфейс додатку, але, на мою думку, більший екран комп’ютера буде зручнішим.

Насправді, тут налаштувань ще більше ніж в мобільній версії. Одним з цікавих пунктів в веб Інтерфейсі є можливість включити і налаштувати MQTT. Але вас попереджають, що його вмикання вимкне з’єднання з хмарою. Як на мене, це не є великою втратою при появі можливості керування девайсом в альтернативних системах розумного будинку.

Shelly 1 і Home Assistant

Як тільки пристрій Shelly з’явиться в вашій локальній мережі Home Assistant відразу його «побачить»

Вам лише залишилось підтвердити налаштування конфігурації та обрати кімнату для девайсу. До речі, в Home Assistant «залетить» саме той тип пристрою, який ви обрали в налаштуваннях додатку Shelly. Тепер ви можете керувати пристроєм і з Home Assistant, час відгуку майже миттєвий.

Introduction to a powerful single-channel WiFi relay Shelly1

Today, I want to acquaint you with an intriguing device. It’s a Wi-Fi relay based on the ESP8266 controller, which is why it will be easy to add to your smart home. In the articles on the site, you have already come across devices from other companies that use ESP32\ESP8266 (for example, Sonoff.) (  1,   2,   3  )

Shelly is a pretty new yet powerful startup from Bulgaria. The company’s devices earn a lot of European and Americal quality certificates, as well as various awards in the smart home field. Shelly has a market on AliExpress and its internet shop with prices in Euros. It has cheap delivery almost worldwide.

Today, this company has a powerful production. Shelly produces a wide range of relays, lighting devices, meters, switches and sockets, wireless buttons, and all kinds of sensors for the smart home.

The hardware part of Shelly 1

You can use Shelly 1 for both remote controlling your outlets and lighting. The advantage here is that you can control the lighting remotely (using an app) and the usual switch simultaneously.

As you can see in the photo, the device is compact. The main task in its development was to make sure that the device fits into an outlet box with an outlet or switch body. Let’s look at how engineers succeeded in this task. Below, there are two outlet boxes for plasterboard, one being deeper.

As you can see, in the first photo with a smaller outlet box, the body of an outlet or a switch will protrude about three to four millimeters. Take this into account when buying electrical before repairs. Also, find a place for wires. I must say, I used a standard outlet. There are also those whose body is slightly distant from the plane of the wall.

If you use switches, pay attention to the flex switch I already wrote about, its interior is very compact, and the switch won’t “look” out of the outlet box.
We see a deeper outlet box in use in the second photo. When using a case of similar size, there shouldn’t be any problems with free space for Shelly 1. Besides, you can place Shelly 1 in a regular mounting box.

One of Shelly 1’s wiring diagrams can be like this:

When mounting, note that the relay of the device can take up to 16A. As you already understood, you don’t need the switch to control the relay. Terminals “0” and “I” are relay outputs, and such contacts are named “dry” sometimes. It is because they don’t connect to the main logic circuit of the device. In theory, you can connect devices with a low supply voltage to such contacts and control the supply of voltage to such devices using Shelly 1. The supply voltage on the Shelly 1 relay should apply to the terminals “L” and “N.”

The device’s power supply voltage range is extreme, from 110V to 240V alternating current or 24-60V direct current. You can also change the power mode using a jumper on the case, and then the power supply voltage will be 12V DC. The jumper is under the plug, and getting to it can be quite hard.

There is a connector nearby where you can download custom firmware for Shelly 1, but I don’t think there’s much point in doing that. The fact is that Shelly allows you to unpair your devices from your cloud and enable local management. Such actions make it possible to control Shelly 1 from alternative smart home management systems, such as Home Assistant. In addition, you can control the relay even from the browser.

Configuring and managing devices in the Shelly app

Firstly, download and install the official Shelly application on your smartphone. Then register your account, which allows you to manage Shelly devices from anywhere in the world where there is access to the network.

To set up and add the device to your home, connect the wires as shown in the photo below.

Once turned on, Shelly 1 will create its Wi-Fi hotspot, and you can now connect and configure your device. To do this, select the “Add device” item in the menu. Once detected, you will see it in the list. Then you can add it to the necessary room or change the picture of the device.

To go to Shelly 1’s settings, click on its image in the “room window.” As you can see, the list of possible parameters is big. We can use the timer and schedule of the device. Below, in the “Cloud” section, we can disconnect the device from the cloud. In the “Settings” section, you will find the settings of Shelly 1 regarding the device behavior after power loss. There are four options for the status after power-on: “on”, “off”. “save state after power consumption”, and “according to the state of the switch”. In my opinion, this is a unique and quite useful feature. In addition, in the settings, there is an opportunity to indicate which switch you will use, keyboard (button, flex), or regular.

It is also interesting that we can choose what our relay will control, for example, an outlet or lighting.

In the settings, we can also reboot the device, remove it or reset it to factory settings.

Shelly 1’s web interface

To access the web interface of Shelly 1, you need to know its IP address. To do this, you can look at the address in the router settings. But, to not do it every time, you should set a static IP address for the device. The interface of the page is a bit like the interface of the application, but in my opinion, a larger computer screen will be more comfortable.

There are even more settings here than in the mobile version. One of the more interesting points in the web interface is the ability to enable and configure MQTT. But you are warned that turning it on will disable the cloud connection, which is not a huge loss when the possibility of controlling the device in alternative smart home systems appears.

Shelly 1 and Home Assistant

As soon as the Shelly device appears on your local network, Home Assistant will immediately “see” it.

All you have to do is confirm the configuration settings and choose a room for the device. By the way, the device that “flies” into Home Assistant is the same device you selected in the Shelly app. Now you can control the device with Home Assistant and the response time is almost instantaneous.

В лінійці роутерів Google Nest представлено новий з Wi-Fi 6

Вперше представлені ще ​​в 2016 році, роутери Google Wi-Fi були призначені для швидкого та стабільного інтернет-з’єднання у вас вдома. З’єднання ґрунтується на сітчастій мережі, крім того Google зробила багато, щоб налаштування девайсів було максимально простим.

Трохи історії

Оригінальний Google Wi-Fi, як і його друга версія, використовують те ж обладнання, що і звичайний домашній маршрутизатор, який підключається до вашого модему.
У 2019 році лінійка була трохи розширена, до неї увійшли два різні елементи апаратного забезпечення. Це був маршрутизатор Nest Wi-Fi і точка доступу Nest Wi-Fi. До речі, точка доступу виконує подвійну функцію, виступаючи в ролі динаміка Google Assistant.

В наступній версії роутера Google планує повернути уніфікований дизайн оригінального Google Wi-Fi. Ви зможете придбати новий Nest Wi-Fi по 1, 2 або 3 штуки в коробці, залежно від ваших потреб або площі вашої оселі. Але зараз ми ще не можемо стверджувати, що новий маршрутизатор, як і його попередник, буде оснащений розумним динаміком Google Assistant.

Переваги Wi-Fi 6 в оновленому роутері

Ще в 2019 році, через офіційний запуск стандарту Wi-Fi 6, Nest Wi-Fi в очах деяких ентузіастів відразу став застарілим. Тепер Google підтвердив, що нові девайси отримають переваги Wi-Fi 6 і, можливо, навіть Wi-Fi 6E.

В ідеальних умовах, маршрутизатор Google Wi-Fi з підтримкою Wi-Fi 6 буде працювати на швидкості 9,6 Гбіт/с. В порівнянні з 3,5 Гбіт/с, що є максимальним значенням для Wi-Fi 5, це є значним покращенням. Коли ви оновите окремі мережеві пристрої до таких, що підтримують Wi-Fi 6, ви помітите покращення роботи мережі.

До появи Wi-Fi 6E Wi-Fi маршрутизатори працювали в діапазонах 2,4 ГГц і 5 ГГц. З часом ці частоти, особливо в містах, стали дуже переповненими. Новий стандарт Wi-Fi 6E буде також використовувати третій спектр частот 6 ГГц, щоб протидіяти потенційним перешкодам.

Увімкнув і забув.

Хоча Wi-Fi 6E і не має прямого впливу на вашу максимальну швидкість з’єднання з Інтернет, він повинен наблизити вас до «найкращого сценарію» для вашої локальної мережі. Крім того, вам не потрібно багато знати ні про Wi-Fi 6, ні про 6E, оскільки лінійка Google Wi-Fi створювалася саме для полегшення роботи.

Є чутки, що оновлений Google маршрутизатор, як і раніше Nest Wi-Fi, буде випущено у кількох кольорах. Очікується, що новий пристрій матиме палітру кольорів, яка доповнить вже існуючі пристрої, що були випущені Google цього року.

In the line of routers, Google Nest has introduced a new network router with Wi-Fi 6

First introduced in 2016, Google Wi-Fi routers provide a fast and stable Internet connection at your home. The Internet connection is on a “web” network. Besides, Google made it as simple as possible to manage devices.

A bit of history

The original Google Wi-Fi, just like its second version, uses the same hardware as a regular home router that connects to your modem.
In 2019, the line included two different pieces of hardware – a router Nest and an access point Nest Wi-Fi. By the way, the access point uses double features, acting as a Google Assistant speaker.

Google plans to bring back the unified design of the original Google Wi-Fi. You can buy a new Nest Wi-Fi for 1, 2, or 3 pieces in a box, depending on your needs or the area coverage of your home. But for now, we can’t say that the new router, like its predecessor, will be equipped with a Google Assistant speaker.

Pros of Wi-Fi 6 in the updated router

Back in 2019, due to the official launch of the Wi-Fi 6 standard, the Nest Wi-Fi became obsolete in the eyes of some enthusiasts. Now Google has confirmed that the new devices will benefit from Wi-Fi 6 and possibly even Wi-Fi 6E.

Ideally, the Google Wi-Fi router with Wi-Fi 6 support will run at 9.6 Gbps, which is a significant improvement compared to 3.5 Gbps, the maximum value for Wi-Fi 5. When you upgrade individual network devices to those that support Wi-Fi 6, you will notice an improvement in network performance.

The new Wi-Fi 6E standard will also use the third 6 GHz spectrum to counteract potential interference.

Turn on and forget.

Although Wi-Fi 6E does not directly affect your maximum Internet speed, it should bring you closer to the “best case scenario” for your local network. Plus, you don’t need to know much about Wi-Fi 6 or 6E because Google Wi-Fi makes it easy.

There are rumors that the updated Google router will release in several colors. The new device will have a color palette that will complement existing devices released by Google this year.

Sonoff POW Elite – лічильник з реле, WiFi. Потужність до 20А

Приблизно тиждень тому в офіційному інтернет магазині китайської компанії Sonoff з’явилися два нові пристрої, що мають маркування POWR316D та POWR320D. Це один і той же пристрій, в двох модифікаціях якого відрізняється лише максимально допустимий струм, що через нього тече. А це 16 та 20 Ампер відповідно. Далі я буду описувати девайси як один прилад. Користувач має розуміти різницю, позначену маркуванням, коли замовлятиме пристрій в магазині.

Характеристики SONOFF POW Elite

  • Модель – POWR316D/POWR320D
  • Матеріал корпусу – PC V0
  • Розміри – 98x54x31 мм (DIN Rail mountable)
  • Вхід/Вихід – 100-240 В 50/60 Гц, 16A/20A Макс
  • Wi-Fi – IEEE 802.11 b/g/n 2,4 ГГц
  • WiSoC – Espressif ESP32 240 МГц з підключенням до Wi-Fi 2,4 ГГц і Bluetooth 4.2

Зі специфікацій стає зрозуміло, що мозок девайсу – це вже знайома нам ESP32. Теоретично, це значить, що ми зможемо змінити її мікропрограму на альтернативну Tasmota або ESPhome. Лічильник має можливість кріплення на стандартну DIN рейку. Тобто, ви можете встановити декілька таких пристроїв в електричний щиток, і вже звідти керувати подачею напруги, наприклад, на розетки в вашому будинку. В такому випадку варто забезпечити стабільний Wi-Fi сигнал між вашим роутером і лічильником в щитку. Адже його металевий корпус може екранувати проходження радіохвиль між девайсами. Також хочу застерегти читачів від становлення такого лічильника на основному вході до квартири чи будинку. Адже його допустимої потужності буде недостатньо для усіх ваших електроприладів.

Клеми для підключення і для дротів вводу, і для дротів виводу напруги розміщені в нижній частині корпусу. Клем чотири, а дроти в них мають затискатися гвинтами. Щоб отримати доступ до затискних гвинтів, зніміть кришку на корпусі знизу. На корпусі біля гвинтів є маркування для відповідних дротів.

В верхній частині корпусу, над дисплеєм є індикатори стану і єдина кнопка для керування реле. Ця кнопка також виконує функції скидання пристрою.

Функції в програмі eWeLink

Інтерфейс в програми однаковий практично для всіх вимикачів. Маємо швидкий доступ до перемикача стану реле з картки та з головного меню пристрою. Ще тут відображається детальна інформація про споживану потужність. Користувачам буде доступна така інформація:

  • Споживання електроенергії за сьогодні (кВт·год)
  • Спожита електроенергя за вчора (кВт·год)
  • Спожита електроенергя за місяць (кВт·год)
  • Струм (А)
  • Напруга (В)
  • Потужність (Вт)

Розділ налаштувань покаже стан живлення, можемо увімкнути локальне керування, можемо додавати розклади, таймери та цикли. Іншими налаштуваннями можна додавати сповіщення на основі стану реле або цілей споживання електроенергії за день чи місяць.

Значення на дисплеї та в програмі eWeLink оновлюються кожні 5 секунд.

Smart Controls

eWeLink за замовчуванням сумісний із розумними колонками від Alexa, Google Home.
Є можливість інтеграції зі Smart Things. Але на жаль, ви не можете керувати нічим, крім увімкнення чи вимкнення реле. Отримати інформацію про споживання електроенергії через такі інтеграції неможливо. З часом для пристрою буде створена альтернативна прошивка. Можливо, створена вже. І Tasmota і EspHome дозволяють передавати статистику використання електроенергії до Home Assistant, а вже звідти її можна передавати до Alexa чи Smart Things.

Що всередині

Традиційно пристрої Sonoff поставляються з усім необхідним, щоб повозитися з прошивкою, і Sonoff POW Elite нічим не відрізняється. Друкована плата містить контакти для прошивання ESP32 (TC,RX, GND, Vcc), і щось підказує мені, що кнопка підключена до GPIO00, а це дозволить увімкнути режим прошивки.

Антену надруковано на самій платі, а роз’єму для підключення зовнішньої антени, на жаль, немає. Це ще один аргумент проти слабкого рівня сигналу Wi-Fi.

Мікросхема контролера дисплея знаходиться з того ж боку, що й ESP32, біля неї ряд контактів для приєднання до самого дисплею. До речі – екран дисплею не має фонового підсвічування, що може бути незручно в нічний час. З іншого боку – мало хто контролює споживання електроенергії посеред ночі.
Зі зворотного боку друкованої плати бачимо елементи системи живлення (маленький трансформатор, конденсатори та фільтри). Найбільшим елементом з цього боку плати є реле

Саме це реле керує подачею напруги на вихід лічильника. На мою думку,виробник міг би встановити більш потужне реле, адже, як видно на фото, місця для нього на платі більше ніж достатньо. Можливо, через деякий час ми побачимо оновлену модель цього лічильника від Sonoff, але розрахованого вже на більшу потужність. Було би цікаво встановити таку на вході до своєї оселі для контролю за споживанням електроенергії у себе вдома. Логічно, що такий лічильник вартував би більших коштів, але, думаю, ціна тут би відрізнялася лише за рахунок вартості більш потужного реле.

Sonoff POW Elite – power meter with relay, WiFi. Up to 20A

Approximately a week ago, in the official internet shop of a Chinese company Sonoff two devices appeared, marked as POWR316D and POWR320D. It’s the same device, with two modifications that differ only in the maximum allowable current flowing through it. And these are 16 and 20 Amps. I will review the devices as one, and the user must know the difference between the models when ordering the device.

SONOFF POW Elite features

  • Model – POWR316D/POWR320D
  • Case material – PC V0
  • Dimensions – 98x54x31 mm (DIN Rail mountable)
  • Input/Output – 100-240 В 50/60 Hz, 16A/20A Max
  • Wi-Fi – IEEE 802.11 b/g/n 2,4 GHz
  • WiSoC – Espressif ESP32 240 MHz with connection to Wi-Fi 2,4 GHz and Bluetooth 4.2

From the specifications, it is clear that the “brain” of the device is already familiar to us ESP32. Theoretically, we can change its firmware to alternatives called Tasmota or ESPhome.
The power meter has the possibility of mounting on a standard DIN rail.
You can install several such devices in an electrical switchboard and control the supply voltage, for example, outlets in your home. In this case, you should ensure a stable Wi-Fi signal between your router and the power meter in the shield. After all, its metal body can shield the passage of radio waves between devices. I will also warn readers against such a power meter at the main entrance to the apartment or house since its allowable power will not be enough for all your appliances.

Terminals for connection for both input and voltage output wires are in the lower part of the housing. There are four terminals, and you clamp the wires with screws. To access the clamping screws, remove the cover on the bottom of the housing. On the case near screws, there are markings for the corresponding wires.

At the top of the case above the display are status indicators with a single button to control the relay. This button also performs a device reset function.

eWeLink app features

The program interface is the same for almost all switches. Here’s quick access to the relay state switch from the card and the main menu. Detailed information on power consumption is also displayed here. The following information will be available to users

  • Electricity consumption for today (kWh)
  • Electricity consumed yesterday (kWh)
  • Electricity consumed per month (kWh)
  • Current (A)
  • Voltage (V)
  • Power (W)

The settings section will show the power status, we can turn on local control, and we can add schedules, timers, and cycles. Other settings allow you to add notifications based on relay status or power consumption goals for the day or month.

The values on the display and in eWeLink are updated every 5 seconds.

Smart Controls

eWeLink is compatible with smart speakers from Alexa and Google Home.
There is a possibility of integration with SmartThings. But unfortunately, you can’t control anything but turning the relay on or off. It is not possible to obtain information on electricity consumption through such integrations. There will be alternative firmware for the device. It’s probably already made. Both Tasmota and ESPHome allow you to transfer power usage statistics to Home Assistant, and from there, you can send them to Alexa or SmartThings.

What’s inside

Usually, Sonoff devices come with everything needed to tinker with the firmware, and the Sonoff POW Elite is no different. The PCB contains contacts for ESP32 (TC, RX, GND, Vcc), and something tells me that the button links to GPIO00, which enables the firmware mode.

The antenna got printed to the PCB. Unfortunately, there is no connector for connecting an external antenna, which makes another argument against a weak Wi-Fi signal.

The display controller chip is on the same side as the ESP32, with several contacts next to it to connect to the display itself. By the way – the screen has no backlight, which can be inconvenient at night. On the other hand, few control electricity consumption in the middle of the night.
ЗOn the back of the PCB, we see the elements of the power supply system (small transformer, capacitors, and filters). The large item on this side of the board is the relay.

This relay exactly controls the supply of voltage to the output of the power meter. In my opinion, the manufacturer could install a more powerful relay because, as you can see in the photo, there is more than enough space on the board. Maybe in a while, we will see an updated model of this power meter from Sonoff, but already designed for more power. It would be interesting to install one at the entrance to your home to control the electricity consumption inside your home. Logically, such a power meter would cost more, but I think the price here would differ only due to the cost of a more powerful relay.

Встановлюємо «Ukraine Alarm» в Home Assistant, та налаштовуємо сповіщення

В оновленні 2022.5.3 до Home Assistant з’явилась нова інтеграція, що має назву «Ukraine Alarm». З її допомогою можна отримувати інформацію про повітряні тривоги або інші типи тривог на території України в режимі реального часу.

«Ukraine Alarm» створює чотири бінарні сенсори, кожен з яких відповідає за певний тип тривоги. Коли сенсор в стані «on» – оголошено відповідну тривогу.

В версії 2022.5.4 HA оновилась і вище згадана інтеграція. Тепер не потрібно чекати ключ API від розробників (який можуть і не надати), достатньо налаштувати «Ukraine Alarm» вказавши територію, яку плануєте моніторити.

Додавання інтеграції «Ukraine Alarm» в Home Assistant.

Натисніть кнопку My або додайте «Ukraine Alarm» вручну натиснувши кнопку « + Add Integration» і почніть вводити назву. Далі клікніть по назві нашої інтеграції.

Далі необхідно вибрати територію, де ви плануєте відслідковувати стан тривог. Це може бути область, район або територіальна громада чи місто.

На останньому кроці можна призначити кімнату (зону) до якої будуть додані нові сенсори з інтеграції.

Після натискання на кнопку «Finish» інтеграцію «Ukraine Alarm» буде додано.

Як видно на зображенні, кожен екземпляр такої інтеграції створює по чотири сутності binary_sensor, що відповідають за наявність певного типу тривоги. Це тривоги Air, Artillery, Urban Fights, та Unknown. Існує ліміт на кількість територій, щоб не перевищити кількість API запитів з одного IP. Ви можете моніторити не більше 5ти.

Додайте сенсори на головний екран в Dashboard

Якщо ви не бажаєте отримувати сповіщення, а лише хочете мати наочну інформацію про тривоги в певному регіоні – додайте сенсори в картку lovelace. Звичайно, ви можете оформити зовнішній вигляд за власним смаком.

На першому зображенні картка з чотирма сенсорами тривог в той момент, коли тривог немає. На другому зображенні стан сенсорів, коли оголошено повітряну тривогу.

Додаємо сповіщення в мобільний додаток Home Assistant та Telegram

Як налаштувати телеграм бот, в який будуть приходити сповіщення від вашого розумного будинку я вже писав. Далі я лише додам код автоматизації, який дозволить відправляти сповіщення до вашого телеграм боту.

Також буде додано код, який дозволить керувати сповіщеннями в вашому мобільному додатку Home Assistant. В цьому прикладі буде використано голосове сповіщення, причому ви його почуєте навіть тоді, коли ваш телефон буде у беззвучному режимі. Що ж, познайомимось з кодом…

В коді вище я лишив коментарі до відповідних його частин.

На сьогодні все. А вам мирного неба, і ніяких тривог!

Installing Ukraine Alarm in HA and setting up notifications

Update 2022.5.3 to Home Assistant introduces a new integration called Ukraine Alarm. With its help, you can get information about air alarms or other alarms in Ukraine in real-time.

Ukraine Alarm creates four binary sensors, each responsible for a specific type of alarm, and when the sensor is in the “on” state, a corresponding alarm goes off.

In version 2022.5.4 HA, the integration got an update. Now you do not need to wait for the API key from the developers (who may not give you the key), and you can configure “Ukraine Alarm” by specifying the area you plan to monitor immediately.

Adding Ukraine Alarm integration to Home Assistant

Click the My button or add “Ukraine Alarm” manually by clicking the “+ Add Integration” button and start entering the name. Then click on the name of our integration.

Next, you need to choose the area where you plan to monitor the alarm, which could be an area, district, local community, or city.

In the last step, you can assign a room (zone) to which new integration sensors would add.

After clicking on the “Finish” button, the “Ukraine Alarm” integration will be added.

As you can see in the image, each instance of this integration creates four binary_sensor entities responsible for having a type of alarm. These alarms are Air, Artillery, Urban Fights, and Unknown. There is a limit on the number of territories, not to exceed the number of API requests from one IP. You can monitor up to 5.

Adding sensors to the home screen in the Dashboard

If you do not want to receive notifications but want clear information about alarms in a particular region, add sensors to the Lovelace card. Of course, you can design the look to your liking.

The first image shows a card with four-alarm sensors when there are no alarms. The second image shows the state of the sensors when the air alarm goes off.

Adding sensors to the home screen in the Dashboard

I already made a tutorial on setting up a Telegram bot that receives notifications from your smart home. Next, I’ll just add the automation code, which will allow you to send notifications to your telegram bot.

I will also provide the code to allow you to manage notifications in your Home Assistant mobile app. This example will use a voice notification, and you will hear it even when your phone is silent. Well, let’s get acquainted with the code.

In the code above, I left comments on the relevant parts.

That’s all for today. Have a peaceful sky without air alerts!

Знайомство з розумним освітленням Wiz

Сьогодні познайомимося з освітлювальними приладами компанії Wiz на прикладі філаментної, (в стилі ретро), лампи ST64 E27. Повна назва – ST64 E27 WIZ DW FA Q

Історія компанії Wiz

Компанія WiZ була заснована в 2017 році як стартап, а вже в 2019 році приєдналася до Signify, світового лідера в галузі освітлення. Signify також є власником торгової марки Philips Hue. WiZ — це платформа IoT рішень для розумного освітлення. Екосистема WiZ включає в себе не лише програмні рішення, а й хмарні послуги та продукти. Разом з партнерами, компанія пропонує освітлення, прилади та аксесуари під різними брендами. WiZ вже підключила мільйони пристроїв на ринку.

На відміну від Philips Hue, WiZ надає розумне освітлення на основі Wi-Fi, що керується за допомогою зручного додатка, який підключається до існуючих мереж Wi-Fi. Це не потребує наявності хабу для управління системою. Екосистема WiZ охоплює більш ніж 60 країн світу.

Короткі характеристики та огляд лампи WiZ ST64 E27

Колба лампи скляна і має грушовидну форму в ретро стилі. Нитки розжарення виготовлено із рядів світлодіодів, які візуально повторюють нитки розжарення в старих «лампах Едісона». Світло від таких ниток має приємний білий теплий колір з колірною температурою 2200К. Є можливість керувати яскравістю лампи з фірмового додатку. Максимальна яскравість лампи становить 550 люмен, що є еквівалентом 45W лампи розжарення.

Мушу зауважити, керування яскравістю лампи за допомогою зовнішніх дімерів неможливе, рекомендується управління яскравістю таких ламп лише з додатка.

Лампа, що продається в європейських країнах має цоколь E27 і напругу живлення 220-240в. Тобто використовувати девайс в країнах Північної Америки буде неможливо. Як стверджує рекламний буклет, термін роботи лампи становить 22 роки за умови роботи по три години в день. Девайс має клас енергоефективності A+ .

Керування лампою відбувається за допомогою бездротового стандарту Wi-Fi IEEE 802.11 b/g/n на частоті 2,4 GHz. Можливе керування і за допомогою голосових асистентів або альтернативних систем керування розумним будинком.

Додаток Wiz для керування освітленням

Насамперед, після запуску, фірмовий додаток попередить вас, що всі девайси WiZ, які будуть додані до вашого розумного будинку, будуть працювати з Wi-Fi лише на частоті 2,4 GHz.

Далі вам запропонують створити обліковий запис Wiz. Це допоможе в майбутньому керувати вашими девайсами через мережу Інтернет. За необхідності ви можете увійти в свій аккаунт за допомогою Google або Facebook.

В налаштуваннях ви зможете увімкнути можливість локального керування девайсами. Це знадобиться для управління освітленням за допомогою Home Assistant. На цьому ж екрані є можливість увімкнути інтеграції зі сторонніми сервісами, наприклад, з голосовими асистентами Google чи Alexa.

Маємо можливість додавати чи змінювати кімнати в нашому розумному будинку і призначати до них розумні девайси.

Додавання лампи в додаток досить не складне, достатньо натиснути відповідну кнопку в меню і обрати спосіб додавання девайсу. Але, перед цим не забудьте увімкнути живлення лампи. Далі, на одному з кроків, необхідно буде ввести пароль до вашої мережі, таким чином ви збережете його на новому девайсі.

Може трапитись, що після додавання нової лампи в додаток Wiz ви не зможете керувати нею з додатку. В чому причина такої проблеми я не знаю, але відразу після того, як закрити додаток Wiz і знову його відкрити, управління девайсом працює нормально. Можу помилятися, але такий баг з’являється лише при першому включенні лампи після її додавання. Можливо, це пов’язано зі зміною мережі телефоном при додаванні девайсу в розумний будинок Wiz.

Отже, керування тепер працює, і ви можете змінювати яскравість лампи з додатка. У тому ж додатку є можливість налаштовувати сцени і розклади роботи девайсів. А якщо ви додали в Wiz інтеграцію з голосовим асистентом, тоді ви зможете керувати освітленням і за допомогою голосу, або з додатку Google Home.

Додаємо можливість керування освітленням Wiz в Home Assistant

Для того, щоб у вас з’явилась можливість керування девайсами Wiz з Home Assistant, необхідно в налаштуваннях додатку Wiz увімкнути локальне керування (Allow Local Communication). Також не забудьте в налаштуваннях вашого роутера вказати, щоб лампа отримувала фіксовану IP адресу.

Тепер перейдемо до налаштувань в Home Assistant і додамо інтеграцію wiz.

Далі вкажіть IP адресу вашої лампи

Якщо це необхідно, призначте для неї необхідну кімнату.

Лампа буде додано в Home Assistant, кожен освітлювальний прилад в інтеграції буде мати по три сутності, але в певний момент часу деякі з них можуть бути відключені або недоступні. Це залежить від сцени або поточного режиму роботи лампи. Звичайно, сутність light має бути доступна завжди.

Для зручності можна додати картку і керувати освітленням звідти. Але якщо ви вже маєте готову інтеграцію wiz ви маєте змогу додавати і нові правила автоматизацій з її участю.

На сьогодні все. Побачимось!

Introduction to the Wiz smart lighting

Today you will get to know the Wiz lighting devices, for example, the filamentous (retro-styled) ST64 E27 bulb. The full name is “ST64 E27 WIZ DW FA Q”.

History of Wiz

Wiz was founded in 2017 as a startup, and in 2019 it already became a part of Signify, the world leader in the lighting industry. Signify is also the owner of Philips Hue. Wiz is the IoT platform of solutions for smart lighting. The Wiz ecosystem includes not only software solutions but also cloud features and products. Together with partners, the company offers lighting, devices, and accessories under different brands. Wiz already connected millions of devices in the market.

Unlike Philips Hue, Wiz offers smart lighting based on Wi-Fi, which is then controlled by a very handy app that connects to existing Wi-Fi networks. You don’t need a hub to control the system. The Wiz ecosystem covers more than 60 countries around the world.

Short characteristics and the Wiz ST64 E27

The light bulb is made out of glass, pear-shaped and retro-styled. The filaments are made out of rows of LEDs, that visually copy the filaments of “Edison’s lamp”. The light from such filaments is a nice white warm light with a cool temperature of 2200K. You can control the brightness of the lamp in a branded app. The max brightness of the lamp is 550 lumen, which is the equivalent of a 45W incandescent lamp.

I must say, controlling the brightness of the lamp by third-party dimmers is impossible, I recommend controlling the brightness from the original app only.

The lamp that sells in European shops has a plinth E27 and a voltage of 220-240W. That means using the device in the countries of North America would be impossible. Just as the advertisement booklet is stating, the lamp life is 22 years on the condition of work for 3 hours a day. The device has an energy-saving tier of A+.

Controlling the lamp is possible thanks to the Wi-Fi IEEE 802.11 b/g/n wireless standard with a frequency of 2.4 GHz. It is also possible to control the lamp using voice assistants or alternative smart home control systems.

The Wiz app for light control

First of all, after launching, the app will warn you that all Wiz devices added to your smart home, will only work with 2.4 GHz Wi-Fi networks.

Then you will be offered to create a Wiz account. This will help control your device in the future. If necessary, you can log onto your account using Google or Facebook.

In the settings, you can turn on local device control. This will be required to control lighting using Home Assistant. On the same screen, there is a possibility to turn on third-party integration, for example with Google and Alexa voice assistants.

We can add or change rooms in our smart home and assign smart devices to them.

Adding the lamp isn’t hard, you can just press the correlating button in the menu and choose the way to connect the device. But before that, don’t forget to turn on the lamp. Next, you will need to enter the password to your network so that this way you will save it onto your device.

It can happen if after adding the new lamp in the Wiz app you won’t be able to control it from the app. I don’t know why it happens, but everything works as it should right after relaunching the Wiz app. I could be wrong, but this bug only happens the first time you turn on the lamp after adding. Maybe this is caused by changing the network in the process of adding the device to the Wiz smart home.

So, controlling works now, and you can change the brightness from within the app. In the same app, you can set up scenes and routines for the devices. And if you added voice assistant integration, you can control the lighting using either your voice or the Google Home app.

Making it possible to control Wiz in Home Assistant

In order to control Wiz devices in Home Assistant, you need to enable local communication (Allow Using Communication) in the Wiz app. Also, don’t forget to make the lamp’s IP static in the router settings. Now we’ll go to Home Assistant settings and add the Wiz integration.

Now specify the IP address of your lamp.

If needed, set a correct room for it.

The lamp will be added to Home Assistant, every light bulb in the integration will have three essences, but currently, some of them could be disabled or unavailable. This depends on the scene or the current lamp mode. Of course, the “light” essence must be always available.

For convenience, you can add a card and control lighting from there. And if you already have a working Wiz integration you can add new automatization rules with its participation.

That’s it for today. See you!