This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| blueprint: | |
| name: ZHA - Philips Hue Dimmer Switch Config - v2024.12.09 | |
| description: | | |
| Control lights with a Philips Hue Dimmer Switch | |
| domain: automation | |
| source_url: https://gist.github.com/lucasreiners/59c456f0e05366ec7ce9b3f691ac3b2f | |
| # Define the inputs for the blueprint |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| blueprint: | |
| name: Hue Dimmer Remote With Hold and Initial Press | |
| description: | | |
| (Jul 2022 Update) Using a Hue bridge with which a dimmer remote is paired, allows you to configure actions based on said Hue Dimmer Remote | |
| NOTE: tested with RWL020 but may also work with RWL021 | |
| domain: automation | |
| source_url: https://gist.github.com/lksnyder0/6ad7bd5db9201f1c26019beb8bbb0ee7 | |
| input: | |
| dimmer_device: | |
| name: Dimmer Remote Device |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import android.content.Context; | |
| import android.content.res.TypedArray; | |
| import android.graphics.Canvas; | |
| import android.graphics.Rect; | |
| import android.graphics.drawable.Drawable; | |
| import android.support.v7.widget.LinearLayoutManager; | |
| import android.support.v7.widget.RecyclerView; | |
| import android.util.AttributeSet; | |
| import android.view.View; |