Skip to content
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

List as event filter value #33

Open
rvk opened this issue Apr 22, 2021 · 1 comment
Open

List as event filter value #33

rvk opened this issue Apr 22, 2021 · 1 comment

Comments

@rvk
Copy link

rvk commented Apr 22, 2021

I'm trying to use this to track EnOcean button state, which has a list as the identifying value. The obvious choices for event filter "id: 254, 237, 171, 245" and "id: [254, 237, 171, 245]" both get truncated at the first comma when saving the configuration. I'm probably just missing the right syntax to use, but maybe it could be added to the documentation?

Here is an example of the event:

{
"event_type": "button_pressed",
"data": {
"id": [
254,
237,
171,
245
],
"pushed": 0,
"which": 0,
"onoff": 0
},
"origin": "LOCAL",
"time_fired": "2021-04-22T04:02:27.549129+00:00",
"context": {
"id": "0a49bae0cf4c4281b6fa10be9b7e48b9",
"parent_id": null,
"user_id": null
}
}

@azogue
Copy link
Owner

azogue commented May 8, 2021

Hi @rvk, that kind of event filter is not possible with the current implementation, as it is expecting simple filters without that kind of nested data (a list of integers in your case). Sorry :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants