HC-SR04 to play radio with MMM-RadioDe
Hello, I’m trying to make the MMM-RadioDe module to start playing only if a SR04 ultrasonic sensor measure an object’s distance (hand) for example, less than 20 cm, and if the user after some time put an object (or hand) at the same distance again the radio should stop. Any ideas how to do it?
Thank you all
PS. I can’t figure out how to make this happen :
This module will use the sendNotification(notification, payload) to send: notification = 'MOVEMENT' payload = 'Swipe Left' or 'Swipe Right' Please use as appropriate in your module using notificationReceived(notification, payload, sender)
MMM-Pages I guess just change the page for on / off
i wanted to suggest to use the https://github.com/Trekky12/MMM-ModuleToggle module in combination with in example my https://github.com/Tom-Hirschberger/MMM-Serial-Notifications module.
The problem is that the MMM-RadioDe does not work. There are open issues as from 2017.
I tried to do a quick fix but can’t get it run at the moment.
@wishmaster270 Thank you, I’ll try that now.
MMM-RadioDe works well for me…