This file contains 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
<?xml version="1.0"?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output indent="no" omit-xml-declaration="yes"/> | |
<xsl:strip-space elements="*"/> | |
<xsl:template match="@*|node()"> | |
<xsl:copy> | |
<xsl:apply-templates select="@*|node()"/> | |
</xsl:copy> | |
</xsl:template> | |
<xsl:template match="text()"> |
This file contains 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 { AfterViewInit, Directive, ElementRef, Inject } from '@angular/core'; | |
import { AbstractSubscriber } from '../../core/abstract-subscriber'; | |
import { filter, startWith, takeUntil } from 'rxjs/operators'; | |
import { NavigationEnd, Router } from '@angular/router'; | |
import { APP_BASE_HREF, Location } from '@angular/common'; | |
function isSafariBrowser() { | |
return navigator.vendor && navigator.vendor.indexOf('Apple') > -1 && | |
navigator.userAgent && | |
navigator.userAgent.indexOf('CriOS') === -1 && |
This file contains 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
alias: '[vacuum] room dispatcher' | |
sequence: | |
- variables: | |
room_name: >- | |
{{room_name|lower|replace('ä','ae')|replace('ü','ue')|replace('ö','oe') | |
}} | |
room_last_trigger: 'input_datetime.vacuum_{{room_name}}_last_schedule_triggered' | |
room_zone: '{{ state_attr(room_last_trigger,''zone'') }}' | |
- condition: template | |
value_template: '{{ room_zone != null }}' |
This file contains 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: Scheduled Timeslot | |
description: > | |
Timeslot Scheduler (e.g for vacuums) that allows to define a action to be executed within the specified timeslot and its condition. | |
domain: automation | |
input: | |
monday_enabled: | |
name: Monday | |
default: false | |
selector: |
This file contains 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: Window aware Light control | |
description: > | |
Turn off the active lights when a window is opened. | |
As soon as the window is closed, turn them on again. | |
domain: automation | |
source_url: https://gist.github.com/pavax/TBD | |
input: | |
window_sensor_entity: | |
name: Window Sensor Entity |
This file contains 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: Window aware light control | |
description: > | |
Turn off the active lights when a window is opened. | |
As soon as the window is closed, turn them on again. | |
domain: automation | |
source_url: https://gist.github.com/pavax/6afcd0eee7c990c456b99dd52680b4b0 | |
input: | |
window_sensor_entity: | |
name: Window Sensor Entity |
This file contains 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: Turn off entity after a while | |
description: > | |
Turn off entity after a period of time | |
domain: automation | |
source_url: "https://gist.github.com/pavax/4eb086412c1e455a26da4dc64673b3b9" | |
input: | |
target_entity: | |
name: target_entity | |
description: "The entity to turn off after a while." |
This file contains 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: Ikea on/off-switch and 5-Button Toggle | |
description: Custom Blueprint for Ikea Remote Controls (On/Off, TRADFRI remote control) x | |
domain: automation | |
input: | |
remote: | |
name: Remote | |
description: IKEA remote to use | |
selector: | |
entity: |
This file contains 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
<?php | |
/** | |
* HOW-TO INSTALL | |
* - Download and edit the DEFINE-ME variables in this file | |
* - Upload the file to your server (for example into your WordPress installation directory) | |
* - Go to the Amelia Settings Page and click on Integrations. | |
* - Go to the "Webhooks" Tab | |
* | |
* URL: Provide your URL that matches to where you uploaded this php file on your server. |
This file contains 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
#/bin/bash | |
if [[ $1 == "turn-on" ]]; then | |
command=$(echo 'on 0.0.0.0' | cec-client -s -d 1) | |
elif [[ $1 == "turn-off" ]]; then | |
command=$(echo 'standby 0.0.0.0' | cec-client -s -d 1) | |
elif [[ $1 == "status" ]]; then | |
#command=$(echo 'pow 0.0.0.0' | cec-client -s -d 1) | |
readarray -t lines < <(echo 'pow 0.0.0.0' | cec-client -s -d 1) |
OlderNewer