W pierwszej linii readme.md SzczepanLeon @4 masz taki wiersz: Version 5 based on Kuba’s dirty fork…
Po naciśnięciu zostaniesz przeniesiony do githuba: GitHub - IoTLabs-pl/ESPHome-Components.
Pierwsze zbudowałem obraz z użyciem V5 od Szczepana. Mieszkam w bloku gdzie tylko w mojej klatce mam 36 różnych liczników (ciepłomierze + liczniki wody) i układ na SX1276 w porywach dwa razy na godzinę dekodował ramki. Mam również RTL-SDR i miałem porównanie jaki jest ruch w eterze. Po zainstalowaniu wersji od Kuby co sekundę, co dwie układ odbiera i dekoduje ramki z eteru.
Mój YAML. Nie mam sekcji sensors itd ponieważ mój układ nie jest zintegrowany z asistantem - odbieram i analizuję wiadomości mqtt.
esphome:
name: nowysx1276
friendly_name: NowySX1276
platformio_options:
upload_speed: 921600
external_components:
- source:
type: git
url: https://github.com/IoTLabs-pl/esphome-components
esp32:
board: esp32dev
framework:
type: esp-idf
logger:
id: component_loger
level: DEBUG
baud_rate: 115200
ota:
- platform: esphome
password: "19bbb3a5a185d53ba756c99add5a42f8"
wifi:
networks:
- ssid: !secret wifi_ssid
password: !secret wifi_password
api:
web_server:
version: 3
time:
platform: sntp
id: time_sntp
spi:
clk_pin: GPIO18
mosi_pin: GPIO23
miso_pin: GPIO19
mqtt:
broker: 192.168.1.201
port: 1883
client_id: dm
wmbus_common:
# drivers: all
# or specify specific drivers
drivers:
- apator162
- iwmtx5
- hydrocalm3
wmbus_radio:
radio_type: SX1276
cs_pin: GPIO15
reset_pin: GPIO27
irq_pin: GPIO14 # DIO01
on_frame:
- then:
- logger.log:
format: "RSSI: %ddBm T: %s (%d)"
args: [ frame->rssi(), frame->as_hex().c_str(), frame->data().size() ]
- then:
- repeat:
count: 3
then:
- output.turn_on: status_led
- delay: 100ms
- output.turn_off: status_led
- delay: 100ms
- mark_as_handled: True
then:
- mqtt.publish:
topic: telemetria/telegram_rtl
payload: !lambda return frame->as_rtlwmbus();
wmbus_meter:
- id: cold_water_supply
meter_id: 25319203
type: iwmtx5
mode: T1
on_telegram:
- wmbus_meter.send_telegram_with_mqtt:
topic: telemetria/gw/licznik_wody/zimna
- id: hot_water_supply
meter_id: 25318091
type: iwmtx5
mode: T1
on_telegram:
- wmbus_meter.send_telegram_with_mqtt:
topic: telemetria/gw/licznik_wody/ciepla
- id: heat_meter
meter_id: 05285311
type: iwmtx5
mode: T1
on_telegram:
- wmbus_meter.send_telegram_with_mqtt:
topic: telemetria/gw/licznik_ciepla
- id: public_water_supply_system
meter_id: 06861073
type: apator162
mode: T1
key: "00000000000000000000000000000000"
on_telegram:
- wmbus_meter.send_telegram_with_mqtt:
topic: telemetria/dm/licznik_wody/woda_z_wodociagow
- id: own_water_supply_system
meter_id: 06861531
type: apator162
mode: T1
key: "00000000000000000000000000000000"
on_telegram:
- wmbus_meter.send_telegram_with_mqtt:
topic: telemetria/dm/licznik_wody/woda_z_wlasnego_ujecia
output:
- platform: gpio
id: status_led
pin: GPIO25