Skip to content

Instantly share code, notes, and snippets.

View clempat's full-sized avatar

clempat

View GitHub Profile
@clempat
clempat / Scene_switcher_media_playing.yaml
Last active July 22, 2023 22:27
Blueprint Home Assistant Cinema mode
---
blueprint:
name: Scene switcher when media is playing
description: |
This allow you to change a scene when it is playing, paused or stopped.
There is the possibility to excludes apps
The scene trigger only when at least one light of the scene is on
domain: automation
input:
blueprint:
name: Ne pas chauffer l'extérieur
description:
Eteindre le chauffage lors de l'ouverture d'une fenêtre, puis le rallumer
à la fermeture
domain: automation
input:
windows:
name: Fenêtres
description: Entitée représentant toutes les fenêtres de la pièce
@clempat
clempat / windows_heating.yaml
Last active December 14, 2020 14:42
Windows Heating Blueprint Home Assistant
blueprint:
name: Windows Heating
description: Will turn off the heating when any window is open and turn it back on when windows are closed
domain: automation
input:
windows:
name: Windows
description: Binary sensor representing all windows of a room
selector:
entity:
@clempat
clempat / start.log
Created April 17, 2020 08:13
Log Deconz Help
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
starting version 237
[10:09:28] INFO: Waiting for device...
tap "caskroom/versions"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-fonts"
tap "homebrew/core"
tap "homebrew/services"
tap "prisma/prisma"
cask "osxfuse"
brew "aircrack-ng"
brew "arping"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-fonts"
tap "homebrew/core"
tap "homebrew/services"
tap "prisma/prisma"
cask "java"
brew "arping"
brew "crowdin"
brew "dnsmasq"
@clempat
clempat / extractNapster.js
Last active September 2, 2018 12:04
Extract musiques from Napster playlists
function getMusics () {
let musicDomColletion = document.getElementsByClassName("name-and-title");
let musics = [];
return Array.from(musicDomColletion).map(musicDOM => ({
title: musicDOM.getElementsByClassName('name')[0].innerText.replace(/(\r\n\t|\n|\r\t)/gm,""),
artiste: musicDOM.getElementsByClassName('artist-name')[0].innerText.replace(/(\r\n\t|\n|\r\t)/gm,"")
}))
}
@clempat
clempat / sensors.items
Last active July 6, 2018 23:40
Textexpander FR - Sondes Xiaomi openhab
Group gSensor_%filltext:name=ID Sonde:default=1% "Sonde %filltext:name=ID Sonde:default=1%" (gSensors, %filltext:name=Groupe pièce:default=gSalon%)
Number Sensor%filltext:name=ID Sonde:default=1%_Temperature "Température %filltext:name=Pièce:default=Salon% [%.1f °C]" <temperature> (gSensor_%filltext:name=ID Sonde:default=1%, gHistory, gTemperatures%fillpart:name=Thermostat:default=yes%,gSensor%filltext:name=ID Sonde:default=1%Thermostat%fillpartend%) ["CurrentTemperature"] { channel="%filltext:name=Channel Sensor%:temperature" }
Number Sensor%filltext:name=ID Sonde:default=1%_Humidity "Humidité %filltext:name=Pièce:default=Salon% [%d %%]" <humidity> (gSensor_%filltext:name=ID Sonde:default=1%, gHistory, gHumidity) ["CurrentHumidity"] { channel="%filltext:name=Channel Sensor%:humidity" }
Number Sensor%filltext:name=ID Sonde:default=1%_Pression "Pression %filltext:name=Pièce:default=Salon% [%.0f Pa]" <pressure> (gSensor_%filltext:name=ID Sonde:default=1%, gHistory, gPressure) ["CurrentHumidity"] { channel="%fil
@clempat
clempat / Expander.js
Last active November 23, 2017 22:08
React Expander Component with GSAP
/**
* Expander allow to add expand function to components
* Warning: this use not adviced api from React (Context)
* So Check when react updates
*/
import React from 'react';
import styled from 'styled-components';
import PropTypes from 'prop-types';
import { TweenLite } from 'gsap';
--- last message repeated 1 time ---
May 27 13:08:52 MacBook-Pro-de-Clement Docker[15090] <Notice>: System wants to wake up
May 27 13:08:52 MacBook-Pro-de-Clement Docker[15090] <Notice>: Asking com.docker.hyperkit to thaw vcpus
May 27 13:08:52 MacBook-Pro-de-Clement Docker[15090] <Notice>: vcpu 0 received signal, resuming
May 27 13:08:52 MacBook-Pro-de-Clement Docker[15090] <Notice>: vcpu 2 received signal, resuming
May 27 13:08:52 MacBook-Pro-de-Clement Docker[15090] <Notice>: vcpu 1 received signal, resuming
May 27 13:08:52 MacBook-Pro-de-Clement Docker[15090] <Notice>: Synchronizing time in VM
May 27 13:08:58 MacBook-Pro-de-Clement Docker[15090] <Notice>: Proxy settings have changed
--- last message repeated 1 time ---
May 27 13:10:20 MBP-de-Clement Docker[15083] <Notice>: Received SIGTERM, shutting down