Skip to content

Instantly share code, notes, and snippets.

View Drafteed's full-sized avatar
🙌

Artem Draft Drafteed

🙌
View GitHub Profile
@Drafteed
Drafteed / esphome-xgimi-bluetooth-power-on.yaml
Last active February 4, 2024 03:51
ESPHome XGIMI Projector BLE Remote Wakeup / Power on
# ESPHome
esphome:
name: esphome
friendly_name: My ESPHome
# Board specific settings
esp32:
framework:
type: esp-idf
@Drafteed
Drafteed / aqara-buttons-all-in-one-zigbee2mqtt.yaml
Last active July 2, 2022 08:43
Aqara Buttons All-In-One [Zigbee2MQTT]
blueprint:
name: Aqara Buttons All-In-One [Zigbee2MQTT]
description: |
All-In-One package for Aqara Switches.
Supports: WXKG11LM, WXKG12LM, WXKG03LM, WXKG06LM, WXKG07LM, WXKG02LM, QBKG03LM, QBKG04LM, QBKG11LM, QBKG12LM, QBKG21LM, QBKG22LM, QBKG25LM, etc..).
Does not supports Opple.
Some actions may be unsupported by your switch. Check the available actions of your device on zigbee2mqtt.io.
domain: automation
input:
action_sensor:
@Drafteed
Drafteed / gist:595a337a87627123bd9e01691d86840b
Created May 28, 2019 16:20
Smooth Scrollbar SoftScroll Plugin
/*!
* SmoothScrollbar SoftScroll Plugin
*
* @version 1.0.2
* @author Artem Dordzhiev (Draft)
*/
import Scrollbar from "smooth-scrollbar";
class SoftScrollPlugin extends Scrollbar.ScrollbarPlugin {