Skip to content

Instantly share code, notes, and snippets.

# Alectra Meter Data Download
# (c) 2021 Felix Kaechele <felix@kaechele.ca>
# SPDX-License-Identifier: CC-BY-SA-4.0
import datetime
import re
from datetime import date
from dateutil.relativedelta import relativedelta
from requests_html import HTMLSession
@mcfrojd
mcfrojd / Shield_Intents.MD
Last active May 7, 2024 01:19
Working INTENTS to use with Community Hass.io Add-ons: Android Debug Bridge for your Nvidia Shield TV

Latest Update 2021-03-06 : New image showing the new "Services" in Home Assistant and got some tips from the comments below.

Credits and thanks: Home Assistant Forum users & Github users: @ocso, @wiphye, @teachingbirds, @tboyce1, @simbesh, @JeffLIrion @ff12 @rebmemer @siaox @DiederikvandenB @Thebuz @clapbr @Finsterclown


Start apps on your android device (in the examples below, my Nvidia Shield TV) from Home Assistant

alt text

Starts Youtube App

entity_id: media_player.shield
command: >-
@paul-chambers
paul-chambers / torrent-complete
Last active November 8, 2023 06:13
Helper script for deluge or qBittorrent. It hardlinks completed torrents into a destination folder. It also unrars it, if it includes a rar archive.
#!/bin/bash
# Helper script for deluge or qBittorrent bittorrent clients
# Intended to be run when the torrent download completes
#
# for qBittorrent, enable 'Run external program on torrent completion' under 'Downloads' in the options dialog.
# in the text field, enter:
#
# <path to>/torrent-complete.sh "%K" "%N" "%D"
#