Giter Site home page Giter Site logo

Comments (8)

NovaGL avatar NovaGL commented on May 30, 2024 1

How would you know if the track is tv? It doesn't show as tv

from homebridge-zp.

JotWee avatar JotWee commented on May 30, 2024

img_1018
of course it does

from homebridge-zp.

ebaauw avatar ebaauw commented on May 30, 2024

homebridge-zp shows the track as TV when a PlayBar is playing digital audio input, just as the Sonos app.

In the Sonos app, the Play/Pause (and Next/Previous track) controls are disabled when the PlayBar is playing digital audio input. Ideally, homebridge-zp would do the same, to provide consistent behaviour, but HomeKit doesn't like characteristics dis- and re-appearing. It would delete the characteristic from any scenes and rules.

I agree that it makes sense to provide some On/Off functionality when the PlayBar is playing digital input. Personally, I was thinking about switching (back) to another source, which would effectively mute the PlayBar, but not un-mute it. See also issue #8 and bencevans/node-sonos#148.

from homebridge-zp.

ebaauw avatar ebaauw commented on May 30, 2024

@JotWee what app is that?

from homebridge-zp.

JotWee avatar JotWee commented on May 30, 2024

„myHome"
https://appsto.re/de/pmoC_.i

from homebridge-zp.

ebaauw avatar ebaauw commented on May 30, 2024

I figured out how to detect whether the Playbar is actually receiving a signal on the optical input. The Power characteristic now reflects that while the Playbar is on TV input. Also, homebridge-zp doesn't accept a change to the Power characteristic while the Playbar is on TV input.

Technically, I could mute the Playbar (group) when switching off (group) power while it's on TV input. However, I wouldn't behave like Mute:

  • The group would go on mute while there's an input signal, but Power would remain on;
  • You wouldn't be able to unmute the group using Power while there is an input signal, as Power would still be on;
  • The group would go on unmute while there's no input signal, but Power would remain off, and there would be no sound coming from the Playbar;
  • You wouldn't be able to mute the group using Power while there's no input signal, as Power would still be off.

I still haven't figured out how to switch the Playbar input (issue #8).

from homebridge-zp.

ebaauw avatar ebaauw commented on May 30, 2024

Apparently, there must be a way to make the Playbar switch back to its previous input. I would do that when setting Power off while on TV input.

I configured my Playbar to switch to TV input automatically, when it detects a signal on the optical input (in the Sonos app select TV Autoplay, under Preferences, Room Settings, TV Input). It switches back automatically to the previous input after 10 minutes when there's no more signal on the optical input. I can now see that in the homebridge log:

[5/2/2017, 11:11:21 AM] [ZP] Living Room Sonos: power (play/pause) changed from true to false
[5/2/2017, 11:21:22 AM] [ZP] Living Room Sonos: current track changed from TV to CITY FM Classic Rock

from homebridge-zp.

ebaauw avatar ebaauw commented on May 30, 2024

I've added a boolean TV characteristic in v0.3.6 for the PlayBar and (in v0.3.7) PlayBase. This can be used in HomeKit rules to take action when the TV is turned off. It's a bit delayed (30s) by design, as sometimes the PlayBar briefly reports no input while the TV is switching audio mode.

Still on my to-do list is a way to select input from HomeKit (see #8), in a way that that also can be done from HomeKit automations. I probably need the iOS 12.2 Television services for that, see #62.

Closing this one.

from homebridge-zp.

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.