Skip to content

Instantly share code, notes, and snippets.

View felipefdl's full-sized avatar

Felipe Lima felipefdl

View GitHub Profile
blueprint:
name: Control Blind with Remote
description: Use a remote control to operate a blind (open, close, stop)
domain: automation
input:
remote:
name: Remote Control
description: The remote control to use
selector:
device:
from tago import Tago
import RPi.GPIO as GPIO
my_device = Tago('a59d8000-80c6-11e4-95c1-295f66956ea3').device
GPIO.setmode(GPIO.BCM)
GPIO.setup(4, GPIO.OUT)
def func_callback_data(data):
if data['value'] == True:
import RPi.GPIO as gpio
gpio.setmode(gpio.BCM)
gpio.setup(4, gpio.OUT)
def toggle_led():
status = gpio.input(4)
if status == 0:
gpio.output(4, True)
else:
@felipefdl
felipefdl / wvdial.conf
Created March 2, 2015 18:26
WVDIAL Brazil
[Dialer Defaults]
Modem = /dev/rfcomm0
DialCommand = ATDT
Check Def Route = on
Stupid mode = on
Auto Reconnect = on
Auto DNS = on
ISDN = 0
[Dialer vivo]