Ciao,
ho installato il packages (l'aggiornamento uscito il 22 04, specifico perchè ho notato un cambiamento del file zip) come spiegato sulla guida di hassio help, sono molto curioso ed ansioso di integrarlo nelle mie automazioni, tuttavia alla prima prova di inviare il messaggio tramite il Devtool,
mi restituisce il seguente errore:
'NoneType' object is not iterable
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/homeassistant/components/websocket_api/commands.py", line 122, in handle_call_service
connection.context(msg))
File "/usr/local/lib/python3.7/site-packages/homeassistant/core.py", line 1138, in async_call
self._execute_service(handler, service_call))
File "/usr/local/lib/python3.7/site-packages/homeassistant/core.py", line 1160, in execute_service
await handler.func(service_call)
File "/usr/local/lib/python3.7/site-packages/homeassistant/components/script/init.py", line 116, in service_handler
context=service.context)
File "/usr/local/lib/python3.7/site-packages/homeassistant/components/script/init.py", line 174, in async_turn_on
kwargs.get(ATTR_VARIABLES), context)
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/script.py", line 131, in async_run
await self.handle_action(action, variables, context)
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/script.py", line 210, in _handle_action
action, variables, context)
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/script.py", line 299, in async_call_service
context=context
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/service.py", line 79, in async_call_from_config
config[CONF_SERVICE_DATA_TEMPLATE], variables))
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/template.py", line 60, in render_complex
for key, item in value.items()}
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/template.py", line 60, in <dictcomp>
for key, item in value.items()}
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/template.py", line 61, in render_complex
return value.async_render(variables)
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/template.py", line 140, in async_render
return self.compiled.render(kwargs).strip()
File "/usr/local/lib/python3.7/site-packages/jinja2/asyncsupport.py", line 76, in render
return original_render(self, args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/local/lib/python3.7/site-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.7/site-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "<template>", line 10, in top-level template code
File "/usr/local/lib/python3.7/site-packages/jinja2/asyncfilters.py", line 45, in wrapper
return normal_filter(args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/jinja2/filters.py", line 405, in do_join
return text_type(d).join(imap(text_type, value))
TypeError: 'NoneType' object is not iterable
se uso interfono da il seguente errore:
Error while executing automation automation.interfono. Unknown error for call_service at pos 1:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/homeassistant/components/automation/init.py", line 380, in action
await script_obj.async_run(variables, context)
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/script.py", line 131, in async_run
await self._handle_action(action, variables, context)
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/script.py", line 210, in _handle_action
action, variables, context)
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/script.py", line 299, in async_call_service
context=context
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/service.py", line 88, in async_call_from_config
domain, service_name, service_data, blocking=blocking, context=context)
File "/usr/local/lib/python3.7/site-packages/homeassistant/core.py", line 1138, in async_call
self.execute_service(handler, service_call))
File "/usr/local/lib/python3.7/site-packages/homeassistant/core.py", line 1160, in execute_service
await handler.func(service_call)
File "/usr/local/lib/python3.7/site-packages/homeassistant/components/script/init.py", line 116, in service_handler
context=service.context)
File "/usr/local/lib/python3.7/site-packages/homeassistant/components/script/init.py", line 174, in async_turn_on
kwargs.get(ATTR_VARIABLES), context)
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/script.py", line 131, in async_run
await self.handle_action(action, variables, context)
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/script.py", line 210, in _handle_action
action, variables, context)
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/script.py", line 299, in async_call_service
context=context
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/service.py", line 79, in async_call_from_config
config[CONF_SERVICE_DATA_TEMPLATE], variables))
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/template.py", line 60, in render_complex
for key, item in value.items()}
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/template.py", line 60, in <dictcomp>
for key, item in value.items()}
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/template.py", line 61, in render_complex
return value.async_render(variables)
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/template.py", line 140, in async_render
return self.compiled.render(kwargs).strip()
File "/usr/local/lib/python3.7/site-packages/jinja2/asyncsupport.py", line 76, in render
return original_render(self, args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/local/lib/python3.7/site-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.7/site-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "<template>", line 10, in top-level template code
File "/usr/local/lib/python3.7/site-packages/jinja2/asyncfilters.py", line 45, in wrapper
return normal_filter(args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/jinja2/filters.py", line 405, in do_join
return text_type(d).join(imap(text_type, value))
TypeError: 'NoneType' object is not iterable
ed inoltre:
Error while executing automation automation.notifica_ripeti_ultimo_messaggio. Unknown error for call_service at pos 2:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/homeassistant/components/automation/init.py", line 380, in action
await script_obj.async_run(variables, context)
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/script.py", line 131, in async_run
await self._handle_action(action, variables, context)
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/script.py", line 210, in _handle_action
action, variables, context)
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/script.py", line 299, in async_call_service
context=context
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/service.py", line 88, in async_call_from_config
domain, service_name, service_data, blocking=blocking, context=context)
File "/usr/local/lib/python3.7/site-packages/homeassistant/core.py", line 1138, in async_call
self.execute_service(handler, service_call))
File "/usr/local/lib/python3.7/site-packages/homeassistant/core.py", line 1160, in execute_service
await handler.func(service_call)
File "/usr/local/lib/python3.7/site-packages/homeassistant/components/script/init.py", line 116, in service_handler
context=service.context)
File "/usr/local/lib/python3.7/site-packages/homeassistant/components/script/init.py", line 174, in async_turn_on
kwargs.get(ATTR_VARIABLES), context)
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/script.py", line 131, in async_run
await self.handle_action(action, variables, context)
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/script.py", line 210, in _handle_action
action, variables, context)
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/script.py", line 299, in async_call_service
context=context
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/service.py", line 79, in async_call_from_config
config[CONF_SERVICE_DATA_TEMPLATE], variables))
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/template.py", line 60, in render_complex
for key, item in value.items()}
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/template.py", line 60, in <dictcomp>
for key, item in value.items()}
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/template.py", line 61, in render_complex
return value.async_render(variables)
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/template.py", line 140, in async_render
return self.compiled.render(kwargs).strip()
File "/usr/local/lib/python3.7/site-packages/jinja2/asyncsupport.py", line 76, in render
return original_render(self, args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/local/lib/python3.7/site-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.7/site-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "<template>", line 10, in top-level template code
File "/usr/local/lib/python3.7/site-packages/jinja2/asyncfilters.py", line 45, in wrapper
return normal_filter(args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/jinja2/filters.py", line 405, in do_join
return text_type(d).join(imap(text_type, value))
TypeError: 'NoneType' object is not iterable
Fallita chiamata a servizio script/my_notify . 'NoneType' object is not iterable
da cosa puo dipendendere?
con l'occasione mi permetto di consigliare nelle prossime versioni del packges per facilitare installazione e configurazione di scindere in piu file alexa/google perchè credo che la maggior parte utilizzi l'uno o l'altro; scindere file di funzionamento da quelli di configurazione cosi che mentre il pacchetto si evolve si possono fare degli upload dei file di funzionamento senza dover ogni volta rifare le configurazioni...
grazie mille 🙂 angelo