Izbornik Zatvoriti

ESPHome: Showing Project Name and Version as Text Sensors

Skraćena veza: https://pedja.supurovic.net/veza/10698

There is option to assign project name and version in ESPHome device config. Values are displayed in log when device is powered up. It is useful to have those information as sensors so it is easy to check them, if needed. Here is how.

How to set project name and version:

esphome:
  name: "my_device"
  project:
    name: "Me.MyProject"
    version: "0.1.0"

And now create Text Sensors:

text_sensor:
  - platform: template
    name: "Project"
    lambda: |-
     return to_string(ESPHOME_PROJECT_NAME);

  - platform: template
    name: "Version"
    lambda: |-
      return to_string(ESPHOME_PROJECT_VERSION);

I like to use substitutions as it let’s me put all configuration at the beginning of the yaml and reuse values where needed. […]
[ ... vidi ceo članak ... ]

Enabling two color LED on Sonoff Basic R2 Smart Home Switch

Skraćena veza: https://pedja.supurovic.net/veza/10649

I like Sonoff Basic R2 Smart Home Switch as it is low priced but very functional multipurpose device. Most of all, it contains ESP8266 chipset which means it is easy to replace original firmware with custom one. I use ESPHome firmware but Tasmota is also good.

sonoff-basic-schematicBy looking at the board of this little device I found out that it contains two-colored LED. Actually, two LED-s are in one package with three contact legs. Green LED is used in factory assembly, and it is connected to GPIO13. The second LED is red colored and not used. It is actually meant to be used by optional RF module. […]
[ ... vidi ceo članak ... ]

Tuya ZigBee senzor temperature i vlažnosti vazduha za pametnu kuću

Skraćena veza: https://pedja.supurovic.net/veza/10595

Senzor CoRui Tuya ZigBee Smart Temperature & Humidity je uređaj vrlo malih dimenzija tako da ga je lako smestiti gde god je potrebno. Radi na dve AA baterije i one u njemu vrlo dugo traju jer ih koristi na optimalan način. Senzor, kako mu ime i kaže, meri temperaturu i vlažnost vazduha.

Uzeo sam verziju koja radi po ZigBee protokolu nadajući se da će se lako integrisan mojim Home Assistant sistemom. Moj Home Assistant pored WiFi podržava i ZigBee protokol zahvaljujući priključenoj USB kartici SONOFF ZBDongle-E (Pun naziv je Universal Zigbee 3.0 USB Stick Gateway Dongle Plus) koja radi kao ZigBee kontroler. […]
[ ... vidi ceo članak ... ]