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

Sonoff RF gives 2 events per action #126

Closed
miketree1 opened this issue May 27, 2020 · 6 comments
Closed

Sonoff RF gives 2 events per action #126

miketree1 opened this issue May 27, 2020 · 6 comments
Labels
bug Something isn't working

Comments

@miketree1
Copy link

miketree1 commented May 27, 2020

I have just upgraded to 2.0.3
Now for each action (ie ring doorbell) I get 2 events.
I removed existing custom_components/sonoff before installing via hacs.

{
    "event_type": "sonoff.remote",
    "data": {
        "entity_id": "remote.sonoff_10007c517b",
        "command": 1,
        "ts": "2020-05-27T13:08:50.000Z",
        "name": "bell"
    },
    "origin": "LOCAL",
    "time_fired": "2020-05-27T13:08:51.189386+00:00",
    "context": {
        "id": "18d361da2aca45b68ecea9f72ad1a28b",
        "parent_id": null,
        "user_id": null
    }
}

Event 2 fired 2:08 PM:

{
    "event_type": "sonoff.remote",
    "data": {
        "entity_id": "remote.sonoff_10007c517b",
        "command": 1,
        "ts": "2020-05-27T13:08:50.000Z",
        "name": "bell"
    },
    "origin": "LOCAL",
    "time_fired": "2020-05-27T13:08:51.153641+00:00",
    "context": {
        "id": "a9a00705c36b4b27aff61facee86f3fc",
        "parent_id": null,
        "user_id": null
    }
}
@AlexxIT
Copy link
Owner

AlexxIT commented May 27, 2020

Please show logs https://youtu.be/Lt5fT4N5Pm8

@miketree1
Copy link
Author

I've sorted it. I noticed in the log a cloud event and a local event.
I've set mode: local & now only one event.
Thanks
:)

@AlexxIT
Copy link
Owner

AlexxIT commented May 27, 2020

This is bad. Duplicate messages should be filtered. I will check it

@AlexxIT AlexxIT reopened this May 27, 2020
@AlexxIT AlexxIT added the bug Something isn't working label May 27, 2020
@miketree1
Copy link
Author

In that case, do you still want the log?

@AlexxIT
Copy link
Owner

AlexxIT commented May 27, 2020

I have a Bridge. Can do it myself.

@AlexxIT
Copy link
Owner

AlexxIT commented May 27, 2020

Fixed in 2.0.4

@AlexxIT AlexxIT closed this as completed May 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants