Skip to content

Instantly share code, notes, and snippets.

@martintamare
martintamare / smart_thermostat_v2.yaml
Last active April 9, 2024 19:28
Smart Thermostat for Windows v2
blueprint:
name: Smart Thermostat for Windows
description: 'Based on your window sensor this automation turns the thermostat on
or off. You can also specify the time that is needed to switch the state. '
domain: automation
input:
window_sensor:
name: Window / Door Sensor
selector:
entity:
@martintamare
martintamare / smart_window.yaml
Last active February 28, 2024 16:22
Windows HVAC blueprint Home Assistant
blueprint:
name: Smart Thermostat for Windows
description: >-
Based on your window sensor this automation turns the thermostat on or off.
You can also specify the time that is needed to switch the state.
domain: automation
input:
window_sensor:
name: Window / Door Sensor
selector:
@martintamare
martintamare / py
Created February 10, 2024 09:59
Account.move read error
#!/usr/bin/env python
# -*-coding:utf-8 -*
import xmlrpc.client
from alkivi.config import ConfigManager
from xmlrpc.client import Fault, ProtocolError
import time
config = ConfigManager("odoo")
endpoint = config.get("default", "endpoint")
blueprint:
name: Blueprint - Vacation Mode
description: Vacation Mode - Replay Sensors to Light & Cover Behavior
domain: automation
input:
vacation_mode_toggle:
name: Vacation Mode - Input Boolean
selector:
entity:
domain: input_boolean
@martintamare
martintamare / listener.cpp
Created January 4, 2011 16:24
Ogre 3D Listener that I used to program multi-touch interactions
#include "listener.h"
//--------------------------------
// GLOBAL FOR LEVMAR
//--------------------------------
std::map<int,Vector3> mapPoint3DToMatch;
std::map<int,Vector2> mapPoint2D;
Vector3 vCentreObject = Vector3::ZERO; // Center of rotation ?
Vector3 vCentreRotation = Vector3::ZERO;
Camera * gmCamera; // Camera use to project