Testuje…
Mam NodeMCU V3 podłączone zgodnie ze schematem:
plik konfiguracyjny yaml:
esphome:
name: apator
comment: Maszynownia - licznik wody
esp8266:
board: nodemcuv2
external_components:
- source: github://SzczepanLeon/esphome-components@main
components: [ wmbus ]
# Enable logging
logger:
level: DEBUG
# Enable Home Assistant API
api:
encryption:
key: "***************************************************************"
ota:
password: "*******************************************"
# Serwer with a statistic data and OTA board update
web_server:
port: 80
version: 2
auth:
username: !secret maszynownia_auth_u
password: !secret maszynownia_auth_p
# WiFi Local Area Network (HA)
wifi:
ssid: !secret maszynownia_wifi_ssid
password: !secret maszynownia_wifi_p
# Hotspot when can't connect to Local WiFi
ap:
ssid: "Apator AP"
password: !secret maszynownia_ap_p
captive_portal:
# int ApatorID = 0x4829838;
wmbus:
mosi_pin: GPIO13
miso_pin: GPIO12
clk_pin: GPIO14
cs_pin: GPIO2
gdo0_pin: GPIO5
gdo2_pin: GPIO4
sensor:
- platform: wmbus
name: "Wodomierz"
meter_id: 0x4829838
type: apator162
no i porażka
SUKCES, wodomierz obudził się o 07:46
logi:
INFO Reading configuration /config/esphome/apator.yaml...
INFO Starting log output from apator.local using esphome API
INFO Successfully connected to apator.local
[01:44:41][I][app:102]: ESPHome version 2022.12.3 compiled on Dec 28 2022, 01:27:32
[01:44:41][C][wifi:504]: WiFi:
[01:44:41][C][wifi:362]: Local MAC: C4:5B:BE:4A:58:93
[01:44:41][C][wifi:363]: SSID: [redacted]
[01:44:41][C][wifi:364]: IP Address: 192.168.**.***
[01:44:41][C][wifi:365]: BSSID: [redacted]
[01:44:41][C][wifi:367]: Hostname: 'apator'
[01:44:41][C][wifi:369]: Signal strength: -46 dB ▂▄▆█
[01:44:41][C][wifi:373]: Channel: 1
[01:44:41][C][wifi:374]: Subnet: 255.255.255.0
[01:44:41][C][wifi:375]: Gateway: 192.168.**.*
[01:44:41][C][wifi:376]: DNS1: 192.168.**.*
[01:44:41][C][wifi:377]: DNS2: 192.168.*.*
[01:44:41][C][logger:293]: Logger:
[01:44:41][C][logger:294]: Level: DEBUG
[01:44:41][C][logger:295]: Log Baud Rate: 115200
[01:44:42][C][logger:296]: Hardware UART: UART0
[01:44:42][C][wmbus_sensor:015]: wM-Bus Sensor 'Wodomierz'
[01:44:42][C][wmbus_sensor:015]: Device Class: 'water'
[01:44:42][C][wmbus_sensor:015]: State Class: 'total_increasing'
[01:44:42][C][wmbus_sensor:015]: Unit of Measurement: 'm³'
[01:44:42][C][wmbus_sensor:015]: Accuracy Decimals: 3
[01:44:42][C][wmbus_sensor:015]: Icon: 'mdi:water'
[01:44:42][C][wmbus_sensor:016]: Type: apator162
[01:44:42][C][wmbus_sensor:017]: ID: 75667512 [0x04829838]
[01:44:42][C][captive_portal:088]: Captive Portal:
[01:44:42][C][web_server:125]: Web Server:
[01:44:42][C][web_server:126]: Address: apator.local:80
[01:44:42][C][mdns:103]: mDNS:
[01:44:42][C][mdns:104]: Hostname: apator
[01:44:42][C][ota:093]: Over-The-Air Updates:
[01:44:42][C][ota:094]: Address: apator.local:8266
[01:44:42][C][ota:097]: Using Password.
[01:44:42][C][api:138]: API Server:
[01:44:42][C][api:139]: Address: apator.local:6053
[01:44:42][C][api:141]: Using noise encryption: YES
[01:44:42][C][wmbus:059]: wM-Bus:
[01:44:42][C][wmbus:060]: CC1101 SPI bus:
[01:44:42][C][wmbus:061]: MOSI Pin: GPIO13
[01:44:42][C][wmbus:062]: MISO Pin: GPIO12
[01:44:42][C][wmbus:063]: CLK Pin: GPIO14
[01:44:42][C][wmbus:064]: CS Pin: GPIO2
[01:44:42][C][wmbus:065]: GDO0 Pin: GPIO5
[01:44:42][C][wmbus:066]: GDO2 Pin: GPIO4
[01:44:42][C][wmbus:067]: Available drivers:
[01:44:42][C][wmbus:069]: Name: apator162
[01:44:42][C][wmbus:069]: Name: izar
[01:44:46][I][ota:113]: Boot seems successful, resetting boot loop counter.
i nic… puściłem trochę wody, żeby wodomierz się ruszył, ale cały czas encja jest jako “nieznana”.
Ktoś ma jakieś pomysły, może robię coś nie tak…
update:
jak się zaloguje na NodeMCU, jest to samo:
update2:
wodomierz obudził się o godzinie 7:44