Help with a very basic question

I’m trying to add a button via lovelace (hass.io) that will dim the entity light.office_lamp to 50%. I was hoping it would be as straight forward as just using the light card and assigning some settings, but it appears it’s not that simple. I’ve been reading over the documentation, and while I’m not new to development, hassio has been a crazy learning curve.

In short, is there a way to add a card that just triggers an event which would simply dim a specific light to a certain percentage?

Thanks,

I use scenes to do that.

Call a service and set your parameters

Can you elaborate? I was looking for a “scenes” feature but couldn’t find it.

My apologies, I did find it. I’ll check out both options.

Thanks guys, sorry for asking such a basic question!

Note that creating scenes will involve writing yaml, whereas if you use an entity button to call a service, you should be able to get by only using the frontend. :wink:

Got it working with this:

scene:
  - name: Dim Light test
    entities:
      light.office_lamp:
        state: true
        brightness: 20

If I do this via a service instead the scene I created, can I avoid rebooting the pi? After creating the service that is. Currently, when I create the scene, I reboot the pi… that’s standard procedure when editing the config file correct?

If you use the frontend only you don’t need to restart anything.

Uh. You don’t need to reboot. Just restart home assistant from the GUI.

+1 to that!

Either works… there’s always more than one way to skin a cat…