normen/homebridge-bravia

Volume up or down don't work in Home app

jmcollin78 opened this issue · 2 comments

Hi, first I wanted to thank you for this great job.

I've got a problem with the volume. It can be controlled without problem on Homebridge directly but I can't make it work on the IPad Home App.

There is no Device with sound on Home app but I understand well this is normal. I try with Apple remote which should be able to deal with volume without success. The TV is known by Appel remote and when I click on button, the TV shows a small light (the TV receive something) no button on Apple Remote works.

My plugin is parametrized as follow:

{
            "tvs": [
                {
                    "name": "TV Salon",
                    "ip": "192.168.1.14",
                    "debug": true,
                    "soundoutput": "headphone",
                    "applications": [
                        {
                            "title": "myCANAL"
                        },
                        {
                            "title": "Disney"
                        },
                        {
                            "title": "Netflix"
                        },
                        {
                            "title": "YouTube"
                        },
                        {
                            "title": "Prime"
                        }
                    ],
                    "sources": [
                        "extInput:hdmi"
                    ]
                }
            ],
            "platform": "BraviaPlatform"
        }
    ]

Some logs at startup if it can help:

[1/7/2022, 11:56:16 PM] [HB Supervisor] Restarting Homebridge...
[1/7/2022, 11:56:16 PM] [HB Supervisor] Starting Homebridge with extra flags: -I
[1/7/2022, 11:56:16 PM] [HB Supervisor] Started Homebridge v1.3.9 with PID: 80567
[1/7/2022, 11:56:17 PM] Loaded config.json with 0 accessories and 3 platforms.
[1/7/2022, 11:56:17 PM] Loaded 3 cached accessories from cachedAccessories.
[1/7/2022, 11:56:17 PM] ---
[1/7/2022, 11:56:17 PM] Loaded plugin: homebridge-bravia@2.4.9
[1/7/2022, 11:56:17 PM] Registering platform 'homebridge-bravia.BraviaPlatform'
[1/7/2022, 11:56:17 PM] ---
[1/7/2022, 11:56:18 PM] Loaded plugin: homebridge-config-ui-x@4.41.5
[1/7/2022, 11:56:18 PM] Registering platform 'homebridge-config-ui-x.config'
[1/7/2022, 11:56:18 PM] ---
[1/7/2022, 11:56:18 PM] Loaded plugin: homebridge-wiz-lan@3.2.0
[1/7/2022, 11:56:18 PM] Registering platform 'homebridge-wiz-lan.WizSmarthome'
[1/7/2022, 11:56:18 PM] ---
[1/7/2022, 11:56:18 PM] Loading 3 platforms...
[1/7/2022, 11:56:18 PM] [Config] Initializing config platform...
[1/7/2022, 11:56:18 PM] [Config] Running in Service Mode
[1/7/2022, 11:56:18 PM] [WizSmarthome] Initializing WizSmarthome platform...
[1/7/2022, 11:56:18 PM] [BraviaPlatform] Initializing BraviaPlatform platform...
[1/7/2022, 11:56:18 PM] [WizSmarthome] Loading accessory from cache: Lampe-Salon-1
[1/7/2022, 11:56:18 PM] [WizSmarthome] Loading accessory from cache: Lampe-Salon-1
[1/7/2022, 11:56:18 PM] [BraviaPlatform] Restoring TV Salon from HomeKit
[1/7/2022, 11:56:18 PM] [WizSmarthome] [Socket] Setting up socket on 192.168.1.13:38900
Setup Payload:
X-HM://0024R0XU57J17
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │ xxxx-xxx-xxx │     
    └────────────┘     
                       
[1/7/2022, 11:56:18 PM] [WizSmarthome] [Discovery] Sending discovery UDP broadcast to 255.255.255.255:38899
[1/7/2022, 11:56:18 PM] Homebridge v1.3.9 (HAP v0.9.8) (Homebridge 237F) is running on port 51884.
[1/7/2022, 11:56:18 PM] [BraviaPlatform] Loaded cookie file from /Users/jmcollin/.homebridge/plugin-persist/homebridge-bravia/sonycookie_TV Salon
[1/7/2022, 11:56:18 PM] [WizSmarthome] Updating accessory: Lampe-Salon-1
[1/7/2022, 11:56:18 PM] [WizSmarthome] Updating accessory: Lampe-Salon-1
[1/7/2022, 11:56:18 PM] [WizSmarthome] Updating accessory: Lampe-Salon-1
[1/7/2022, 11:56:18 PM] [WizSmarthome] Updating accessory: Lampe-Salon-1

I notice that neither the model or manufacturer is set in the accesories view:

Manufacturer | Default-Manufacturer
-- | --
Model | Default-Model
Name | TV Salon
Serial Number | Default-SerialNumber
Firmware Revision | 2.4.9
Homebridge Instance IP | 192.168.1.13

Any help would be greatly appreciated.
Note: My Sony is a Bravia 4K UR3 Version 9 with firmware 4.9.125

The volume can only be controlled from the Apple remote app. In iOS or iPadOS swipe down from the top right, select the remote, select the TV and use the volume buttons of the device to change the volume.

Hello @normen thank you for the quick answer. With the volume button of the IPad it's works like a charm. I was using up down arrow and expect it can control volume. My bad.