Skip to content

Instantly share code, notes, and snippets.

View bsaunder's full-sized avatar

Bryan Saunders bsaunder

  • Red Hat, Inc.
  • Charleston, SC
View GitHub Profile
@bsaunder
bsaunder / pause_tv_on_hape.yaml
Last active May 10, 2025 01:32
Pause Playing Apple TV when HA PE is Triggered
blueprint:
name: Pause Apple TV on Voice
description: Pause Playing Apple TV when HA PE is Triggered
domain: automation
input:
voice_satellite:
name: HA Voice Satellite
description: HA Voice Satellite to Watch
selector:
target:
@bsaunder
bsaunder / Motion-activated Light.yaml
Last active April 21, 2024 20:23
Motion-activated Light.yaml
blueprint:
name: Motion Activated Light with Configurable Timers
description: Turn a light on and off based on detected motion
domain: automation
input:
motion_entity:
name: Motion Sensor
selector:
entity:
domain: binary_sensor
blueprint:
name: Turn off Fan after Time has elapsed
description: Given a fan entity, watch for it turning on, and then turn it off after a certain period of time.
domain: automation
input:
fan:
name: Fan
description: Select the fan to monitor and control
selector:
entity:
blueprint:
name: Turn off Light after Time has elapsed
description: Given a light entity, watch for it turning on, and then turn it off after a certain period of time.
domain: automation
input:
light:
name: Light
description: Select the light to monitor and control
selector:
entity:
@bsaunder
bsaunder / camel-jpa-blueprint.xml
Created February 11, 2016 03:00 — forked from rafaeltuelho/camel-jpa-blueprint.xml
camel-jpa component route example
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camel="http://camel.apache.org/schema/blueprint"
xsi:schemaLocation="
http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">
<bean id="jpa" class="org.apache.camel.component.jpa.JpaComponent"/>
<camelContext trace="false" id="blueprintContext" xmlns="http://camel.apache.org/schema/blueprint">
<servers>
<server group="main‐server‐group" name="server‐one">
<jvm name="default">
<jvm‐options>
<option value="‐Djgroups.bind_addr=192.168.0.100" />
</jvm‐options>
</jvm>
</server>
</servers>
./bin/standalone.sh ...(snip)... ‐Djgroups.bind_addr=192.168.0.100
WARN [org.jgroups.protocols.TP$ProtocolAdapter] (OOB-5,shared=udp) dropping unicast message to wrong destination host2:server2/web; my local_addr is host1:server1/web
WARN [org.jgroups.protocols.UDP] (OOB-8,null) null: no physical address for 0d8a17c3-026c-1be4-3baa-32b66b40acb2, dropping message
WARN [org.jgroups.protocols.pbcast.NAKACK] (OOB-20,null) nodename/web: dropped message 3 from 0d8a17c3-026c-1be4-3baa-32b66b40acb2 (sender not in table [nodename/web]), view=[nodename/web|0] [nodename/web]
systemctl stop docker.socket
systemctl disable docker.socket
systemctl disable docker
cat > /etc/systemd/system/docker.service <<EOF
[Unit]
Description=Docker Application Container Engine
Documentation=http://docs.docker.io
After=network.target
chown root:docker /var/run/docker.sock