Skip to content

Instantly share code, notes, and snippets.

@ctrld-pl
ctrld-pl / shelly_esphome.md
Last active August 11, 2022 19:48
zmieniamy firmware w shelly

Krok 1 - podłączamy shelly do naszej sieci wifi.

Po wyjęciu z pudełka i włączeniu do zasilania urządzenie utworzy swój własny HotSpot umożliwiający podstawową konfigurację. Aby przejść do dalszego kroku - shelly musi być podpięte do sieci WIFI z wyjściem do Internetu.

Krok 2 - wgrywamy Tasmotę na przesiadkę

  1. Mając shelly w sieci z wyjściem na świat - skorzystamy z pakietu mgos-to-tasmota. Wybieramy swoją wersję przełącznika i wprowadzamy IP do podanego schematu URL na stronie mgos-to-tasmota
  2. jeżeli wszystko pójdzie dobrze - urządzenie się zrestartuje i utowrzy sieć tasmota-xxxxxx, podłączamy się i konfigurujemy jeszcze raz sieć WIFI
  3. po zalogowaniu się do interfesju przez przeglądarkę, wchodzimy do Konsoli i ustawiamy opcję pozwalającą wgrać inny firmware niż tasmota: setOption78 1

Krok 3 - wgrywamy docelowy esphome

  1. przygotowujemy plik konfiguracyjny esphome
@ClickerMonkey
ClickerMonkey / types.ts
Last active February 6, 2024 07:21
Typescript Helper Types
// when T is any|unknown, Y is returned, otherwise N
type IsAnyUnknown<T, Y, N> = unknown extends T ? Y : N;
// when T is never, Y is returned, otherwise N
type IsNever<T, Y = true, N = false> = [T] extends [never] ? Y : N;
// when T is a tuple, Y is returned, otherwise N
// valid tuples = [string], [string, boolean],
// invalid tuples = [], string[], (string | number)[]

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@troyhunt
troyhunt / Build-Troys-Network
Last active February 21, 2024 02:52
Help me spec out a replacement home network using Ubiquiti bits
That's it - I've finally lost it with Linksys and both my WRT 1900ACs that are only a year old are getting chucked. Don't get me started on all the reasons why, but it's primarily down to continued degradation of wifi signal and the constant need for reboots. Going by the responses to this tweet, that's just what they do: https://twitter.com/troyhunt/status/778867707655487488
I’m going all out with Ubiquiti instead. No, I'm not interested in [insert the other thing you think rocks here], there's a really vocal majority in favour of Ubiquiti so that's that. Now I need help speccing out what I need for my house as it’s not quite as straight forward as just chucking in a couple of (dodgy) routers.
Here’s what I’m working with:
- Large multi-level house about 500m2 (needs at least 2 APs, probably more)
- Wired ethernet to every room (I believe Cat 5e, was here when I got here)
- Patch board in the garage and a 100Mbps hub (running patch cables out to a Linksys 8 port gigabit switch instead)
- 4 wired connection