8000 Device trigger from ESPhome devices invalid and throws error in HomeKit Integration · Issue #80384 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Device trigger from ESPhome devices invalid and throws error in HomeKit Integration #80384

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
heroclix opened this issue Oct 15, 2022 · 1 comment

Comments

@heroclix
Copy link

The problem

Have been using the device trigger in HomeKit integration with my esphome devices for a while now but it recently started to throw errors. The triggers works fine from other devices (Hue for example) however they fail and throw errors when using esphome devices. There is a report on the HomeKit integration #78774 which the owner mention is an issue with the trigger from the specific device integration being invalid.

What version of Home Assistant Core has the issue?

core-2022.10.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

ESPHome

Link to integration documentation on our website

https://www.home-assistant.io/integrations/esphome/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Error setting up trigger
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 272, in __call__
    return self._compiled([], data)
  File "/usr/local/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 818, in validate_callable
    return schema(data)
  File "/usr/src/homeassistant/homeassistant/helpers/config_validation.py", line 148, in validate
    raise vol.Invalid(f"must contain at least one of {expected}.")
voluptuous.error.Invalid: must contain at least one of below, above.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/device_automation/trigger.py", line 81, in async_attach_trigger
    return await platform.async_attach_trigger(hass, config, action, trigger_info)
  File "/usr/src/homeassistant/homeassistant/components/sensor/device_trigger.py", line 168, in async_attach_trigger
    numeric_state_config = await numeric_state_trigger.async_validate_trigger_config(
  File "/usr/src/homeassistant/homeassistant/components/homeassistant/triggers/numeric_state.py", line 73, in async_validate_trigger_config
    config = _TRIGGER_SCHEMA(config)
  File "/usr/local/lib/python3.10/site-packages/voluptuous/validators.py", line 232, in __call__
    return self._exec((Schema(val) for val in self.validators), v)
  File "/usr/local/lib/python3.10/site-packages/voluptuous/validators.py", line 355, in _exec
    raise e if self.msg is None else AllInvalid(self.msg, path=path)
  File "/usr/local/lib/python3.10/site-packages/voluptuous/validators.py", line 351, in _exec
    v = func(v)
  File "/usr/local/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 276, in __call__
    raise er.MultipleInvalid([e])
voluptuous.error.MultipleInvalid: must contain at least one of below, above.

Additional information

No response

@home-assistant
Copy link

Hey there @OttoWinter, @jesserockz, mind taking a look at this issue as it has been labeled with an integration (esphome) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)


esphome documentation
esphome source
(message by IssueLinks)

< 6CEF /div>
@github-actions github-actions bot added the stale label Nov 14, 2022
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 21, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Dec 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants
0