pychromecast icon indicating copy to clipboard operation
pychromecast copied to clipboard

volume_muted returns False when muted

Open Subcode opened this issue 4 years ago • 7 comments

My google home returns volume_muted=False when i mute it so i think this status is broken?

Subcode avatar Sep 10 '20 20:09 Subcode

Please share a log with pychromecast debug enabled showing what happens when you mute the device.

emontnemery avatar Sep 10 '20 21:09 emontnemery

How do i enable debug?

Subcode avatar Sep 10 '20 22:09 Subcode

Figured it out, unsure if you need the entire file but the line from where it mutes is:

DEBUG:pychromecast.controllers:Received status: CastStatus(is_active_input=None, is_stand_by=None, volume_level=0.4000000059604645, volume_muted=True, app_id='CC1AD845', display_name='Default Media Receiver', namespaces=['urn:x-cast:com.google.cast.cac', 'urn:x-cast:com.google.cast.debugoverlay', 'urn:x-cast:com.google.cast.broadcast', 'urn:x-cast:com.google.cast.media'], session_id='31704c59-4faa-45ad-92e1-bc846b71c9ef', transport_id='31704c59-4faa-45ad-92e1-bc846b71c9ef', status_text='Default Media Receiver', icon_url='')

This line does say muted. But when i print the mc.status it displays volume_muted=False. When i stop playing it does recognize that it stopped playing so the code should be fine. code for reference:

cast = chromecasts[0]
cast.wait()
mc = cast.media_controller
print(mc.status)

Subcode avatar Sep 10 '20 23:09 Subcode

Since you don't share the full log or give more details about your code it's really difficult to figure out what the problem is.

However, please note that you have to wait for a status update from the Chromecast otherwise you're just printing the default media status. Please have a look at examples/simple_listener.py

emontnemery avatar Sep 11 '20 06:09 emontnemery

The code i'm using is this:

def isAlarmRunning():
	#check if alarm is running
	global chromecasts
	print("Alarm Check..")
	cast = chromecasts[0]
	cast.wait()
	mc = cast.media_controller
	#print(mc.status)
	if mc.status.player_state!="PLAYING" or mc.status.volume_muted!=False:
		print("Alarm stopped!")
		return False
	else:
		print("Alarm running.")
		return True

It works for player_state but not for volume_muted. This function is called every second while the "alarm" is playing and is supposed to check if it is turned off or muted.

The log file didn't contain much else, simply the status for the start of playing and this update that it was muted.

I thought that because it worked for player_state it would also work for volume_muted. Or is a listener required?

Subcode avatar Sep 11 '20 09:09 Subcode

Again, can you please attach a log, it's really tricky to help you otherwise? The log will include all messages received from the ChromeCast, which is very good information for trying to understand what's going on.

You can try to change like this:

-if mc.status.player_state!="PLAYING" or mc.status.volume_muted!=False:
+if mc.status.player_state!="PLAYING" or cast.status.volume_muted!=False:

emontnemery avatar Sep 11 '20 10:09 emontnemery

That change has fixed the issue. I have also attached a log file.

DEBUG:pychromecast.discovery:add_service _googlecast._tcp.local., Google-Home-Mini-d7d96cfee1ef76fe22af0b6522177f87._googlecast._tcp.local. DEBUG:pychromecast.discovery:add_service _googlecast._tcp.local., Google-Home-94e23723ad456aac98c1fbc91aff6605._googlecast._tcp.local. DEBUG:pychromecast.discovery:add_service _googlecast._tcp.local., Google-Cast-Group-cb8a2f378f82484bbb3412fbf195ae91-1._googlecast._tcp.local. DEBUG:pychromecast.discovery:add_service _googlecast._tcp.local., Google-Home-94e23723ad456aac98c1fbc91aff6605._googlecast._tcp.local. DEBUG:pychromecast:Found chromecast 94e23723-ad45-6aac-98c1-fbc91aff6605 DEBUG:pychromecast:_get_chromecast_from_service {'Google-Home-94e23723ad456aac98c1fbc91aff6605._googlecast._tcp.local.'} INFO:pychromecast:Querying device status DEBUG:pychromecast.discovery:get_info_from_service resolved service Google-Home-94e23723ad456aac98c1fbc91aff6605._googlecast._tcp.local. to service_info ServiceInfo(type='_googlecast._tcp.local.', name='Google-Home-94e23723ad456aac98c1fbc91aff6605._googlecast._tcp.local.', addresses=[b'\xc0\xa8\x01\x93'], port=8009, weight=0, priority=0, server='94e23723-ad45-6aac-98c1-fbc91aff6605.local.', properties={b'id': b'94e23723ad456aac98c1fbc91aff6605', b'cd': b'A97225D5ABFD764F0ADE40D15AF891CA', b'rm': b'', b've': b'05', b'md': b'Google Home', b'ic': b'/setup/icon.png', b'fn': b'Living Room Speaker', b'ca': b'198660', b'st': b'1', b'bs': b'FA8FCA7C0D61', b'nf': b'1', b'rs': b'Default Media Receiver'}) DEBUG:pychromecast.dial:Resolved service Google-Home-94e23723ad456aac98c1fbc91aff6605._googlecast._tcp.local. to 192.168.1.147 DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.1.147:8008 DEBUG:urllib3.connectionpool:http://192.168.1.147:8008 "GET /setup/eureka_info?options=detail HTTP/1.1" 200 1307 DEBUG:pychromecast.discovery:add_service _googlecast._tcp.local., Google-Cast-Group-cb8a2f378f82484bbb3412fbf195ae91-1._googlecast._tcp.local. DEBUG:pychromecast:Found chromecast cb8a2f37-8f82-484b-bb34-12fbf195ae91 DEBUG:pychromecast.discovery:add_service _googlecast._tcp.local., Google-Home-Mini-d7d96cfee1ef76fe22af0b6522177f87._googlecast._tcp.local. DEBUG:pychromecast:Found chromecast d7d96cfe-e1ef-76fe-22af-0b6522177f87 DEBUG:pychromecast.discovery:get_info_from_service resolved service Google-Home-94e23723ad456aac98c1fbc91aff6605._googlecast._tcp.local. to service_info ServiceInfo(type='_googlecast._tcp.local.', name='Google-Home-94e23723ad456aac98c1fbc91aff6605._googlecast._tcp.local.', addresses=[b'\xc0\xa8\x01\x93'], port=8009, weight=0, priority=0, server='94e23723-ad45-6aac-98c1-fbc91aff6605.local.', properties={b'id': b'94e23723ad456aac98c1fbc91aff6605', b'cd': b'A97225D5ABFD764F0ADE40D15AF891CA', b'rm': b'', b've': b'05', b'md': b'Google Home', b'ic': b'/setup/icon.png', b'fn': b'Living Room Speaker', b'ca': b'198660', b'st': b'1', b'bs': b'FA8FCA7C0D61', b'nf': b'1', b'rs': b'Default Media Receiver'}) DEBUG:pychromecast.socket_client:[Living Room Speaker(None):8009] Resolved service Google-Home-94e23723ad456aac98c1fbc91aff6605._googlecast._tcp.local. to 192.168.1.147:8009 DEBUG:pychromecast.socket_client:[Living Room Speaker(192.168.1.147):8009] Connecting to 192.168.1.147:8009 DEBUG:pychromecast.controllers:Receiver:Updating status DEBUG:pychromecast.socket_client:[Living Room Speaker(192.168.1.147):8009] Sending: Message urn:x-cast:com.google.cast.tp.connection from sender-0 to receiver-0: {'type': 'CONNECT', 'origin': {}, 'userAgent': 'PyChromecast', 'senderInfo': {'sdkType': 2, 'version': '15.605.1.3', 'browserVersion': '44.0.2403.30', 'platform': 4, 'systemVersion': 'Macintosh; Intel Mac OS X10_10_3', 'connectionType': 1}} DEBUG:pychromecast.socket_client:[Living Room Speaker(192.168.1.147):8009] Sending: Message urn:x-cast:com.google.cast.receiver from sender-0 to receiver-0: {'type': 'GET_STATUS', 'requestId': 1} DEBUG:pychromecast.socket_client:[Living Room Speaker(192.168.1.147):8009] Connected! DEBUG:pychromecast.socket_client:Thread started... DEBUG:pychromecast.socket_client:[Living Room Speaker(192.168.1.147):8009] Received: Message urn:x-cast:com.google.cast.receiver from receiver-0 to sender-0: {'requestId': 1, 'status': {'applications': [{'appId': 'CC1AD845', 'displayName': 'Default Media Receiver', 'iconUrl': '', 'isIdleScreen': False, 'launchedFromCloud': False, 'namespaces': [{'name': 'urn:x-cast:com.google.cast.cac'}, {'name': 'urn:x-cast:com.google.cast.debugoverlay'}, {'name': 'urn:x-cast:com.google.cast.broadcast'}, {'name': 'urn:x-cast:com.google.cast.media'}], 'sessionId': '854648fc-5c11-4bda-ab4b-88dec3fa8994', 'statusText': 'Default Media Receiver', 'transportId': '854648fc-5c11-4bda-ab4b-88dec3fa8994', 'universalAppId': 'CC1AD845'}], 'userEq': {'high_shelf': {'frequency': 4500.0, 'gain_db': 0.0, 'quality': 0.707}, 'low_shelf': {'frequency': 150.0, 'gain_db': 0.0, 'quality': 0.707}, 'max_peaking_eqs': 0, 'peaking_eqs': []}, 'volume': {'controlType': 'master', 'level': 0.09999999403953552, 'muted': False, 'stepInterval': 0.019999999552965164}}, 'type': 'RECEIVER_STATUS'} DEBUG:pychromecast.controllers:Received status: CastStatus(is_active_input=None, is_stand_by=None, volume_level=0.09999999403953552, volume_muted=False, app_id='CC1AD845', display_name='Default Media Receiver', namespaces=['urn:x-cast:com.google.cast.cac', 'urn:x-cast:com.google.cast.debugoverlay', 'urn:x-cast:com.google.cast.broadcast', 'urn:x-cast:com.google.cast.media'], session_id='854648fc-5c11-4bda-ab4b-88dec3fa8994', transport_id='854648fc-5c11-4bda-ab4b-88dec3fa8994', status_text='Default Media Receiver', icon_url='') DEBUG:pychromecast.socket_client:[Living Room Speaker(192.168.1.147):8009] Sending: Message urn:x-cast:com.google.cast.tp.connection from sender-0 to 854648fc-5c11-4bda-ab4b-88dec3fa8994: {'type': 'CONNECT', 'origin': {}, 'userAgent': 'PyChromecast', 'senderInfo': {'sdkType': 2, 'version': '15.605.1.3', 'browserVersion': '44.0.2403.30', 'platform': 4, 'systemVersion': 'Macintosh; Intel Mac OS X10_10_3', 'connectionType': 1}} DEBUG:pychromecast.socket_client:[Living Room Speaker(192.168.1.147):8009] Sending: Message urn:x-cast:com.google.cast.media from sender-0 to 854648fc-5c11-4bda-ab4b-88dec3fa8994: {'type': 'GET_STATUS', 'requestId': 3} INFO:pychromecast.controllers:Receiver:setting volume to 0.3 DEBUG:pychromecast.socket_client:[Living Room Speaker(192.168.1.147):8009] Sending: Message urn:x-cast:com.google.cast.receiver from sender-0 to receiver-0: {'type': 'SET_VOLUME', 'volume': {'level': 0.3}, 'requestId': 4} INFO:pychromecast.controllers:Not launching app CC1AD845 - already running DEBUG:pychromecast.socket_client:[Living Room Speaker(192.168.1.147):8009] Sending: Message urn:x-cast:com.google.cast.media from sender-0 to 854648fc-5c11-4bda-ab4b-88dec3fa8994: {'media': {'contentId': 'http://192.168.1.251/alarm.mp3', 'streamType': 'BUFFERED', 'contentType': 'audio/mp3', 'metadata': {}}, 'type': 'LOAD', 'currentTime': 0, 'autoplay': True, 'customData': {}, 'requestId': 5, 'sessionId': '854648fc-5c11-4bda-ab4b-88dec3fa8994'} DEBUG:pychromecast.socket_client:[Living Room Speaker(192.168.1.147):8009] Received: Message urn:x-cast:com.google.cast.receiver from receiver-0 to *: {'requestId': 4, 'status': {'applications': [{'appId': 'CC1AD845', 'displayName': 'Default Media Receiver', 'iconUrl': '', 'isIdleScreen': False, 'launchedFromCloud': False, 'namespaces': [{'name': 'urn:x-cast:com.google.cast.cac'}, {'name': 'urn:x-cast:com.google.cast.debugoverlay'}, {'name': 'urn:x-cast:com.google.cast.broadcast'}, {'name': 'urn:x-cast:com.google.cast.media'}], 'sessionId': '854648fc-5c11-4bda-ab4b-88dec3fa8994', 'statusText': 'Default Media Receiver', 'transportId': '854648fc-5c11-4bda-ab4b-88dec3fa8994', 'universalAppId': 'CC1AD845'}], 'userEq': {'high_shelf': {'frequency': 4500.0, 'gain_db': 0.0, 'quality': 0.707}, 'low_shelf': {'frequency': 150.0, 'gain_db': 0.0, 'quality': 0.707}, 'max_peaking_eqs': 0, 'peaking_eqs': []}, 'volume': {'controlType': 'master', 'level': 0.30000001192092896, 'muted': False, 'stepInterval': 0.019999999552965164}}, 'type': 'RECEIVER_STATUS'} DEBUG:pychromecast.controllers:Received status: CastStatus(is_active_input=None, is_stand_by=None, volume_level=0.30000001192092896, volume_muted=False, app_id='CC1AD845', display_name='Default Media Receiver', namespaces=['urn:x-cast:com.google.cast.cac', 'urn:x-cast:com.google.cast.debugoverlay', 'urn:x-cast:com.google.cast.broadcast', 'urn:x-cast:com.google.cast.media'], session_id='854648fc-5c11-4bda-ab4b-88dec3fa8994', transport_id='854648fc-5c11-4bda-ab4b-88dec3fa8994', status_text='Default Media Receiver', icon_url='') DEBUG:pychromecast.socket_client:[Living Room Speaker(192.168.1.147):8009] Received unknown namespace: Message urn:x-cast:com.google.cast.multizone from receiver-0 to *: {'device': {'capabilities': 196612, 'deviceId': '94e23723-ad45-6aac-98c1-fbc91aff6605', 'name': 'Living Room Speaker', 'volume': {'level': 0.30000001192092896, 'muted': False}}, 'requestId': 0, 'type': 'DEVICE_UPDATED'} DEBUG:pychromecast.socket_client:[Living Room Speaker(192.168.1.147):8009] Received: Message urn:x-cast:com.google.cast.media from 854648fc-5c11-4bda-ab4b-88dec3fa8994 to sender-0: {'type': 'MEDIA_STATUS', 'status': [], 'requestId': 3} DEBUG:pychromecast.controllers:Media:Received status {'type': 'MEDIA_STATUS', 'status': [], 'requestId': 3} DEBUG:pychromecast.socket_client:[Living Room Speaker(192.168.1.147):8009] Received: Message urn:x-cast:com.google.cast.media from 854648fc-5c11-4bda-ab4b-88dec3fa8994 to *: {'type': 'MEDIA_STATUS', 'status': [{'mediaSessionId': 9, 'playbackRate': 1, 'playerState': 'IDLE', 'currentTime': 0, 'supportedMediaCommands': 274447, 'volume': {'level': 1, 'muted': False}, 'media': {'contentId': 'http://192.168.1.251/alarm.mp3', 'streamType': 'BUFFERED', 'contentType': 'audio/mp3', 'metadata': {}, 'mediaCategory': 'AUDIO'}, 'currentItemId': 1, 'extendedStatus': {'playerState': 'LOADING', 'media': {'contentId': 'http://192.168.1.251/alarm.mp3', 'streamType': 'BUFFERED', 'contentType': 'audio/mp3', 'metadata': {}, 'mediaCategory': 'AUDIO'}, 'mediaSessionId': 9}, 'repeatMode': 'REPEAT_OFF'}], 'requestId': 0} DEBUG:pychromecast.controllers:Media:Received status {'type': 'MEDIA_STATUS', 'status': [{'mediaSessionId': 9, 'playbackRate': 1, 'playerState': 'IDLE', 'currentTime': 0, 'supportedMediaCommands': 274447, 'volume': {'level': 1, 'muted': False}, 'media': {'contentId': 'http://192.168.1.251/alarm.mp3', 'streamType': 'BUFFERED', 'contentType': 'audio/mp3', 'metadata': {}, 'mediaCategory': 'AUDIO'}, 'currentItemId': 1, 'extendedStatus': {'playerState': 'LOADING', 'media': {'contentId': 'http://192.168.1.251/alarm.mp3', 'streamType': 'BUFFERED', 'contentType': 'audio/mp3', 'metadata': {}, 'mediaCategory': 'AUDIO'}, 'mediaSessionId': 9}, 'repeatMode': 'REPEAT_OFF'}], 'requestId': 0} DEBUG:pychromecast.socket_client:[Living Room Speaker(192.168.1.147):8009] Received: Message urn:x-cast:com.google.cast.media from 854648fc-5c11-4bda-ab4b-88dec3fa8994 to *: {'type': 'MEDIA_STATUS', 'status': [{'mediaSessionId': 9, 'playbackRate': 1, 'playerState': 'PLAYING', 'currentTime': 0, 'supportedMediaCommands': 274447, 'volume': {'level': 1, 'muted': False}, 'activeTrackIds': [], 'media': {'contentId': 'http://192.168.1.251/alarm.mp3', 'streamType': 'BUFFERED', 'contentType': 'audio/mp3', 'metadata': {}, 'mediaCategory': 'AUDIO', 'duration': 27.252, 'tracks': [{'trackId': 1, 'type': 'AUDIO'}], 'breakClips': [], 'breaks': []}, 'currentItemId': 1, 'items': [{'itemId': 1, 'media': {'contentId': 'http://192.168.1.251/alarm.mp3', 'streamType': 'BUFFERED', 'contentType': 'audio/mp3', 'metadata': {}, 'mediaCategory': 'AUDIO', 'duration': 27.252}, 'autoplay': True, 'customData': {}, 'orderId': 0}], 'repeatMode': 'REPEAT_OFF'}], 'requestId': 5} DEBUG:pychromecast.controllers:Media:Received status {'type': 'MEDIA_STATUS', 'status': [{'mediaSessionId': 9, 'playbackRate': 1, 'playerState': 'PLAYING', 'currentTime': 0, 'supportedMediaCommands': 274447, 'volume': {'level': 1, 'muted': False}, 'activeTrackIds': [], 'media': {'contentId': 'http://192.168.1.251/alarm.mp3', 'streamType': 'BUFFERED', 'contentType': 'audio/mp3', 'metadata': {}, 'mediaCategory': 'AUDIO', 'duration': 27.252, 'tracks': [{'trackId': 1, 'type': 'AUDIO'}], 'breakClips': [], 'breaks': []}, 'currentItemId': 1, 'items': [{'itemId': 1, 'media': {'contentId': 'http://192.168.1.251/alarm.mp3', 'streamType': 'BUFFERED', 'contentType': 'audio/mp3', 'metadata': {}, 'mediaCategory': 'AUDIO', 'duration': 27.252}, 'autoplay': True, 'customData': {}, 'orderId': 0}], 'repeatMode': 'REPEAT_OFF'}], 'requestId': 5} DEBUG:pychromecast.socket_client:[Living Room Speaker(192.168.1.147):8009] Received: Message urn:x-cast:com.google.cast.media from 854648fc-5c11-4bda-ab4b-88dec3fa8994 to *: {'type': 'MEDIA_STATUS', 'status': [{'mediaSessionId': 9, 'playbackRate': 1, 'playerState': 'PLAYING', 'currentTime': 1.132086, 'supportedMediaCommands': 274447, 'volume': {'level': 1, 'muted': False}, 'activeTrackIds': [], 'currentItemId': 1, 'repeatMode': 'REPEAT_OFF'}], 'requestId': 0} DEBUG:pychromecast.controllers:Media:Received status {'type': 'MEDIA_STATUS', 'status': [{'mediaSessionId': 9, 'playbackRate': 1, 'playerState': 'PLAYING', 'currentTime': 1.132086, 'supportedMediaCommands': 274447, 'volume': {'level': 1, 'muted': False}, 'activeTrackIds': [], 'currentItemId': 1, 'repeatMode': 'REPEAT_OFF'}], 'requestId': 0} DEBUG:pychromecast.socket_client:[Living Room Speaker(192.168.1.147):8009] Received unknown namespace: Message urn:x-cast:com.google.cast.multizone from receiver-0 to *: {'device': {'capabilities': 196612, 'deviceId': '94e23723-ad45-6aac-98c1-fbc91aff6605', 'name': 'Living Room Speaker', 'volume': {'level': 0.30000001192092896, 'muted': True}}, 'requestId': 0, 'type': 'DEVICE_UPDATED'} DEBUG:pychromecast.socket_client:[Living Room Speaker(192.168.1.147):8009] Received: Message urn:x-cast:com.google.cast.receiver from receiver-0 to *: {'requestId': 0, 'status': {'applications': [{'appId': 'CC1AD845', 'displayName': 'Default Media Receiver', 'iconUrl': '', 'isIdleScreen': False, 'launchedFromCloud': False, 'namespaces': [{'name': 'urn:x-cast:com.google.cast.cac'}, {'name': 'urn:x-cast:com.google.cast.debugoverlay'}, {'name': 'urn:x-cast:com.google.cast.broadcast'}, {'name': 'urn:x-cast:com.google.cast.media'}], 'sessionId': '854648fc-5c11-4bda-ab4b-88dec3fa8994', 'statusText': 'Default Media Receiver', 'transportId': '854648fc-5c11-4bda-ab4b-88dec3fa8994', 'universalAppId': 'CC1AD845'}], 'userEq': {'high_shelf': {'frequency': 4500.0, 'gain_db': 0.0, 'quality': 0.707}, 'low_shelf': {'frequency': 150.0, 'gain_db': 0.0, 'quality': 0.707}, 'max_peaking_eqs': 0, 'peaking_eqs': []}, 'volume': {'controlType': 'master', 'level': 0.30000001192092896, 'muted': True, 'stepInterval': 0.019999999552965164}}, 'type': 'RECEIVER_STATUS'} DEBUG:pychromecast.controllers:Received status: CastStatus(is_active_input=None, is_stand_by=None, volume_level=0.30000001192092896, volume_muted=True, app_id='CC1AD845', display_name='Default Media Receiver', namespaces=['urn:x-cast:com.google.cast.cac', 'urn:x-cast:com.google.cast.debugoverlay', 'urn:x-cast:com.google.cast.broadcast', 'urn:x-cast:com.google.cast.media'], session_id='854648fc-5c11-4bda-ab4b-88dec3fa8994', transport_id='854648fc-5c11-4bda-ab4b-88dec3fa8994', status_text='Default Media Receiver', icon_url='') INFO:pychromecast.controllers:Receiver:setting volume to 0.3 DEBUG:pychromecast.socket_client:[Living Room Speaker(192.168.1.147):8009] Sending: Message urn:x-cast:com.google.cast.receiver from sender-0 to receiver-0: {'type': 'SET_VOLUME', 'volume': {'level': 0.3}, 'requestId': 6} INFO:pychromecast.controllers:Not launching app CC1AD845 - already running DEBUG:pychromecast.socket_client:[Living Room Speaker(192.168.1.147):8009] Sending: Message urn:x-cast:com.google.cast.media from sender-0 to 854648fc-5c11-4bda-ab4b-88dec3fa8994: {'media': {'contentId': 'http://192.168.1.251/alarm.mp3', 'streamType': 'BUFFERED', 'contentType': 'audio/mp3', 'metadata': {}}, 'type': 'LOAD', 'currentTime': 0, 'autoplay': True, 'customData': {}, 'requestId': 7, 'sessionId': '854648fc-5c11-4bda-ab4b-88dec3fa8994'} DEBUG:pychromecast.socket_client:[Living Room Speaker(192.168.1.147):8009] Received: Message urn:x-cast:com.google.cast.media from 854648fc-5c11-4bda-ab4b-88dec3fa8994 to *: {'type': 'MEDIA_STATUS', 'status': [{'mediaSessionId': 9, 'playbackRate': 1, 'playerState': 'IDLE', 'currentTime': 0, 'supportedMediaCommands': 274447, 'volume': {'level': 1, 'muted': False}, 'currentItemId': 1, 'idleReason': 'INTERRUPTED', 'extendedStatus': {'playerState': 'LOADING', 'media': {'contentId': 'http://192.168.1.251/alarm.mp3', 'streamType': 'BUFFERED', 'contentType': 'audio/mp3', 'metadata': {}, 'mediaCategory': 'AUDIO'}, 'mediaSessionId': 10}}], 'requestId': 0} DEBUG:pychromecast.controllers:Media:Received status {'type': 'MEDIA_STATUS', 'status': [{'mediaSessionId': 9, 'playbackRate': 1, 'playerState': 'IDLE', 'currentTime': 0, 'supportedMediaCommands': 274447, 'volume': {'level': 1, 'muted': False}, 'currentItemId': 1, 'idleReason': 'INTERRUPTED', 'extendedStatus': {'playerState': 'LOADING', 'media': {'contentId': 'http://192.168.1.251/alarm.mp3', 'streamType': 'BUFFERED', 'contentType': 'audio/mp3', 'metadata': {}, 'mediaCategory': 'AUDIO'}, 'mediaSessionId': 10}}], 'requestId': 0} DEBUG:pychromecast.socket_client:[Living Room Speaker(192.168.1.147):8009] Received: Message urn:x-cast:com.google.cast.media from 854648fc-5c11-4bda-ab4b-88dec3fa8994 to *: {'type': 'MEDIA_STATUS', 'status': [{'mediaSessionId': 10, 'playbackRate': 1, 'playerState': 'PLAYING', 'currentTime': 0, 'supportedMediaCommands': 274447, 'volume': {'level': 1, 'muted': False}, 'activeTrackIds': [], 'media': {'contentId': 'http://192.168.1.251/alarm.mp3', 'streamType': 'BUFFERED', 'contentType': 'audio/mp3', 'metadata': {}, 'mediaCategory': 'AUDIO', 'duration': 27.252, 'tracks': [{'trackId': 1, 'type': 'AUDIO'}], 'breakClips': [], 'breaks': []}, 'currentItemId': 1, 'items': [{'itemId': 1, 'media': {'contentId': 'http://192.168.1.251/alarm.mp3', 'streamType': 'BUFFERED', 'contentType': 'audio/mp3', 'metadata': {}, 'mediaCategory': 'AUDIO', 'duration': 27.252}, 'autoplay': True, 'customData': {}, 'orderId': 0}], 'repeatMode': 'REPEAT_OFF'}], 'requestId': 7} DEBUG:pychromecast.controllers:Media:Received status {'type': 'MEDIA_STATUS', 'status': [{'mediaSessionId': 10, 'playbackRate': 1, 'playerState': 'PLAYING', 'currentTime': 0, 'supportedMediaCommands': 274447, 'volume': {'level': 1, 'muted': False}, 'activeTrackIds': [], 'media': {'contentId': 'http://192.168.1.251/alarm.mp3', 'streamType': 'BUFFERED', 'contentType': 'audio/mp3', 'metadata': {}, 'mediaCategory': 'AUDIO', 'duration': 27.252, 'tracks': [{'trackId': 1, 'type': 'AUDIO'}], 'breakClips': [], 'breaks': []}, 'currentItemId': 1, 'items': [{'itemId': 1, 'media': {'contentId': 'http://192.168.1.251/alarm.mp3', 'streamType': 'BUFFERED', 'contentType': 'audio/mp3', 'metadata': {}, 'mediaCategory': 'AUDIO', 'duration': 27.252}, 'autoplay': True, 'customData': {}, 'orderId': 0}], 'repeatMode': 'REPEAT_OFF'}], 'requestId': 7} DEBUG:pychromecast.socket_client:[Living Room Speaker(192.168.1.147):8009] Received: Message urn:x-cast:com.google.cast.receiver from receiver-0 to sender-0: {'requestId': 6, 'status': {'applications': [{'appId': 'CC1AD845', 'displayName': 'Default Media Receiver', 'iconUrl': '', 'isIdleScreen': False, 'launchedFromCloud': False, 'namespaces': [{'name': 'urn:x-cast:com.google.cast.cac'}, {'name': 'urn:x-cast:com.google.cast.debugoverlay'}, {'name': 'urn:x-cast:com.google.cast.broadcast'}, {'name': 'urn:x-cast:com.google.cast.media'}], 'sessionId': '854648fc-5c11-4bda-ab4b-88dec3fa8994', 'statusText': 'Default Media Receiver', 'transportId': '854648fc-5c11-4bda-ab4b-88dec3fa8994', 'universalAppId': 'CC1AD845'}], 'userEq': {'high_shelf': {'frequency': 4500.0, 'gain_db': 0.0, 'quality': 0.707}, 'low_shelf': {'frequency': 150.0, 'gain_db': 0.0, 'quality': 0.707}, 'max_peaking_eqs': 0, 'peaking_eqs': []}, 'volume': {'controlType': 'master', 'level': 0.30000001192092896, 'muted': True, 'stepInterval': 0.019999999552965164}}, 'type': 'RECEIVER_STATUS'} DEBUG:pychromecast.controllers:Received status: CastStatus(is_active_input=None, is_stand_by=None, volume_level=0.30000001192092896, volume_muted=True, app_id='CC1AD845', display_name='Default Media Receiver', namespaces=['urn:x-cast:com.google.cast.cac', 'urn:x-cast:com.google.cast.debugoverlay', 'urn:x-cast:com.google.cast.broadcast', 'urn:x-cast:com.google.cast.media'], session_id='854648fc-5c11-4bda-ab4b-88dec3fa8994', transport_id='854648fc-5c11-4bda-ab4b-88dec3fa8994', status_text='Default Media Receiver', icon_url='') DEBUG:pychromecast.socket_client:[Living Room Speaker(192.168.1.147):8009] Received: Message urn:x-cast:com.google.cast.media from 854648fc-5c11-4bda-ab4b-88dec3fa8994 to *: {'type': 'MEDIA_STATUS', 'status': [{'mediaSessionId': 10, 'playbackRate': 1, 'playerState': 'PLAYING', 'currentTime': 1.160928, 'supportedMediaCommands': 274447, 'volume': {'level': 1, 'muted': False}, 'activeTrackIds': [], 'currentItemId': 1, 'repeatMode': 'REPEAT_OFF'}], 'requestId': 0} DEBUG:pychromecast.controllers:Media:Received status {'type': 'MEDIA_STATUS', 'status': [{'mediaSessionId': 10, 'playbackRate': 1, 'playerState': 'PLAYING', 'currentTime': 1.160928, 'supportedMediaCommands': 274447, 'volume': {'level': 1, 'muted': False}, 'activeTrackIds': [], 'currentItemId': 1, 'repeatMode': 'REPEAT_OFF'}], 'requestId': 0} INFO:pychromecast.controllers:Receiver:setting volume to 0.3 DEBUG:pychromecast.socket_client:[Living Room Speaker(192.168.1.147):8009] Sending: Message urn:x-cast:com.google.cast.receiver from sender-0 to receiver-0: {'type': 'SET_VOLUME', 'volume': {'level': 0.3}, 'requestId': 9} INFO:pychromecast.controllers:Not launching app CC1AD845 - already running DEBUG:pychromecast.socket_client:[Living Room Speaker(192.168.1.147):8009] Sending: Message urn:x-cast:com.google.cast.media from sender-0 to 854648fc-5c11-4bda-ab4b-88dec3fa8994: {'media': {'contentId': 'http://192.168.1.251/alarm.mp3', 'streamType': 'BUFFERED', 'contentType': 'audio/mp3', 'metadata': {}}, 'type': 'LOAD', 'currentTime': 0, 'autoplay': True, 'customData': {}, 'requestId': 10, 'sessionId': '854648fc-5c11-4bda-ab4b-88dec3fa8994'} DEBUG:pychromecast.socket_client:[Living Room Speaker(192.168.1.147):8009] Received: Message urn:x-cast:com.google.cast.media from 854648fc-5c11-4bda-ab4b-88dec3fa8994 to *: {'type': 'MEDIA_STATUS', 'status': [{'mediaSessionId': 10, 'playbackRate': 1, 'playerState': 'IDLE', 'currentTime': 0, 'supportedMediaCommands': 274447, 'volume': {'level': 1, 'muted': False}, 'currentItemId': 1, 'idleReason': 'INTERRUPTED', 'extendedStatus': {'playerState': 'LOADING', 'media': {'contentId': 'http://192.168.1.251/alarm.mp3', 'streamType': 'BUFFERED', 'contentType': 'audio/mp3', 'metadata': {}, 'mediaCategory': 'AUDIO'}, 'mediaSessionId': 11}}], 'requestId': 0} DEBUG:pychromecast.controllers:Media:Received status {'type': 'MEDIA_STATUS', 'status': [{'mediaSessionId': 10, 'playbackRate': 1, 'playerState': 'IDLE', 'currentTime': 0, 'supportedMediaCommands': 274447, 'volume': {'level': 1, 'muted': False}, 'currentItemId': 1, 'idleReason': 'INTERRUPTED', 'extendedStatus': {'playerState': 'LOADING', 'media': {'contentId': 'http://192.168.1.251/alarm.mp3', 'streamType': 'BUFFERED', 'contentType': 'audio/mp3', 'metadata': {}, 'mediaCategory': 'AUDIO'}, 'mediaSessionId': 11}}], 'requestId': 0} DEBUG:pychromecast.socket_client:[Living Room Speaker(192.168.1.147):8009] Received: Message urn:x-cast:com.google.cast.media from 854648fc-5c11-4bda-ab4b-88dec3fa8994 to *: {'type': 'MEDIA_STATUS', 'status': [{'mediaSessionId': 11, 'playbackRate': 1, 'playerState': 'PLAYING', 'currentTime': 0, 'supportedMediaCommands': 274447, 'volume': {'level': 1, 'muted': False}, 'activeTrackIds': [], 'media': {'contentId': 'http://192.168.1.251/alarm.mp3', 'streamType': 'BUFFERED', 'contentType': 'audio/mp3', 'metadata': {}, 'mediaCategory': 'AUDIO', 'duration': 27.252, 'tracks': [{'trackId': 1, 'type': 'AUDIO'}], 'breakClips': [], 'breaks': []}, 'currentItemId': 1, 'items': [{'itemId': 1, 'media': {'contentId': 'http://192.168.1.251/alarm.mp3', 'streamType': 'BUFFERED', 'contentType': 'audio/mp3', 'metadata': {}, 'mediaCategory': 'AUDIO', 'duration': 27.252}, 'autoplay': True, 'customData': {}, 'orderId': 0}], 'repeatMode': 'REPEAT_OFF'}], 'requestId': 10} DEBUG:pychromecast.controllers:Media:Received status {'type': 'MEDIA_STATUS', 'status': [{'mediaSessionId': 11, 'playbackRate': 1, 'playerState': 'PLAYING', 'currentTime': 0, 'supportedMediaCommands': 274447, 'volume': {'level': 1, 'muted': False}, 'activeTrackIds': [], 'media': {'contentId': 'http://192.168.1.251/alarm.mp3', 'streamType': 'BUFFERED', 'contentType': 'audio/mp3', 'metadata': {}, 'mediaCategory': 'AUDIO', 'duration': 27.252, 'tracks': [{'trackId': 1, 'type': 'AUDIO'}], 'breakClips': [], 'breaks': []}, 'currentItemId': 1, 'items': [{'itemId': 1, 'media': {'contentId': 'http://192.168.1.251/alarm.mp3', 'streamType': 'BUFFERED', 'contentType': 'audio/mp3', 'metadata': {}, 'mediaCategory': 'AUDIO', 'duration': 27.252}, 'autoplay': True, 'customData': {}, 'orderId': 0}], 'repeatMode': 'REPEAT_OFF'}], 'requestId': 10} DEBUG:pychromecast.socket_client:[Living Room Speaker(192.168.1.147):8009] Received: Message urn:x-cast:com.google.cast.receiver from receiver-0 to sender-0: {'requestId': 9, 'status': {'applications': [{'appId': 'CC1AD845', 'displayName': 'Default Media Receiver', 'iconUrl': '', 'isIdleScreen': False, 'launchedFromCloud': False, 'namespaces': [{'name': 'urn:x-cast:com.google.cast.cac'}, {'name': 'urn:x-cast:com.google.cast.debugoverlay'}, {'name': 'urn:x-cast:com.google.cast.broadcast'}, {'name': 'urn:x-cast:com.google.cast.media'}], 'sessionId': '854648fc-5c11-4bda-ab4b-88dec3fa8994', 'statusText': 'Default Media Receiver', 'transportId': '854648fc-5c11-4bda-ab4b-88dec3fa8994', 'universalAppId': 'CC1AD845'}], 'userEq': {'high_shelf': {'frequency': 4500.0, 'gain_db': 0.0, 'quality': 0.707}, 'low_shelf': {'frequency': 150.0, 'gain_db': 0.0, 'quality': 0.707}, 'max_peaking_eqs': 0, 'peaking_eqs': []}, 'volume': {'controlType': 'master', 'level': 0.30000001192092896, 'muted': True, 'stepInterval': 0.019999999552965164}}, 'type': 'RECEIVER_STATUS'} DEBUG:pychromecast.controllers:Received status: CastStatus(is_active_input=None, is_stand_by=None, volume_level=0.30000001192092896, volume_muted=True, app_id='CC1AD845', display_name='Default Media Receiver', namespaces=['urn:x-cast:com.google.cast.cac', 'urn:x-cast:com.google.cast.debugoverlay', 'urn:x-cast:com.google.cast.broadcast', 'urn:x-cast:com.google.cast.media'], session_id='854648fc-5c11-4bda-ab4b-88dec3fa8994', transport_id='854648fc-5c11-4bda-ab4b-88dec3fa8994', status_text='Default Media Receiver', icon_url='') DEBUG:pychromecast.socket_client:[Living Room Speaker(192.168.1.147):8009] Received: Message urn:x-cast:com.google.cast.media from 854648fc-5c11-4bda-ab4b-88dec3fa8994 to *: {'type': 'MEDIA_STATUS', 'status': [{'mediaSessionId': 11, 'playbackRate': 1, 'playerState': 'PLAYING', 'currentTime': 1.151786, 'supportedMediaCommands': 274447, 'volume': {'level': 1, 'muted': False}, 'activeTrackIds': [], 'currentItemId': 1, 'repeatMode': 'REPEAT_OFF'}], 'requestId': 0} DEBUG:pychromecast.controllers:Media:Received status {'type': 'MEDIA_STATUS', 'status': [{'mediaSessionId': 11, 'playbackRate': 1, 'playerState': 'PLAYING', 'currentTime': 1.151786, 'supportedMediaCommands': 274447, 'volume': {'level': 1, 'muted': False}, 'activeTrackIds': [], 'currentItemId': 1, 'repeatMode': 'REPEAT_OFF'}], 'requestId': 0}

Subcode avatar Sep 12 '20 18:09 Subcode