I have a bunch of tplink switches in my house that have a built in LED on the switch. The switch LED is on when the switch is toggled off. The switch LED is off when the switch is toggled on. Im looking for assistance with the actual LEDs on the switches. for example:
Is there a way to automate the toggle for the configuration:led?
The switch LEDs are kind of pointless during the day, but can be usefeul at night. I want to automate to turn them off at sunrise, then turn them on at sunset. I have done similar automatons for controlling the switches but everything ive tried for controlling the switch LEDs hasnt worked.
Does the LED turn on and off if you click the toggle there on the device page? If it does, you should be able to control it from an automation. You may need to use the entity-based actions like light.turn_on/light.turn_off or switch.turn_on/switch.turn_off instead of a Device action. You will need to check which type of entity the LED is to determine the appropriate action type.
Or it could LED.turn_on / LED.turn_off. To confirm go to Developer tools and go into States. Find the TPLink switches entities and look at the list for each.
I have a TP Link HS100 and that LED entity is just a switch (switch.tivoli_led). You can just make an automation for what you want to do. There’s also the schedule integration for fancier options.
I used the developer tools to get the entity name of the switch LEDs then created 2 separate automatons, one triggered at sunrise and one triggered at sunset. They use switch.turn_off and switch.turn_on then the switch led entity ids switch.*NAME*_led