Skip to content

Instantly share code, notes, and snippets.

View dryj's full-sized avatar

Michael Geering dryj

  • Think Learning
  • Brighton, United Kingdom
View GitHub Profile
@dryj
dryj / z2m_aqara_trv_external_temperature.yaml
Last active August 17, 2024 10:17 — forked from pavax/z2m_aqara_trv_external_temperature.yaml
z2m_aqara_trv_external_temperature.yaml
blueprint:
name: Aqara TRV E1 external temperature
description: >
Configures the Aqara TRV to receive it's temperature from an external sensor.
Every time the temperature sensor value cahnges it's is send to the TRV.
domain: automation
source_url: "https://gist.github.com/dryj/b38ee6a57c6ae6086f7043a4eaac5c42"
input:
external_temp_sensor:
name: External temperature sensor
@dryj
dryj / index.js
Last active February 8, 2022 14:06 — forked from ilumos/index.js
asana-to-discord
module['exports'] = function asanaToDiscord(hook, callback) {
var discord_api_url = 'https://discordapp.com/api/webhooks/' + hook.params.discord_webhook_id + '/' + hook.params.discord_webhook_token;
var asana_api_url = 'https://app.asana.com/api/1.0/';
var request = require('request');
function sendMessageToDiscord(content) {
request.post({
url: discord_api_url,
form: {