Hi. It is possible to call a script that posts a url.
Here I have a code but something is wrong.
The name of the script is send_medition and is called by pressing on “GRABAR MEDICION”
Detalles de registro (ERROR)
Sun Dec 22 2019 18:55:23 GMT-0300 (hora estándar de Argentina)
Error rendering command template: UndefinedError: 'input_text' is undefined
Traceback (most recent call last):
File "C:\Users\Mile\AppData\Local\Programs\Python\Python37\lib\site-packages\homeassistant\helpers\template.py", line 222, in async_render
return compiled.render(kwargs).strip()
File "C:\Users\Mile\AppData\Local\Programs\Python\Python37\lib\site-packages\jinja2\asyncsupport.py", line 76, in render
return original_render(self, *args, **kwargs)
File "C:\Users\Mile\AppData\Local\Programs\Python\Python37\lib\site-packages\jinja2\environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "C:\Users\Mile\AppData\Local\Programs\Python\Python37\lib\site-packages\jinja2\environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "C:\Users\Mile\AppData\Local\Programs\Python\Python37\lib\site-packages\jinja2\_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "<template>", line 1, in top-level template code
File "C:\Users\Mile\AppData\Local\Programs\Python\Python37\lib\site-packages\jinja2\sandbox.py", line 387, in getattr
value = getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'input_text' is undefined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Mile\AppData\Local\Programs\Python\Python37\lib\site-packages\homeassistant\components\shell_command\__init__.py", line 46, in async_service_handler
rendered_args = args_compiled.async_render(service.data)
File "C:\Users\Mile\AppData\Local\Programs\Python\Python37\lib\site-packages\homeassistant\helpers\template.py", line 224, in async_render
raise TemplateError(err)
homeassistant.exceptions.TemplateError: UndefinedError: 'input_text' is undefined