45857GE dimmer works on lovelace, but how with automations?

I have Zigbee-enabled GE smart dimmers. They show up fine in the Lovelace interface. I can check the state of on or dim by the icon and by the slider. These change if I move the slider.

My problem is I have an automation to turn on one of these for the front door at dusk and off at dawn. This works fine, but I can’t seem to manually edit to add a brightness value to adjust the light, as I want about 40 pct bright. I will use an automation with a motion detector to make the light go 100 pct.

I’ve tried a few of the suggestions for the brightness value under the action, but while the configurator check says the syntax is OK, automations won’t restart.

Any ideas? Are these specific dimmers different? How can I list all the entities for this device? Because it’s Zigbee, it’s not as easy to interrogate the device, as it is with Z-Wave.

Thanks,
Ambi

Please post your automation so we may inspect it and make suggestions.

Hi,

Thanks for your help. I created this from the automations menu is Hassio 0.100.2:
(I put the back ticks in but it still is formatting it)

`

  • id: ‘1570989829986’
    alias: Front Door on at Night
    description: ''foo"
    trigger:
    • event: sunset
      offset: -00:30:00
      platform: sun
      condition: []
      action:
    • device_id: 6711a3d9539548b5869b627d98942407
      domain: light
      entity_id: light.jasco_products_45857_002599b8_1
      type: turn_on
      `

Thanks,

Ambi

- alias: 'Front Door on at Night'
  trigger:
    platform: sun
    event: sunset
    offset: -00:30:00
  action:
    service: light.turn_on
    entity_id: light.jasco_products_45857_002599b8_1
    brightness_pct: 40

The range for brightness_pct is 0 to 100.

If you use brightness, instead of brightness_pct, its range is 0 to 255.


EDIT

See pnbruckner’s corrected version below.

I believe brightness_pct needs to be under data:

- alias: 'Front Door on at Night'
  trigger:
    platform: sun
    event: sunset
    offset: -00:30:00
  action:
    service: light.turn_on
    entity_id: light.jasco_products_45857_002599b8_1
    data:
      brightness_pct: 40
1 Like

Whoops! Overlooked that important detail. I added a note to my original post.

1 Like