Comments (8)
How would you know if the track is tv? It doesn't show as tv
from homebridge-zp.
from homebridge-zp.
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.
@JotWee what app is that?
from homebridge-zp.
„myHome"
https://appsto.re/de/pmoC_.i
from homebridge-zp.
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, asPower
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, asPower
would still be off.
I still haven't figured out how to switch the Playbar input (issue #8).
from homebridge-zp.
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.
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)
- Siri thinks the speakers are lights HOT 4
- Allow settings-only mode HOT 1
- Warning errors HOT 1
- Remaining Duration error messages HOT 1
- Homebridge -zp HOT 5
- HomeBridge Login Issues
- Input Enhancement HOT 1
- Ghost Sonos speakers appearing - advise please HOT 12
- Enhancement: Only allow TV input in supported rooms HOT 12
- Speakers show as Not Supported HOT 1
- Smart Speaker service
- TypeError: Cannot read properties of undefined (reading 'zoneGroupShortName') HOT 5
- Feature Request: Implementation of a TV Level to adjust surround sound level HOT 18
- SyntaxError: init() not yet called HOT 2
- Sonos Speakers Not Supported HOT 1
- How to start with Radio xyz? HOT 3
- Problem Sonos S1 HOT 1
- Use mDNS announcements
- Using homebridge-zp with Node 21 and Homebridge 18 - warnings and no zones detected HOT 2
- http status 412 Precondition Failed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-zp.