merge all rooms (inc. AVR)
Deploy HEOS panel / deploy (push) Successful in 28s

This commit is contained in:
franzz committed 2026-09-20 18:10:32 +02:00
1 parent 0560079b16
commit db00e57ef7
9 files changed
+328 -228

No files matched your search

+12
View File
@@ -440,6 +440,18 @@ class Controller:
return None
return self.zidoo.now_playing()
def zidoo_play_state(self, state: str = None) -> str:
"""Start or stop the Zidoo's film -- the AVR card's now-playing. With
no state, flips what the Zidoo itself reports rather than what the
phone last saw, the same way toggle_play() does for a room."""
if not self.zidoo:
raise TargetError("No Zidoo is configured to play or pause")
if state is None:
playing = (self.zidoo.now_playing() or {}).get("play_state") == "play"
state = "pause" if playing else "play"
self.zidoo.play_state(state)
return state
def zidoo_seek(self, position_ms: int):
"""Jump the Zidoo's film -- the AVR card's now-playing -- to
position_ms."""