Open JasperMC opened 3 years ago
The little I have seen on this suggests the LEDs are gpio controlled (no level/intensity control) and there is a blue and a red one (no RGB). There’s a command you can run to toggle them but ppsapp seems to set them right back to what they are supposed to be (blue/red). I do not yet know if there’s anything hardware side that would prevent both LEDs from being on at the same time. Basically for intensity/color (other than just blue/red/off) you’re looking at hardware changes likely. For control of the on/off of the blue/red LEDs it may be possible to patch ppsapp (to disable its LED control) and allow an outside app/script to manage it.
Thanks Guino!
Could you share what command you used to change the LED color? I'd love to learn more about ghidra and the ppsapp editing. Will have a look at that soon :)
I think it would be cool to have the LED sync to whatever audio is playing (e.g. the volume of the audio or something).
/bin # ppsconfig
Usage: getdevinfo [opt][=value]
-u get p2puuid
-p get p2ptype
-n get product number
-s get serial number
-m get device model
-t get device type
-h get hardware info
-i get identity card info
-l get licence id
-k get secret key
--redled=[on|off] turn red led on or off
--blueled=[on|off] turn blue led on or off
But like I said: when you use this the ppsapp usually restores the led color right back.
It is possible to patch ppsapp to disable its control of the leds but if you do that you would have to control it yourself for everything (ppsapp would no longer manage it). If you want to try that let me know and I can probably make a patch for it.
That would be wonderful actually. Would it be possible to make a combined one also with that audio command you were talking about in the other issue?
If there’s anything I can help with, please let me know as well. I really appreciate it man.
This is UNTESTED and only for version ppstrong-c51-tuya2_lcs-2.9.7.20201020 -- try this patch ppsapp-noled.zip to disable ppsapp from controlling the LED. Again you will have to control the LED by yourself for everything (network status, etc) -- I am taking a guess it will boot up into a 'red' state and stay that way until you manually set it to something else using ppsconfig. I am hoping this won't have any other side effects like disabling the nigh-vision lights. Please test and report back when you have a chance.
Is this also possible for the 2.9.6 version? I just want the (red/blue) leds to stay off when booted up. That red is on while booting is no big deal.
@Ierlandfan a specific patch for 2.9.6 would have to be made but I don’t even have confirmation that this is working on 2.9.7 so right now this is just an idea.
Will test this very soon guys. Sorry for the delay, got caught up with the holiday prepping :)
Sorry for the long delay between updates.
I've tested the no-led ppsapp and it's working fine. I can turn the LEDs on and off without a problem using the command given without it turning back to the original color.
@JasperMC thanks for confirming this can be done. I'll try to put up instructions on patching to use this feature.
These instructions are for those who wish to manually control the BLUE/RED LED without having ppsapp change it.
Please notice: if you just want to turn OFF the LED you can simply edit tuya_config.json to set "light_onoff" to 0 (no need to patch anything).
I am not even going to place this in the main repo instructions because I think the interest on this feature is very limited.
Here's how to patch ppsapp for disabling the LED control (so it can be controlled by command line/script using ppsconfig):
After liberating my bell I am now curious if there's a way we can change the color of the LED and its brightness. This could be fun to customize.
I'm trying to research this but am hoping someone can help me as well.
I'm currently looking at the "pwm" device in /dev as I suspect the LED is controlled through PWM.