--> HIER <--
Es gab ein paar Änderung im SoCo-Framework, das hat die Funktion play_tunein etwas durcheinander gebracht.
Code:
vol_max
Code:
volume_dpt3
Edit: Das neue Plugin ist im dev-Zweig eingepflegt.
Gruss,
Stefan
vol_max
volume_dpt3
[test] sonos_uid = rincon_b8e937eb629001400 [[play_tts]] type = [COLOR=#FF0000]bool[/COLOR] sonos_send = play_tts [[[volume]]] type = num value = -1 [[[language]]] type = str value = 'de' [[[group_command]]] type = bool value = 0 [[[force_stream_mode]]] type = bool value = 0 [COLOR=#FF0000] [[[text_on]]] type = str value = 'Text für an' [[[text_off]]] type = str value = 'Text für aus'[/COLOR]
... if command == 'play_tts': volume_item_name = '{}.volume'.format(item._name) language_item_name = '{}.language'.format(item._name) group_item_name = '{}.group_command'.format(item._name) force_item_name = '{}.force_stream_mode'.format(item._name) fade_item_name = '{}.fade_in'.format(item._name) [COLOR=#FF0000] texton_item_name = '{}.text_on'.format(item._name) textoff_item_name = '{}.text_off'.format(item._name)[/COLOR] volume = -1 language = 'de' group_command = 0 force_stream_mode = 0 fade_in = 0 [COLOR=#FF0000] text = ''[/COLOR] for child in item.return_children(): if child._name.lower() == volume_item_name.lower(): volume = child() if child._name.lower() == language_item_name.lower(): language = child() if child._name.lower() == group_item_name.lower(): group_command = child() if child._name.lower() == force_item_name.lower(): force_stream_mode = child() if child._name.lower() == fade_item_name.lower(): fade_in = child() [COLOR=#008000] if child._name.lower() == fade_item_name.lower(): fade_in = child()[/COLOR] [COLOR=#FF0000] if child._name.lower() == texton_item_name.lower(): if value: text = child() if child._name.lower() == textoff_item_name.lower(): if not value: text = child()[/COLOR] [COLOR=#FF0000] if text:[/COLOR] cmd = self._command.play_tts(uid, [COLOR=#FF0000]text[/COLOR], language, volume, group_command, fade_in, force_stream_mode)
EG.wohness.bwz = 1
enforce_updates=true
EG.wohness.bwz = 1
enforce_updates=true
2017-02-13 23:43:44 WARNING Main -------------------- Init smarthomeNG 1.2.0.man -------------------- 2017-02-13 23:43:44 INFO Main Init Scheduler 2017-02-13 23:43:44 INFO Main Init Plugins 2017-02-13 23:43:44 WARNING Main CLI: You should set a password for this plugin. 2017-02-13 23:43:44 INFO Main Init UZSU 2017-02-13 23:43:44 INFO Main Init Items 2017-02-13 23:43:44 ERROR Main Problem reading ._eg.conf: 'utf-8' codec can't decode byte 0xb0 in position 37: invalid start byte Traceback (most recent call last): File "/usr/local/smarthome/bin/smarthome.py", line 278, in start item_conf = lib.config.parse(self._items_dir + item_file, item_conf) File "/usr/local/smarthome/lib/config.py", line 77, in parse for raw in f.readlines(): File "/usr/local/lib/python3.5/codecs.py", line 321, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb0 in position 37: invalid start byte 2017-02-13 23:43:44 ERROR Main Problem reading ._sonos.conf: 'utf-8' codec can't decode byte 0xb0 in position 37: invalid start byte Traceback (most recent call last): File "/usr/local/smarthome/bin/smarthome.py", line 278, in start item_conf = lib.config.parse(self._items_dir + item_file, item_conf) File "/usr/local/smarthome/lib/config.py", line 77, in parse for raw in f.readlines(): File "/usr/local/lib/python3.5/codecs.py", line 321, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb0 in position 37: invalid start byte 2017-02-13 23:43:44 INFO Main Items: 151 2017-02-13 23:43:44 INFO Main Start Logics 2017-02-13 23:43:44 INFO Main Start Plugins
[[[play]]] knx_dpt = 1 knx_listen = 1/1/1 knx_lsend = 1/1/2 type = bool enforce_updates = True visu_acl = rw sonos_recv = play sonos_send = play
Wir verarbeiten personenbezogene Daten über die Nutzer unserer Website mithilfe von Cookies und anderen Technologien, um unsere Dienste bereitzustellen. Weitere Informationen findest Du in unserer Datenschutzerklärung.
Indem Du unten auf "ICH stimme zu" klickst, stimmst Du unserer Datenschutzerklärung und unseren persönlichen Datenverarbeitungs- und Cookie-Praktiken zu, wie darin beschrieben. Du erkennst außerdem an, dass dieses Forum möglicherweise außerhalb Deines Landes gehostet wird und bist damit einverstanden, dass Deine Daten in dem Land, in dem dieses Forum gehostet wird, gesammelt, gespeichert und verarbeitet werden.
Einen Kommentar schreiben: