Help with ramp rates on lighting

Hi,
I’m new here. So new in fact this is my first post. Feel free to roast me with a “search noob”, but include a link to the post you found. LOL.

Anyway. I was able to get HA up and running on a NUC and add some various devices including a zigbee hub and a Jasco (GE) dimmer switch.

I want to have the light ramp to 100% brightness over 3 seconds when pressed and the same when turning off. Currently it just goes 100% when toggling the switch.

Doing some reading it looks like scenes seem a reasonable way to implement this. Again roast as needed until I succeed. I setup a scene and an automation that works except, the light still goes to 100% immediately when off, but when I dim the light to 10% and toggle the on switch it activates over 3 seconds as I set it up.

here is my scene.

- id: '1646503955255'
 name: Evening
 entities:
   button.jasco_master_bed_df9869fe_identify:
     device_class: update
     friendly_name: Jasco Master Bed df9869fe identify
     state: unknown
   light.jasco_master_bed_df9869fe_level_on_off:
     supported_color_modes:
     - brightness
     color_mode: brightness
     brightness: 232
     off_brightness:
     friendly_name: Jasco Master Bed df9869fe level, on_off
     supported_features: 41
     state: 'on'
   sensor.jasco_master_bed_df9869fe_smartenergy_metering:
     state_class: measurement
     device_type: Electric Metering
     status: NO_ALARMS
     unit_of_measurement: W
     device_class: power
     friendly_name: Jasco Master Bed df9869fe smartenergy_metering
     state: '17.5'
   sensor.jasco_master_bed_df9869fe_smartenergy_metering_summation_delivered:
     state_class: total_increasing
     device_type: Electric Metering
     status: NO_ALARMS
     unit_of_measurement: kWh
     device_class: energy
     friendly_name: Jasco Master Bed df9869fe smartenergy_metering summation_delivered
     state: '0.005'
 icon: mdi:lightbulb-auto

With Automation

- id: '1646504362493'
  alias: Master Bed On
  description: ''
  trigger:
  - platform: device
    type: turned_on
    device_id: 8df3de383f0cf5139594b8a685d6efaa
    entity_id: light.jasco_master_bed_df9869fe_level_on_off
    domain: light
  condition: []
  action:
  - service: scene.turn_on
    target:
      entity_id: scene.evening
    data:
      transition: 3

What am I missing here? Logically I want the switch to not actually control the light at this point but act or like a toggle for a scene.

1 Like

You need to include the transition in the scene, not the automation action that calls the scene.

How does one accomplish that?

  action:
  - service: scene.turn_on
    target:
      entity_id: scene.evening
 name: Evening
 entities:
   light.jasco_master_bed_df9869fe_level_on_off:
     supported_color_modes:
     - brightness
     color_mode: brightness
     brightness: 232
     off_brightness:
     friendly_name: Jasco Master Bed df9869fe level, on_off
     supported_features: 41
     state: 'on'
     transition: 3  # <----- #### By adding this ####
1 Like