Skip to content

efa2000/node-red-contrib-alice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

259 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeRed Home (node-red-contrib-alice)

platform Min Node Version GitHub version NPM Total Downloads NPM Downloads per month

Интеграция Node-RED с умным домом Яндекса. Подключите любые устройства из Node-RED к Алисе и управляйте ими голосом.

Integration of Node-RED with Yandex Smart Home. Connect any device from Node-RED to Alice voice assistant.

Telegram: https://t.me/nodered_home_chat — поддержка и обсуждение / support & discussion

Сайт / Website: https://nodered-home.ru


Быстрый старт

  1. Установите Node-RED (инструкция)
  2. Установите модуль из палитры Node-RED или через npm:
    npm install node-red-contrib-alice
    
  3. Перетащите на рабочую область ноду alice-device и нужные умения (on/off, range, color, mode и т.д.)
  4. Откройте настройки ноды alice-device, нажмите «Зарегистрироваться» — авторизуйтесь через Яндекс
  5. Соедините умения с вашими устройствами в Node-RED
  6. В приложении «Дом с Алисой» добавьте навык NodeRed Home — устройства появятся автоматически

Концепция

Каждое устройство в Node-RED состоит из:

  • alice-device — само устройство (лампочка, розетка, кондиционер и т.д.)
  • Умения — функции устройства, которые подключаются к alice-device:
    • on_off — включение/выключение
    • range — числовые параметры (яркость, громкость, температура)
    • color — управление цветом
    • mode — режимы работы (скорость вентилятора, режим кондиционера)
    • toggle — переключатели (пауза, беззвучный режим)
    • sensor — датчики (температура, влажность, CO2)
    • event — события (открытие двери, движение)
    • video — видеопоток

Умения можно комбинировать в любом порядке. Например, лампочка = on_off + range (яркость) + color.

Подробнее об устройствах и умениях: документация Яндекса

Подтверждение команд

Когда Алиса отправляет команду, устройство должно вернуть подтверждение (отправить значение на вход ноды умения). Если ваше устройство не отвечает или отвечает медленно — включите опцию Response в настройках умения, и подтверждение будет отправлено автоматически.

Тарифы

  • До 4 устройств — бесплатно
  • 5 и более устройств — 299 руб./мес.

Quick Start

  1. Install Node-RED (guide)
  2. Install the module from the Node-RED palette or via npm:
    npm install node-red-contrib-alice
    
  3. Drag an alice-device node and the desired capability nodes (on/off, range, color, mode, etc.) onto your flow
  4. Open the alice-device settings, click "Register" and sign in with your Yandex account
  5. Wire the capability nodes to your devices in Node-RED
  6. In the Yandex "Home with Alice" app, add the NodeRed Home skill — your devices will appear automatically

Concept

Each device in Node-RED consists of:

  • alice-device — the device itself (light, switch, AC, etc.)
  • Capabilities — device functions connected to alice-device:
    • on_off — turn on/off
    • range — numeric parameters (brightness, volume, temperature)
    • color — color control
    • mode — operating modes (fan speed, AC mode)
    • toggle — toggles (mute, pause)
    • sensor — sensors (temperature, humidity, CO2)
    • event — events (door open, motion detected)
    • video — video stream

Capabilities can be combined in any order. For example, a light = on_off + range (brightness) + color.

More about devices and capabilities: Yandex documentation

Command Confirmation

When Alice sends a command, the device must return a confirmation (send a value to the capability node input). If your device does not respond or responds slowly, enable the Response option in the capability settings — the confirmation will be sent automatically.

Pricing

  • Up to 4 devices — free
  • 5 or more devices — 299 RUB/month

About

The module allows you to use Node-Red together with the Yandex.Alice voice assistant service (voice control of Yandex smart home devices)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors