@DutchDeffy his is awesome but for some reason I get an error saying it’s not in the correct format, any clue on why that is?
Also can this be used with the “bedtime” alarm?
EDIT: It seems to stop at the “Call input_datetime.set_datetime with data” part.
EDIT2: So in HA logs I get
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/mobile_app/webhook.py", line 221, in webhook_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1434, in async_call
processed_data = handler.schema(service_data)
File "/usr/local/lib/python3.8/site-packages/voluptuous/validators.py", line 218, in __call__
return self._exec((Schema(val) for val in self.validators), v)
File "/usr/local/lib/python3.8/site-packages/voluptuous/validators.py", line 341, in _exec
raise e if self.msg is None else AllInvalid(self.msg, path=path)
File "/usr/local/lib/python3.8/site-packages/voluptuous/validators.py", line 337, in _exec
v = func(v)
File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 272, in __call__
return self._compiled([], data)
File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 817, in validate_callable
return schema(data)
File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 272, in __call__
return self._compiled([], data)
File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 594, in validate_dict
return base_validate(path, iteritems(data), out)
File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 432, in validate_mapping
raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: Invalid time specified: for dictionary value @ data['time']
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/webhook/__init__.py", line 96, in async_handle_webhook
response = await webhook["handler"](hass, webhook_id, request)
File "/usr/src/homeassistant/homeassistant/components/mobile_app/webhook.py", line 205, in handle_webhook
return await asyncio.shield(
File "/usr/src/homeassistant/homeassistant/components/mobile_app/webhook.py", line 140, in validate_and_run
return await func(hass, config_entry, data)
File "/usr/src/homeassistant/homeassistant/components/mobile_app/webhook.py", line 235, in webhook_call_service
raise HTTPBadRequest() from ex
aiohttp.web_exceptions.HTTPBadRequest: Bad Request