Ankündigung
Einklappen
Keine Ankündigung bisher.
Sonos Anbindung
Einklappen
X
-
Martin_8 pfischi : Kennt ihr diesen Eintrag: https://knx-user-forum.de/forum/supp...rzuntersuchung? Ich habe selber auch dutzende Threads, die alle nur durchnummeriert sind - und womöglich zum Sonos-Plugin gehören? Vielleicht hat das was mit dem Speicherverbrauch zu tun?
-
Hallo pfischi,
hier das Log von Heute.
Gruss,
MartinAngehängte Dateien
Einen Kommentar schreiben:
-
Zitat von Martin_8 Beitrag anzeigenHallo pfischi,
Im Log habe ich noch folgenden Fehler gefunden.
task_done() called too many timesCode:task_done
Edit:
Bitte setze auch mal den WertCode:discover_cycle
Gruss,
StefanZuletzt geändert von pfischi; 04.12.2018, 06:52.
Einen Kommentar schreiben:
-
Hallo pfischi,
mit Speicher meine ich RAM. Ich habe die Konfiguration auch schon auf automatisch gestellt, mit dem gleichen Ergebnis.
Kann es an den Sonos Komponenten liegen?
Im Log habe ich noch folgenden Fehler gefunden.
task_done() called too many times
sonos.jpg
Ich habe auch zum testen ein Raspberry mit dem Raspi_Image2.2 installiert und das Plugin aktiviert. Dort kam der gleiche Fehler.
Einen Kommentar schreiben:
-
Ja, es gab wieder Updates bei Sonos.
Der betreffende Lautsprecher (Küche) ist ein SONOS ONE. In Summe habe ich eine Playbar (Wohnzimmer), einen Play1 (Kinderzimmer) und einen weiteren ONE (Esszimmer).
Es gehen alle Sonos Geräte, auch der Küche. Nur das TTS klappt nicht. (Ich habe aber wahrscheinlich nicht alle Funktionen probiert.)
Einen Kommentar schreiben:
-
Hm, das sieht nach Update bei Sonos aus. Ich schau mir das an. Ich setze gerade meinen Dev-Rechner neu auf. Danach debugge ich.
Kannst du den betreffenden Lautsprecher mal rausnehmen? Gehen die anderen? Ist das eine Soundbar von Sonos, die die Probleme macht?
Einen Kommentar schreiben:
-
Zitat von pfischi Beitrag anzeigenZuerst würde ich mal TTS deaktivieren und sicherstellen, das der Küchen-Sonos sonst richtig funktioniert. Gehen die anderen Lautsprecher (steuerbar?).
Code:Sonos: class_name: Sonos class_path: plugins.sonos #tts: true # optional, default: false #local_webservice_path: /tmp/tts # optional, default: empty. If 'tts' is enabled, this option is mandatory. # All tts files will be stored here. #local_webservice_path_snippet: /tmp/snippet # optional, default: empty. For some reasons it could be necessary to have # separated paths for TTS files and your own snippet files. You can define the # local path for your snippets here. If 'tts' is enabled and # 'local_webservice_path_snippet' is empty, the value for # 'local_webservice_path' is used for your snippet audio files. # webservice_ip: 192.168.1.40 # optional, default: automatic. You can set a specific ip address. # If you're using a docker container, you have to set the host # ip address here. # webservice_port: 23500 # optional, default: 23500 # discover_cycle: 120 # optional, default: 120 (in seconds) # speaker_ips: # optional. You can set static IP addresses for your Sonos speaker. This # - 192.168.1.10 # will disable auto-discovery. This is useful if you're using a # - 192.168.1.77 # containerized environment with restricted network access.
Code:Sonos: Esszimmer: sonos_uid: rincon_7828ca060f5401400 play: type: bool sonos_recv: play sonos_send: play stop: type: bool sonos_recv: stop sonos_send: stop is_initialized: type: bool sonos_recv: is_initialized volume: type: num sonos_recv: volume sonos_send: volume group_command: type: bool value: false sonos_attrib: group Wohnzimmer: sonos_uid: rincon_7828ca59548701400 play: type: bool sonos_recv: play sonos_send: play stop: type: bool sonos_recv: stop sonos_send: stop is_initialized: type: bool sonos_recv: is_initialized volume: type: num sonos_recv: volume sonos_send: volume group_command: type: bool value: false sonos_attrib: group Kueche: sonos_uid: rincon_7828ca074f0c01400 is_initialized: type: bool sonos_recv: is_initialized volume: type: num sonos_recv: volume sonos_send: volume enforce_updates: true group_command: type: bool value: false sonos_attrib: group max_volume: type: num value: -1 sonos_attrib: max_volume volume_dpt3: type: list sonos_attrib: vol_dpt3 sonos_dpt3_step: 2 sonos_dpt3_time: 1 helper: sonos_attrib: dpt3_helper type: num sonos_send: volume play: type: bool sonos_recv: play sonos_send: play stop: type: bool sonos_recv: stop sonos_send: stop pause: type: bool sonos_recv: pause sonos_send: pause next: type: bool sonos_send: next enforce_updates: true previous: type: bool sonos_send: previous enforce_updates: true mute: type: bool sonos_recv: mute sonos_send: mute play_mode: type: str sonos_recv: play_mode sonos_send: play_mode bass: type: num sonos_recv: bass sonos_send: bass group_command: type: bool value: false sonos_attrib: group treble: type: num sonos_recv: treble sonos_send: treble group_command: type: bool value: false sonos_attrib: group loudness: type: bool sonos_recv: loudness sonos_send: loudness group_command: type: bool value: false sonos_attrib: group #night_mode: # only supported by Playbar #type: bool #sonos_recv: night_mode #sonos_send: night_mode #dialog_mode: # only supported by Playbar #type: bool #sonos_recv: dialog_mode #sonos_send: dialog_mode cross_fade: type: bool sonos_recv: cross_fade sonos_send: cross_fade snooze: type: num sonos_recv: snooze sonos_send: snooze is_coordinator: type: bool sonos_recv: is_coordinator coordinator: type: str sonos_recv: coordinator zone_group_members: type: list sonos_recv: zone_group_members status_light: type: bool sonos_recv: status_light sonos_send: status_light player_name: type: str sonos_recv: player_name household_id: type: str sonos_recv: household_id track_uri: type: str sonos_recv: track_uri streamtype: type: str sonos_recv: streamtype #switch_linein: # only supported by Play5 yet (or all speakers with line-in) #type: bool #sonos_send: switch_linein #switch_tv: # only supported by Playbar #type: bool #sonos_send: switch_tv track_artist: type: str sonos_recv: track_artist track_title: type: str sonos_recv: track_title track_album: type: str sonos_recv: track_album track_album_art: type: str sonos_recv: track_album_art radio_station: type: str sonos_recv: radio_station radio_show: type: str sonos_recv: radio_show current_track: type: num sonos_recv: current_track number_of_tracks: type: num sonos_recv: number_of_tracks current_track_duration: type: str sonos_recv: current_track_duration current_transport_actions: type: str sonos_recv: current_transport_actions current_valid_play_modes: type: str sonos_recv: current_valid_play_modes stream_content: type: str sonos_recv: stream_content play_tunein: type: str sonos_send: play_tunein start_after: type: bool value: True sonos_attrib: start_after play_url: type: str sonos_send: play_url start_after: type: bool value: True sonos_attrib: start_after join: type: str sonos_send: join enforce_updates: True unjoin: type: bool sonos_send: unjoin enforce_updates: True start_after: type: bool value: False sonos_attrib: start_after sonos_playlists: type: list sonos_recv: sonos_playlists load_sonos_playlist: type: str sonos_send: load_sonos_playlist enforce_updates: True start_after: type: bool value: False sonos_attrib: start_after start_track: type: num value: 0 sonos_attrib: start_track clear_queue: type: bool value: False sonos_attrib: clear_queue uid: type: str sonos_recv: uid # play_tts: # type: str # sonos_send: play_tts # enforce_updates: True # tts_language: # type: str # value: de # sonos_attrib: tts_language # tts_volume: # type: num # value: -1 # sonos_attrib: tts_volume # tts_fade_in: # type: bool # sonos_attrib: tts_fade_in # play_snippet: # type: str # sonos_send: play_snippet # enforce_updates: True # snippet_volume: # type: num # value: 25 # sonos_attrib: snippet_volume # snippet_fade_in: # type: bool # value: True # sonos_attrib: snippet_fade_in
Im Warning Log:
Code:2018-12-02 21:10:26 WARNING __main__ Running in Python interpreter 'v3.5.3 final' (pid=14305) on linux platform 2018-12-02 21:11:12 WARNING plugins.cli CLI: You should set a password for this plugin. 2018-12-02 21:11:17 WARNING lib.metadata _get_definition_defaultvalue: default value is 'None*' -> None 2018-12-02 21:11:59 ERROR sonos 'NoneType' object has no attribute 'unsubscribe' 2018-12-02 21:12:02 WARNING plugins.sonos.soco.events Event contains illegal metadatafor 'av_transport_uri_meta_data'. Error message: 'Unknown UPnP class: object.item.audioItem.linein.homeTheater' The result will be a SoCoFault. 2018-12-02 21:12:12 WARNING plugins.sonos.soco.events Event contains illegal metadatafor 'av_transport_uri_meta_data'. Error message: 'Unknown UPnP class: object.item.audioItem.linein.homeTheater' The result will be a SoCoFault. 2018-12-02 21:13:59 ERROR sonos '' 2018-12-02 21:13:59 ERROR sonos 'NoneType' object has no attribute 'unsubscribe' 2018-12-02 21:14:01 ERROR sonos 'NoneType' object has no attribute 'unsubscribe' 2018-12-02 21:14:01 ERROR sonos '' 2018-12-02 21:14:04 WARNING plugins.sonos.soco.events Event contains illegal metadatafor 'av_transport_uri_meta_data'. Error message: 'Unknown UPnP class: object.item.audioItem.linein.homeTheater' The result will be a SoCoFault. 2018-12-02 21:14:05 WARNING plugins.sonos.soco.events Event contains illegal metadatafor 'av_transport_uri_meta_data'. Error message: 'Unknown UPnP class: object.item.audioItem.linein.homeTheater' The result will be a SoCoFault. 2018-12-02 21:14:07 WARNING plugins.sonos.soco.events Event contains illegal metadatafor 'av_transport_uri_meta_data'. Error message: 'Unknown UPnP class: object.item.audioItem.linein.homeTheater' The result will be a SoCoFault. 2018-12-02 21:15:58 ERROR sonos '' 2018-12-02 21:15:59 ERROR sonos 'NoneType' object has no attribute 'unsubscribe' 2018-12-02 21:16:00 ERROR sonos 'NoneType' object has no attribute 'unsubscribe' 2018-12-02 21:16:00 ERROR sonos '' 2018-12-02 21:16:04 WARNING plugins.sonos.soco.events Event contains illegal metadatafor 'av_transport_uri_meta_data'. Error message: 'Unknown UPnP class: object.item.audioItem.linein.homeTheater' The result will be a SoCoFault. 2018-12-02 21:16:06 WARNING plugins.sonos.soco.events Event contains illegal metadatafor 'av_transport_uri_meta_data'. Error message: 'Unknown UPnP class: object.item.audioItem.linein.homeTheater' The result will be a SoCoFault. 2018-12-02 21:16:06 WARNING plugins.sonos.soco.events Event contains illegal metadatafor 'av_transport_uri_meta_data'. Error message: 'Unknown UPnP class: object.item.audioItem.linein.homeTheater' The result will be a SoCoFault. 2018-12-02 21:17:58 ERROR sonos '' 2018-12-02 21:18:03 WARNING plugins.sonos.soco.events Event contains illegal metadatafor 'av_transport_uri_meta_data'. Error message: 'Unknown UPnP class: object.item.audioItem.linein.homeTheater' The result will be a SoCoFault. 2018-12-02 21:18:03 WARNING plugins.sonos.soco.events Event contains illegal metadatafor 'av_transport_uri_meta_data'. Error message: 'Unknown UPnP class: object.item.audioItem.linein.homeTheater' The result will be a SoCoFault. 2018-12-02 21:18:05 WARNING plugins.sonos.soco.events Event contains illegal metadatafor 'av_transport_uri_meta_data'. Error message: 'Unknown UPnP class: object.item.audioItem.linein.homeTheater' The result will be a SoCoFault. 2018-12-02 21:18:06 ERROR sonos 'NoneType' object has no attribute 'unsubscribe' 2018-12-02 21:18:07 ERROR sonos '' 2018-12-02 21:18:07 ERROR sonos 'NoneType' object has no attribute 'unsubscribe' 2018-12-02 21:19:58 ERROR sonos '' 2018-12-02 21:19:59 ERROR sonos 'NoneType' object has no attribute 'unsubscribe' 2018-12-02 21:20:00 ERROR sonos 'NoneType' object has no attribute 'unsubscribe' 2018-12-02 21:20:00 ERROR sonos '' 2018-12-02 21:20:04 WARNING plugins.sonos.soco.events Event contains illegal metadatafor 'av_transport_uri_meta_data'. Error message: 'Unknown UPnP class: object.item.audioItem.linein.homeTheater' The result will be a SoCoFault. 2018-12-02 21:20:05 WARNING plugins.sonos.soco.events Event contains illegal metadatafor 'av_transport_uri_meta_data'. Error message: 'Unknown UPnP class: object.item.audioItem.linein.homeTheater' The result will be a SoCoFault. 2018-12-02 21:20:06 WARNING plugins.sonos.soco.events Event contains illegal metadatafor 'av_transport_uri_meta_data'. Error message: 'Unknown UPnP class: object.item.audioItem.linein.homeTheater' The result will be a SoCoFault.
Code:2018-12-02 21:12:02 WARNING plugins.sonos.soco.events Event contains illegal metadatafor 'av_transport_uri_meta_data'. Error message: 'Unknown UPnP class: object.item.audioItem.linein.homeTheater' The result will be a SoCoFault. 2018-12-02 21:12:12 WARNING plugins.sonos.soco.events Event contains illegal metadatafor 'av_transport_uri_meta_data'. Error message: 'Unknown UPnP class: object.item.audioItem.linein.homeTheater' The result will be a SoCoFault. 2018-12-02 21:14:04 WARNING plugins.sonos.soco.events Event contains illegal metadatafor 'av_transport_uri_meta_data'. Error message: 'Unknown UPnP class: object.item.audioItem.linein.homeTheater' The result will be a SoCoFault. 2018-12-02 21:14:05 WARNING plugins.sonos.soco.events Event contains illegal metadatafor 'av_transport_uri_meta_data'. Error message: 'Unknown UPnP class: object.item.audioItem.linein.homeTheater' The result will be a SoCoFault. 2018-12-02 21:14:07 WARNING plugins.sonos.soco.events Event contains illegal metadatafor 'av_transport_uri_meta_data'. Error message: 'Unknown UPnP class: object.item.audioItem.linein.homeTheater' The result will be a SoCoFault. 2018-12-02 21:14:36 INFO plugins.mqtt Received topic 'SONOFF_RGBW1/tele/STATE', payload '{'HSBColor': '0,100,100', 'Wifi': {'BSSId': '38:10:D5:15:87:69', 'AP': 1, 'Channel': 1, 'RSSI': 64, 'SSId': 'WLAN-Access'}, 'Channel': [100, 0, 0, 0, 0], 'Scheme': 0, 'CT': 499, 'LedTable': 'OFF', 'POWER': 'ON', 'Uptime': '0T00:46:45', 'Color': 'FF00000000', 'Speed': 1, 'Vcc': 3.179, 'Fade': 'ON', 'Time': '2018-12-02T21:14:35', 'Dimmer': 100}' (type dict), QoS '0', retain '0' for item 'SONOFF.SONOFF_RGBW1.Status' 2018-12-02 21:16:04 WARNING plugins.sonos.soco.events Event contains illegal metadatafor 'av_transport_uri_meta_data'. Error message: 'Unknown UPnP class: object.item.audioItem.linein.homeTheater' The result will be a SoCoFault. 2018-12-02 21:16:06 WARNING plugins.sonos.soco.events Event contains illegal metadatafor 'av_transport_uri_meta_data'. Error message: 'Unknown UPnP class: object.item.audioItem.linein.homeTheater' The result will be a SoCoFault. 2018-12-02 21:16:06 WARNING plugins.sonos.soco.events Event contains illegal metadatafor 'av_transport_uri_meta_data'. Error message: 'Unknown UPnP class: object.item.audioItem.linein.homeTheater' The result will be a SoCoFault. 2018-12-02 21:18:03 WARNING plugins.sonos.soco.events Event contains illegal metadatafor 'av_transport_uri_meta_data'. Error message: 'Unknown UPnP class: object.item.audioItem.linein.homeTheater' The result will be a SoCoFault. 2018-12-02 21:18:03 WARNING plugins.sonos.soco.events Event contains illegal metadatafor 'av_transport_uri_meta_data'. Error message: 'Unknown UPnP class: object.item.audioItem.linein.homeTheater' The result will be a SoCoFault. 2018-12-02 21:18:05 WARNING plugins.sonos.soco.events Event contains illegal metadatafor 'av_transport_uri_meta_data'. Error message: 'Unknown UPnP class: object.item.audioItem.linein.homeTheater' The result will be a SoCoFault. 2018-12-02 21:19:50 INFO plugins.mqtt Received topic 'SONOFF_RGBW1/tele/STATE', payload '{'HSBColor': '0,100,100', 'Wifi': {'BSSId': '38:10:D5:15:87:69', 'AP': 1, 'Channel': 1, 'RSSI': 64, 'SSId': 'WLAN-Access'}, 'Channel': [100, 0, 0, 0, 0], 'Scheme': 0, 'CT': 499, 'LedTable': 'OFF', 'POWER': 'ON', 'Uptime': '0T00:51:59', 'Color': 'FF00000000', 'Speed': 1, 'Vcc': 3.181, 'Fade': 'ON', 'Time': '2018-12-02T21:19:49', 'Dimmer': 100}' (type dict), QoS '0', retain '0' for item 'SONOFF.SONOFF_RGBW1.Status' 2018-12-02 21:20:04 WARNING plugins.sonos.soco.events Event contains illegal metadatafor 'av_transport_uri_meta_data'. Error message: 'Unknown UPnP class: object.item.audioItem.linein.homeTheater' The result will be a SoCoFault. 2018-12-02 21:20:05 WARNING plugins.sonos.soco.events Event contains illegal metadatafor 'av_transport_uri_meta_data'. Error message: 'Unknown UPnP class: object.item.audioItem.linein.homeTheater' The result will be a SoCoFault. 2018-12-02 21:20:06 WARNING plugins.sonos.soco.events Event contains illegal metadatafor 'av_transport_uri_meta_data'. Error message: 'Unknown UPnP class: object.item.audioItem.linein.homeTheater' The result will be a SoCoFault.
Einen Kommentar schreiben:
-
Zitat von Sisamiwe Beitrag anzeigenpfischi
Passt das so?
Einen Kommentar schreiben:
-
pfischi
Danke für die Hilfe!
Hier meine PluginConfig
Code:Sonos: class_name: Sonos class_path: plugins.sonos tts: true # optional, default: false local_webservice_path: /tmp/tts # optional, default: empty. If 'tts' is enabled, this option is mandatory. # All tts files will be stored here. local_webservice_path_snippet: /tmp/snippet # optional, default: empty. For some reasons it could be necessary to have # separated paths for TTS files and your own snippet files. You can define the # local path for your snippets here. If 'tts' is enabled and # 'local_webservice_path_snippet' is empty, the value for # 'local_webservice_path' is used for your snippet audio files. # webservice_ip: 192.168.1.40 # optional, default: automatic. You can set a specific ip address. # If you're using a docker container, you have to set the host # ip address here. # webservice_port: 23500 # optional, default: 23500 # discover_cycle: 120 # optional, default: 120 (in seconds) # speaker_ips: # optional. You can set static IP addresses for your Sonos speaker. This # - 192.168.1.10 # will disable auto-discovery. This is useful if you're using a # - 192.168.1.77 # containerized environment with restricted network access.
Code:Sonos: Esszimmer: sonos_uid: rincon_7828ca060f5401400 play: type: bool sonos_recv: play sonos_send: play stop: type: bool sonos_recv: stop sonos_send: stop is_initialized: type: bool sonos_recv: is_initialized volume: type: num sonos_recv: volume sonos_send: volume group_command: type: bool value: false sonos_attrib: group Wohnzimmer: sonos_uid: rincon_7828ca59548701400 play: type: bool sonos_recv: play sonos_send: play stop: type: bool sonos_recv: stop sonos_send: stop is_initialized: type: bool sonos_recv: is_initialized volume: type: num sonos_recv: volume sonos_send: volume group_command: type: bool value: false sonos_attrib: group Kueche: sonos_uid: rincon_7828ca074f0c01400 is_initialized: type: bool sonos_recv: is_initialized volume: type: num sonos_recv: volume sonos_send: volume enforce_updates: true group_command: type: bool value: false sonos_attrib: group max_volume: type: num value: -1 sonos_attrib: max_volume volume_dpt3: type: list sonos_attrib: vol_dpt3 sonos_dpt3_step: 2 sonos_dpt3_time: 1 helper: sonos_attrib: dpt3_helper type: num sonos_send: volume play: type: bool sonos_recv: play sonos_send: play stop: type: bool sonos_recv: stop sonos_send: stop pause: type: bool sonos_recv: pause sonos_send: pause next: type: bool sonos_send: next enforce_updates: true previous: type: bool sonos_send: previous enforce_updates: true mute: type: bool sonos_recv: mute sonos_send: mute play_mode: type: str sonos_recv: play_mode sonos_send: play_mode bass: type: num sonos_recv: bass sonos_send: bass group_command: type: bool value: false sonos_attrib: group treble: type: num sonos_recv: treble sonos_send: treble group_command: type: bool value: false sonos_attrib: group loudness: type: bool sonos_recv: loudness sonos_send: loudness group_command: type: bool value: false sonos_attrib: group #night_mode: # only supported by Playbar #type: bool #sonos_recv: night_mode #sonos_send: night_mode #dialog_mode: # only supported by Playbar #type: bool #sonos_recv: dialog_mode #sonos_send: dialog_mode cross_fade: type: bool sonos_recv: cross_fade sonos_send: cross_fade snooze: type: num sonos_recv: snooze sonos_send: snooze is_coordinator: type: bool sonos_recv: is_coordinator coordinator: type: str sonos_recv: coordinator zone_group_members: type: list sonos_recv: zone_group_members status_light: type: bool sonos_recv: status_light sonos_send: status_light player_name: type: str sonos_recv: player_name household_id: type: str sonos_recv: household_id track_uri: type: str sonos_recv: track_uri streamtype: type: str sonos_recv: streamtype #switch_linein: # only supported by Play5 yet (or all speakers with line-in) #type: bool #sonos_send: switch_linein #switch_tv: # only supported by Playbar #type: bool #sonos_send: switch_tv track_artist: type: str sonos_recv: track_artist track_title: type: str sonos_recv: track_title track_album: type: str sonos_recv: track_album track_album_art: type: str sonos_recv: track_album_art radio_station: type: str sonos_recv: radio_station radio_show: type: str sonos_recv: radio_show current_track: type: num sonos_recv: current_track number_of_tracks: type: num sonos_recv: number_of_tracks current_track_duration: type: str sonos_recv: current_track_duration current_transport_actions: type: str sonos_recv: current_transport_actions current_valid_play_modes: type: str sonos_recv: current_valid_play_modes stream_content: type: str sonos_recv: stream_content play_tunein: type: str sonos_send: play_tunein start_after: type: bool value: True sonos_attrib: start_after play_url: type: str sonos_send: play_url start_after: type: bool value: True sonos_attrib: start_after join: type: str sonos_send: join enforce_updates: True unjoin: type: bool sonos_send: unjoin enforce_updates: True start_after: type: bool value: False sonos_attrib: start_after sonos_playlists: type: list sonos_recv: sonos_playlists load_sonos_playlist: type: str sonos_send: load_sonos_playlist enforce_updates: True start_after: type: bool value: False sonos_attrib: start_after start_track: type: num value: 0 sonos_attrib: start_track clear_queue: type: bool value: False sonos_attrib: clear_queue uid: type: str sonos_recv: uid play_tts: type: str sonos_send: play_tts enforce_updates: True tts_language: type: str value: de sonos_attrib: tts_language tts_volume: type: num value: -1 sonos_attrib: tts_volume tts_fade_in: type: bool sonos_attrib: tts_fade_in play_snippet: type: str sonos_send: play_snippet enforce_updates: True snippet_volume: type: num value: 25 sonos_attrib: snippet_volume snippet_fade_in: type: bool value: True sonos_attrib: snippet_fade_in Kinderzimmer: sonos_uid: rincon_5caafd797dc401400 play: type: bool sonos_recv: play sonos_send: play stop: type: bool sonos_recv: stop sonos_send: stop is_initialized: type: bool sonos_recv: is_initialized volume: type: num sonos_recv: volume sonos_send: volume group_command: type: bool value: false sonos_attrib: group
Bzgl. der Pfade:
Ich habe mit Putty die Verzeichnisse als root angelegt und dann dem Nutzer smarthome den Zugriff erlaubt
Code:[root@SmartHomeNG_Dev ~]# mkdir /tmp/snippet [root@SmartHomeNG_Dev /tmp/snippet]# sudo chown -R smarthome:smarthome /tmp/snippet
Einen Kommentar schreiben:
-
Zitat von Sisamiwe Beitrag anzeigenHallo,
ich möchte auch mein SONOS System in shNG einbinden. Dazu habe ich erst einmal eine Testinstanz von shNG auf einem eigenen RPI mit dem Image von onkelandy aufgesetzt und auf den letzten DEV-Stand aktualisiert.
...
Eigentlich sollte nur bei allen erflogreichen Tests die TTS-Funktion aktiviert werden. Kannst du mal zu TestzweckenCode:/tmp/snippet
Gruss,
StefanZuletzt geändert von pfischi; 02.12.2018, 20:06.
Einen Kommentar schreiben:
-
Zitat von Martin_8 Beitrag anzeigenHallo pfischi,
bei mir läuft Smthome auf einem RaspberryPi 3, diesen starte ich alle zwei Wochen neu.
Die Logdatei vom Plugin ist zu groß zum hochladen. Das Plugin läuft im INFO Level.
https://1drv.ms/u/s!ApI_Fzw7Tt_yhh6IG9uNkFumjGSN
Konfig:
sonos:
class_name: Sonos
class_path: plugins.sonos
# tts: 'true'
# local_webservice_path: /tmp/tts
speaker_ips:
- 192.168.200.50
- 192.168.200.51
- 192.168.200.52
# - 192.168.200.53
Gruss,
Martin
Mit Speicher meinst du , das der RAM voll ist oder HDD-Speicher? Versuch mal die IPs rauszunehmen und das ganze automatisch finden zu lassen.
Gruss,
Stefan
Einen Kommentar schreiben:
-
Hallo,
ich möchte auch mein SONOS System in shNG einbinden. Dazu habe ich erst einmal eine Testinstanz von shNG auf einem eigenen RPI mit dem Image von onkelandy aufgesetzt und auf den letzten DEV-Stand aktualisiert.
Im Standard-Log gibt es immer folgende Fehlermeldung:
Code:2018-12-02 10:25:47 WARNING __main__ -------------------- Init SmartHomeNG 1.5b.f83eac00.develop -------------------- 2018-12-02 10:25:47 WARNING __main__ Running in Python interpreter 'v3.5.3 final' (pid=7164) on linux platform 2018-12-02 10:26:24 WARNING plugins.cli CLI: You should set a password for this plugin. 2018-12-02 10:26:26 WARNING lib.metadata _get_definition_defaultvalue: default value is 'None*' -> None 2018-12-02 10:26:32 WARNING sonos Sonos: Local webservice snippet path was set to '/tmp/snippet' but doesn't exists 2018-12-02 10:26:32 WARNING sonos Sonos: Local webservice snippet path '/tmp/snippet' is not readable. 2018-12-02 10:27:01 WARNING sonos Sonos: : speaker is not initialized. 2018-12-02 10:27:04 ERROR sonos 'NoneType' object has no attribute 'unsubscribe' 2018-12-02 10:29:02 ERROR sonos '' 2018-12-02 10:29:06 ERROR sonos 'NoneType' object has no attribute 'unsubscribe' 2018-12-02 10:29:08 ERROR sonos 'NoneType' object has no attribute 'unsubscribe' 2018-12-02 10:29:09 ERROR sonos '' 2018-12-02 10:31:00 ERROR lib.item Item Sonos.Kueche.play_tts: problem running <bound method Sonos.update_item of <plugins.sonos.Sonos object at 0xa86a43b0>>: '' Traceback (most recent call last): File "/usr/local/smarthome/lib/item.py", line 2068, in __update method(self, caller, source, dest) File "/usr/local/smarthome/plugins/sonos/__init__.py", line 2641, in update_item volume, self._snippet_duration_offset, fade_in) File "/usr/local/smarthome/plugins/sonos/__init__.py", line 2248, in play_tts self._play_snippet(file_path, webservice_url, volume, duration_offset, fade_in) File "/usr/local/smarthome/plugins/sonos/__init__.py", line 2160, in _play_snippet volumes[member] = sonos_speaker[member].volume KeyError: '' 2018-12-02 10:31:00 ERROR lib.item Item Sonos.Kueche.play_tts: problem running <bound method Sonos.update_item of <plugins.sonos.Sonos object at 0xa86a43b0>>: '' Traceback (most recent call last): File "/usr/local/smarthome/lib/item.py", line 2068, in __update method(self, caller, source, dest) File "/usr/local/smarthome/plugins/sonos/__init__.py", line 2641, in update_item volume, self._snippet_duration_offset, fade_in) File "/usr/local/smarthome/plugins/sonos/__init__.py", line 2248, in play_tts self._play_snippet(file_path, webservice_url, volume, duration_offset, fade_in) File "/usr/local/smarthome/plugins/sonos/__init__.py", line 2160, in _play_snippet volumes[member] = sonos_speaker[member].volume KeyError: '' 2018-12-02 10:31:05 ERROR sonos '' 2018-12-02 10:31:09 ERROR sonos 'NoneType' object has no attribute 'unsubscribe' 2018-12-02 10:31:11 ERROR sonos '' 2018-12-02 10:31:11 ERROR sonos 'NoneType' object has no attribute 'unsubscribe' 2018-12-02 10:33:02 ERROR sonos '' 2018-12-02 10:33:06 ERROR sonos 'NoneType' object has no attribute 'unsubscribe' 2018-12-02 10:33:08 ERROR sonos 'NoneType' object has no attribute 'unsubscribe' 2018-12-02 10:33:08 ERROR sonos '' 2018-12-02 10:35:02 ERROR sonos '' 2018-12-02 10:35:07 ERROR sonos 'NoneType' object has no attribute 'unsubscribe' 2018-12-02 10:35:09 ERROR sonos 'NoneType' object has no attribute 'unsubscribe' 2018-12-02 10:35:09 ERROR sonos ''
Im Readme zur Plugin-Konfig steht:
Code:# local_webservice_path: /tmp/tts # optional, default: empty. If 'tts' is enabled, this option is mandatory. # All tts files will be stored here. # local_webservice_path_snippet: /tmp/snippet # optional, default: empty. For some reasons it could be necessary to have
Dann habe ich das Log des Plugins im Info-Level aktiviert. Dort erscheinen keine Fehler oder Warnungen.
Danke Euch.
Einen Kommentar schreiben:
-
Hallo pfischi,
bei mir läuft Smthome auf einem RaspberryPi 3, diesen starte ich alle zwei Wochen neu.
Die Logdatei vom Plugin ist zu groß zum hochladen. Das Plugin läuft im INFO Level.
https://1drv.ms/u/s!ApI_Fzw7Tt_yhh6IG9uNkFumjGSN
Konfig:
sonos:
class_name: Sonos
class_path: plugins.sonos
# tts: 'true'
# local_webservice_path: /tmp/tts
speaker_ips:
- 192.168.200.50
- 192.168.200.51
- 192.168.200.52
# - 192.168.200.53
Gruss,
MartinZuletzt geändert von Martin_8; 20.11.2018, 18:25.
Einen Kommentar schreiben:
-
Kannst du ein Log und deine Konfiguration des Plugins posten? Wie lange dauert es, bis du neu starten musst?
Gruss,
Stefan
Einen Kommentar schreiben:
-
Hallo zusammen,
nach der Aktivierung des Sonos Plugins wird nach und nach der gesamte Speicher belegt, dann reagiert Smarthome nicht mehr. Nach einem reboot ist alles wieder auf Anfang gesetzt. Wenn ich das Plugin deaktiviere habe ich keine Probleme.
Was könne die Ursachen für das Verhalten sein?
Gruss,
Martin
Einen Kommentar schreiben:
Einen Kommentar schreiben: