Skip to content

Instantly share code, notes, and snippets.

View bbbenji's full-sized avatar
🛸
Hello, Earth!

Benji bbbenji

🛸
Hello, Earth!
View GitHub Profile
@bbbenji
bbbenji / bambu_lab_automation_suite.yaml
Last active February 16, 2024 12:10
Bambu Lab Automation Suite - Manage lights and notifications for Bambu Lab.
blueprint:
name: Bambu Lab X1C Automation Suite
description: Manage lights and notifications for Bambu Lab X1C with customizable trigger settings.
domain: automation
input:
print_finished_delay:
name: Print Finished Delay
description: Delay in minutes after print finished before executing the next action.
default: 0 # Default to no delay.
selector:
@bbbenji
bbbenji / bambu_lab-automations.yaml
Last active March 12, 2024 19:10
Bambu Lab X1C Home Assistant Automations
###
# Toggle an external light from the X1C screen
###
alias: Bambu Lab - Auto External Light
description: ""
trigger:
- platform: state
entity_id:
- light.x1c_chamber_light
from: null
@bbbenji
bbbenji / bambu_lab-lovelace.yaml
Last active March 12, 2024 19:09
Bambu Lab X1C Lovelace Dashboard
type: vertical-stack
cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-title-card
title: Bambu Lab X1C
alignment: start
- type: custom:mod-card
card:
type: custom:mushroom-chips-card
blueprint:
name: Enhanced Leak Detection & Notifier
description: Send a notification when any configured moisture sensor detects a leak.
domain: automation
input:
moisture_sensors:
name: Moisture Sensors
description: "Select moisture sensors to monitor."
selector:
entity:
@bbbenji
bbbenji / script.user.js
Last active August 26, 2022 12:49
Microsoft Outlook Clean UserScript - Making Microsoft Outlook UI just a little more clean
// ==UserScript==
// @name Microsoft Outlook Clean
// @namespace MSTeamsClean
// @version 0.1.1
// @updateURL https://raw.githubusercontent.com/jmizell/MSTeamsCompact/master/script.user.js
// @description Making Microsoft Outlook UI just a little more clean
// @author Benji
// @match https://outlook.office.com/*
// @grant GM_addStyle
// @license GPL-3.0
function checkout_datalayer($order_id) {
// Get the order
$order = wc_get_order($order_id);
// Get products from order
$products = $order->get_items();
?>
<script >
zaraz.ecommerce('Order Completed', {
'order_id': '<?php echo $order->get_order_number(); ?>',
'affiliation': 'Website',
@bbbenji
bbbenji / set_climate_on_time.yaml
Last active December 30, 2021 23:38 — forked from quallenbezwinger/set_climate_on_time.yaml
Set thermostat temperature at specific time - homeassistant blueprint
blueprint:
name: Set thermostat temperature at specific time
description: Sets a climate entities to a specifc temperature at a set time everyday. If climate entity is off, it is normally not accepting temperature updated. This blueprints checks if climate entity is off and the temperature update will be set when thermostat is going back in heating mode.
domain: automation
source_url: https://gist.github.com/bbbenji/059c16e9aa4bcec21f77d52f0dbac320
input:
persons:
name: Persons
description: Select the persons to be home.
default: {entity_id: []}
# GPIO0
# GPIO1
# GPIO2
# GPIO3 Button middle
# GPIO4 Button left
# GPIO5 Button right
# GPIO12 Relay/LED red left
# GPIO13 LED green (all)
# GPIO14 Relay/LED red middle
# GPIO15 Relay/LED red Right
import { LitElement, html } from 'https://unpkg.com/@polymer/lit-element@0.6.5/lit-element.js?module';
const styles = html`
<style>
:host {
display: flex;
flex: 1;
flex-direction: column;
}
ha-card {