Hello,
I’ve got a handful of shelly dimmers throughout the house and would like to have a button on my dashboard to set the brightness of all the dimmers (whether they are on or off) to a certain percentage.
I figured I could do this through a rest_command like so.
I’m just trying to figure out the best way to do it. Didn’t know there was a better way?
Because lets say it reaches 8pm, I want to set all the lights brightness to 20% (even the off ones). That way when I turn the lights on (for example the bedroom, bathroom) they are already at the pre-set level.
I have been able to create a group of devices in HA and then configure a light card on the dashboard that lets me set the brightness to X level. The only problem is it will turn on all lights that are off.
I was just composing a topic just like this and the forum threw this thread up before I posted:
What I was going to say (in part):
I know that is it technically possible in some way because in the Shelly apps you are able to move the brightness slider independently of turning the lights on - so when you move the slider it is sending a command to the device to set the desired brightness so next time you do turn the lights on there are already at the desired level.
Thanks for this. How are you getting the IP addresses? Just manually? I can’t find a way to programatically get the IP address of Shelly devices. Want to set it up in a bunch of automations that runs through a list of devices.
I only have 5 devices I need to controll via REST, so I type the adresses manually. My other 20 devices I controll via the integration only.
The IP of a device can be found in the attributes of the corresponding device tracker entity (if you have a network monitoring integration). But how to automatically do this connection - I don’t know.
sorry hostname for what? The shellys don’t have a hostname as far as I’m aware on the local network? Am I missing something? If there’s a way for me to get to the shellys REST via hostname, I’d love to know how that would work. Also not sure how I’d get the hostname from within a HA automation?
Thanks!
thanks - that still doesn’t help me as that name isn’t available in home assistant through any of the attributes so I cannot access it programmatically. Still requires me to get the hostnames and map to entity_id within HA.