Skip to content

Instantly share code, notes, and snippets.

View Ceralor's full-sized avatar
💭
Sleepy 💤

Kay Ohtie Ceralor

💭
Sleepy 💤
View GitHub Profile
@Ceralor
Ceralor / README.md
Last active April 12, 2024 15:43
Actionable Telegram Notifications for Home Assistant Updates

Telegram Notifications for Home Assistant Updates

Simple blueprint. You must create an input_text helper entity for this blueprint -- it will ask for the entity ID when you create an automation using the blueprint. The value of this will store the entity ID of the updater being used, the chat ID, and message ID for replying to notify once the update is complete if a restart is required.

You also must have the telegram_bot integration set up, specifically the bot part. The notifier is not needed but may as well configure it.

Once that's created, use the import button below, and then define the entities you want to update and select the helper you created, and you're good to go!

[Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.](https://my.home-assistant.io/redirect/blueprint_import/?blueprint_url=https%3A%2F%2Fgist.github.com%2

@Ceralor
Ceralor / README.md
Last active February 9, 2023 00:34
Eufy Robovac 35C ESPHome for Home Assistant

Robobvac 35C Config

Since ESPHome doesn't actually support the vacuum entity type, much less creating one in Home Assistant, we have to make due with the TuyaMCU features offered.

We create a few buttons, a switch, and sensors, as well as selects for setting mode and speed. Then there's a vacuum template file for Home Assistant to take advantage of this.

In the end, you'll have a vacuum entity in Home Assistant that's fully local, fully ESPHome, but not perfectly-so.

Of note: ESPHome team, 115200 is a valid baudrate for (some) TuyaMCUs. The one in the vacuum does not support 9600 baud. Please stop alerting me to this. Tasmota has figured this out already.

@Ceralor
Ceralor / Notes
Created March 18, 2022 01:31
Prism byte arrays
defaults: fade, solid, slow
hue: 0-360
sat: 0-1000
val: 10-1000
mode: 00 = fade, 01 = flash, 02 = music
patt: 00 = solid, 01 = up, 02 = down, 03 = center, 04 = stripe, 05 = out, 06 = in, 07 = rot, 08 = spiral
speed: 0-100
id sp mo pat |hue| |sat| |val| | unused? |
10 00 00 00 | 00 00 03 e8 03 e8 00 00 00 00 red h:0 s:100 br:100 fade solid slow
10 00 00 00 | 00 6c 03 e8 03 e8 00 00 00 00 grn h:108 s:100 br:100 fade solid slow
@Ceralor
Ceralor / README.md
Created October 31, 2020 03:17
Twitter Like/Reply in Home squash

Add filter to uBlock:

twitter.com/home##span:has-text(/liked$/):upward(18):has(div>div>article)

twitter.com/home##span:has-text(/replied$/):upward(18):has(div>div>article)

#!/bin/bash
read -r -d '' PICUSAGE << eos
Usage: picartostream [--chat] UserName1 [UserName2 [...]]
Hint: the last username used is the chat opened
eos
chatwith=""
if (( $# == 0 )); then
echo "$PICUSAGE"
fi
@Ceralor
Ceralor / README.md
Last active August 13, 2020 03:27
Simple Thermometer

thermostat

Simple elegant thermometer card for Home Assistant. Tweak as-needed!

Keybase proof

I hereby claim:

  • I am ceralor on github.
  • I am ceralor (https://keybase.io/ceralor) on keybase.
  • I have a public key whose fingerprint is C1A6 DB5B 1CD7 395C 78E0 D3A0 7345 5DEE 8031 56FA

To claim this, I am signing this object: