Goetterdimmerung: An AppDaemon app that makes dimming easy

Hi,

I wanted to have a way of smoothly dimming lights up and down using any two switches (or a combination of two switches, like the Ikea Trådfri dimmers). My research only turned up solutions that involve a ridiculous amount of automations and helper entities. So I build an AppDaemon app that makes this simple, and - as a bonus - enables more complex settings. The app can be found at https://github.com/tinloaf/goetterdimmerung/ , the documentation is at https://tinloaf.github.io/goetterdimmerung/

Here’s an example of controlling a single light from an Ikea Trådfri dimmer via the Deconz plugin. However, you can basically use anything that sends events to control the dimming:

my_dimmer:
  module: goetterdimmerung
  class: Goetterdimmerung
  entities:
    - entity_id: light.some_light
  off_event:
    event: deconz_event
    event_data:
      id: "my_switch"
      event: 2002
  on_event:
    event: deconz_event
    event_data:
      id: "my_switch"
      event: 1002
  start_up:
    event: deconz_event
    event_data:
      id: "my_switch"
      event: 1001
  stop_up:
    event: deconz_event
    event_data:
      id: "my_switch"
      event: 1003
  start_down:
    event: deconz_event
    event_data:
      id: "my_switch"
      event: 2001
  stop_down:
    event: deconz_event
    event_data:
      id: "my_switch"
      event: 2003

I know this looks lengthy, but it’s basically just configuring which events should start/stop the dim up/down. More complex possibilities include using one dimmer to control multiple scenes, etc. Have a look at the documentation to see what’s possible.

The software is still pretty fresh, so expect bugs. But I’m very happy for any testers out there. :slight_smile: