Skip to content

Instantly share code, notes, and snippets.

@Basanites
Basanites / sync_trvs.yaml
Last active November 14, 2024 13:59 — forked from marciogranzotto/sync_lights.yaml
Home Assistant Automation Blueprint for syncing the setpoint of multiple TRVs
blueprint:
name: Sync TRV setpoints
description: Sync the temperature setpoints of two TRVs. If one of them is changed,
the other one gets updated automatically to the new value. Can also be used to
sync the setpoint of a versatile thermostat valve opening entity to its physical
counterpart.
domain: automation
input:
trvs:
name: TRVs + climate
@Basanites
Basanites / astroblaster.py
Last active November 13, 2017 20:58
Physics assignment solution
import math
g = 9.81
m = 1.0
v = g * math.sqrt(2 / g)
def blast(n):
if n == 1:
return v