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

[http] Player Channel received command and predicted to become pereodacly also when nothing was changing #9957

Closed
Scherzin83 opened this issue Jan 25, 2021 · 0 comments · Fixed by #9981
Assignees
Labels
bug An unexpected problem or unintended behavior of an add-on

Comments

@Scherzin83
Copy link
Contributor

Scherzin83 commented Jan 25, 2021

Environment Openhab 3.0 stable

When I use the Player Channel with the http binding and map a Player ITEM to it the binding is updatting every cycle the status (Play, Pause).
But the status was not changed during the update cycle.

This is only happen with the Player Channel Type the other Channels Types e.g Switch or String working fine.

Channel Configuration
- id: BueroPlayer channelTypeUID: http:player label: Büro Player description: null configuration: playValue: play pauseValue: stop stateExtension: data/getRendererState?id=Buero nextValue: next commandExtension: /controller/%2$s?id=Buero stateTransformation: JS:RF_GetPlayerStatus.js previousValue: prev

Transformation
( function (input) { var parsedInput = JSON.parse(input); var RF_State = parsedInput.data[0].rooms[0].TransportState; if (RF_State == "PLAYING") { return "play" } return "stop" } )(input)

Log
2021-01-25 21:22:18.533 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'RaumServerCommand_BuroPlayer' predicted to become PAUSE

2021-01-25 21:22:23.534 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'RaumServerCommand_BuroPlayer' received command PAUSE

2021-01-25 21:22:23.536 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'RaumServerCommand_BuroPlayer' predicted to become PAUSE

2021-01-25 21:22:28.536 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'RaumServerCommand_BuroPlayer' received command PAUSE

2021-01-25 21:22:28.544 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'RaumServerCommand_BuroPlayer' predicted to become PAUSE

2021-01-25 21:22:33.537 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'RaumServerCommand_BuroPlayer' received command PAUSE

2021-01-25 21:22:33.539 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'RaumServerCommand_BuroPlayer' predicted to become PAUSE

2021-01-25 21:22:38.539 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'RaumServerCommand_BuroPlayer' received command PAUSE

2021-01-25 21:22:38.540 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'RaumServerCommand_BuroPlayer' predicted to become PAUSE

2021-01-25 21:22:43.541 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'RaumServerCommand_BuroPlayer' received command PAUSE

2021-01-25 21:22:43.543 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'RaumServerCommand_BuroPlayer' predicted to become PAUSE

2021-01-25 21:22:48.542 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'RaumServerCommand_BuroPlayer' received command PAUSE

2021-01-25 21:22:48.543 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'RaumServerCommand_BuroPlayer' predicted to become PAUSE

2021-01-25 21:22:53.547 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'RaumServerCommand_BuroPlayer' received command PAUSE

2021-01-25 21:22:53.549 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'RaumServerCommand_BuroPlayer' predicted to become PAUSE

2021-01-25 21:22:58.548 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'RaumServerCommand_BuroPlayer' received command PAUSE

2021-01-25 21:22:58.549 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'RaumServerCommand_BuroPlayer' predicted to become PAUSE

2021-01-25 21:23:03.547 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'RaumServerCommand_BuroPlayer' received command PAUSE

2021-01-25 21:23:03.549 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'RaumServerCommand_BuroPlayer' predicted to become PAUSE

2021-01-25 21:23:08.550 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'RaumServerCommand_BuroPlayer' received command PAUSE

2021-01-25 21:23:08.557 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'RaumServerCommand_BuroPlayer' predicted to become PAUSE

2021-01-25 21:23:13.555 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'RaumServerCommand_BuroPlayer' received command PAUSE

2021-01-25 21:23:13.558 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'RaumServerCommand_BuroPlayer' predicted to become PAUSE

2021-01-25 21:23:18.557 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'RaumServerCommand_BuroPlayer' received command PAUSE

2021-01-25 21:23:18.562 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'RaumServerCommand_BuroPlayer' predicted to become PAUSE

2021-01-25 21:23:23.554 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'RaumServerCommand_BuroPlayer' received command PAUSE

2021-01-25 21:23:23.556 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'RaumServerCommand_BuroPlayer' predicted to become PAUSE

2021-01-25 21:23:28.555 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'RaumServerCommand_BuroPlayer' received command PAUSE

2021-01-25 21:23:28.557 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'RaumServerCommand_BuroPlayer' predicted to become PAUSE

@Scherzin83 Scherzin83 added the bug An unexpected problem or unintended behavior of an add-on label Jan 25, 2021
@J-N-K J-N-K self-assigned this Jan 25, 2021
Hilbrand pushed a commit that referenced this issue Jan 29, 2021
lucacalcaterra pushed a commit to lucacalcaterra/openhab-addons that referenced this issue Feb 23, 2021
themillhousegroup pushed a commit to themillhousegroup/openhab2-addons that referenced this issue May 10, 2021
thinkingstone pushed a commit to thinkingstone/openhab-addons that referenced this issue Nov 7, 2021
marcfischerboschio pushed a commit to bosch-io/openhab-addons that referenced this issue May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants