Podpowiedzcie proszę, czy mój YAML jest OK, czy coś sobie popsułem.
Wcześniej odbierałem ramki np od wodomierzy. Oczywiście nie mogłem zdekodować, ale były.
Licznik elektryczny mam GAMA 150, PLC się świeci, MBUS zgaszone (z tego co wiem to = włączony). No i chciałem w końcu zacząć coś odbierać, jakieś dwa klucze dostałem od Stoen Operator. I … nic sensownego nie odbieram…
Czy to wersja 4.0 czy 3.2.3 - efekt jest taki sam: nic sensownego nie odbieram. Od 9:00 do ok 15:00 coś leci w eterze, a potem cisza.
Logi zbieram z mqtt /debug.
Odbiornik leży sobie kilka metrów od różnych liczników, czy to moich czy sąsiadów.
YAML:
dashboard_import:
package_import_url: github://MariuszWoszczynski/wmbus-reader-v2/wmbus-reader-v2.yaml@main
import_full_config: true
substitutions:
name: "wmbus-reader-v2"
friendly_name: "wmbus reader v2"
status_led: GPIO15
esphome:
name: "${name}"
friendly_name: "${friendly_name}"
project:
name: esphome.wmbus_reader_v2
version: "1.0"
esp32:
board: lolin_s2_mini
framework:
type: arduino
external_components:
- source: github://SzczepanLeon/esphome-components@3.2.3
components: [ wmbus ]
refresh: 0d
logger:
level: VERBOSE
api:
reboot_timeout: 0min
encryption:
key: !secret api_encryption_key
mqtt:
broker: !secret mqtt_broker
port: !secret mqtt_port
username: !secret mqtt_username
password: !secret mqtt_password
safe_mode:
ota:
- platform: esphome
wifi:
use_address: "192.168.2.216"
ssid: !secret wifi_ssid # home
password: !secret wifi_password
power_save_mode: LIGHT
fast_connect: true
reboot_timeout: 10min
output_power: 18dB
# Status LED for connection
status_led:
pin:
# Blue LED
number: ${status_led}
wmbus:
mosi_pin: GPIO35
clk_pin: GPIO36
miso_pin: GPIO37
gdo2_pin: GPIO1
gdo0_pin: GPIO2
cs_pin: GPIO34
# log_all: True
log_unknown: true
sensor:
- platform: wmbus
#meter_id: 0x00000000
meter_id: 14175526 # 0x00D84D26 # ID: 14175526 - licznik elektryczny
type: amiplus
mode: T1C1
key: "3Exxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
- platform: wmbus
#meter_id: 0x00000000
meter_id: 0x14175526 # 0x00D84D26 # ID: 14175526 - licznik elektryczny
type: amiplus
mode: T1C1
key: "3Exxxxxxxxxxxxxxxxxxxx"
Logi:
2024-10-07T11:22:12.237259Z+0200, [V][rxLoop:167]: Have 218 bytes from CC1101 Rx, RSSI: -92 dBm LQI: 128
2024-10-07T11:22:12.240991Z+0200, [D][mbus:034]: Processing T1 A frame
2024-10-07T11:22:12.246744Z+0200, [V][mbus:040]: Frame: 4F271CB313654CD4EC59CB0E58D5938D934B4E69A35964D699B99396669695C65A2D6C696A6B1A64E59AB1A8E673498D353996956A56D1B6712E5C8BBA9B26F5A59CF0E5E513654CD4EC59CB0E58D5938D934B4E69A35964D699B99396669695C65A2D6C696A6B1A64E59AB1A8E673498D353996956A56D1B6712E5C8BBA9B26F5A59CF0E513654CD4EC59CB0E58D5938D934B4E69A35964D699B99396669695C65A2D6C696A6B1A64E59AB1A8E673498D353996956A56D1B6712E5C8BBA9B26F5A59CF0F0E51365 [RAW]
2024-10-07T11:22:12.253983Z+0200, [V][mbus:042]: 4CD4EC59CB0E58D5938D934B4E69A35964D6 (218) [RAW]
2024-10-07T11:22:12.257832Z+0200, [V][3of6:083]: Decode 3 out of 6 failed..
2024-10-07T11:22:24.343606Z+0200, [V][rxLoop:167]: Have 218 bytes from CC1101 Rx, RSSI: -85 dBm LQI: 128
2024-10-07T11:22:24.710178Z+0200, [D][mbus:034]: Processing T1 A frame
2024-10-07T11:22:24.710437Z+0200, [V][mbus:040]: Frame: 4F271CB3136568D4EC59CB0E58D593B327264E65965964D69993E534DD0ED0D393CA565CB31965B1CD1934B66C36CC539594CEB253A9A5FD0D2F1674B56A669DC39AD9CCCC136568D4EC59CB0E58D593B327264E65965964D69993E534DD0ED0D393CA565CB31965B1CD1934B66C36CC539594CEB253A9A5FD0D2F1674B56A669DC39AD9CC136568D4EC59CB0E58D593B327264E65965964D69993E534DD0ED0D393CA565CB31965B1CD1934B66C36CC539594CEB253A9A5FD0D2F1674B56A669DC39AD9D9CC1365 [RAW]
2024-10-07T11:22:24.710620Z+0200, [V][mbus:042]: 68D4EC59CB0E58D593B327264E65965964D6 (218) [RAW]
2024-10-07T11:22:24.710785Z+0200, [V][3of6:083]: Decode 3 out of 6 failed..
2024-10-07T11:23:45.646151Z+0200, [V][rxLoop:167]: Have 218 bytes from CC1101 Rx, RSSI: -65 dBm LQI: 128
2024-10-07T11:23:45.646336Z+0200, [D][mbus:034]: Processing T1 A frame
2024-10-07T11:23:45.646840Z+0200, [V][mbus:040]: Frame: 4F271CB3136568EB1C59CB0E58D593C6CD134E64EC5964D69996B16B49AC6A599AD23A598F2B2CB269A995C67159A596B25A698DA956C566B2B13D13A4D6ACC69366C6CCCC136568EB1C59CB0E58D593C6CD134E64EC5964D69996B16B49AC6A599AD23A598F2B2CB269A995C67159A596B25A698DA956C566B2B13D13A4D6ACC69366C6CC136568EB1C59CB0E58D593C6CD134E64EC5964D69996B16B49AC6A599AD23A598F2B2CB269A995C67159A596B25A698DA956C566B2B13D13A4D6ACC69366C6C6CC1365 [RAW]
2024-10-07T11:23:45.647019Z+0200, [V][mbus:042]: 68EB1C59CB0E58D593C6CD134E64EC5964D6 (218) [RAW]
2024-10-07T11:23:45.647090Z+0200, [V][3of6:083]: Decode 3 out of 6 failed..
Na początku sierpnia odbierałem jeszcze coś sensownego, np:
[09:02:37][V][rxLoop:167]: Have 218 bytes from CC1101 Rx, RSSI: -63 dBm LQI: 128
[09:02:37][D][mbus:034]: Processing T1 A frame
[09:02:37][V][mbus:040]: Frame: 4F271CB313652E5B1C59CB0E58D593A4E3654E6A565964D69993AC3653935A62E9959732B1371A2E52D3C93CA57263963ACD264F15A9C96CB48CB3932F466995CA74965D0DB1968BC9AA66C723994EC98D5A6A4BB0B6934CB38D6ACD29C53D0E70DA662CB8DAC53A56B269698CD663393C8E3748E368E8D96533B49B1C742F1359C992E92CB596A4BC63A4E734B316655A98E96AC34EA5A95336C66395AA6C2CE372A4DC8BA71956C65A5994E6A5A59D1339CC66A5CD344D36632F44E52F238D58ECB4B196B46A3C [RAW]
[09:02:37][V][mbus:042]: 4EC725B2C8B6A670E35CC6998E699C65672B (218) [RAW]
[09:02:37][V][mbus:052]: Frame: 7E448D19398404820107F2197AF00070A52819270A3F954E87463937E7E94A2028CA7D0FE0ECB3273C5F94FC99C18563E6FADE2578A10AF38367732168CFD7C241FA33B6D7F08A9FB15B27E21CBB62B5572CADDC3D15E53F3300F3DBF24C8D590FBF6812F697185B96F8321EF1E3FD90D9F59269F5C724DAF4CC775B3C793E2102EC856C6BD2DE0EE36A4214DFA265D95E (145) [with CRC]
[09:02:37][V][mbus:095]: Validating CRC for Block1
[09:02:37][V][crc:031]: calculated: 0xF219, read: 0xF219
[09:02:37][V][mbus:115]: Validating CRC for Block2
[09:02:37][V][crc:031]: calculated: 0xE7E9, read: 0xE7E9
[09:02:37][V][mbus:115]: Validating CRC for Block3
[09:02:37][V][crc:031]: calculated: 0x8563, read: 0x8563
[09:02:37][V][mbus:115]: Validating CRC for Block4
[09:02:37][V][crc:031]: calculated: 0x41FA, read: 0x41FA
[09:02:37][V][mbus:115]: Validating CRC for Block5
[09:02:37][V][crc:031]: calculated: 0xADDC, read: 0xADDC
[09:02:37][V][mbus:115]: Validating CRC for Block6
[09:02:37][V][crc:031]: calculated: 0xF697, read: 0xF697
[09:02:37][V][mbus:115]: Validating CRC for Block7
[09:02:37][V][crc:031]: calculated: 0x24DA, read: 0x24DA
[09:02:37][V][mbus:115]: Validating CRC for Block8
[09:02:37][V][crc:031]: calculated: 0xE36A, read: 0xE36A
[09:02:37][V][mbus:115]: Validating CRC for Block9
[09:02:37][V][crc:031]: calculated: 0xD95E, read: 0xD95E
[09:02:37][V][mbus:062]: Frame: 7E448D193984048201077AF00070A52819270A3F954E874639374A2028CA7D0FE0ECB3273C5F94FC99C1E6FADE2578A10AF38367732168CFD7C233B6D7F08A9FB15B27E21CBB62B5572C3D15E53F3300F3DBF24C8D590FBF6812185B96F8321EF1E3FD90D9F59269F5C7F4CC775B3C793E2102EC856C6BD2DE0E4214DFA265 (127) [without CRC]
[09:02:37][D][wmbus:182]: Meter ID [0x82048439] RSSI: -63 dBm LQI: 128 Frame: T1 A not found in configuration T: 7E448D193984048201077AF00070A52819270A3F954E874639374A2028CA7D0FE0ECB3273C5F94FC99C1E6FADE2578A10AF38367732168CFD7C233B6D7F08A9FB15B27E21CBB62B5572C3D15E53F3300F3DBF24C8D590FBF6812185B96F8321EF1E3FD90D9F59269F5C7F4CC775B3C793E2102EC856C6BD2DE0E4214DFA265 (127)
[09:02:37][W][component:237]: Component wmbus took a long time for an operation (115 ms).
[09:02:37][W][component:238]: Components should block for at most 30 ms.