Skip to content

Instantly share code, notes, and snippets.

View elmar-hinz's full-sized avatar

Elmar Hinz elmar-hinz

  • Elmar Hinz
  • Germany
View GitHub Profile
@MarkWattTech
MarkWattTech / Alexa TTS.txt
Last active October 14, 2023 13:40
Alexa TTS from Tutorial
# Standard TTS notification
service: notify.alexa_media_kitchen_echo
data:
message: this is a test
data:
type: tts
# Sequence Notification
service: media_player.play_media
data:
@thomasloven
thomasloven / my-custom-card.js
Last active August 28, 2024 16:05
Simplest custom card
// Simplest possible custom card
// Does nothing. Doesn't look like anything
class MyCustomCard extends HTMLElement {
setConfig(config) {
// The config object contains the configuration specified by the user in ui-lovelace.yaml
// for your card.
// It will minimally contain:
// config.type = "custom:my-custom-card"
@elmotec
elmotec / bootstrap_cmdline.py
Last active December 1, 2021 17:14
Minimal python program with logging and argparse.
#!python
"""See main.__doc__"""
import os
import logging
import glob
import unittest
import sys