Closed Seexelas closed 3 years ago
@Seexelas
could you check please if the following the steps here solve your issue ?
Hi Antonio,
I cleaned plugin + config, re added everything.
I checked as written in the post the : Unpair Bridges / Cameras / TVs / External Accessories, the TV is not showing here. I think with the error I have, the tv is not added in my Homebridge.
Error :
found a 'Panasonic VIErA' TV (TX-65GZ2000E) at '192.168.1.10' (requires crypto for comunication).
[13/01/2021, 18:44:11] [PanasonicVieraTV] adding HDMI input '1' - 'HDMI-1' as it was appended to config.json
[13/01/2021, 18:44:11] [PanasonicVieraTV] unsetting HDMI input '2' ['HDMI 2'] since it was dropped from the config.json
[13/01/2021, 18:44:11] [PanasonicVieraTV] unsetting HDMI input '2' ['Apple TV'] since it was dropped from the config.json
(node:7472) UnhandledPromiseRejectionWarning: Error: Cannot add a Service with the same UUID '000000D9-0000-1000-8000-0026BB765291' and subtype '1' as another Service in this Accessory.
at Accessory._this.addService (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:281:17)
at PlatformAccessory.addService (/usr/local/lib/node_modules/homebridge/src/platformAccessory.ts:92:41)
at VieramaticPlatformAccessory.configureInputSource (/usr/local/lib/node_modules/homebridge-vieramatic/src/accessory.ts:376:35)
at /usr/local/lib/node_modules/homebridge-vieramatic/src/accessory.ts:301:12
at Proxy.forEach (<anonymous>)
at new VieramaticPlatformAccessory (/usr/local/lib/node_modules/homebridge-vieramatic/src/accessory.ts:299:35)
at VieramaticPlatform.deviceSetup (/usr/local/lib/node_modules/homebridge-vieramatic/src/platform.ts:194:5)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at /usr/local/lib/node_modules/homebridge-vieramatic/src/platform.ts:64:7
(Use `node --trace-warnings ...` to show where the warning was created)
(node:7472) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:7472) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Thanks for the help.
refollow the same steps but before restarting homebridge please also delete before the accessories/vieramatic.json
file (path is relative to same dir where homebridge config.json
is located). if it helps .
thanks for your patience!
Hi Antonio,
So I deleted the plugin, the configuration, went into ssh to delete the vieramatic.json.
Rebooted the HB instance + Raspberry, added the pluging, did the configuration and now it's working.
But if I do one modification into the plugin configuration, after the HB instance reboot, I get the same error again and I have to do the whole process again + the Unpair Bridges / Cameras / TVs / External Accessories and after that it is working again.
Thanks for the help you provided.
Best regards,
Alexis
ok, progress. can you please provide a diff of the initial config.json
versus the modded one that induces this error ?
thanks again for your patience!
Fow now, as said it is working, i won't modify the plugin again.
Here is the first time I configured the plugin :
{
"tvs": [
{
"friendlyName": "Galaxy-PanaTV",
"ipAddress": "192.168.1.10",
"encKey": "[edited]",
"appId": "[edited]",
"hdmiInputs": [
{
"id": "1",
"name": "HDMI 1"
},
{
"id": "2",
"name": "HDMI 2"
},
{
"id": "3",
"name": "HDMI 3"
},
{
"name": "HDMI 4"
}
],
"customVolumeSlider": false
}
],
"platform": "PanasonicVieraTV"
}
Here is now :
{
"tvs": [
{
"friendlyName": "Galaxy-PanasonicTV",
"ipAddress": "192.168.1.10",
"encKey": "[edited]",
"appId": "[edited]",
"hdmiInputs": [
{
"id": "1",
"name": "HDMI - 1"
},
{
"id": "2",
"name": "HDMI - 2"
},
{
"id": "3",
"name": "HDMI - 3"
},
{
"id": "4",
"name": "HDMI - 4"
}
],
"customVolumeSlider": false
}
],
"platform": "PanasonicVieraTV"
}
Oh, it's all clear now - i missed the core issue from the start.
It was the snippet bellow from your original config [from here] that was breaking things, as it missed the obviously required "id"
field. [as it specs the HDMI port being used]
{
"name": "HDMI 4"
}
Now, there's a real bug in my side too as that config shouldn't simply have loaded at all. Digging.
Glad we found something ^^
Thanks for your help :)
@Seexelas
2.0.16
is out in non beta fashion and contains the fix for the core issue that was hitting you. will close this issue.
Please reopen if for some reason there are leftovers not fully covered.
thanks again for your patience!
Describe your issue An error in the logs is showing for this plugin
Issue Context Freshly install plugin and configuration
found a 'Panasonic VIErA' TV (TX-65GZ2000E) at '192.168.1.10' (requires crypto for comunication).
your homebridge's
config.json
contents.],
the contents of
accessories/vieramatic.json
(path is relative to homebridge's datadir)Details about your specific homebridge setup
anything else you may find relevant pre setup is working, but failed when Homebridge is reboot to apply config.
Thanks a lot for the help.
Best regards
Alex