Skip to content

Instantly share code, notes, and snippets.

View ebosveld's full-sized avatar

Edwin Bosveld ebosveld

  • Inwy
  • Apeldoorn, Netherlands
View GitHub Profile
@ebosveld
ebosveld / 8-button-wall-switch.yaml
Last active December 22, 2021 21:15
HASS blueprint 8-button wall switch
blueprint:
name: Generic 8-button wall switch
description: "This blueprint is for generic Zigbee2MQTT 8-button wall switches (such as the
Sunricher SR-ZG9001K8-DIM) that have on, off, brightness_move_up and brightness_move_down.
It is for general use so all buttons can be connected to any action of your choice"
domain: automation
input:
remote:
name: Remote
description: Generic 8-button wall switch to use
@ebosveld
ebosveld / build_status.coffee
Created July 9, 2015 08:48
Dashing Jenkins Build Status
class Dashing.BuildStatus extends Dashing.Widget
onData: (data) ->
@_checkStatus(data.widget_class)
_checkStatus: (status) ->
$(@node).removeClass('failed pending passed')
$(@node).addClass(status)