Read the statement by Michael Teeuw here.
PIR sensor to turn on LED strip
-
@sdetweil said in PIR sensor to turn on LED strip:
that could be added pretty easily
The problem is that I don’t have the skills to program. I understand something … but not enough … unfortunately
-
@Egnos well, there ARE people who could do it…
-
@Egnos what actions would u like the LEDs to do on notification? and what would u think the notification ID string should be?
-
@sdetweil said in PIR sensor to turn on LED strip:
what actions would u like the LEDs to do on notification? and what would u think the notification ID string should be?
Initially it would be enough to turn on the LEDs at the same time as the monitor is turned on and turn them off when the monitor is turned off.
For the notification I believe that the module that manages the LEDs should respond to a notification such as “LightOn-White” and “LightOff-White” generated by the module that manages the PIR sensor variations.
I hope I haven’t said too many wrong things … 🤞 -
@Egnos that led module can only on/off/ or blink
-
@sdetweil said in PIR sensor to turn on LED strip:
that led module can only on/off/ or blink
At the moment I could be satisfied … but it does not seem that the module proposed by you can receive notifications.
-
@Egnos notifications are easy… but this module rpi-leds, only toggles the leds ON the pi board… not led strip…
if u can find one that works the ed strip with a python command, then we can make that work
-
@sdetweil said in PIR sensor to turn on LED strip:
but this module rpi-leds, only toggles the leds ON the pi board… not led strip…
Maybe this module could fit https://github.com/jc21/MMM-PiLights, using SPI and a LPD8806 or WS2801 LED strip.
@sdetweil said in PIR sensor to turn on LED strip:
if u can find one that works the ed strip with a python command, then we can make that work
It appears to respond to notifications:
this.sendNotification('PILIGHTS_SEQUENCE', 'blue_pulse');
-
@Egnos it has a way for all off. but not all on.
-
@Egnos use my updated fork…
https://github.com/sdetweil/MMM-PiLights
it responds to the PIR modules USER_PRESENCE notification (true = turn on, false = turn off)
if lights are off and on is sent, it will restore the previous sequence set with the normal
SEQUENCE notification