Skip to content

Instantly share code, notes, and snippets.

View webartoli's full-sized avatar

Claudio Bartoli webartoli

View GitHub Profile
@webartoli
webartoli / dailytoast.io.js
Last active February 19, 2025 10:09
Dailytoast.io key handler
// paste this snippet in your browser bookmark url
javascript: (function () {
function clickIfVisible(selector) {
var element = document.querySelector(selector);
if (element && element.offsetParent !== null) {
element.click();
return true;
}
return false;
}
blueprint:
name: Rotazione Circolare Input Select con Reset
description: Esegue una rotazione circolare di un input_select utilizzando multipli trigger definiti dall'utente per le azioni "up" e "down", e reimposta il valore di default dopo un tempo specificato.
domain: automation
input:
input_select:
name: Input Select
description: L'input_select da ruotare.
selector:
entity:
@webartoli
webartoli / ha-conditional-dimmer.yaml
Created April 21, 2025 08:31
Home Assistant / Conditional Dimming
blueprint:
name: Azioni Condizionate su Input Select
description: Esegue azioni solo se il valore di un input_select corrisponde a un valore atteso. Utilizza trigger multipli per le azioni "up" e "down".
domain: automation
input:
input_select:
name: Input Select
description: L'input_select da monitorare.
selector:
entity: