๐Ÿ“ฆ jtai / node-bravia-androidtv

Node.js module for controlling Sony BRAVIA TV running Android TV

โ˜… 7 stars โ‘‚ 0 forks ๐Ÿ‘ 7 watching
๐Ÿ“ฅ Clone https://github.com/jtai/node-bravia-androidtv.git
HTTPS git clone https://github.com/jtai/node-bravia-androidtv.git
SSH git clone git@github.com:jtai/node-bravia-androidtv.git
CLI gh repo clone jtai/node-bravia-androidtv
Jon Tai Jon Tai Update request module 2389102 3 years ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“„ .gitignore
๐Ÿ“„ auth.js
๐Ÿ“„ bravia.js
๐Ÿ“„ braviaAuth.js
๐Ÿ“„ braviaDiscovery.js
๐Ÿ“„ command.js
๐Ÿ“„ package.json
๐Ÿ“„ README.md
๐Ÿ“„ status.js
๐Ÿ“„ README.md

node-bravia-androidtv =====================

Node.js module for controlling Sony BRAVIA Android TV (tested with KDL65W850C)

The code is inspired by alanreid/bravia and borrows structure from ttu/node-yamaha-avr. Support for additional status commands inspired by aparraga/braviarc and breunigs/bravia-auth-and-remote.

Note that this model does not support Wake-On-LAN for power on, you send it a WakeUP command over HTTP instead. Thanks to Michael Tout on this openremote.org thread for the hint. You must turn on "Remote Start" on the TV for this to work.

Authentication


All HTTP requests are authenticated. The first time you will need to register this client by running

node auth.js

From then on the authentication cookie handling is done for you.

Status


Query the current power of the TV by running

node status.js

The result should be active or standby.

Query the playing content info by running

node status.js playing

The result should be something like

{ uri: 'extInput:hdmi?port=4',
  source: 'extInput:hdmi',
  title: 'HDMI 4/ARC' }

Query the current volume info by running

node status.js volume

The result should be something like

{ target: 'speaker',
  volume: 5,
  mute: false,
  maxVolume: 100,
  minVolume: 0 }

Commands


List supported commands (and their codes) by running

node command.js

To send a command (e.g., PowerOff), run

node command.js PowerOff