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

LED RGB Aurora #82

Closed
addelovein opened this issue May 28, 2022 · 13 comments
Closed

LED RGB Aurora #82

addelovein opened this issue May 28, 2022 · 13 comments
Labels
enhancement New feature or request

Comments

@addelovein
Copy link

addelovein commented May 28, 2022

50CDDD4E-9498-4A2B-9D2C-6091D1C377E0
C58B58A4-C888-4202-AFA2-38CF7AF03C9C
Would love to be able to Add some of the RBG features. As is now it always resets to Blue Breathing.
But would love to change colors and presets. Then we can use the led for something useful. For example subtle warnings/info. How much the car has charged etc.

But amazing work on this, I’m going to start digging in to the code of this integration. 👏

We got to get this as the main ASUS router in HA. The other one really didn’t work at all.

Great job here Love it!

Uploading 8AD56BCF-9D37-4C27-A37D-7AF78DB83DC4.png…

@Vaskivskyi
Copy link
Owner

Hello, @addelovein,

Thanks for your feedback! 👍🏻

I was thinking about Aura support, but my device does not have it, so I cannot do any testing directly. In principle, we just need to find out, which commands should be sent for setting and getting the states.

Can Aura be controlled via web panel as well or only through the mobile app?

@Vaskivskyi Vaskivskyi added the enhancement New feature or request label May 29, 2022
@addelovein
Copy link
Author

Via web aswell.
i Will check what commands it sends. Right now I can’t help much more due to no access to computer. But I can do some Charles proxy on my phone. I’ll get back to you.

@Vaskivskyi
Copy link
Owner

In principle, it doesn't really matter. The phone is also fine if you are comfortable with package capturing.

In principle, we need the method to determine that the device has the Aura (probably some key in NVRAM). E.g. for LED support, it is a request nvram_get(led_val) to the appGet.cgi endpoint (it would be either boolean status or nothing if the feature is not supported). I would expect something similar for the Aura.

And, of course, what is the control method. Again, for LED it looks like this: "led_val" : 0, "rc_service": "start_ctrl_led" to the applyapp.cgi endpoint, so just a service that except boolean state. For RGB there would be more values

@addelovein
Copy link
Author

addelovein commented May 29, 2022

Sorry for for my presentation. Doing it on phone.

Ledg_scheme
2 static. RGB
3 breathing RGB
6 wave
7 marquee RGB
1 gradient RGB
4 evolution
5 rainbow

set_ledg.cgi?ledg_scheme=X&ledg_rgb=X,X,X, X,X,X, X,X,X,X,x,X

Full example Static all red

set_ledg.cgi?ledg_scheme=2&ledg_rgb= 128,0,0,128,0,0,128,0,0

@Vaskivskyi
Copy link
Owner

Seem to be not too complicated. But some more things would be needed:

  • Does this hook return any value? To know whether the command was successful.
  • Also, we would need some method to get the status of the RGB. Otherwise, we won't be able to set the state in HA until we send the first command. I'm quite sure, the mobile app should ask it from the device when you open the RGB control tab in it.
  • Maybe it also asks somewhere, how many LEDs are there for RGB? This could be different between devices.

By the way, does the current LED switch from HA influence RGB?

In any case, we are already closer to the RGB support for the integration

P.S. What is your device model?

@addebc
Copy link

addebc commented May 29, 2022

You have a messeger app any one for easier communication

@addebc
Copy link

addebc commented May 29, 2022

http://192.168.50.1/set_ledg.cgi?ledg_scheme=2&ledg_rgb=128,0,0,128,0,0,128,0,0,128,0,0
That makes all leds red

http://192.168.50.1/set_ledg.cgi?ledg_scheme=2&ledg_rgb=128,0,0,128,0,0,128,0,0,0,0,128
And that all red except the outer leds are blue

So basically it contains of 4 LEDS which are set in the values up to 128

page returns {"statusCode":"200"}

http://192.168.50.1/appGet.cgi?hook=nvram_get(ledg_rgb2)
will return the values if in this case it is set to static. however if it was another scheme it will return no datA

@addebc
Copy link

addebc commented May 29, 2022

RT-AX82U

@Vaskivskyi
Copy link
Owner

You have a messeger app any one for easier communication

Telegram:
https://t.me/Vaskivskyi

@jlongman
Copy link

jlongman commented Mar 24, 2023

I guess this is stalled? Hitting the URL works for me, pretty cool! Anything I can do to help?

I'd love to link an automation to this when my DSL goes down (😠) .

@Vaskivskyi
Copy link
Owner

Hello, @jlongman,

Yes, unfortunately, the development of this feature is stalled. I would like to get back to it (because it looks cool to use RGB for notifications - that's what the other integration of mine is doing), but unfortunately, without direct access to a compatible device, it's rather complicated.

If you would like to help with the development - I'd gladly prepare some tests you can try. But this would require some time. First I need to fix all the bugs reported with the AsusRouter lately (while I was absent) and try to recall what exactly is the state of the Aura development

@jlongman
Copy link

I've started looking at it, so please, send them my way. I've got ha-asusrouter and asusrouter cloned.

@Vaskivskyi
Copy link
Owner

Refer to #738 for the updates on the Aura support. The feature is in work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Finished
Development

No branches or pull requests

4 participants