Can we add to the unifi Direct or unifi led integrations the ability to control the led in the unifi APs. (controls brightness, color, on off etc). This has been accomplished in homebridge here.
Any chance we could repurpose the pseudo code of the homebridge integration to improve our home assistant integration?
Today I just use homebridge and the homekit integration to get this into homebridge, but it would be better to have the direct integration.
I agree that LED control is needed, but I feel like switch entities in the UniFi Network integration would be a better place to put it (at least for the way I want to use it, I guess).
I would like to have the possibility to control device LEDs (APs and switches) too.
I think it should be part of the unify network plugin, because this should have all needed posibilities with it’s API access.
So using some of the info on this post and other places I am able to control the Unifi E7 AP RGB LEDs:
From the ‘Advanced SSH & Web Terminal’ Add-On (Protection mode: Off) I ran: docker exec -it homeassistant bash ssh-keygen -t rsa -b 2048
set identity location to /config/.ssh_unifi/id_rsa ( or anywhere in the /config dir, just need to call it out in the ssh command with -i)
In the Unifi Controller under ‘controller/settings/system/advanced/ssh keys’ add add contents of the /.ssh_unifi/id_rsa.pub file.
In my configuration.yaml I have: shell_command: !include shell_command.yaml
In the shell_command.yaml I added this: (had to full restart HA to get them to show up)