/yas-207-bridge

Bluetooth to HTTP Bridge for Yamaha YAS 207 sound bar

Primary LanguageTypeScript

Yas 207 Bluetooth to HTTP Bridge

Description

Control your YAS 207 Sound Bar with HTTP interface

Development

Copy and rename the .env.example to .env.

npm run start:dev

Build

npm run build
npm run start

Run on raspberry PI

I have done tests on PI 3 but it should work on PI 4 too.

Use bluetoothctl cli tool to pair and get the mac address of the YAS 207 soundbar.

Create a script to bind /dev/rfcomm0 at startup

nano /home/pi/bind-bluetooth.sh
#/bin/sh
rfcomm connect 0 xx:xx:xx:xx:xx:xx 1

And add it to cron tab

sudo crontab -e
@reboot sh /home/pi/bind-bluetooth.sh