Skip to content

Instantly share code, notes, and snippets.

View sarabveer's full-sized avatar

Sarabveer Singh sarabveer

View GitHub Profile
@sarabveer
sarabveer / homeassistant_ecobee.md
Created June 25, 2021 20:53
Fix Ecobee integration in HomeAssistant if getting "Unknown error occurred"

Fix Ecobee integration in HomeAssistant if getting Unknown error occurred


So, I accidentally deleted my Ecobee integration in HomeAssistant. I thought it was no big deal, I would just add it back normally as I have done many times. However, no matter what I did, I kept getting the error: Unknown error occurred.

These are the steps I used to get the Ecobee integration working again:

  1. First, use the yaml config for Ecobee. Put your API key obtained from ecobee.com in the secrets.yaml file, and then place the below config into configuration.yaml making sure the right name is used for the api key secret.
@sarabveer
sarabveer / treatlife_ss01_3way.md
Last active May 18, 2022 03:34
ESPHome YAML Config for TreatLife SS01 3-Way Switch

upstairs-hallway-light-1.yaml

YAML for device.

# https://esphome.io/guides/configuration-types.html#substitutions
substitutions:
  device_name: upstairs-hallway-light-1
  friendly_name: "Upstairs Hallway Light 1"
  icon: "mdi:lightbulb"
ਪ੍ਰਚਲਿਤ ਬਾਰਹ ਮਾਹਾ (ਰਾਗੁ ਮਾਝ) ਬਾਰਹ ਮਾਹਾ (ਰਾਗੁ ਤੁਖਾਰੀ) ਰੁਤੀ (ਰਾਗੁ ਰਾਮਕਲੀ) ਬਾਰਹ ਮਾਹ (ਚੌਬੀਸ ਅਵਤਾਰ) ਬਾਰਹ ਮਾਹ ੨ (ਚੌਬੀਸ ਅਵਤਾਰ)
ਚੇਤ ਚੇਤਿ ਚੇਤੁ, ਚੇਤਿ ਚੇਤੁ * ਚੇਤ
ਵੈਸਾਖ ਵੈਸਾਖਿ, ਵੈਸਾਖੁ ਵੈਸਾਖੁ, ਵੈਸਾਖੀਂ ਵੈਸਾਖ * ਬੈਸਾਖ
ਜੇਠ ਜੇਠਿ, ਜੇਠੁ ਜੇਠੁ, ਜੇਠਿ ਜੇਠ ਜੇਠ ਜੇਠ
ਹਾੜ ਆਸਾੜੁ ਆਸਾੜੁ ਅਖਾੜੈ * ਅਸਾੜ
ਸਾਵਣ ਸਾਵਣਿ, ਸਾਵਣੁ ਸਾਵਣਿ ਸਾਵਣ * ਸਾਵਨ
ਭਾਦੋਂ ਭਾਦੁਇ ਭਾਦਉ ਭਾਦਵੇ * ਭਾਦਵ
ਅੱਸੂ ਅਸੁਨਿ, ਅਸੂ ਅਸੁਨਿ ਅਸੂ ਅਸੂ ਕੁਆਰ
ਕੱਤਕ ਕਤਿਕਿ, ਕਤਿਕ ਕਤਕਿ ਕਤਕੇ ਕਾਤਿਕ ਕਾਤਿਕ
@sarabveer
sarabveer / keybase.md
Last active September 25, 2020 03:05

Keybase proof

I hereby claim:

  • I am Sarabveer on github.
  • I am sarabveer (https://keybase.io/sarabveer) on keybase.
  • I have a public key whose fingerprint is 0E23 18F3 A97F 2C29 410B 38A6 A89A 2356 E69A AE4C

To claim this, I am signing this object:

@sarabveer
sarabveer / pdl.py
Last active December 24, 2020 20:08
Punjab Digital Library Image Downloader
'''
Punjab Digital Library Img Fetcher
By Sarabveer Singh (me@sarabveer.me)
'''
import os
import urllib.request as urllib
print('Punjab Digital Library Img Fetcher')
print('----------')