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

Multiplying Status Events Generated #82

Closed
ferris-smarthome opened this issue Feb 14, 2022 · 3 comments
Closed

Multiplying Status Events Generated #82

ferris-smarthome opened this issue Feb 14, 2022 · 3 comments

Comments

@ferris-smarthome
Copy link

I am seeing that the messages generated by a node instance are increasing in number for each time that I play something through the node. For example, consider the following simple flow:

[{"id":"e6e182af166a9dcf","type":"castv2-sender","z":"977be705.a26bc8","name":"Office Display","connection":"f1a4af68fe59fe69","x":500,"y":1660,"wires":[["8e75744c1290b96d"]]},{"id":"3bad525b9f0fd1f3","type":"inject","z":"977be705.a26bc8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":120,"y":1660,"wires":[["8d7e6bdf37fe3d5e"]]},{"id":"8d7e6bdf37fe3d5e","type":"function","z":"977be705.a26bc8","name":"Play List","func":"msg.payload = \n{\n \"app\": \"DefaultMediaReceiver\",\n \"type\": \"MEDIA\",\n \"media\": \n { \n \"url\": \"http://192.168.0.101:8123/local/wavenet_test.mp3\",\n \"contentType\": \"audio/mp3\"\n }\n}\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":300,"y":1660,"wires":[["e6e182af166a9dcf"]]},{"id":"8e75744c1290b96d","type":"debug","z":"977be705.a26bc8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":690,"y":1660,"wires":[]},{"id":"f1a4af68fe59fe69","type":"castv2-connection","name":"Office Display","target":"","host":"192.168.86.32","port":"8009"}]

The first time through, I get four messages containing a mediaSessionId, which is what I would expect (IDLE - init, PLAYING - loading file, PLAYING - playing file, IDLE - finished). However, the second time through, I get eight messages, two of each of the expected ones. Third time through, I get twelve, or three for each expected.

I have verified that this is the only instance of the node that I have deployed, and the sequence in the flow I am testing it with is extremely simple.

Any guidance or feedback would be appreciated.

@i8beef
Copy link
Owner

i8beef commented Feb 15, 2022

I think this might actually be an artifact of #79 actually. If I make that change locally I am unable to reproduce, so I will release an update with that and we'll see if that works for you.

@i8beef
Copy link
Owner

i8beef commented Feb 15, 2022

Try 4.1.3

@ferris-smarthome
Copy link
Author

I just tried 4.1.3 and can confirm that it is no longer generating extra status messages. Thank you, very much!

@i8beef i8beef closed this as completed Feb 15, 2022
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