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
import appdaemon.plugins.hass.hassapi as hass | |
import asyncio | |
class Test(hass.Hass): | |
def terminate(self): | |
# clean up after ourselves | |
for f in self.futures: | |
f.cancel() |
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
import appdaemon.plugins.hass.hassapi as hass | |
import datetime | |
import re | |
import pprint | |
from alexapy import AlexaLogin, AlexaAPI | |
BASE_DIR = "/conf/apps/" | |
ALEXA_DIR = BASE_DIR + "alexa_files/" | |
UPDATE_INTERVAL = 60 * 1 |
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
devices = [ | |
{ | |
"device_entity": "media_player.dance_echo", | |
"active_entity": "binary_sensor.dance_echo_notifications", | |
}, | |
{ | |
"device_entity": "media_player.celeste_echo", | |
"active_entity": "binary_sensor.celestebed_echo_notifications", | |
}, | |
{ |
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
import appdaemon.plugins.hass.hassapi as hass | |
import datetime | |
# YAML CONFIG | |
# battery: | |
# module: battery | |
# class: Battery | |
# threshold: 35 | |
# always_send: False | |
# th: |
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
import appdaemon.plugins.hass.hassapi as hass | |
import voluptuous as vol | |
import time | |
## YAML CONFIG | |
# hvac_cool_switch: | |
# module: climateswitch | |
# class: ClimateSwitch | |
# climate: climate.hvac_cool | |
# switch: group.house_coolers |
NewerOlder