Skip to content

Instantly share code, notes, and snippets.

@jamesonuk
jamesonuk / lambda_function.py
Created June 18, 2024 13:56
HA Alexa Lamba with Client Certificate
"""
Copyright 2019 Jason Hu <awaregit at gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@jamesonuk
jamesonuk / set_trv_hvac.yaml
Last active September 24, 2023 07:05
Set TRV HVAC state blueprint for HA
blueprint:
name: Set TRV HVAC Status
description: Set TRV to Heat / Off depending on temperature
domain: automation
input:
input_trv:
name: TRV
description: The TRV to set
selector:
entity:
@jamesonuk
jamesonuk / turn_pump_off.yaml
Created March 15, 2023 11:13
Turn off layzspa pump
alias: Turn Hot Tub Off
description: ""
trigger:
- platform: time
at: "20:00:00"
condition: []
action:
- service: switch.turn_off
data: {}
target:
@jamesonuk
jamesonuk / turn_heater_on.yaml
Created March 15, 2023 11:11
Turn layzspa heater on automation
alias: Hot Tub On
description: ""
trigger:
- platform: time
at: "07:00:00"
condition: []
action:
- service: switch.turn_on
data: {}
target:
blueprint:
name: Add Hildebrand CAD Entities
description: Create devices and entities using MQTT discovery
domain: script
source_url: https://gist.github.com/jamesonuk/079ed3639924e9f373783e5b67f4385d
input:
input_cad_mac:
name: MAC Address
description: "MAC address of CAD (without :s)"
default: ""