Skip to content

Instantly share code, notes, and snippets.

View sadiq81's full-sized avatar

Tommy Sadiq Hinrichsen sadiq81

  • Eazy IT
  • Denmark
View GitHub Profile
blueprint:
name: Hue Dimmer Remote
description: |
(Dec 2021 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 and RWL022, but community says it also works with RWL021!
domain: automation
source_url: https://gist.github.com/codycodes/f051781c35cfdfee15162ff680c9cbd8
input:
dimmer_device:
name: Dimmer Remote Device
import Foundation
import Vox
class FileResource_V2: Resource {
required init(context: Context?) { super.init(context: context) }
@objc dynamic var status: NSNumber?
override class var resourceType: String { return "file" }
@sadiq81
sadiq81 / generate_image_assets.py
Created October 8, 2016 19:12
Generate enums for Assets.xcassets
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# generate_image_assets.py
# punchcards
#
# Created by Privat on 13/07/2016.
# Copyright © 2016 Eazy IT. All rights reserved.
import re
import os
@sadiq81
sadiq81 / generate_string_assets.py
Created October 7, 2016 21:33
Generate enums for Localizable.strings
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# generate_assets.py
# punchcards
#
# Created by Privat on 13/07/2016.
# Copyright © 2016 Eazy IT. All rights reserved.
import re
LOCALIZABLE_PATH = "./en.lproj/Localizable.strings"