Comments (7)
Also might be worth looking at this project and comment here: AirBorne04/harmonyhub#20 (comment)
from homebridge-harmony.
I took a quick look at @AirBorne04 websocket implementation and there does appear to be an event sent from the hub itself that provides state information. You probably already noticed this too but just in case I wanted to post it here. @AirBorne04 leveraged the @lopelex websocket work and it also uses this hub notification state change data..
_onMessage(message)
{
if (message.type === 'connect.stateDigest?notify') {
this.onStateDigest(message.data);
}
}
/**
* The state digest is caused by the hub to let clients know about remote updates
* @param {message} stateDigest
/
onStateDigest(stateDigest) {
debug(received state digest ${JSON.stringify(stateDigest)}
);
this.emit(HarmonyClient_1.Events.STATE_DIGEST, stateDigest);
}
/*
* Returns the latest turned on activity from a hub.
*
* @returns Promise*/
from homebridge-harmony.
Thanks for the update.
What i fear with that is that we need to let the socket connected . By the past, with the old plugin, a lot of people (including me) were having errors (max client connected). I think the hub doesn’t allow too many simultaneous connection. But i will try that when i will have some time, currently the background update does the job (not a perfect one !) and i am focused on implementing the tv device mode with ios 12.2
from homebridge-harmony.
Looking forward to the tv device mode.
I’ll try out one of the plugins that uses the state digest functionality and report back.
I also had the the max client issue for the longest time. I resorted to using HA bridge and homebridge-hue to get around the issues. The issue did end up getting resolved in the xmpp homebridge harmonyhub plugin implementation. Just needed to use a version that relied on the latest harmonyhubjs client with included fixes for it. Airborne04 xmpp client also fixed that issue.
I’ll report back on any Max client issues with using one of the websocket plugins that is using state digest functions. I want to make the move to a websockets version and I like all the features you are adding to your plugin but would like optimized state updates.
from homebridge-harmony.
Have been running the airborne04 websocket implementation and have had no issues. No max client errors and home bridge crashing like the original harmony plugin did. It used to happen at least once a day if not more. Been running for 3+ days and no problem. State change syncs are quick. Great because my wife likes using the real remote.
The airborne04 xmpp implementation also has no Max client error issues. Just FYI Incase we ever have to go back to xmpp.
from homebridge-harmony.
Thanks, i will try to test this asap ! Tv platform seems reliable for now I can switch to another subject
from homebridge-harmony.
will be done in #48
from homebridge-harmony.
Related Issues (20)
- [BUG] Cannot add service with the same UUID. HOT 3
- Can't add Harmony TV manually in Home app HOT 2
- Experiencing Homebridge crashing HOT 5
- Change heading level h6 to h5 HOT 1
- Volume for a Device HOT 1
- Crash after updating 1.6.2 --> Error: WebSocket closed with reason: undefined (undefined). HOT 1
- Help to start HOT 2
- [FEATURE] - More Accessory types, choosable separately for each device, e.g. "window blinds" for IR-controlled projector screens or window blinds HOT 1
- Not all hubs are loaded HOT 1
- [solved] Returns "Error retrieving info from hub .... connect EHOSTUNREACH" but IP is correct HOT 3
- [BUG] Only a few buttons show up in the Apple TV Remote app HOT 2
- [FEATURE] Generic "do nothing" command for non stateless switches HOT 1
- Hue Sync Samsung App HOT 1
- Add Correct name to the Accessories HOT 1
- Don't see devices in HomeKit App [BUG] HOT 5
- Guide for using Siri with this plugin, especially with switching Activities? HOT 2
- [BUG] EHOSTUNREACH error HOT 1
- Allow spaces in Device Mapping commands input
- [BUG] The `sortInput` setting does not seem to work HOT 5
- An option to Trigger Switch flip while activity is starting or stopping HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-harmony.