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

Dim lights connected to Tradfri Hub using HA automations

$
0
0

@JBS wrote:

Using a few Hue Dimmer Switches to switch lights on/off and dim up/dowm them with HA automations like below (dim up in this case). This works with lights paired to a Conbee using deCONZ, but did not work for a light which are paired to a Tradfri Hub which is added to HA as an integration. I know, the Tradfri Hub is not necessary when using a Conbee, but I am testing some things at the moment :slight_smile:

Anyone able to share a working HA automation for dimming lights paired to a Tradfri Hub?

- alias: Spots logeerkamer Hue dimmer omhoog
  initial_state: true
  trigger:
  - event_data:
      event: 2002
      id: dimmer_switchlogeerkamer
    event_type: deconz_event
    platform: event
  action:
  - service: light.turn_on
    data_template:
      entity_id: light.logeerkamer
      brightness: '{% set bri = states.light.logeerkamer.attributes.brightness | int
        %} {{ [bri+30, 249] | min }}

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 101948

Trending Articles



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