Giter Club home page Giter Club logo

Comments (7)

pponce avatar pponce commented on June 3, 2024

Also might be worth looking at this project and comment here: AirBorne04/harmonyhub#20 (comment)

from homebridge-harmony.

pponce avatar pponce commented on June 3, 2024

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.

nicoduj avatar nicoduj commented on June 3, 2024

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.

pponce avatar pponce commented on June 3, 2024

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.

pponce avatar pponce commented on June 3, 2024

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.

nicoduj avatar nicoduj commented on June 3, 2024

Thanks, i will try to test this asap ! Tv platform seems reliable for now I can switch to another subject

from homebridge-harmony.

nicoduj avatar nicoduj commented on June 3, 2024

will be done in #48

from homebridge-harmony.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.