How to migrate from Shelly app I/O-Actions to HA Automation?

Hello all,

I am fairly new to the Home Assitant topic and hope my question is not ridiculous. :slight_smile: At the moment I have under-cabinet lights connected in the kitchen with Shelly Dimmer 2. They are dimmed by default. When the motion detector in the kitchen detects movement, the under cabinet lights are set to 100%. This is very easy to set in the I/O actions in the Shelly app. The question now is, how can I implement this in Home assistant with an automation? The brightness is apparently not accessible. The entity “light.shellydimmer2_3c6105fe0078” contains the brightness value only as an attribute. I use the standard integration of Shelly in HA.

Thanks in advance
Ralf

You can set the brightness in your call to the service to turn on the light: Light - Home Assistant
You can also ‘record’ the state and brightness in a scene and turn it on motion.

Hi Friedrieck,

thank you. Works well meanwhile.