Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
"""Export all attachments from a specified Slack channel"""
# https://github.com/os/slacker
# https://api.slack.com/methods
import os
import argparse
import requests
from datetime import datetime
@ax42
ax42 / 3dprinting.yaml
Last active May 3, 2018 21:21
Hassio 3dprinter configs
- alias: "3d-printer: Hue Light 1 on for printing"
trigger:
platform: state
entity_id: sensor.octoprint_current_state, light.hue_color_lamp_1
condition:
- condition: state
entity_id: sensor.octoprint_current_state
state: "Printing"
action:
- service: light.turn_on