1.0.2 • Published 8 months ago
homebridge-yandex v1.0.2
Warning
Plugin is in BETA, so it can contain bugs
Homebridge Yandex
Homebridge plugin for Yandex Home
Installation
NPM
npm i homebridge-yandex
Build yourself
Install dependencies
npm install
Build Plugin
npm run build
Link To Homebridge
npm link
Start Homebridge
homebridge -D
Setup
- Create app in Yandex API at https://oauth.yandex.ru/client/new
- Enter any name
- Select platform
Web services
(first) - Select all data with IoT (
iot:view
,iot:control
)
- Set Client ID and Client Secret in
config.json
:{ "name": "Yandex SmartHome", "platform": "HomebridgeYandex", "interval": 20000, "action_timeout": 1500, "client": { "id": "<CLIENT ID>", "secret": "<CLIENT SECRET>" } }
- Set redirect URL to:
http://<server ip>:6767/auth/callback
- Then start Homebridge server and go to url and authorize with your YandexID:
http://<server ip>:6767/auth
Known issues
- When light is RGB and saturation capable, and you set white, the light will be dim
- With Docker doesn't work init devices (???)
Current Support list
Devices:
"devices.types.light"
"devices.types.socket"
"devices.types.switch"
"devices.types.thermostat"
"devices.types.thermostat.ac"
"devices.types.media_device"
"devices.types.media_device.tv"
"devices.types.media_device.tv_box"
"devices.types.media_device.receiver"
"devices.types.cooking"
"devices.types.cooking.coffee_maker"
"devices.types.cooking.kettle"
"devices.types.cooking.multicooker"
"devices.types.openable"
"devices.types.openable.curtain"
"devices.types.humidifier"
"devices.types.purifier"
"devices.types.vacuum_cleaner"
"devices.types.washing_machine"
"devices.types.dishwasher"
"devices.types.iron"
"devices.types.sensor"
"devices.types.pet_drinking_fountain"
"devices.types.pet_feeder"
"devices.types.other"
Capabilities:
"devices.capabilities.on_off"
:on
"devices.capabilities.color_setting"
:temperature_k
hsv
(currently works so-so)rgb
scene
"devices.capabilities.range"
:brightness
channel
humidity
open
temperature
volume
"devices.capabilities.mode"
:cleanup_mode
coffee_mode
dishwashing
fan_speed
heat
input_source
program
swing
tea_mode
thermostat
work_speed
"devices.capabilities.toggle"
:backlight
controls_locked
ionization
keep_warm
mute
oscillation
pause
"devices.capabilities.video_stream"
:get_stream
Todo
- Better OAuth
- Publish to NPM (BETA)
- More devices and capabilities
- Go to 1.0.0
- Publish to NPM