Alright, I found the solution myself, at least how to trigger play/stop with a push-button:
I wasn’t aware that connecting GND and a GPIO Pin like BCM 27 will not trigger reliably anything as the status is floating, Thus a pull-down resistor is required to get a defined high status. Check this really comprehensive write-up:
link text.
So I added a resistor as gescribed, e.g. here:
in chapter 4.2.
Then I configures the MMM-Buttons module that way:
{
module: 'MMM-Buttons',
config: {
buttons: [
{
pin: 27,
name: "podcast",
shortPress: {
notification: "BUTTON_PRESSED",
},
}
]
}
},
That’s it!
When I now push the button the video stream start shortly after playing, and when I push again, it stops.
The one thing I’m still trying to accomplish is that the PIR-sensor (AM312) on pin 4 triggers the video to start.
I home this helps some of you, when you come by.
Cheers,
Fozi