-
Notifications
You must be signed in to change notification settings - Fork 201
Expand file tree
/
Copy pathUltimateReader_v5.yaml
More file actions
216 lines (183 loc) · 4.9 KB
/
Copy pathUltimateReader_v5.yaml
File metadata and controls
216 lines (183 loc) · 4.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
# For more information please visit: https://github.com/SzczepanLeon/esphome-components
# There is also SUPLA fw available:
# https://github.com/wM-Bus/UltimateReader/releases/tag/supla-25.02-0.0.1
# If you want, you can buy me a coffee:
# https://www.buymeacoffee.com/szczepan
# https://buycoffee.to/szczepanleon
substitutions:
name: "ultimatereader"
friendly_name: "Ultimate Reader"
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
esphome:
name: "${name}"
friendly_name: "${friendly_name}"
name_add_mac_suffix: true
project:
name: wmbus.UltimateReader
version: "1.2.5"
esp32:
board: lilygo-t3-s3
framework:
type: esp-idf
external_components:
- source: github://SzczepanLeon/esphome-components@main
refresh: 0d
dashboard_import:
package_import_url: github://SzczepanLeon/esphome-components/UltimateReader_v5.yaml@main
import_full_config: true
logger:
id: component_logger
level: DEBUG
baud_rate: 115200
psram:
wifi:
ap:
captive_portal:
time:
- platform: homeassistant
api:
ota:
- platform: esphome
web_server:
version: 3
spi:
clk_pin:
number: GPIO5
mosi_pin: GPIO6
miso_pin:
number: GPIO3
ignore_strapping_warning: true
debug:
update_interval: 5s
wmbus_radio:
radio_type: SX1276
cs_pin: GPIO7
reset_pin: GPIO8
irq_pin: GPIO33
on_frame:
- then:
- logger.log:
format: "RSSI: %ddBm T: %s (%d) %s"
args: [ frame->rssi(), frame->as_hex().c_str(), frame->data().size(), toString(frame->link_mode()) ]
- then:
- repeat:
count: 3
then:
- output.turn_on: status_led
- delay: 100ms
- output.turn_off: status_led
- delay: 100ms
## Send telegram via MQTT in RTLwMBus format
# - mark_as_handled: False
# then:
# - mqtt.publish:
# topic: wmbus-test/telegram_rtl
# payload: !lambda return frame->as_rtlwmbus();
## Send telegram to another machine in HEX format
# - mark_as_handled: False
# then:
# - socket_transmitter.send:
# data: !lambda return frame->as_hex();
## Send telegram via MQTT in HEX format
# - then:
# - mqtt.publish:
# topic: wmbus-test/telegram_hex
# payload: !lambda return frame->as_hex();
## Send telegram to another machine in RTLwMBus format
# - then:
# - socket_transmitter.send:
# data: !lambda return frame->as_rtlwmbus();
wmbus_common:
drivers: all
# or specify specific drivers
# drivers:
# - apator162
# - amiplus
## If You want to send telegram to nother machine and decode it via wmbusmeters.
# socket_transmitter:
# id: my_socket
# ip_address: 192.168.1.1
# port: 3333
# protocol: TCP # or UDP
## MQTT if You want to send data to broker.
# mqtt:
# broker: test.mosquitto.org
# port: 1883
# client_id: some_client_id
output:
- platform: gpio
id: status_led
pin:
number: GPIO37
# wmbus_meter:
## Define meter
# - id: electricity_meter
# meter_id: 0x0101010101
# type: amiplus
# key: 00000000000000000000000000000000
# mode:
# - T1
# - C1
## Define meter and send telegram to MQTT broker
# - id: water_meter
# meter_id: 12321
# type: izar
# on_telegram:
# then:
# - wmbus_meter.send_telegram_with_mqtt:
# topic: wmbus-test/telegram
sensor:
## Create sensor for 'electricity_meter' for field 'current_power_consumption_kw'
# - platform: wmbus_meter
# parent_id: electricity_meter
# field: current_power_consumption_kw
# name: My power
# accuracy_decimals: 0
# device_class: power
# unit_of_measurement: W
# state_class: measurement
# filters:
# - multiply: 1000
## Create sensor for 'water_meter' for field 'total_m3'
# - platform: wmbus_meter
# parent_id: water_meter
# field: total_m3
# name: Izar water meter total m3
# accuracy_decimals: 3
# unit_of_measurement: "m³"
# device_class: "water"
# state_class: "total_increasing"
# icon: "mdi:water"
- platform: wifi_signal
name: "WiFi Signal dB"
id: wifi_signal_db
update_interval: 60s
entity_category: "diagnostic"
- platform: copy
source_id: wifi_signal_db
name: "WiFi Signal %"
filters:
- lambda: return {min(max(2 * (x + 100.0), 0.0), 100.0)};
unit_of_measurement: "%"
entity_category: "diagnostic"
- platform: internal_temperature
name: "Internal Temperature"
- platform: debug
free:
name: "Heap Free"
loop_time:
name: "Loop Time"
- platform: uptime
type: seconds
name: Uptime
text_sensor:
## Text sensor with alarms
# - platform: wmbus_meter
# parent_id: electricity_meter
# field: current_alarms
# name: Electricity Meter alarms
- platform: debug
device:
name: "Device Info"
reset_reason:
name: "Reset Reason"