Giter VIP home page Giter VIP logo

homebridge-sony-audio-control's People

Contributors

dependabot[bot] avatar maxihuhe04 avatar supereg avatar torandreroland avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

homebridge-sony-audio-control's Issues

Unable to configure for Sony HT-ST5000

I know your plugin is not tested with the HT-ST5000, but I checked on the URI terms and confirmed on the Sony Developer that the HT-ST5000 is supported.

I am attempting to install the plugin on a hoobs box.

This is my config:

{
        "accessory": "receiver",
        "plugin_map": {
            "plugin_name": "homebridge-sony-audio-control",
            "index": 0
        },
        "name": "Soundbar",
        "enableNetworkStandby": true,
        "ip": "192.168.4.125",
        "inputs": [
            {
                "name": "Input TV",
                "uri": "extInput:tv"
            }
        ]
    }

This is the issue I am seeing in the logs after trying to save the plugin.

7/17/2020, 5:14:19 PM Loaded plugin "homebridge-sony-audio-control".
7/17/2020, 5:14:19 PM [Soundbar] Creating receiver services!
7/17/2020, 5:14:19 PM [Soundbar] Creating information service!
7/17/2020, 5:14:19 PM [Soundbar] Creating volume service!
7/17/2020, 5:14:19 PM [Soundbar] Creating power service!
7/17/2020, 5:14:19 PM [Soundbar] Creating input services!
7/17/2020, 5:14:19 PM [Soundbar] Creating input service Input TV!
7/17/2020, 5:14:19 PM [Soundbar] Creating soundfield service Surround Mode!
7/17/2020, 5:14:19 PM [Soundbar] Creating soundfield service Stereo Mode!
7/17/2020, 5:14:20 PM [Soundbar] WebSocket client connected on endpoint ws://192.168.4.125:10000/sony/audio
7/17/2020, 5:14:20 PM [Soundbar] WebSocket client connected on endpoint ws://192.168.4.125:10000/sony/avContent
7/17/2020, 5:14:20 PM [Soundbar] Network standby is currently on
7/17/2020, 5:14:39 PM TypeError: Cannot read property 'mute' of undefined
at SonyAudioControlReceiver. (/home/hoobs/.hoobs/node_modules/homebridge-sony-audio-control/index.js:365:59)
at Request._callback (/home/hoobs/.hoobs/node_modules/homebridge-sony-audio-control/index.js:662:9)
at Request.self.callback (/home/hoobs/.hoobs/node_modules/request/request.js:185:22)
at Request.emit (events.js:310:20)
at Request. (/home/hoobs/.hoobs/node_modules/request/request.js:1154:10)
at Request.emit (events.js:310:20)
at IncomingMessage. (/home/hoobs/.hoobs/node_modules/request/request.js:1076:12)
at Object.onceWrapper (events.js:416:28)
at IncomingMessage.emit (events.js:322:22)
at endReadableNT (_stream_readable.js:1187:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
7/17/2020, 5:14:40 PM Got SIGTERM, shutting down Bridge...

I am planning to add soundfield options that I looked up on the Sony developer site. However, I wanted to see if I could get the basic functionality of the plugin running first.

Any ideas what might be happening? Is the mute feature on the HT-ST5000 different than the receiver you created the plugin for?

SoundFields specific values

I cannot seem to find the specific values that are allowed in the soundFields[] array. There's no mention of it in the official API

[HT-ST5000 soundbar] Volume control issues

I noticed the Volume control (via light bulb) in Home.app is not always updating.

Also, if I try to add a volume control limit in the plugin configuration (from a Hoobs setup), it puts the plugin into a bad state and the soundbar stops responding in the Home.app. The console shows an issue with being able to call getVolume ()

I had to restore from a Hoobs backup to get the plugin back into a good state.

I dont think this is necessarily new to v2.4.1

Also, it is not a huge deal to me, since I use the HDMI-CEC anything to control the volume from my Apple TV and normal TV remote. But wanted to bring to your attention.

How do I get the port number for my device?

I am leaving the port field blank and letting it use the default of 10000. It seems to work most of the time, but some times I do see issues where the web socket client can't connect.

How do I get the port number of my device? In this case, my device is a HT-ST5000 soundbar.

This isn't a bug, I am just trying to understand better.

Unable to install v2.4.0

I’m trying to update to the latest version of the plugin on my Hoobs setup, however it is failing to install the plugin.

I’m using your plugin with a Sony HT-ST5000 sound bar. I mainly just use it to switch the sound field settings, and v2.3.0 works really well for that (thanks!). The on/off doesnt work well. So, I wanted to try your latest plugin, but haven’t been able to get it to install yet.

Let me know if you need any other info, or if I can help debug further.

11/28/2020, 12:42:25 AM npm
11/28/2020, 12:42:25 AM ERR! code EEXIST
npm ERR! path /home/hoobs/.hoobs/node_modules/term-size/node_modules/.bin/which
npm ERR!
11/28/2020, 12:42:25 AM Refusing to delete /home/hoobs/.hoobs/node_modules/term-size/node_modules/.bin/which: is outside /home/hoobs/.hoobs/node_modules/term-size/node_modules/which and not a link
npm ERR! File exists: /home/hoobs/.hoobs/node_modules/term-size/node_modules/.bin/which
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.
11/28/2020, 12:42:25 AM
11/28/2020, 12:42:25 AM npm
11/28/2020, 12:42:25 AM ERR! A complete log of this run can be found in:
npm ERR! /home/hoobs/.npm/_logs/2020-11-28T08_42_25_666Z-debug.log

And here is the content of the complete log:

0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli '/usr/local/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'install',
1 verbose cli '--unsafe-perm',
1 verbose cli '--no-audit',
1 verbose cli '--progress=true',
1 verbose cli '[email protected]'
1 verbose cli ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session c3c80fe5667833c0
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 304 https://registry.npmjs.org/homebridge-sony-audio-control 400
9ms (from cache)
8 silly pacote version manifest for [email protected] fetched
in 463ms
9 timing stage:loadCurrentTree Completed in 13379ms
10 silly install loadIdealTree
11 silly install cloneCurrentTreeToIdealTree
12 timing stage:loadIdealTree:cloneCurrentTree Completed in 173ms
"2020-11-28T08_42_25_666Z-debug.log" 5856 lines, 898964 characters

[HT-ST5000] Not responding in the Home.app

I had everything working really well with the plugin. However, when I updated the Ring plugin on my Hoobs box today, I noticed my soundbar stopped responding in the Home.app

I am currently running v2.4.3 of the plugin.

Whenever I try to interact with the soundbar in Home.app, I see the following error in the Hoobs log output:
getVolume() failed: Cannot read property 'volume' of undefined

The only strange thing I can find with the soundbar is that in the System Information, it now says:
Provisioning Server Connection Status : Failed

So, my only guess is my soundbar cannot access the Sony Developer API? Is that possible?

I tried restarting everything (Hoobs box, network, soundbar). I tried restoring to several different versions of the plugin and backing up my Hoobs box to an earlier version that had been working. Nothing is fixing the issue.

Any ideas or specific logs I could provide?

Display as AUDIO_RECEIVER

I installed this plugin to control my ZF9-Z9F surround system. In the Home app it appears as a light an a few switches when you press and hold it.

Do you think it's possible to transform the plugin to make it into a true AUDIO_RECEIVER accessory type? Similar to how HomeKit receivers (like Denon has a few on the market) appear in the Home app?

It appears HAP NodeJS supports that type of device too. See https://github.com/homebridge/HAP-NodeJS/blob/061737c394cbffc6fa901d1efdc23726b00bec69/src/lib/Accessory.ts

[feature] custome setCharacteristics on config file

Hello guys, thank you so much for this plug in, I love it having it in my Home.

I have one request regarding the characteristics set on the plug-in. Could you add “Model”, “Manufacturer” and “Serial Number” to the settings so we can change them manually? Right now when you try to see the details of the vacuum in HomeKit it says “default” for model and a long serial number. I have tried to change the .setCharacteristics on the js but it doesn’t seem to work. I have done that with other plugins but I can’t make this one work. I think this will help to make it look more like a native HomeKit device .

Thanks,

[HT-ST5000 soundbar] On/Off not updated in Home.app

First of all, thank you for your work on this plugin. It is a game changer for me, as it allows me to keep my soundbar remote in a drawer! :-)

I recently updated to v2.4.1, and overall it appears to be working just as well as v2.3.0

One issue that I figured I would raise now is that the On/Off tile in the Home.app rarely updates. Not sure if I have something misconfigured or if it's a limitation of how the soundbar goes into standby, etc. Let me know if there are any logs I could provide to help triage the issue.

This is not an urgent issue for me, since HDMI-CEC handles turning on/off the soundbar via the TV. But figured I would bring it up just in case.

To be clear, this is not new to v2.4.1

Bluetooth turn on

It would be great to have the option to turn on the receiver with bluetooth. I tried it, by editing your plugin, and it works perfectly. I used the node-bluetooth library. In this way we can disable the network standby which takes a lot of power.
Cheers

Update Error

Hello,
when updating in config-ui-x (4.5.21), I get the following error:

`USER: root
DIR: /usr/local
CMD: sudo -E -n npm install -g [email protected]

(##################) ⠼ reify:es5-ext: timing reifyNode:node_modules/homebridge-sony-au

[email protected] install
node-gyp-build

(##################) ⠇ reify:es5-ext: timing reifyNode:node_modules/homebridge-sony-au
make: Verzeichnis „/usr/local/lib/node_modules/homebridge-sony-audio-control/node_modules/bufferutil/build“ wird betreten
CC(target) Release/obj.target/bufferutil/src/bufferutil.o
../src/bufferutil.c:2:10: fatal error: assert.h: Datei oder Verzeichnis nicht gefunden
2 | #include <assert.h>
| ^~~~~~~~~~
compilation terminated.reify:es5-ext: timing reifyNode:node_modules/homebridge-sony-au
make: *** [bufferutil.target.mk:111: Release/obj.target/bufferutil/src/bufferutil.o] Fehler 1
make: Verzeichnis „/usr/local/lib/node_modules/homebridge-sony-audio-control/node_modules/bufferutil/build“ wird verlassen
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23)
gyp ERR! System Linux 6.1.58-v8+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/homebridge-sony-audio-control/node_modules/bufferutil
gyp ERR! node -v v20.9.0
gyp ERR! node-gyp -v v10.0.0
gyp ERR! not ok
npm ERR! code 1
npm ERR! path /usr/local/lib/node_modules/homebridge-sony-audio-control/node_modules/bufferutil
npm ERR! command failed
npm ERR! command sh -c node-gyp-build

npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2023-11-07T12_59_22_105Z-debug-0.log

Operation failed. Please review log for details.
`
i am using node v20.9.0
npm v10.2.2

what can I do.
thanks in advance

Hostname configurable

Hello, is there any way to set hostname instead of IP address? My 1080 unit change IP often after a power outage, When it change I have to set on homebridge and restart it. My sony unit register on network as Chromecast.local (and is not configurable as fa as I seen) so, perhaps a new parameter to setup this hostname or perhaps a boolean option to try to resolve default Chromecast.local hostname and not set ipaddress manually in homebridge config.

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.