Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 108787

Data for turn_on and turn_off

$
0
0

Hello,

I’ve simple automation that turn on/off a light :

- alias: Light HUE RDC
  description: ''
  trigger:
  - platform: state
    entity_id: switch.din_rail_dimmer
  action:
  - service: "light.turn_{{ trigger.to_state.state }}"
    target:
      entity_id: light.entree_entree
    data:
#      brightness: 255
      transition: 1

I would like to set specific data value for turn_on (brightness = 255 and transition = 1) and other data for turn_off (transition = 5).

What is the best way to do that ?

Thank you very much.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 108787

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>