Git Product home page Git Product logo

Comments (42)

nicoduj avatar nicoduj commented on May 12, 2024 1

Hi, definitely it is the plugin. I will check but I think it is because of the name of the activity . I had an option for naming it and disabled it since you can rename in HomeKit but in your case I didn’t think of it might be a problem . I will check ASAP and propose a fix to you for testing.

Could you post your logs and especially the activity discovery at homebridge startup ?

from homebridge-harmony.

nicoduj avatar nicoduj commented on May 12, 2024 1

You're welcome, I definitely want this plugin to be useful :)

Just one more thing you could try : Have 2 homebridge instances where each one runs a platform for each hub (if not too difficult in your config). you can try this if everything else fails ;p

I suspect either a problem with "timing" or some kind of overlap between the paltform, but not sure (I am not a "senior dev" in node.js so I might have missed something)..

Will continue tomorrow.

from homebridge-harmony.

Nastras avatar Nastras commented on May 12, 2024 1

Ok, so 1.2.0 install and manually replace index file 😁

from homebridge-harmony.

Nastras avatar Nastras commented on May 12, 2024 1

Good news, V1.2.0 works with the new index file!

from homebridge-harmony.

nicoduj avatar nicoduj commented on May 12, 2024

Ok, I gave it a look quickly, I am definitely interested into your logs in debug mode, while starting homebridge and while launching your scene !

from homebridge-harmony.

Nastras avatar Nastras commented on May 12, 2024

No problem, I restarted the homebridge in debug mode and ran the scene. I hope this helps you further?

247983b4-0693-4e33-b23e-1a73020421fa

from homebridge-harmony.

Nastras avatar Nastras commented on May 12, 2024

50cfa0e0-e532-44b3-8834-6028a8a46bcf

from homebridge-harmony.

nicoduj avatar nicoduj commented on May 12, 2024

did you put the -D switch ? can't see the plugin logs.

from homebridge-harmony.

Nastras avatar Nastras commented on May 12, 2024

Yes I have, the pictures of me can you see it?
Without -D, much less data will be displayed.

from homebridge-harmony.

Nastras avatar Nastras commented on May 12, 2024

Look here is my homebridge config for the instance with which I started your plugin in debug mode.

78c553a3-4bb7-4cf4-92ed-89c23413ab97

from homebridge-harmony.

nicoduj avatar nicoduj commented on May 12, 2024

strange I was expecting far more logs ! (and I don't see the startup activities discovery logs).

However, If I correctly understand, you try to activate Apple Tv scene on your schlafzimmer and power off i your wohnzimmer, and the power off goes "right" but the scene activatio ndoesn't fire ?Are you doing this through home app ? If yes, whatr are the state of the switches in it ? (immedialtely and after exiting and relaunching the app) Can I see your config file ?

from homebridge-harmony.

Nastras avatar Nastras commented on May 12, 2024

665fd710-c571-45c8-846d-705a5ff90f76

from homebridge-harmony.

Nastras avatar Nastras commented on May 12, 2024

Yes, exactly. I started the scene to try out the Home app and Siri. The switches of activities are off after firing in the living room. As it should be. And in the bedroom too. Here, however, an activity should be started. The activity is also started in the log. I observed the HarmonyHub in the bedroom when I triggered the scene and I did not realize that there were any IR commands sent.

from homebridge-harmony.

Nastras avatar Nastras commented on May 12, 2024

At these points in the log can be seen that the activities have started?
93326065-03f4-4536-bf69-739b18b9fae9

from homebridge-harmony.

nicoduj avatar nicoduj commented on May 12, 2024

This log is indeed put when we have a status 200 after sending the command to the hub. What seems strange to me is that I can't see a lot of other logs you should have on debug . Are you in 0.0.9 version ? In previous I might had a problem with background refresh with multiple platforms.

from homebridge-harmony.

nicoduj avatar nicoduj commented on May 12, 2024

by the way, you can try to narrow the issue to :

  • disable refreshtimer on both platforms (set it to 0).
  • disable the turnoffactivity on the hub you want to turn on with this scene (bedroom).

Sorry, but I only have one hub so I must figure it out by reading the code and it is not obvious right now :)

from homebridge-harmony.

Nastras avatar Nastras commented on May 12, 2024

No problem, I'm glad that you have interest in the bug .-)
Yes I am on the version 0.0.9 I am now on the way but later try the hints of you and give you notice.

Thank you!

from homebridge-harmony.

nicoduj avatar nicoduj commented on May 12, 2024

hi @Nastras , do you have any update on that issue ?

from homebridge-harmony.

Nastras avatar Nastras commented on May 12, 2024

Hello @nicoduj,
sorry for the late reply. At the moment I have a lot to do that unfortunately I have not got around yet. I wanted to start trying the tips of you now. For this I have updated to V1.2.0.

Unfortunately, after the update my instance for your plugin does not start anymore. I did not make any changes.

I get this error:
bildschirmfoto 2019-01-27 um 06 47 09

I read that you want to show each activity individually and no longer grouped under one device. Or is this optional? Could not see an option in the config for it.

#26

It's good for the Apple Home users.
Not so nice for the third party apps user.

I suspect that he has a problem since V1.2.0 when using two hubs that use the same name in the activity.

What do you think?

from homebridge-harmony.

Nastras avatar Nastras commented on May 12, 2024

I have just tested all versions. From version 1.0.0 the error occurs. I also deleted the accessories folder.

from homebridge-harmony.

Nastras avatar Nastras commented on May 12, 2024

I have now tested your tips in version 0.0.9.

refreshtimer deactivated = no improvement
Turnoffactivity deactivated and scenes adjusted in homekit = no improvement

The problem is still there. I think with an additional instance for the second harmonyhub it should definitely go. I have not tested it yet. Would be nice of course if it goes with one instance if you still have an idea? 😊

from homebridge-harmony.

MikeDeltaHH avatar MikeDeltaHH commented on May 12, 2024

Hi @nicoduj ,
Just for information...have the same problem... homebridge crashed after update to a version later then 0.0.9 - have also two hubs in my environment!

from homebridge-harmony.

nicoduj avatar nicoduj commented on May 12, 2024

Hi , indeed I broke something for users with 2 hubs. Will fix asap but until then stay on below 1.0.0.

I will try to make the behavior optionnal also.

Sorry for the bugs, i have only one hub ;)

from homebridge-harmony.

nicoduj avatar nicoduj commented on May 12, 2024

I have now tested your tips in version 0.0.9.

refreshtimer deactivated = no improvement
Turnoffactivity deactivated and scenes adjusted in homekit = no improvement

The problem is still there. I think with an additional instance for the second harmonyhub it should definitely go. I have not tested it yet. Would be nice of course if it goes with one instance if you still have an idea? 😊

Definitely I still have ideas for your problem ( id of services since you have similar names on 2 hubs might be related !) , but as I cannot test them I might need your help :) will let you know

from homebridge-harmony.

Nastras avatar Nastras commented on May 12, 2024

Let me know when you're ready πŸ‘

from homebridge-harmony.

nicoduj avatar nicoduj commented on May 12, 2024

You can try updating manually to see if it solves at least the crash issue and maybe your other one (I will work on an option for #29 afterwards) thanks for the help !

from homebridge-harmony.

Nastras avatar Nastras commented on May 12, 2024

What do you mean to update manually? I have just the 1.2.0 Installed error still available...

bcbc932a-96c1-47ae-93d8-1e5bf8c3be83

from homebridge-harmony.

nicoduj avatar nicoduj commented on May 12, 2024

Replace index.js by the one on the github repository in your homebridge/node_modules/homebridge-harmony folder

from homebridge-harmony.

Nastras avatar Nastras commented on May 12, 2024

ok I understand. Should I replace the index file in the 0.0.9 version?

I have previously installed version 1.2.0 as written above. Since the new index file was already online and the error has occurred.

from homebridge-harmony.

nicoduj avatar nicoduj commented on May 12, 2024

You should replace your current file. I haven’t publish my attempt to fix through npm. You will have to restart homebridge after.

from homebridge-harmony.

nicoduj avatar nicoduj commented on May 12, 2024

I am curious : do you still have your issue on activity change ?

from homebridge-harmony.

Nastras avatar Nastras commented on May 12, 2024

I have to test it now. As I said the V1.2.0 runs with the new index file. The problem with switching between two TVs still exists. I also noticed that the power off switch is not working properly anymore.

Also, as announced by you, all activities will be displayed as a separate device. Pretty ugly πŸ˜‰

from homebridge-harmony.

nicoduj avatar nicoduj commented on May 12, 2024

Hi, what do you mean by power switch not working properly anymore ?

I am working on an option for the separate device mode, will keep you updated but will post an official version before that integrate the fix for #28

from homebridge-harmony.

Nastras avatar Nastras commented on May 12, 2024

The power off switch works. I tested it again. Sorry!

Only the change between the tv's is not possible. I think you can do the update for the index file.

from homebridge-harmony.

nicoduj avatar nicoduj commented on May 12, 2024

ok thx. Option is on its way for getting only one accessory for all activities, hope to post this evening. I released howerver an update with the fix before as I said.

from homebridge-harmony.

nicoduj avatar nicoduj commented on May 12, 2024

#29 is up (version 0.1.5) . Let me know if it is ok.

Concerning your original issue, does addAllActivitiesToSkipedIfSameStateActivitiesList have an effect on it ?

from homebridge-harmony.

Nastras avatar Nastras commented on May 12, 2024

I do not think so, but I'm not sure because I set up the scene later.

from homebridge-harmony.

nicoduj avatar nicoduj commented on May 12, 2024

Ok, still need to check some things but I really don’t know why especially if commands are working individually.

By the way I pushed a version but I am not 100% certain it will work with multiple hubs, any feedback would be much appreciated !

from homebridge-harmony.

Nastras avatar Nastras commented on May 12, 2024

Hello @nicoduj,
wanted to briefly give you a current state of affairs because of the problem.

I have just updated to the current version and tried again. Now works the switch between two scenes without a problem. I think the issue can be closed.

Thanks again for your help and the great plugin!

from homebridge-harmony.

nicoduj avatar nicoduj commented on May 12, 2024

WOW ;) Great news ! Can I ask which version exactly you were on, and if in latest it is still ok (I assume your are not using tv mode).

from homebridge-harmony.

Nastras avatar Nastras commented on May 12, 2024

With latest I meant the version 0.2.7 yesterday. No, I do not use the tv mode because I have no ios 12 beta installed. But I have it planned πŸ˜‰

from homebridge-harmony.

nicoduj avatar nicoduj commented on May 12, 2024

ok, I close, feel free to reopen especially since latest version od not use anymore polling for background refresh and had a lot of refactoring, I hope it still works since I didnt narrow this one :)

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.