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
#!/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 |
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
- 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 |