Skip to content

Instantly share code, notes, and snippets.

@DatDraggy
Last active January 20, 2026 11:48
Show Gist options
  • Select an option

  • Save DatDraggy/23b240f38907e7de5598cc86151035e7 to your computer and use it in GitHub Desktop.

Select an option

Save DatDraggy/23b240f38907e7de5598cc86151035e7 to your computer and use it in GitHub Desktop.
Lorenz F1 Water Meter HomeAssistant ESPHome ESP32+CC1101
substitutions:
# Device Information
device_name: "wmbus-meter"
friendly_name: "WMBus Meter"
# WiFi Credentials
wifi_ssid: ""
wifi_password: ""
# CC1101 Wiring Pins
mosi_pin: GPIO23
miso_pin: GPIO19
clk_pin: GPIO18
cs_pin: GPIO5
gdo0_pin: GPIO27
gdo2_pin: GPIO4
# Meter Configuration
# Meter should have it's ID printed on it, it's the last 8 digits. If the last 8 digits are 40195879, enter 0x40195879
# In Germany, you're legally entitled to the device specific decryption key
meter_id: "0x"
meter_type: "waterstarm"
meter_key: ""
# Debug Settings
# Set to 'True' to see telegrams from all supported meters in the log
debug_all_drivers: "false"
# Set to 'True' to log all incoming WMBus traffic regardless of driver
debug_log_all: "false"
esphome:
name: ${device_name}
friendly_name: ${friendly_name}
platformio_options:
board_build.f_cpu: 80000000L
libraries:
- "LSatan/SmartRC-CC1101-Driver-Lib"
esp32:
board: esp32dev
framework:
type: arduino
external_components:
- source: github://SzczepanLeon/esphome-components@version_4
components: [wmbus]
api:
time:
- platform: sntp
id: sntp_time
timezone: Europe/Berlin
wifi:
ssid: ${wifi_ssid}
password: ${wifi_password}
power_save_mode: NONE
ota:
- platform: esphome
logger:
baud_rate: 0
level: INFO
wmbus:
mosi_pin: ${mosi_pin}
miso_pin: ${miso_pin}
clk_pin: ${clk_pin}
cs_pin: ${cs_pin}
gdo0_pin: ${gdo0_pin}
gdo2_pin: ${gdo2_pin}
frequency: 868.950
all_drivers: ${debug_all_drivers}
log_all: ${debug_log_all}
sensor:
- platform: wmbus
meter_id: ${meter_id}
type: ${meter_type}
key: ${meter_key}
sensors:
- name: "Water Meter Total"
id: water_total
field: "total"
unit_of_measurement: "m³"
device_class: water
state_class: total_increasing
accuracy_decimals: 3
- name: "Water Usage Last Month"
field: "consumption_at_history_1"
unit_of_measurement: "m³"
device_class: water
accuracy_decimals: 3
text_sensor:
- platform: wmbus
meter_id: ${meter_id}
type: ${meter_type}
sensors:
- name: "Meter Status"
field: "status"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment