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: 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: |
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
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: |
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 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: |
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
[Dialer Defaults] | |
Modem = /dev/rfcomm0 | |
DialCommand = ATDT | |
Check Def Route = on | |
Stupid mode = on | |
Auto Reconnect = on | |
Auto DNS = on | |
ISDN = 0 | |
[Dialer vivo] |