nicoduj / homebridge-harmony Goto Github PK
View Code? Open in Web Editor NEWHarmony websocket plugin for homebridge
License: The Unlicense
Harmony websocket plugin for homebridge
License: The Unlicense
I have encountered errors of loading the plugin:
[12/28/2018, 12:46:28 PM] ERROR LOADING PLUGIN homebridge-harmony:
[12/28/2018, 12:46:28 PM] /usr/local/lib/node_modules/homebridge-harmony/index.js:29
);
SyntaxError: Unexpected token )
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Plugin.load (/usr/local/lib/node_modules/homebridge/lib/plugin.js:72:22)
throw new Error("The requested platform '" + name + "' was not registered by any plugin.");
Error: The requested platform 'HarmonyHubWebSocket' was not registered by any plugin.
at API.platform (/usr/local/lib/node_modules/homebridge/lib/api.js:122:13)
at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:315:45)
at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:85:36)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:43:10)
at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:389:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:502:3
With the configuration:
"platforms": [
{
"platform": "HarmonyHubWebSocket",
"name": "HarmonyHub",
"hubIP": "192.168.1.99",
"showTurnOffActivity" : true,
"turnOffActivityName" : "AV Off"
},
{
"platform": "HarmonyHubWebSocket",
"name": "HarmonyHub2",
"hubIP": "192.168.1.98"
}
]
Especially for third party integrations
I have two harmony hubs which i use in two different rooms. However, all the activities appear in one room on my iPhone. When I move one activity from one room, it moves them all leaving no Harmony activities in the original room. Any ideas how to fix?
Thanks in advance!
I have set up triggers with the harmony hub “switches”. However, it won’t work if I am using the harmony remote itself because the status of the “switches” will not get updated till I open the HomeKit app. Is it possible to have HomeKit automatically check and update the status on the background?
I'm seeing this behavior when i try to install anything higher than 0.2.7 Looks like the new harmony-websocket library doesn't like something in my environment. Any hints for more info I can/should provide to help troubleshoot?
[2/10/2019, 1:57:26 PM] [Living Room Harmony] Loading activities...
[2/10/2019, 1:57:27 PM] [Living Room Harmony] Error retrieving info from hub : WebSocket closed with reason: connection failed (1006).
[2/10/2019, 1:57:29 PM] [Living Room Harmony] Loading activities...
[2/10/2019, 1:57:30 PM] [Living Room Harmony] Error retrieving info from hub : WebSocket closed with reason: connection failed (1006).
[2/10/2019, 1:57:31 PM] [Living Room Harmony] Loading activities...
[2/10/2019, 1:57:33 PM] [Living Room Harmony] Error retrieving info from hub : WebSocket closed with reason: connection failed (1006).
[2/10/2019, 1:57:34 PM] [Living Room Harmony] Loading activities...
[2/10/2019, 1:57:36 PM] [Living Room Harmony] Error retrieving info from hub : WebSocket closed with reason: connection failed (1006).
I installed the plugin, and added the two additional parameters to my config file, but I’m still just getting a normal switch for my activity in the Home app. I’m running the 12.2 beta and the latest version of homebridge (46). Any suggestions on what to check to further diagnose?
Either static or dynamic when an activity is on, in order to fix devices states if needed.
Maybe with an option has one switch or multiple ones. In this case the number of switch won't be always the same so will need to had / remove them dyamically. In the other hand, if we have only one switch, maybe some devices that don't have distincts power on and off function will have trouble using those options.
Hi! I just installed this plugin to target one of my two Hubs. That hub has 5 activities:
However, after adding it to my HomeKit this shows up:
I have 3 instances of "Apple TV" and multiple of the rest. Only one of the "Apple TV" switches work. The rest do nothing.
Here is my config file:
{
"bridge": {
"name": "HomebridgePi",
"username": "CC:23:3D:E4:CE:32",
"port": 51464,
"pin": "031-45-157"
},
"description": "This is an example configuration file. You can use this as a template for creating your own configuration file containing devices you actually own.",
"accessories": [],
"platforms": [
{
"platform": "HarmonyHubWebSocket",
"name": "HarmonyLivingRoom",
"hubIP": "10.0.1.32",
"showTurnOffActivity": false,
"refreshTimer": 30
}
]
}
Here here is the log:
[2019-1-25 15:30:32] Homebridge is running on port 51464.
[2019-1-25 15:30:34] [homebridge-config-ui-x] Homebridge restart request received
[2019-1-25 15:30:34] [homebridge-config-ui-x] Executing restart command: killall -9 homebridge && killall -9 homebridge-config-ui-x
[2019-1-25 15:30:40] [homebridge-config-ui-x] Using Form Authentication
[2019-1-25 15:30:40] [homebridge-config-ui-x] Console v3.9.3 is listening on port 8180.
[2019-1-25 15:30:42] Loaded config.json with 0 accessories and 1 platforms.
[2019-1-25 15:30:42] ---
[2019-1-25 15:30:43] Loaded plugin: homebridge-dummy
[2019-1-25 15:30:43] Registering accessory 'homebridge-dummy.DummySwitch'
[2019-1-25 15:30:43] ---
[2019-1-25 15:30:44] Loaded plugin: homebridge-harmony
[2019-1-25 15:30:44] Registering platform 'homebridge-harmonyHub.HarmonyHubWebSocket'
[2019-1-25 15:30:44] ---
[2019-1-25 15:30:44] Loaded plugin: homebridge-config-ui-x
[2019-1-25 15:30:44] Registering platform 'homebridge-config-ui-x.config'
[2019-1-25 15:30:44] ---
[2019-1-25 15:30:44] Loading 1 platforms...
[2019-1-25 15:30:44] [HarmonyLivingRoom] Initializing HarmonyHubWebSocket platform...
[2019-1-25 15:30:44] [HarmonyLivingRoom] Loading activities...
[2019-1-25 15:30:44] Loading 0 accessories...
Failed to find plugin to handle accessory Harmony Hub 2
Failed to find plugin to handle accessory Harmony Hub Living Room
Failed to find plugin to handle accessory Harmony Hub 2
[2019-1-25 15:30:45] [HarmonyLivingRoom] Discovered Activity : Listen to Music
[2019-1-25 15:30:45] [HarmonyLivingRoom] Discovered Activity : Blu-Ray
[2019-1-25 15:30:45] [HarmonyLivingRoom] Discovered Activity : Apple TV
[2019-1-25 15:30:45] [HarmonyLivingRoom] Discovered Activity : SHIELD TV
[2019-1-25 15:30:45] [HarmonyLivingRoom] Discovered Activity : Nintendo Switch
[2019-1-25 15:30:45] [HarmonyLivingRoom] Initializing platform accessory 'HarmonyLivingRoom'...
Setup Payload:
X-HM://0023ISYX1CH4E
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:
Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:
┌────────────┐
│ 031-45-157 │
└────────────┘
[2019-1-25 15:30:46] Homebridge is running on port 51464.
[2019-1-25 15:33:32] [HarmonyLivingRoom] Apple TV activated
Do you have any idea what may be going on here?
A switch per activity for mute command (no state, acting like a push button)
2 switches (or maybe another service suitable) per activity for setting volume UP / Down
@nicoduj I did that but when I test the automation it goes to the main activity I setup in the config file
Originally posted by @krazyflipj in #30 (comment)
See if there is a way to have simple names (without breaking multiple hub support)
Install hangs at
[..................] | fetchMetadata: sill resolveWithNewModule [email protected] checking installable status
Since updating to the latest version (0.1.2) activities triggered via the Harmony remote no longer show in the Homebridge log and are not changing state in Home.app. I triggered several activities via the remote and none showed in either place.
Activities triggered in Home.app DO show in the Homebridge log and update their state correctly in Home.app
Getting some errors in the log too but it's not entirely clear when they are triggered. Seemingly when I triggered an activity in the Home.app but not every time.
0|homebridge | ReferenceError: callback is not defined
0|homebridge | at Timeout._onTimeout (/usr/lib/node_modules/homebridge-harmony/index.js:425:47)
0|homebridge | at listOnTimeout (timers.js:324:15)
0|homebridge | at processTimers (timers.js:268:5)
Also nothing except sometimes this deprecation warning on startup or maybe when triggering with the remote.
0|homebridge | (node:16430) [DEP0112] DeprecationWarning: Socket.prototype._handle is deprecated
I see all my Logitech devices listed as switches (in addition to activities) in homekit but using the switches does not toggle devices on and of. Is this a work in progress and can the list of devices be filtered out?
(The older harmony-hub npm did not so a list of devices, only activities.)
Harmony TV didn't do anything when switching on and off. Below is what showed on my log. Reboot fixed the issue
8:56:07 PM] [Harmony] ERROR - refreshCurrentActivity : RefreshCurrentActivity : Error: Can't send data because WebSocket is not opened.
[2/6/2019, 8:56:07 PM] [Harmony] ERROR - activityCommand : Error: Can't send data because WebSocket is not opened.
[2/6/2019, 8:56:19 PM] [Harmony] ERROR - activityCommand : Error: Can't send data because WebSocket is not opened.
[2/6/2019, 8:56:26 PM] [Harmony] ERROR - refreshCurrentActivity : RefreshCurrentActivity : Error: Can't send data because WebSocket is not opened.
[2/6/2019, 8:56:26 PM] [Harmony] ERROR - activityCommand : Error: Can't send data because WebSocket is not opened.
[2/6/2019, 8:56:32 PM] [Harmony] ERROR - activityCommand : Error: Can't send data because WebSocket is not opened.
[2/6/2019, 8:56:42 PM] [Harmony] ERROR - activityCommand : Error: Can't send data because WebSocket is not opened.
This is not an issue,
This is a very great thanks to @nicoduj for his reactivity. It's a very good Job.
Now we can use Logitech Harmony Hub with websockets, with all releases of firmware :
https://forum.jeedom.com/viewtopic.php?f=142&t=41528&p=677221#p677221
https://community.jeedom.com/t/2440
akenad :)
I am not sure what I am doing wrong. Could anyone help?
[1/16/2019, 6:09:41 PM] Loaded config.json with 0 accessories and 1 platforms.
[1/16/2019, 6:09:41 PM] ---
[1/16/2019, 6:09:43 PM] Loaded plugin: homebridge-harmony
[1/16/2019, 6:09:43 PM] Registering platform 'homebridge-harmonyHub.HarmonyHubWebSocket'
[1/16/2019, 6:09:43 PM] ---
[1/16/2019, 6:09:43 PM] Loading 1 platforms...
[1/16/2019, 6:09:43 PM] [Harmony Hub] Initializing HarmonyHubWebSocket platform...
[1/16/2019, 6:09:43 PM] [Harmony Hub] Loading activities...
[1/16/2019, 6:09:43 PM] [Harmony Hub] Error retrieving info from hub : connect ECONNREFUSED 192.168.1.62:8088
Hub disconnected, rebooting, not accessible ....
Great Work! Do see all activities as input and they turn on correctly - but if i want to use the remote to control, it jumps to the main „activity / input“.
Am I missing some configuration to fix this to use the remote with different activites?
Originally posted by @sefki21 in #30 (comment)
I can see my activities, so the readout works. Altough upon switching one on, I get the follwoing error in my log
Jan 09 19:17:29 deodsrv001 homebridge[14084]: Uncaught exception error: TypeError: Cannot read property 'includes' of undefined
Jan 09 19:17:29 deodsrv001 homebridge[14084]: at HarmonyPlatform.<anonymous> (/usr/lib/node_modules/homebridge-harmony/index.js:460:44)
Jan 09 19:17:29 deodsrv001 homebridge[14084]: at Characteristic.On.emit (events.js:188:13)
Jan 09 19:17:29 deodsrv001 homebridge[14084]: at Characteristic.On.Characteristic.setValue (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:320:10)
Jan 09 19:17:29 deodsrv001 homebridge[14084]: at Bridge.<anonymous> (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:871:22)
Jan 09 19:17:29 deodsrv001 homebridge[14084]: at Array.forEach (<anonymous>)
Jan 09 19:17:29 deodsrv001 homebridge[14084]: at Bridge.Accessory._handleSetCharacteristics (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:811:8)
Jan 09 19:17:29 deodsrv001 homebridge[14084]: at HAPServer.emit (events.js:188:13)
Jan 09 19:17:29 deodsrv001 homebridge[14084]: at HAPServer._handleCharacteristics (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:972:10)
Jan 09 19:17:29 deodsrv001 homebridge[14084]: at HAPServer.<anonymous> (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:209:39)
Jan 09 19:17:29 deodsrv001 homebridge[14084]: at IncomingMessage.emit (events.js:188:13)
Jan 09 19:17:29 deodsrv001 homebridge[14084]: at endReadableNT (_stream_readable.js:1129:12)
Jan 09 19:17:29 deodsrv001 homebridge[14084]: at process.internalTickCallback (internal/process/next_tick.js:72:19)
use a websocket opened for getting state digest and update current activity instead of timer
Hi,
Thanks for the great plugin!
I'd like to report an issue which I noticed recently. It seems that when I restart HomeBridge sometimes Harmony activities are "re-added" to HomeKit, they appear in default room and are gone from all automations. I didn't have this issue earlier on, so not sure if something introduced recently.
Hey, how realistic is it that you could get this plugin working with TV profile support? I know Khoas Tian has updated hap-nodejs and homebridge to support them:
https://twitter.com/KhaosT/status/1088678984970162176
But not sure how trivial that would be on your end to integrate. Obviously would be awesome to have a “proper” TV device that supports volume and direction keypads instead of multiple switches.
Expose devices (all / some ?) with their on / off function (devices, not activities)
Being able to have a setting to include everything in skippedIfSameState would be nice, since that is how I would use it.
Originally posted by @Sunoo in #20 (comment)
Activities that previously existed but have been deleted in the Harmony app and thus from the hub are still showing in HomeKit. This may or may not be a problem with homebridge-harmony directly.
I have of course restarted home bridge, rebooted the server (Pi), upgraded both Homebridge and this plugin.
Looking for a troubleshooting path to follow. I am unable to find any config settings related to this. Please advise.
Hi @nicoduj,
Maybe this Websocket implementation could help to achieve a faster and more convenient status update: https://github.com/lopelex/harmony-websocket
Cheers!
Originally posted by @iharosi in #11 (comment)
How should the entry for the folder (/var/homebridge-harmony/accessories/) in the config.json be?
[2019-1-27 15:02:32] [Harmony Ultimate] Initializing platform accessory 'Blu-ray wiedergeben'... /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:266 throw new Error("Cannot add a bridged Accessory with the same UUID as another bridged Accessory: " + existing.UUID); ^ Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: 18cb95b1-a0e6-49c2-80ba-52b714c28019 at Bridge.Accessory.addBridgedAccessory (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:266:13) at Server.<anonymous> (/usr/local/lib/node_modules/homebridge/lib/server.js:399:24) at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/once.js:16:19 at that.wsp.onUnpackedMessage.addListener.data (/usr/local/lib/node_modules/homebridge-harmony/index.js:208:17) at Timeout.apply [as _onTimeout] (/usr/local/lib/node_modules/homebridge-harmony/node_modules/websocket-as-promised/dist/webpack:/WebSocketAsPromised/node_modules/chnl/es5/channel.js:230:1) at listOnTimeout (timers.js:324:15) at processTimers (timers.js:268:5) homebridge-harmony.service: Main process exited, code=exited, status=1/FAILURE homebridge-harmony.service: Unit entered failed state. homebridge-harmony.service: Failed with result 'exit-code'. Stopped Node.js HomeKit homebridge-harmony.
(Im down to 0.0.9)
Thanks
just upgraded to 0.2.4 release via npm, seeing below on restart of homebridge.
Feb 3 14:28:51 vpie systemd[1]: Started Node.js HomeKit Server.
Feb 3 14:28:53 vpie homebridge[3896]: [2019-2-3 14:28:53] Loaded config.json with 1 accessories and 1 platforms.
Feb 3 14:28:53 vpie homebridge[3896]: [2019-2-3 14:28:53] ---
Feb 3 14:28:54 vpie homebridge[3896]: [2019-2-3 14:28:54] Loaded plugin: homebridge-harmony
Feb 3 14:28:54 vpie homebridge[3896]: [2019-2-3 14:28:54] Registering platform 'homebridge-harmonyHub.HarmonyHubWebSocket'
Feb 3 14:28:54 vpie homebridge[3896]: [2019-2-3 14:28:54] ---
Feb 3 14:28:55 vpie homebridge[3896]: [2019-2-3 14:28:55] Loaded plugin: homebridge-thermometer-am2320
Feb 3 14:28:55 vpie homebridge[3896]: [2019-2-3 14:28:55] Registering accessory 'homebridge-am2320.AM2320'
Feb 3 14:28:55 vpie homebridge[3896]: [2019-2-3 14:28:55] ---
Feb 3 14:28:55 vpie homebridge[3896]: [2019-2-3 14:28:55] Loading 1 platforms...
Feb 3 14:28:55 vpie homebridge[3896]: [2019-2-3 14:28:55] [vHarmonyHub] Initializing HarmonyHubWebSocket platform...
Feb 3 14:28:55 vpie homebridge[3896]: [2019-2-3 14:28:55] [vHarmonyHub] PlatformMode : true
Feb 3 14:28:55 vpie homebridge[3896]: [2019-2-3 14:28:55] [vHarmonyHub] Loading activities...
Feb 3 14:28:55 vpie homebridge[3896]: [2019-2-3 14:28:55] Loading 1 accessories...
Feb 3 14:28:55 vpie homebridge[3896]: [2019-2-3 14:28:55] [Sensor] Initializing AM2320 accessory...
Feb 3 14:28:55 vpie homebridge[3896]: AM23280 sensor options: {"i2cBusNo":1,"i2cAddress":92,"temperature":{"rate":1},"humidity":{"rate":1}}
Feb 3 14:28:56 vpie homebridge[3896]: data = {
Feb 3 14:28:56 vpie homebridge[3896]: "temperature": 20.9,
Feb 3 14:28:56 vpie homebridge[3896]: "humidity": 27.8
Feb 3 14:28:56 vpie homebridge[3896]: }
Feb 3 14:28:56 vpie homebridge[3896]: [2019-2-3 14:28:56] [vHarmonyHub] Creating Main TV Service
Feb 3 14:28:56 vpie homebridge[3896]: /usr/lib/node_modules/homebridge-harmony/harmonyAsTVPlatform.js:117
Feb 3 14:28:56 vpie homebridge[3896]: controlService: new Service.Television(that.name, 'tvService'),
Feb 3 14:28:56 vpie homebridge[3896]: ^
Feb 3 14:28:56 vpie homebridge[3896]: TypeError: Service.Television is not a constructor
Feb 3 14:28:56 vpie homebridge[3896]: at HarmonyPlatformAsTVPlatform.readAccessories (/usr/lib/node_modules/homebridge-harmony/harmonyAsTVPlatform.js:117:23)
Feb 3 14:28:56 vpie homebridge[3896]: at harmonyPlatform.wsp.onUnpackedMessage.addListener.data (/usr/lib/node_modules/homebridge-harmony/harmonyBase.js:283:33)
Feb 3 14:28:56 vpie homebridge[3896]: at Timeout._onTimeout (/usr/lib/node_modules/homebridge-harmony/node_modules/websocket-as-promised/dist/index.js:2:4404)
Feb 3 14:28:56 vpie homebridge[3896]: at ontimeout (timers.js:498:11)
Feb 3 14:28:56 vpie homebridge[3896]: at tryOnTimeout (timers.js:323:5)
Feb 3 14:28:56 vpie homebridge[3896]: at Timer.listOnTimeout (timers.js:290:5)
Feb 3 14:28:56 vpie systemd[1]: homebridge.service: Main process exited, code=exited, status=1/FAILURE
Feb 3 14:28:56 vpie systemd[1]: homebridge.service: Unit entered failed state.
Feb 3 14:28:56 vpie systemd[1]: homebridge.service: Failed with result 'exit-code'.
homebrige config:
"platforms": [
{
"platform": "HarmonyHubWebSocket",
"name": "HarmonyHub",
"hubIP": "192.168.20.2",
"TVPlatformMode" : true,
"mainActivity" : "Watch Apple TV"
}
]
Hi!
Is it possible to integrate devices directly into this plugin.
What I want to to with this is the following:
I have roller shutters that can be driven by infrared. The Harmony Hub knows this infrared codes for them (Rademacher Rollotron 9490).
If I can have these codes available via a switch in homebridge it would be possible for me to control the roller shutters by time following sunrise/sunset. Also I can stop closing if the door is still open because someone is outside.
I don't know if something like this can be done with the new TV Option.
I can not make an activity with them, because eg. if someone watches TV the activity will be switched to the roller shutters and the TV will be switched off.
Crash when using a button in tv mode while using state digest refresh
I'm getting an error when starting up home bridge with this module (see below). I'm configuring two Harmony Hubs as follows:
"platforms": [
{
"platform": "HarmonyHub",
"name": "LivingRoom",
"hubIP": "192.168.1.10"
},
{
"platform": "HarmonyHub",
"name": "Kitchen",
"hubIP": "192.168.1.11"
},
/usr/lib/node_modules/homebridge/lib/api.js:122
throw new Error("The requested platform '" + name + "' was not registered by any plugin.");
^
Error: The requested platform 'HarmonyHub' was not registered by any plugin.
at API.platform (/usr/lib/node_modules/homebridge/lib/api.js:122:13)
at Server._loadPlatforms (/usr/lib/node_modules/homebridge/lib/server.js:314:45)
at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:85:36)
at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:40:10)
at Object.<anonymous> (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:191:16)
at bootstrap_node.js:612:3
homebridge.service: main process exited, code=exited, status=1/FAILURE
Unit homebridge.service entered failed state.
Hello,
I saw a previous error related to what I have, but did not see a clear resolution.
I just uninstalled the old HarmonyHub plugin and installed yours using:
sudo npm install -g homebridge-harmony
config.json has:
{
"platform": "HarmonyHubWebSocket",
"name": "HarmonyHub",
"hubIP": "192.168.86.38",
"showTurnOffActivity" : true,
"turnOffActivityName" : "HT Off"
},
Node.js version is
npm node -v
4.2.0
and I am getting this error when launching HomeBridge:
12/28/2018, 4:08:32 PM] ====================
[12/28/2018, 4:08:32 PM] ERROR LOADING PLUGIN homebridge-harmony:
[12/28/2018, 4:08:32 PM] /usr/lib/node_modules/homebridge-harmony/index.js:29
);
^
SyntaxError: Unexpected token )
at createScript (vm.js:53:10)
at Object.runInThisContext (vm.js:95:10)
at Module._compile (module.js:543:28)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Plugin.load (/usr/lib/node_modules/homebridge/lib/plugin.js:72:22)
[12/28/2018, 4:08:32 PM] ====================
Any Thoughts?
Using the new TV Mode I've added two hubs (Lounge and Master Bedroom) to my config and they both show up in Home correctly and work flawlessly pretty much. But only one is showing up when I go into the control centre option for AppleTV. If I remove the one that is showing from the config.json the other one will replace it, but if I add it back in again it won't re-appear. I'm currently running 10.15.1 of nodeJS, Homebridge 0.4.46, and 0.2.7 of this plugin. I've got this setup as it's own separate Homebridge server so I've tried removing the bridge from Home, purging the cached and accessories folder and setting it up from scratch a few times. Any ideas?
(also side question.. does this mode support tv volume yet? If so where do I find it?)
Is it possible for you to make an option, to sort the avtivities in different rooms?
For tv platform mode - equivalent to #15
On/off, keys and volume if available
The goal of this fetaure would be to match all device individualy to a remote, with inputs if avaliable and other commands that could be mapped the same way it is for activities, but at a device level
You can vote if you want it :)
Hello nicoduj,
i have two harmonyhubs. One is in the living room and one in the bedroom. I created a scene in HomeKit called TV change. In this scene, the PowerOff switch is turned off by the Harmony hub in the living room and the harmonyhub bedroom starts an activity at the same time in this scene.
When running the scene, the TV is turned off in the living room, unfortunately, the TV is not turned on in the bedroom. The Homebridge Log displays both activities as completed.
I also tried without problems to start or stop all activities individually in a HomeKit scene.
From my experience with the old homebridge-harmonyhub plugin I know that the homekit scene described above worked earlier. Therefore, I could imagine that it is the plugin. What do you think?
Greeting Nastra
@nicoduj Very strange. I couldn't pick any input. I restarted and now it's working. It could because I'm using the Homebridge UI plugin and recently restarted and to enable logging I had to make some changes to make sure it was reading the logs from systemd.
Thank you though!
Originally posted by @zackwag in #30 (comment)
I originally got this plugin to work great with my tcl, however now it won't let any accessories respond once added. if you can help at all please do i really love this plugin plus i only got the hub to do this specifically
Failed to find plugin to handle accessory Harmony Hub
Failed to find plugin to handle accessory Harmony Hub
[12/24/2018, 11:27:20 AM] [Harmony Hub] Discovered Activity : Heater 23
[12/24/2018, 11:27:20 AM] [Harmony Hub] Discovered Activity : Watch TV
[12/24/2018, 11:27:20 AM] [Harmony Hub] Discovered Activity : Heater 24
[12/24/2018, 11:27:20 AM] [Harmony Hub] Discovered Activity : Heater ON
[12/24/2018, 11:27:20 AM] [Harmony Hub] Discovered Activity : Heater 21
[12/24/2018, 11:27:20 AM] [Harmony Hub] Discovered Activity : Heater 27
[12/24/2018, 11:27:20 AM] [Harmony Hub] Discovered Activity : Heater 20
[12/24/2018, 11:27:20 AM] [Harmony Hub] Discovered Activity : Heater 26
[12/24/2018, 11:27:20 AM] [Harmony Hub] Discovered Activity : Heater 25
[12/24/2018, 11:27:20 AM] [Harmony Hub] Discovered Activity : Heater 22
[12/24/2018, 11:27:20 AM] [Harmony Hub] Initializing platform accessory 'Harmony Hub'...
I'm looking for a way to trigger HomeKit scenes from buttons on my Harmony. It looks like this plugin is designed in the opposite direction, triggering Harmony activities from HomeKit.
Is what I'm looking for possible?
Have to think about it, since it could make sense for inputs and main switch also but might be tricky.
Currently I do not send activity command if this is the current activity (on switch / off switch / inputs)
Anyone have any issues with the directional vtouch controls? My Harmony controls my apple tv and when I hit any direction, it moves cursor to the end of the page
Originally posted by @krazyflipj in #30 (comment)
Hi guys
I'm trying to update the package using commande
sudo npm install homebridge-harmony@latest
However I got an error and I don't understand how to fix it (see bellow)
I also attached the log file for the error
Thanks in advance for your support, I notice you fix the latest issue I've open 👍 🤘 you rock !
Just installed the plugin. On my iPhone, using iOS 12.2 beta the TV accessory shows. However the input selection is empty... Under settings i can see the two activities i have, with a gray «V» on the left side of each input/activity.
Hello and thank you for the new Harmony plugin and your work.
I have the problem, if I incorporate an activity or the off switch in a scene that when running the scene, the devices are turned on if they have been previously turned off. The problem is that many devices only have one IR command for on and off. HomeKit does not check the real status of the device. Each command is sent when the scene is executed.
I used this pull request in the old homebridge-harmonyhub plugin to solve the problem.
KraigM/homebridge-harmonyhub#88
I hope that you also have the possibility for your plugin to install an option to solve the problem?
Thank you, I am looking forward to your answer.
Greeting Nastra
Hi, Thanks for the plugin.
I have a small issue, when switching from one activity to the another activity i.e TV to Movies, in the Home APP, the previous Activity remains ON, while the selected Activity is ON too..
Any advice?
Hi team
When turning off activity using the same activity button in the home app, my homebridge crash (see error message bellow) .
I don't really understand why .. If someone can help me understand the issue ?
Thanks for your support
/usr/local/lib/node_modules/homebridge-harmony/index.js:454
'Turning on off Activity ' + serviceControl.displayName
^
TypeError: Cannot read property 'displayName' of undefined
at wsp.onUnpackedMessage.addListener.data (/usr/local/lib/node_modules/homebridge-harmony/index.js:454:65)
at Timeout.apply [as _onTimeout] (/usr/local/lib/node_modules/homebridge-harmony/node_modules/websocket-as-promised/dist/webpack:/WebSocketAsPromised/node_modules/chnl/es5/channel.js:230:1)
at ontimeout (timers.js:427:11)
at tryOnTimeout (timers.js:289:5)
at listOnTimeout (timers.js:252:5)
at Timer.processTimers (timers.js:212:10)
ERROR - refreshCurrentActivity : RefreshCurrentActivity : Error: Can't send data because WebSocket is not opened.
I am trying out the new support for TVPlatformMode
.
The log looks fine in when starting up:
[2/2/2019, 7:07:22 PM] [HarmonyHub] Creating Main TV Service | stdout
-- | --
[2/2/2019, 7:07:22 PM] [HarmonyHub] Initializing platform accessory 'HarmonyHub'...
The UI in Home shows "Not Supported" for "HarmonyHub".
And the following error is in the logs:
Unhandled rejection TimeoutError: operation timed out
at afterTimeout (/usr/local/lib/node_modules/homebridge-harmonyhub/node_modules/bluebird/js/release/timers.js:46:19)
at Timeout.timeoutTimeout [as _onTimeout] (/usr/local/lib/node_modules/homebridge-harmonyhub/node_modules/bluebird/js/release/timers.js:76:13)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.