npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

homebridge-xbox-tv

v3.1.20

Published

Homebridge plugin to control Xbox game consoles.

Downloads

6,728

Readme

Homebridge Xbox TV

verified-by-homebridge npm npm npm GitHub pull requests GitHub issues

Homebridge plugin for Microsoft game Consoles. Tested with Xbox One X/S and Xbox Series X.

Package Requirements

| Package | Installation | Role | Required | | --- | --- | --- | --- | | Homebridge | Homebridge Wiki | HomeKit Bridge | Required | | Config UI X | Config UI X Wiki | Homebridge Web User Interface | Recommended | | Xbox TV | Plug-In Wiki | Homebridge Plug-In | Required |

About The Plugin

  • Power ON/OFF short press tile in HomeKit app.
  • Reboot Console with button, rquired webApiControl enabled.
  • Record Game DVR with button, rquired webApiControl enabled.
  • RC/Media/Volume control from RC app on iPhone/iPad and possible over web/local api.
  • Speaker control from RC app on iPhone/iPad Speaker Service.
  • Legacy Volume/Mute control is possible throught extra lightbulb/fan (slider).
  • Apps, Inputs, Games can be switched if webApiControl is enabled and console is authorized.
  • Siri can be used for all functions, some times need to be created legacy buttons/switches/sensors.
  • Automations can be used for all functions, some times need to be created legacy buttons/switches/sensors.
  • Support external integrations, RESTFul, MQTT.

Authorization Manager

  • First of all please use built in Authorization Manager.
    • Start new authorization need remove old token first, to clear token use Authorization Manager GUI.
    • Make sure Your web browser do not block pop-up window, if Yes allow pop-up window for this app.

Configuration

  • Device must have Instant-on power mode enabled
    • Profile & System > Settings > General > Power mode & startup
    • Console need to allow connect from any 3rd app. Allow Connections from any device should be enabled.
    • Profile & System > Settings > Devices & Connections > Remote features > Xbox app preferences.
  • Run this plugin as a Child Bridge (Highly Recommended), this prevent crash Homebridge if plugin crashes.
  • Install and use Homebridge Config UI X to configure this plugin.
  • The sample-config.json can be edited and used as an alternative (advanced users).

| Key | Description | | --- | --- | | name | Here set the accessory Name to be displayed in Homebridge/HomeKit. | | host | Here set the Hsostname or Address IP of Console.| | xboxLiveId | On your console select Profile > Settings > System > Console info, listed as Xbox network device ID. You can only find the Xbox network device ID in Settings on your console, this is different from your console serial number. | | getInputsFromDevice| If enabled, apps will be loaded from device, only available if webApiControl enabled. | | filterGames | If enabled, Games will be hidden and not displayed in the inputs list, only available if webApiControl enabled. | | filterApps | If enabled, Apps will be hidden and not displayed in the inputs list, only available if webApiControl enabled. | | filterSystemApps | If enabled, System Apps (Accessory, Microsoft Store, Television) will be hidden and not displayed in the inputs list, only available if webApiControl enabled. | | filterDlc | If enabled, Dlc will be hidden and not displayed in the inputs list, only available if webApiControl enabled. | | inputsDisplayOrder | Here select display order of the inputs list, 0 -None, 1 -Ascending by Name, 2 - Descending by Name, 3 - Ascending by Reference, 4 - Ascending by Reference. | | inputs.name | Here set Input Name which You want expose to the Homebridge/HomeKit, Screensaver, Television, TV Settings, Dashboard, Accessory, Settings, Network Troubleshooter, Microsoft Store, Xbox Guide are created by default. | | inputs.reference | Required to identify current running app. | | inputs.oneStoreProductId | Required to switch apps. | | inputs.contentType | Here select from available content types. | | buttons.name | Here set Button Name which You want expose to the Homebridge/HomeKit. | | buttons.command | Here select button control mode or command, Reboot and Switch App/Game- only possible if webApiControl enabled. | | buttons.oneStoreProductId | Here set Input oneStoreProductId, only possible if webApiControl enabled. | | buttons.displayType | Here select display type in HomeKit app, possible 0 - None/Disabled, 1 - Outlet, 2 - Switch. | | buttons.namePrefix | Here enable/disable the accessory name as a prefix for button name.| | sensorPower| If enabled, then the Power will be exposed as a Contact Sensor, fired if power ON. | | sensorInput| If enabled, then the Input will be exposed as a Contact Sensor, fired on every Input change. | | sensorScreenSaver| If enabled, then the Screen Saver will be exposed as a Motion Sensor, fired on change to Screen Saver. | | sensorInputs| Her create custom Inputs sensor, sensors will be exposed as a Contact Sensor, fired if switch to it. | | sensorInputs.name | Here set own Name which You want expose to the Homebridge/HomeKit for this sensor. | | sensorInputs.reference | Here set Reference like Xbox.Dashboard_8wekyb3d8bbwe!Xbox.Dashboard.Application to be exposed as sensor (active on switch to this Input). | | sensorInputs.displayType | Here select sensor type to be exposed in HomeKit app, possible 0 - None/Disabled, 1 - Motion Sensor, 2 - Occupancy Sensor, 3 - Contact Sensor. | | sensorInputs.namePrefix | Here enable/disable the accessory name as a prefix for sensor name.| | webApiControl | This enable console control over Web Api. Additional functions are available in Advanced Settings section. | | webApiPowerOnOff | This enable Power control over Web Api. | | webApiToken | Required if webApiControl enabled, use Authorization Manager to get it. | | webApiClientId | Here set your own Client Id from Azure AD or leave empty if you do not have own account. | | webApiClientSecret | Here set your Client Secret from Azure AD or leave empty if you do not have own account. | | volumeControlNamePrefix | Here enable/disable the accessory name as a prefix for volume control name. | | volumeControlName | Here set Your own volume control name or leave empty. | | volumeControl | Here choice what a additional volume control mode You want to use (0 - None/Disabled, 1 - Lightbulb, 2 - Fan), not working yet. | | infoButtonCommand | Here select the function of I button in RC app. | | enableDebugMode | If enabled, deep log will be present in homebridge console. | | disableLogInfo | If enabled, disable log info, all values and state will not be displayed in Homebridge log console. | | disableLogDeviceInfo | If enabled, add ability to disable log device info by every connections device to the network. | | restFul | This is RSTful server. | | enable | If enabled, RESTful server will start automatically and respond to any path request. | | port | Here set the listening Port for RESTful server. | | debug | If enabled, deep log will be present in homebridge console for RESTFul server. | | mqtt | This is MQTT Broker. | | enable | If enabled, MQTT Broker will start automatically and publish all awailable PV data. | | host | Here set the IP Address or Hostname for MQTT Broker. | | port | Here set the Port for MQTT Broker, default 1883. | | clientId | Here optional set the Client Id of MQTT Broker. | | prefix | Here set the Prefix for Topic or leave empty. | | auth | If enabled, MQTT Broker will use authorization credentials. | | user | Here set the MQTT Broker user. | | passwd | Here set the MQTT Broker password. | | debug | If enabled, deep log will be present in homebridge console for MQTT. | | reference, oneStoreProductId | If web Api enabled then all available in ./homebridge/xboxTv/inputs_xxxxxx file. |

Create App on Azure AD

  • Go to Azure Portal
  • Register new App + New registration
    • Enter a name for your app
    • Set Supported account types to Personal Microsoft accounts only
    • Click register
    • Choose Redirect URIs -> Add a Redirect URI
    • Click Add a platform -> Mobile and desktop applications
    • Enter custom redirect URI http://localhost:8888/auth/callback
  • From the overview of your app page, copy Application (client) ID to webApiClientId
  • Save restart plugin and authorize console again and have fun.

RESTFul Integration

  • POST data as a JSON Object {Power: true}

| Method | URL | Path | Response | Type | | --- | --- | --- | --- | --- | | GET | http//ip:port | info, state, consoleslist, profile, apps, storages, status. | {"power": true, "app": Xbox.Dashboard_8wekyb3d8bbwe!Xbox.Dashboard.Application} | JSON object. |

| Method | URL | Key | Value | Type | Description | | --- | --- | --- | --- | --- | --- | | POST | http//ip:port | Power | true, false | boolean | Power state. | | | http//ip:port | App | Xbox.Dashboard_8wekyb3d8bbwe!Xbox.Dashboard.Application | string | Set app. | | | http//ip:port | RcControl | fastForward | string | Send RC command. | | | http//ip:port | Volume | up, down | string | Set volume. | | | http//ip:port | Mute | true, false | boolean | Set mute. |

MQTT Integration

  • Subscribe data as a JSON Object {App: "Xbox.Dashboard_8wekyb3d8bbwe!Xbox.Dashboard.Application"}

| Method | Topic | Message | Type | | --- | --- | --- | --- | | Publish | Info, State, Consoles List, Profile, Apps, Storages, Status | {"power": true, "app": Xbox.Dashboard_8wekyb3d8bbwe!Xbox.Dashboard.Application} | JSON object. |

| Method | Topic | Key | Value | Type | Description | | --- | --- | --- | --- | --- | --- | | Subscribe | Set | Power | true, false | boolean | Power state. | | | Set | App | Xbox.Dashboard_8wekyb3d8bbwe!Xbox.Dashboard.Application | string | Set app. | | | Set | RcControl | fastForward | string | Send RC command. | | | Set | Volume | up, down | string | Set volume. | | | Set | Mute | true, false | boolean | Set mute. |