Wracam do tematu po latach ![]()
Wszystko działało przez długi czas dopóki nie zacząłem aktualizować. Teraz odbieram ramki ale ESPHome ich nie dekoduje.
Mój yaml:
substitutions:
devicename: "esp32-c3-sm-07"
upper_devicename: "Wodomierz"
esphome:
name: $devicename
friendly_name: $upper_devicename
esp32:
board: esp32-c3-devkitm-1
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
- platform: esphome
# Enable Web server
web_server:
port: 80
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
fast_connect: on
manual_ip:
# Set this to the IP of the ESP
static_ip: 192.168.1.251
# Set this to the IP address of the router. Often ends with .1
gateway: 192.168.1.1
# The subnet of the network. 255.255.255.0 works for most home networks.
subnet: 255.255.255.0
captive_portal:
binary_sensor:
- platform: status
name: "${upper_devicename} - Status"
device_class: connectivity
time:
- platform: homeassistant
id: homeassistant_time
external_components:
- source: github://SzczepanLeon/esphome-components@version_4
# 🔴 WMBUS (stary, działający styl)
wmbus:
mosi_pin: GPIO5
miso_pin: GPIO7
clk_pin: GPIO6
cs_pin: GPIO21
gdo0_pin: GPIO20
frequency: 868.950
log_all: True
sync_mode: True
# 🔴 SENSORY
sensor:
- platform: wmbus
meter_id: 0x00473662
type: apator
key: "00000000000000000000000000000000"
sensors:
- name: "Wodomierz - Woda"
field: total
accuracy_decimals: 3
unit_of_measurement: "m³"
device_class: water
state_class: total_increasing
- name: "Wodomierz - RSSI"
field: rssi
accuracy_decimals: 0
unit_of_measurement: "dBm"
device_class: signal_strength
state_class: measurement
entity_category: diagnostic
- platform: wifi_signal
name: "${upper_devicename} - Wifi Signal"
update_interval: 60s
- platform: uptime
name: "${upper_devicename} - Uptime"
update_interval: 60s
log:
\[21:34:20.064\]\[S\]\[sensor\]: 'Wodomierz - Wifi Signal' >> -81 dBm
\[21:34:20.123\]\[D\]\[packet:097\]: Have data from radio (8 bytes)
\[21:34:20.157\]\[D\]\[wmbusmeters:351\]: raw packet "2049002605B35A30"
\[21:34:34.473\]\[D\]\[packet:097\]: Have data from radio (8 bytes)
\[21:34:34.474\]\[D\]\[wmbusmeters:351\]: raw packet "73273C58D59A5937"
\[21:34:40.990\]\[D\]\[packet:097\]: Have data from radio (137 bytes)
\[21:34:40.992\]\[D\]\[wmbusmeters:351\]: raw packet "73271C58D59A4D958B4DA58E5995936698E64E634D596716B198D698B2EC723B3A6A32CD969D9AD992E6671999D1EC9C4F264D6B1C96C4B596689CA73A69CB2DCB13CD74CE6B92F4661C737367E558DC8D9743987165B26B297E2D939368BB8DB2639C2D395A9A9671CDAB2D727D6C693D0D74EA65354AE9374356CD3C965936DA70EB2CCD6C7A76C5"
\[21:34:40.995\]\[D\]\[wmbusmeters:351\]: (wmbus) trimming frame A "73271C58D59A4D958B4DA58E5995936698E64E634D596716B198D698B2EC723B3A6A32CD969D9AD992E6671999D1EC9C4F264D6B1C96C4B596689CA73A69CB2DCB13CD74CE6B92F4661C737367E558DC8D9743987165B26B297E2D939368BB8DB2639C2D395A9A9671CDAB2D727D6C693D0D74EA65354AE9374356CD3C965936DA70EB2CCD6C7A76C5"
\[21:34:40.996\]\[W\]\[CC1101:318\]**\[radio_recv\]**: RX timeout after 0 bytes (need 3)
\[21:34:45.573\]\[D\]\[packet:097\]: Have data from radio (8 bytes)