Automation: how to turn on/off a z-wave bulb?

I have this z-wave light bulb (go/linear single color dimmable bulb)

I can switch on and off z-wave light bulb using GUI, so, that is no problem.

I have automate other z-wave switch in the past, so I know the basics.

As for automation, the trigger part and the condition part I can handle, when it comes to “actions” I don’t know what to do.

do i call “light.turn_on” / “light.turn_off” service?

if not, what to do?

I want to turn on my z-wave bulb and adjust its brightness.

Thanks in advance

provided your zwave bulb is defined as a light, it would look like this:

  - service: light.turn_on
    data:
      entity_id: light.YOUR_ZWAVE_LIGHT_NAME_HERE
      brightness: 255

See the light component documentation for how to interact with it.

thanks. So, other than brightness, there is no “on/off” switch in this regard, right?

Thanks

Thank you. I wasn’t aware that z-wave light bulb is considered a “light” component. I thought z-wave devices are entire category of its own.

service: light.turn_on to turn the light on,
service: light.turn_off to turn the light off :wink:

1 Like