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

BCP messages for 'timed_switch' devices faulty or missing #1845

Open
arthurkehrwald opened this issue Oct 24, 2024 · 0 comments
Open

BCP messages for 'timed_switch' devices faulty or missing #1845

arthurkehrwald opened this issue Oct 24, 2024 · 0 comments

Comments

@arthurkehrwald
Copy link

MPF version: 0.57.2

The initial state that MPF sends for timed_switch devices after monitoring is started by the media controller using the command monitor_start?category=device contains the following JSON parameter:

{
    "type": "timed_switch",
    "name": "flipper_cradle",
    "changes": false,
    "state": {
        "active_switches": "set()"
    }
}

The active_switches attribute seems to be the result of casting an empty Python set to string. I can't find documentation on what it is supposed to be, but I assume it is meant to be a comma separated list, or ideally a JSON array of the switches that belong to the device and are active.

MPF also does not send updates for timed_switch devices when one of the switches is closed for the specified duration.

@arthurkehrwald arthurkehrwald changed the title BPC messages for 'timed_switch' devices faulty or missing BCP messages for 'timed_switch' devices faulty or missing Nov 1, 2024
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

1 participant