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: Synapse - Motion Sensor Lights | |
| description: > | |
| V1.0.0 — Control lights with a Philips Hue Motion Sensor (SML001/SML002) via ZHA. | |
| Trigger: occupancy detected → turn on lights (optional lux gate). | |
| Timer: no new motion for configured timeout → turn off. | |
| Optional: night mode with lower brightness and warmer colour temperature. | |
| Optional: disable entity (sleep mode switch, TV media player). | |
| IMPORTANT — entity selection: use the "Occupancy" binary_sensor. |
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: Synapse - Hue Dimmer | |
| description: > | |
| V1.6.0 - Control lights with a Hue Dimmer Switch RWL021 or RWL022 via ZHA. | |
| Both models supported when freshly paired with ZHA (new-style commands, cluster 64512). | |
| Button 1 (Power): ON applies Power Scene (or last brightness), OFF turns off | |
| Button 2 (Dim Up): Increase brightness | |
| Button 3 (Dim Down): Decrease brightness | |
| Button 4 (Hue): Cycle through up to 4 scenes on each press |
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
| /** | |
| * Post install script | |
| */ | |
| // Import | |
| import fs from 'fs-extra' | |
| // UI | |
| import { formatDateStandard } from 'industry-ui/components/utils/formatDate' |
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
| ## | |
| # Middleman Thor file | |
| # Provides specific tasks in the development life cycle of a middleman project | |
| # | |
| # @usage $ thor list | |
| # @author Ian Warner <ian.warner@drykiss.com> | |
| # @author Marek Piechocki <work@marek-piechocki.pl> | |
| # @see http://whatisthor.com/ | |
| ## |
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
| /** | |
| * Stripe | |
| * | |
| * @param object opts Options Object | |
| * @see https://support.stripe.com/questions/which-currencies-does-stripe-support | |
| * @todo Make functions variables in this | |
| */ | |
| Stripe : function ( opts ) | |
| { |
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
| ### Create GZIP Content Helper | |
| ### Add this snippet to the config.rb | |
| ### Add the activate :gzip to the build section | |
| helpers do | |
| def gzip_css_on_build(key, media = "screen") | |
| o = stylesheet_link_tag(key, { :media => media }) | |
| o.sub!(".css", ".css.gz") if build? | |
| o |