Plany są. To nie jest zalezne od wmbusmetersa.
To czekam cierpliwie
Ja też.
A tak na poważnie to naskrobałem dziś pierwszy szkic - wygląda na to że dla ramek T format A oraz C format A mam już działające CRC. Dla C format B też coś mam ale potrzebuje przykładowych ramek do testów (pełne dane razem z CRC).
Pozostaje teraz najdłuższa część - przepisanie na czysto i też (w końcu) testy by się przydały.
Dzisiaj zaktualizowałem ESPHome 23.12.8 i wywaliło 4 encje (stworzyło nowe) ale nie poprawiałem tego. Wróciłem do poprzedniej wersji.
Zrobiłem drugie podejście do nowej wersji.
ESPHOME
[07:24:59][I][app:102]: ESPHome version 2023.12.9 compiled on Jan 23 2024, 22:00:48
i wersję WMBUS
[07:24:59][C][wmbus:420]: wM-Bus v2.5.1:
Licznik ten jeden który się nie czytał - w końcu otrzymał stan
Teraz nie wiem tylko jak połączyć stare odczyty z nowymi odczytami ze względu na nowe ID encji.
Zauważyłem też, że op upgrade do niej wersji dane nie trafiają do grafany
Pozdrawiam
dołączam się, od początku stycznia cc1101 nie odczytuje nic albo sporadycznie raz na kilka dni odczyt, logi się konczą na tej linijce [22:20:31][C][wmbus:342]: Available drivers: amiplus, apator08, apator162, apatoreitn, bmeters, elf, evo868, fhkvdataiii, hydrocalm3, itron, izar, mkradio3, mkradio4, qheat, qwater, ultrimis, unismart, vario451
Wiecej szczegółów - która wersja, jak wygląda YAML, jaki miernik, jak daleko do niego itp.
Encje nie mają nic do tego (w okolicach 23.11 - 23.12 mieli problem z ID encji - czy cos takiego - i tworzyły się duplikaty).
mój yaml, dokładnie 1 stycznia brak odczytów, potem sporadycznie jeden dziennie, obecnie nic nie gada:
esphome:
name: woda
# friendly_name: woda
esp8266:
board: nodemcuv2
external_components:
- source: github://SzczepanLeon/esphome-components@1.5.1
refresh: 0d
components: [ wmbus ]
# Enable logging
logger:
level: DEBUG
time:
- platform: sntp
id: sntp_time
api:
web_server:
port: 80
ota:
password: 'OTA PASSWORD'
wifi:
ssid:
password:
power_save_mode: none
manual_ip:
static_ip: 192.168.1.10
gateway: 192.168.1.1
subnet: 255.255.255.0
dns1: 192.168.1.1
ap:
ssid: "Woda Fallback Hotspot"
password: "RGAg3HpgakZs"
captive_portal:
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: 0x2122A4C5
type: izar
accuracy_decimals: 3
logi:
INFO ESPHome 2023.12.8
INFO Reading configuration /config/esphome/woda.yaml...
INFO Updating https://github.com/SzczepanLeon/esphome-components.git@1.5.1
INFO Detected timezone 'Europe/Warsaw'
INFO Starting log output from 192.168.1.10 using esphome API
INFO Successfully connected to woda @ 192.168.1.10 in 0.004s
INFO Successful handshake with woda @ 192.168.1.10 in 0.024s
[23:47:16][I][app:102]: ESPHome version 2023.12.5 compiled on Jan 6 2024, 23:40:51
[23:47:16][C][wifi:573]: WiFi:
[23:47:16][C][wifi:405]: Local MAC: 7C:87:CE:B6:AD:ED
[23:47:16][C][wifi:410]: SSID: [redacted]
[23:47:16][C][wifi:411]: IP Address: 192.168.1.10
[23:47:16][C][wifi:412]: BSSID: [redacted]
[23:47:16][C][wifi:414]: Hostname: 'woda'
[23:47:16][C][wifi:416]: Signal strength: -69 dB ▂▄▆█
[23:47:16][C][wifi:420]: Channel: 5
[23:47:16][C][wifi:421]: Subnet: 255.255.255.0
[23:47:16][C][wifi:422]: Gateway: 192.168.1.1
[23:47:16][C][wifi:423]: DNS1: 192.168.1.1
[23:47:16][C][wifi:424]: DNS2: 0.0.0.0
[23:47:16][C][logger:443]: Logger:
[23:47:16][C][logger:444]: Level: DEBUG
[23:47:16][C][logger:445]: Log Baud Rate: 115200
[23:47:16][C][logger:447]: Hardware UART: UART0
[23:47:16][C][wmbus_sensor:016]: wM-Bus Sensor 'Wodomierz'
[23:47:16][C][wmbus_sensor:016]: Device Class: 'water'
[23:47:16][C][wmbus_sensor:016]: State Class: 'total_increasing'
[23:47:16][C][wmbus_sensor:016]: Unit of Measurement: 'm³'
[23:47:16][C][wmbus_sensor:016]: Accuracy Decimals: 3
[23:47:16][C][wmbus_sensor:016]: Icon: 'mdi:water'
[23:47:16][C][wmbus_sensor:022]: Key: ''
[23:47:16][C][wmbus_sensor:023]: Type: izar
[23:47:16][C][wmbus_sensor:024]: ID: 555918533 [0x2122A4C5]
[23:47:16][C][captive_portal:088]: Captive Portal:
[23:47:16][C][web_server:168]: Web Server:
[23:47:16][C][web_server:169]: Address: 192.168.1.10:80
[23:47:16][C][sntp:053]: SNTP Time:
[23:47:16][C][sntp:054]: Server 1: '0.pool.ntp.org'
[23:47:16][C][sntp:055]: Server 2: '1.pool.ntp.org'
[23:47:16][C][sntp:056]: Server 3: '2.pool.ntp.org'
[23:47:16][C][sntp:057]: Timezone: 'CET-1CEST,M3.5.0,M10.5.0/3'
[23:47:16][C][mdns:115]: mDNS:
[23:47:16][C][mdns:116]: Hostname: woda
[23:47:16][C][ota:097]: Over-The-Air Updates:
[23:47:16][C][ota:098]: Address: 192.168.1.10:8266
[23:47:16][C][ota:101]: Using Password.
[23:47:16][C][api:139]: API Server:
[23:47:16][C][api:140]: Address: 192.168.1.10:6053
[23:47:16][C][api:144]: Using noise encryption: NO
[23:47:16][C][wmbus:312]: wM-Bus v1.5.1:
[23:47:16][C][wmbus:329]: CC1101 SPI bus:
[23:47:16][C][wmbus:330]: MOSI Pin: GPIO13
[23:47:16][C][wmbus:331]: MISO Pin: GPIO12
[23:47:16][C][wmbus:332]: CLK Pin: GPIO14
[23:47:16][C][wmbus:333]: CS Pin: GPIO2
[23:47:16][C][wmbus:334]: GDO0 Pin: GPIO5
[23:47:16][C][wmbus:335]: GDO2 Pin: GPIO4
[23:47:16][C][wmbus:342]: Available drivers: amiplus, apator08, apator162, apatoreitn, bmeters, elf, evo868, fhkvdataiii, hydrocalm3, itron, izar, mkradio3, mkradio4, qheat, qwater, ultrimis, unismart, vario451
hint
Odwrotne apostrofy ```
(te spod “klawisza tyldy”)
są OK, ale pod warunkiem, że są w osobnej linii i po 3 sztuki.
NIE cudzysłowy i NIE apostrofy “zwykłe”
Ale staroć
z nowością też nie gada > "external_components:
- source: github://SzczepanLeon/esphome-components@main
Podziel się logami VERY_VERBOSE
Ale obstawiam ze ta data 1 stycznia ma cos wspolnego z wodomierzem a nie komponentem.
[16:17:25][C][wmbus:469]: Meter:
[16:17:25][C][wmbus:470]: ID: 555918533 [0x2122A4C5]
[16:17:25][C][wmbus:471]: Type: izar
[16:17:25][C][wmbus:472]: Mode: T1
[16:17:25][C][wmbus:473]: Key: ''
[16:17:25][C][wmbus:475]: Sensor '0x2122A4C5 My lqi'
[16:17:25][C][wmbus:475]: Device Class: 'signal_strength'
[16:17:25][C][wmbus:475]: State Class: 'measurement'
[16:17:25][C][wmbus:475]: Unit of Measurement: ''
[16:17:25][C][wmbus:475]: Accuracy Decimals: 0
[16:17:25][C][wmbus:475]: Sensor '0x2122A4C5 My RSSI'
[16:17:25][C][wmbus:475]: Device Class: 'signal_strength'
[16:17:25][C][wmbus:475]: State Class: 'measurement'
[16:17:25][C][wmbus:475]: Unit of Measurement: 'dBm'
[16:17:25][C][wmbus:475]: Accuracy Decimals: 0
[16:17:25][C][wmbus:475]: Sensor '0x2122A4C5 My cold water'
[16:17:25][C][wmbus:475]: Device Class: 'water'
[16:17:25][C][wmbus:475]: State Class: 'total_increasing'
[16:17:25][C][wmbus:475]: Unit of Measurement: 'm³'
[16:17:25][C][wmbus:475]: Accuracy Decimals: 3
[16:17:25][C][wmbus:475]: Icon: 'mdi:water'
[16:17:29][D][api:102]: Accepted 192.168.1.130
[16:17:29][VV][api.service:522]: on_hello_request: HelloRequest {
client_info: 'Home Assistant 2024.1.2'
api_version_major: 1
api_version_minor: 9
}
[16:17:29][V][api.connection:1102]: Hello from client: 'Home Assistant 2024.1.2' | 192.168.1.130 | API Version 1.9
[16:17:29][VV][api.service:013]: send_hello_response: HelloResponse {
api_version_major: 1
api_version_minor: 9
server_info: 'woda (esphome v2023.12.8)'
name: 'woda'
}
[16:17:29][VV][api.service:531]: on_connect_request: ConnectRequest {
password: ''
}
[16:17:29][D][api.connection:1121]: Home Assistant 2024.1.2 (192.168.1.130): Connected successfully
[16:17:29][VV][api.service:019]: send_connect_response: ConnectResponse {
invalid_password: NO
}
[16:17:29][VV][api.service:576]: on_device_info_request: DeviceInfoRequest {}
[16:17:29][VV][api.service:049]: send_device_info_response: DeviceInfoResponse {
uses_password: NO
name: 'woda'
mac_address: '7C:87:CE:B6:AD:ED'
esphome_version: '2023.12.8'
compilation_time: 'Jan 22 2024, 16:15:25'
model: 'nodemcuv2'
has_deep_sleep: NO
project_name: ''
project_version: ''
webserver_port: 80
legacy_bluetooth_proxy_version: 0
bluetooth_proxy_feature_flags: 0
manufacturer: 'Espressif'
friendly_name: ''
voice_assistant_version: 0
sugg
[16:17:29][VV][api.service:585]: on_list_entities_request: ListEntitiesRequest {}
[16:17:29][VV][api.service:132]: send_list_entities_sensor_response: ListEntitiesSensorResponse {
object_id: '0x2122a4c5_my_lqi'
key: 992352241
name: '0x2122A4C5 My lqi'
unique_id: 'wodasensor0x2122a4c5_my_lqi'
icon: ''
unit_of_measurement: ''
accuracy_decimals: 0
force_update: NO
device_class: 'signal_strength'
state_class: STATE_CLASS_MEASUREMENT
legacy_last_reset_type: LAST_RESET_NONE
disabled_by_default: NO
entity_category: ENTITY_CATEGORY_D
[16:17:29][VV][api.service:132]: send_list_entities_sensor_response: ListEntitiesSensorResponse {
object_id: '0x2122a4c5_my_rssi'
key: 531564276
name: '0x2122A4C5 My RSSI'
unique_id: 'wodasensor0x2122a4c5_my_rssi'
icon: ''
unit_of_measurement: 'dBm'
accuracy_decimals: 0
force_update: NO
device_class: 'signal_strength'
state_class: STATE_CLASS_MEASUREMENT
legacy_last_reset_type: LAST_RESET_NONE
disabled_by_default: NO
entity_category: ENTITY_CATE
[16:17:29][VV][api.service:132]: send_list_entities_sensor_response: ListEntitiesSensorResponse {
object_id: '0x2122a4c5_my_cold_water'
key: 1819712623
name: '0x2122A4C5 My cold water'
unique_id: 'wodasensor0x2122a4c5_my_cold_water'
icon: 'mdi:water'
unit_of_measurement: 'm³'
accuracy_decimals: 3
force_update: NO
device_class: 'water'
state_class: STATE_CLASS_TOTAL_INCREASING
legacy_last_reset_type: LAST_RESET_NONE
disabled_by_default: NO
entit
[16:17:29][VV][api.service:055]: send_list_entities_done_response: ListEntitiesDoneResponse {}
[16:17:29][VV][api.service:594]: on_subscribe_states_request: SubscribeStatesRequest {}
[16:17:29][VV][api.service:656]: on_subscribe_homeassistant_services_request: SubscribeHomeassistantServicesRequest {}
[16:17:29][VV][api.service:140]: send_sensor_state_response: SensorStateResponse {
key: 992352241
state: nan
missing_state: YES
}
[16:17:29][VV][api.service:683]: on_subscribe_home_assistant_states_request: SubscribeHomeAssistantStatesRequest {}
[16:17:29][VV][api.service:140]: send_sensor_state_response: SensorStateResponse {
key: 531564276
state: nan
missing_state: YES
}
[16:17:29][VV][api.service:140]: send_sensor_state_response: SensorStateResponse {
key: 1819712623
state: nan
missing_state: YES
}
[16:17:34][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=15185 (now=25185)
[16:17:44][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=25185 (now=35185)
[16:17:54][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=35185 (now=45185)
[16:18:04][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=45185 (now=55185)
[16:18:09][VV][api.service:558]: on_ping_request: PingRequest {}
[16:18:09][VV][api.service:043]: send_ping_response: PingResponse {}
[16:18:14][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=55185 (now=65185)
[16:18:14][VV][scheduler:225]: Running interval '' with interval=60000 last_execution=5440 (now=65440)
[16:18:24][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=65185 (now=75185)
[16:18:25][VV][api.connection:132]: Sending keepalive PING...
[16:18:25][VV][api.service:037]: send_ping_request: PingRequest {}
[16:18:25][VV][api.service:567]: on_ping_response: PingResponse {}
[16:18:34][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=75185 (now=85185)
[16:18:44][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=85185 (now=95185)
[16:18:49][VV][api.service:558]: on_ping_request: PingRequest {}
[16:18:49][VV][api.service:043]: send_ping_response: PingResponse {}
[16:18:54][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=95185 (now=105185)
[16:19:04][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=105185 (now=115185)
[16:19:14][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=115185 (now=125185)
[16:19:14][VV][scheduler:225]: Running interval '' with interval=60000 last_execution=65440 (now=125440)
[16:19:24][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=125185 (now=135185)
[16:19:25][VV][api.connection:132]: Sending keepalive PING...
[16:19:25][VV][api.service:037]: send_ping_request: PingRequest {}
[16:19:25][VV][api.service:567]: on_ping_response: PingResponse {}
[16:19:29][VV][api.service:558]: on_ping_request: PingRequest {}
[16:19:29][VV][api.service:043]: send_ping_response: PingResponse {}
[16:19:34][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=135185 (now=145185)
[16:19:44][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=145185 (now=155185)```
Znalazłem błąd w składni sensor nie ma name: “nazwa” tylko total_water_m3:
name: “My cold water” może coś popłynie. Ok ruszyło. dzięki za cierpliwość.
Dzień dobry,
Mam problem z… no właśnie sam nie wiem, która część całej układanki jest wadliwa. CC1101 z NodeMCU V3 i odczyt licznika Otus3 z włączonym AMIPlus (mam numer licznika i klucz deszyfrujący). Niestety nie jestem w stanie odebrać żadnych komunikatów, mimo że radio znajduje się w tej samej skrzynce rozdzielczej co licznik.
Poniżej wrzucam YAMLa i logi.
esphome:
name: esphome-cc1101
friendly_name: ESPHome CC1101
esp8266:
board: nodemcuv2
time:
- platform: homeassistant
id: time_sntp
logger:
level: VERY_VERBOSE
# Enable Home Assistant API
api:
encryption:
key: "xxx"
wifi:
networks:
- ssid: !secret 1_wifi_ssid
- password: !secret 1_wifi_password
- ssid: !secret 2_wifi_ssid
- password: !secret 2_wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "esphome-cc1101"
password: "xxx"
external_components:
- source: github://SzczepanLeon/esphome-components@main
components: [ wmbus ]
wmbus:
frequency: 868.950
mosi_pin: GPIO13 # D7
clk_pin: GPIO14 # D5
miso_pin: GPIO12 # D6
gdo2_pin: GPIO5 # D1
gdo0_pin: GPIO4 # D2
cs_pin: GPIO15 # D8
led_pin: GPIO2 # D4
led_blink_time: "1s"
log_unknown: True
sensor:
- platform: wmbus
type: Amiplus
mode: T1
meter_id: xxx
key: xxx
add_prefix: false
lqi:
name: "LQI"
rssi:
name: "RSSI"
total_energy_consumption_kwh:
name: "Konspumpcja kWh"
current_power_consumption_kw:
name: "Chwilowe zużycie"
current_power_production_kw:
name: "Chwilowa produkcja"
voltage_at_phase_1_v:
name: "Napięcie Fazy V1"
voltage_at_phase_2_v:
name: "Napięcie Fazy V2"
voltage_at_phase_3_v:
name: "Napięcie Fazy V3"
Logi:
[19:04:08][I][app:102]: ESPHome version 2023.11.3 compiled on Jan 24 2024, 19:03:34
[19:04:08][C][wifi:559]: WiFi: REDACTED
[19:04:08][C][logger:416]: Logger:
[19:04:08][C][logger:417]: Level: VERY_VERBOSE
[19:04:08][C][logger:418]: Log Baud Rate: 115200
[19:04:08][C][logger:420]: Hardware UART: UART0
[19:04:08][C][homeassistant.time:010]: Home Assistant Time:
[19:04:08][C][homeassistant.time:011]: Timezone: 'UTC0'
[19:04:08][C][mdns:115]: mDNS:
[19:04:08][C][mdns:116]: Hostname: esphome-cc1101
[19:04:08][V][mdns:117]: Services:
[19:04:08][V][mdns:119]: - _esphomelib, _tcp, 6053
[19:04:08][V][mdns:121]: TXT: friendly_name = ESPHome CC1101
[19:04:08][V][mdns:121]: TXT: version = 2023.11.3
[19:04:08][V][mdns:121]: TXT: mac = 083a8dd0c2c1
[19:04:08][V][mdns:121]: TXT: platform = ESP8266
[19:04:08][V][mdns:121]: TXT: board = nodemcuv2
[19:04:08][V][mdns:121]: TXT: network = wifi
[19:04:08][V][mdns:121]: TXT: api_encryption = Noise_NNpsk0_25519_ChaChaPoly_SHA256
[19:04:08][C][ota:097]: Over-The-Air Updates:
[19:04:08][C][ota:098]: Address: esphome-cc1101.local:8266
[19:04:08][C][api:139]: API Server:
[19:04:08][C][api:140]: Address: esphome-cc1101.local:6053
[19:04:08][C][api:142]: Using noise encryption: YES
[19:04:08][C][wmbus:416]: wM-Bus v2.4.4:
[19:04:08][C][wmbus:429]: LED:
[19:04:08][C][wmbus:430]: Pin: GPIO2
[19:04:08][C][wmbus:431]: Duration: 1000 ms
[19:04:08][C][wmbus:433]: CC1101 frequency: 868.950 MHz
[19:04:08][C][wmbus:434]: CC1101 SPI bus:
[19:04:08][C][wmbus:435]: MOSI Pin: GPIO13
[19:04:09][C][wmbus:436]: MISO Pin: GPIO12
[19:04:09][C][wmbus:437]: CLK Pin: GPIO14
[19:04:09][C][wmbus:438]: CS Pin: GPIO15
[19:04:09][C][wmbus:439]: GDO0 Pin: GPIO4
[19:04:09][C][wmbus:440]: GDO2 Pin: GPIO5
[19:04:09][C][wmbus:447]: Available drivers: amiplus, apator08, apator162, apatoreitn, bmeters, c5isf, compact5, dme07, elf, evo868, fhkvdataiii, hydrocalm3, hydrus, iperl, itron, izar, mkradio3, mkradio4, qheat, qwater, sharky774, topaseskr, ultrimis, unismart, vario451
[19:04:09][C][wmbus:465]: Meter:
[19:04:09][C][wmbus:466]: ID: xxx
[19:04:09][C][wmbus:467]: Type: amiplus
[19:04:09][C][wmbus:468]: Mode: T1
[19:04:09][C][wmbus:469]: Key: xxx
[19:04:09][C][wmbus:471]: Sensor 'Chwilowe zużycie'
[19:04:09][C][wmbus:471]: Device Class: 'power'
[19:04:09][C][wmbus:471]: State Class: 'measurement'
[19:04:09][C][wmbus:471]: Unit of Measurement: 'kW'
[19:04:09][C][wmbus:471]: Accuracy Decimals: 3
[19:04:09][C][wmbus:471]: Icon: 'mdi:transmission-tower-export'
[19:04:09][C][wmbus:471]: Sensor 'Chwilowa produckja'
[19:04:09][C][wmbus:471]: Device Class: 'power'
[19:04:09][C][wmbus:471]: State Class: 'measurement'
[19:04:09][C][wmbus:471]: Unit of Measurement: 'kW'
[19:04:09][C][wmbus:471]: Accuracy Decimals: 3
[19:04:09][C][wmbus:471]: Icon: 'mdi:transmission-tower-import'
[19:04:09][C][wmbus:471]: Sensor 'LQI'
[19:04:09][C][wmbus:471]: Device Class: 'signal_strength'
[19:04:09][C][wmbus:471]: State Class: 'measurement'
[19:04:09][C][wmbus:471]: Unit of Measurement: ''
[19:04:09][C][wmbus:471]: Accuracy Decimals: 0
[19:04:09][C][wmbus:471]: Sensor 'RSSI'
[19:04:09][C][wmbus:471]: Device Class: 'signal_strength'
[19:04:09][C][wmbus:471]: State Class: 'measurement'
[19:04:09][C][wmbus:471]: Unit of Measurement: 'dBm'
[19:04:09][C][wmbus:471]: Accuracy Decimals: 0
[19:04:09][C][wmbus:471]: Sensor 'Konspumpcja kWh'
[19:04:09][C][wmbus:471]: Device Class: 'energy'
[19:04:09][C][wmbus:471]: State Class: 'total_increasing'
[19:04:09][C][wmbus:471]: Unit of Measurement: 'kWh'
[19:04:09][C][wmbus:471]: Accuracy Decimals: 3
[19:04:09][C][wmbus:471]: Icon: 'mdi:transmission-tower-export'
[19:04:09][C][wmbus:471]: Sensor 'Napięcie Fazy V1'
[19:04:09][C][wmbus:471]: Device Class: 'voltage'
[19:04:09][C][wmbus:471]: State Class: 'measurement'
[19:04:09][C][wmbus:471]: Unit of Measurement: 'V'
[19:04:09][C][wmbus:471]: Accuracy Decimals: 0
[19:04:09][C][wmbus:471]: Icon: 'mdi:sine-wave'
[19:04:09][C][wmbus:471]: Sensor 'Napięcie Fazy V2'
[19:04:09][C][wmbus:471]: Device Class: 'voltage'
[19:04:09][C][wmbus:471]: State Class: 'measurement'
[19:04:09][C][wmbus:471]: Unit of Measurement: 'V'
[19:04:09][C][wmbus:471]: Accuracy Decimals: 0
[19:04:09][C][wmbus:471]: Icon: 'mdi:sine-wave'
[19:04:09][C][wmbus:471]: Sensor 'Napięcie Fazy V3'
[19:04:09][C][wmbus:471]: Device Class: 'voltage'
[19:04:09][C][wmbus:471]: State Class: 'measurement'
[19:04:09][C][wmbus:471]: Unit of Measurement: 'V'
[19:04:09][C][wmbus:471]: Accuracy Decimals: 0
[19:04:09][C][wmbus:471]: Icon: 'mdi:sine-wave'
[19:04:21][D][api:102]: Accepted 172.16.0.121
[19:04:22][VV][api.socket:696]: 172.16.0.121: Handshake complete!
[19:04:22][W][component:214]: Component api took a long time for an operation (0.29 s).
[19:04:22][W][component:215]: Components should block for at most 20-30ms.
[19:04:24][VV][api.service:522]: on_hello_request: HelloRequest {
client_info: 'Home Assistant 2023.11.2'
api_version_major: 1
api_version_minor: 9
}
[19:04:24][V][api.connection:1070]: Hello from client: 'Home Assistant 2023.11.2' | 172.16.0.121 | API Version 1.9
[19:04:24][VV][api.service:013]: send_hello_response: HelloResponse {
api_version_major: 1
api_version_minor: 9
server_info: 'esphome-cc1101 (esphome v2023.11.3)'
name: 'esphome-cc1101'
}
[19:04:24][VV][api.service:531]: on_connect_request: ConnectRequest {
password: ''
}
[19:04:24][D][api.connection:1089]: Home Assistant 2023.11.2 (172.16.0.121): Connected successfully
[19:04:24][VV][api.service:197]: send_get_time_request: GetTimeRequest {}
[19:04:24][VV][api.service:019]: send_connect_response: ConnectResponse {
invalid_password: NO
}
[19:04:24][VV][api.service:674]: on_get_time_response: GetTimeResponse {
epoch_seconds: 1706119464
}
[19:04:24][VV][time:027]: Got epoch 1706119464
[19:04:24][D][time:044]: Synchronized time: 2024-01-24 18:04:24
[19:04:24][VV][api.service:576]: on_device_info_request: DeviceInfoRequest {}
[19:04:24][VV][api.service:049]: send_device_info_response: DeviceInfoResponse {
uses_password: NO
name: 'esphome-cc1101'
mac_address: '08:3A:8D:D0:C2:C1'
esphome_version: '2023.11.3'
compilation_time: 'Jan 24 2024, 19:03:34'
model: 'nodemcuv2'
has_deep_sleep: NO
project_name: ''
project_version: ''
webserver_port: 0
legacy_bluetooth_proxy_version: 0
bluetooth_proxy_feature_flags: 0
manufacturer: 'Espressif'
friendly_name: 'ESPHome CC1101'
voice_assi
[19:04:24][VV][api.service:585]: on_list_entities_request: ListEntitiesRequest {}
[19:04:24][VV][api.service:132]: send_list_entities_sensor_response: ListEntitiesSensorResponse {
object_id: 'lqi'
key: 847368321
name: 'LQI'
unique_id: 'esphome-cc1101sensorlqi'
icon: ''
unit_of_measurement: ''
accuracy_decimals: 0
force_update: NO
device_class: 'signal_strength'
state_class: STATE_CLASS_MEASUREMENT
legacy_last_reset_type: LAST_RESET_NONE
disabled_by_default: NO
entity_category: ENTITY_CATEGORY_DIAGNOSTIC
}
[19:04:24][VV][api.service:132]: send_list_entities_sensor_response: ListEntitiesSensorResponse {
object_id: 'rssi'
key: 2543775268
name: 'RSSI'
unique_id: 'esphome-cc1101sensorrssi'
icon: ''
unit_of_measurement: 'dBm'
accuracy_decimals: 0
force_update: NO
device_class: 'signal_strength'
state_class: STATE_CLASS_MEASUREMENT
legacy_last_reset_type: LAST_RESET_NONE
disabled_by_default: NO
entity_category: ENTITY_CATEGORY_DIAGNOSTIC
}
[19:04:24][VV][api.service:132]: send_list_entities_sensor_response: ListEntitiesSensorResponse {
object_id: 'konspumpcja_kwh'
key: 3658202995
name: 'Konspumpcja kWh'
unique_id: 'esphome-cc1101sensorkonspumpcja_kwh'
icon: 'mdi:transmission-tower-export'
unit_of_measurement: 'kWh'
accuracy_decimals: 3
force_update: NO
device_class: 'energy'
state_class: STATE_CLASS_TOTAL_INCREASING
legacy_last_reset_type: LAST_RESET_NONE
disabled_by_default: NO
e
[19:04:24][VV][api.service:132]: send_list_entities_sensor_response: ListEntitiesSensorResponse {
object_id: 'chwilowe_zuycie'
key: 2364759159
name: 'Chwilowe zużycie'
unique_id: 'esphome-cc1101sensorchwilowe_zuycie'
icon: 'mdi:transmission-tower-export'
unit_of_measurement: 'kW'
accuracy_decimals: 3
force_update: NO
device_class: 'power'
state_class: STATE_CLASS_MEASUREMENT
legacy_last_reset_type: LAST_RESET_NONE
disabled_by_default: NO
entity
[19:04:24][VV][api.service:132]: send_list_entities_sensor_response: ListEntitiesSensorResponse {
object_id: 'chwilowa_produckja'
key: 2722813219
name: 'Chwilowa produckja'
unique_id: 'esphome-cc1101sensorchwilowa_produckja'
icon: 'mdi:transmission-tower-import'
unit_of_measurement: 'kW'
accuracy_decimals: 3
force_update: NO
device_class: 'power'
state_class: STATE_CLASS_MEASUREMENT
legacy_last_reset_type: LAST_RESET_NONE
disabled_by_default: NO
[19:04:24][VV][api.service:132]: send_list_entities_sensor_response: ListEntitiesSensorResponse {
object_id: 'napicie_fazy_v1'
key: 3719587521
name: 'Napięcie Fazy V1'
unique_id: 'esphome-cc1101sensornapicie_fazy_v1'
icon: 'mdi:sine-wave'
unit_of_measurement: 'V'
accuracy_decimals: 0
force_update: NO
device_class: 'voltage'
state_class: STATE_CLASS_MEASUREMENT
legacy_last_reset_type: LAST_RESET_NONE
disabled_by_default: NO
entity_category: ENTI
[19:04:24][VV][api.service:132]: send_list_entities_sensor_response: ListEntitiesSensorResponse {
object_id: 'napicie_fazy_v2'
key: 3719587522
name: 'Napięcie Fazy V2'
unique_id: 'esphome-cc1101sensornapicie_fazy_v2'
icon: 'mdi:sine-wave'
unit_of_measurement: 'V'
accuracy_decimals: 0
force_update: NO
device_class: 'voltage'
state_class: STATE_CLASS_MEASUREMENT
legacy_last_reset_type: LAST_RESET_NONE
disabled_by_default: NO
entity_category: ENTI
[19:04:24][VV][api.service:132]: send_list_entities_sensor_response: ListEntitiesSensorResponse {
object_id: 'napicie_fazy_v3'
key: 3719587523
name: 'Napięcie Fazy V3'
unique_id: 'esphome-cc1101sensornapicie_fazy_v3'
icon: 'mdi:sine-wave'
unit_of_measurement: 'V'
accuracy_decimals: 0
force_update: NO
device_class: 'voltage'
state_class: STATE_CLASS_MEASUREMENT
legacy_last_reset_type: LAST_RESET_NONE
disabled_by_default: NO
entity_category: ENTI
[19:04:24][VV][api.service:055]: send_list_entities_done_response: ListEntitiesDoneResponse {}
[19:04:24][VV][api.service:594]: on_subscribe_states_request: SubscribeStatesRequest {}
[19:04:24][VV][api.service:656]: on_subscribe_homeassistant_services_request: SubscribeHomeassistantServicesRequest {}
[19:04:24][VV][api.service:140]: send_sensor_state_response: SensorStateResponse {
key: 847368321
state: nan
missing_state: YES
}
[19:04:24][VV][api.service:683]: on_subscribe_home_assistant_states_request: SubscribeHomeAssistantStatesRequest {}
[19:04:24][VV][api.service:140]: send_sensor_state_response: SensorStateResponse {
key: 2543775268
state: nan
missing_state: YES
}
[19:04:24][VV][api.service:140]: send_sensor_state_response: SensorStateResponse {
key: 3658202995
state: nan
missing_state: YES
}
[19:04:24][VV][api.service:140]: send_sensor_state_response: SensorStateResponse {
key: 2364759159
state: nan
missing_state: YES
}
[19:04:24][VV][api.service:140]: send_sensor_state_response: SensorStateResponse {
key: 2722813219
state: nan
missing_state: YES
}
[19:04:24][VV][api.service:140]: send_sensor_state_response: SensorStateResponse {
key: 3719587521
state: nan
missing_state: YES
}
[19:04:24][VV][api.service:140]: send_sensor_state_response: SensorStateResponse {
key: 3719587522
state: nan
missing_state: YES
}
[19:04:24][VV][api.service:140]: send_sensor_state_response: SensorStateResponse {
key: 3719587523
state: nan
missing_state: YES
}
[19:04:48][VV][api.service:558]: on_ping_request: PingRequest {}
[19:04:48][VV][api.service:043]: send_ping_response: PingResponse {}
[19:04:51][VV][scheduler:225]: Running interval '' with interval=60000 last_execution=5993 (now=65993)
[19:05:04][VV][api.service:558]: on_ping_request: PingRequest {}
[19:05:04][VV][api.service:043]: send_ping_response: PingResponse {}
[19:05:28][VV][api.service:558]: on_ping_request: PingRequest {}
[19:05:28][VV][api.service:043]: send_ping_response: PingResponse {}
[19:05:44][VV][api.service:558]: on_ping_request: PingRequest {}
[19:05:44][VV][api.service:043]: send_ping_response: PingResponse {}
[19:05:51][VV][scheduler:225]: Running interval '' with interval=60000 last_execution=65993 (now=125993)
[19:06:24][VV][api.service:558]: on_ping_request: PingRequest {}
[19:06:24][VV][api.service:043]: send_ping_response: PingResponse {}
[19:06:28][VV][api.connection:130]: Sending keepalive PING...
[19:06:28][VV][api.service:037]: send_ping_request: PingRequest {}
[19:06:28][VV][api.service:567]: on_ping_response: PingResponse {}
[19:06:51][VV][scheduler:225]: Running interval '' with interval=60000 last_execution=125993 (now=185993)
To najlepiej tak zacząć diagnoze:
- w YAMLu ustawić tylko sekcje wmbus (sensory) zakomentować, logi mogą być na VERBOSE lub DEBUG (VV nie wymagane)
Jak cos odbiera (powinny by unknown telegramy) to OK, jak nie odbiera to:
- zmniejszyć dystans
- zamienić miejscami GDO
Jak to nie pomoże to albo źródło nadaje na innej częstotliwości albo nic nie nadaje albo nie jest to wM-Bus albo CC1101 jest jakoś strzelony.
Dzięki,
Przestawiałem już piny, na kilka sposobów, nawet dla potwierdzenia podpiąłem je błędnie i uzyskałem komunikat żeby sprawdzić połączenie.
Zaryzykuję z nowym układem z tej aukcji Magic Meter -czytnik liczników radiowych wmbus cc1101 HA Domoticz mqtt Gliwice Łabędy • OLX.pl
Według Tauron ich liczniki z AMIPlus powinny nadawać na 868 Mhz w protokole wm-bu: https://amiplus.tauron-dystrybucja.pl/-/media/offer-documents/amiplus/amiplus-modu-wireless-m-bus.ashx
Ale ktore piny? Tylko SPI mają wpływ na komunikat o podłączeniu. GDOx natomiast odpowiadają za odbiór danych.
Sprawdź jeszcze czy cos przy antenie nie jest zwarte.
@Kuballke dawno temu kupiłem dokładnie ten układ, oszczędziłem sobie bardzo wielu problemów, polecam.
P.S. To samo ogłoszenie jest na forum:
Zamieniłem piny GDOx miejscami.
Raz też udało mi się otrzymać taki komunikat, ale było to tylko raz, kilka tygodni temu jak zaczynałem zabawę.
wMBus-lib: Processing T1 A frame
wMBus-lib: Error during decoding '3 out of 6'
Od ponad roku walczę z odczytem licznika dwukierunkowego, głównie ze względu na instalację PV. Są różne rozwiązania, ale zdecydowanie za drogie jak na amatorską automatyzację dlatego moja wewnętrzna cebula zaczęła się uśmiechać jak trafiłem na temat modułu CC1101. Chce to głównie wykorzystać do grzania wody w zbiorniku CWU gdy występuje nadprodukcja. A jak się uda to zakupić liczniki do wody i gazu.