2019-02-13 16:54:02 +01:00
|
|
|
esphome:
|
2018-12-05 21:22:06 +01:00
|
|
|
name: $devicename
|
2018-09-26 18:39:41 +02:00
|
|
|
platform: ESP32
|
|
|
|
board: nodemcu-32s
|
|
|
|
build_path: build/test2
|
|
|
|
|
2018-12-05 21:22:06 +01:00
|
|
|
substitutions:
|
|
|
|
devicename: test2
|
|
|
|
|
2019-01-05 20:47:33 +01:00
|
|
|
ethernet:
|
|
|
|
type: LAN8720
|
|
|
|
mdc_pin: GPIO23
|
2019-12-04 16:47:34 +01:00
|
|
|
mdio_pin: GPIO25
|
2019-01-05 20:47:33 +01:00
|
|
|
clk_mode: GPIO0_IN
|
|
|
|
phy_addr: 0
|
|
|
|
power_pin: GPIO25
|
|
|
|
manual_ip:
|
|
|
|
static_ip: 192.168.178.56
|
|
|
|
gateway: 192.168.178.1
|
|
|
|
subnet: 255.255.255.0
|
|
|
|
domain: .local
|
2018-09-26 18:39:41 +02:00
|
|
|
|
2021-09-20 11:47:51 +02:00
|
|
|
mdns:
|
|
|
|
disabled: true
|
|
|
|
|
2019-01-06 19:03:34 +01:00
|
|
|
api:
|
|
|
|
|
2018-09-26 18:39:41 +02:00
|
|
|
i2c:
|
|
|
|
sda: 21
|
|
|
|
scl: 22
|
|
|
|
scan: False
|
|
|
|
|
|
|
|
spi:
|
|
|
|
clk_pin: GPIO21
|
|
|
|
mosi_pin: GPIO22
|
|
|
|
miso_pin: GPIO23
|
|
|
|
|
|
|
|
uart:
|
|
|
|
tx_pin: GPIO22
|
|
|
|
rx_pin: GPIO23
|
|
|
|
baud_rate: 115200
|
2021-11-18 22:41:26 +01:00
|
|
|
# Specifically added for testing debug with no after: definition.
|
|
|
|
debug:
|
|
|
|
dummy_receiver: false
|
|
|
|
direction: rx
|
|
|
|
sequence:
|
|
|
|
- lambda: UARTDebug::log_hex(direction, bytes, ':');
|
2018-09-26 18:39:41 +02:00
|
|
|
|
|
|
|
ota:
|
|
|
|
safe_mode: True
|
|
|
|
port: 3286
|
2020-12-01 23:41:39 +01:00
|
|
|
num_attempts: 15
|
2018-09-26 18:39:41 +02:00
|
|
|
|
|
|
|
logger:
|
|
|
|
level: DEBUG
|
|
|
|
|
2021-02-15 18:32:22 +01:00
|
|
|
deep_sleep:
|
2021-12-06 23:30:27 +01:00
|
|
|
run_duration:
|
|
|
|
default: 20s
|
|
|
|
gpio_wakeup_reason: 10s
|
|
|
|
touch_wakeup_reason: 15s
|
2021-02-15 18:32:22 +01:00
|
|
|
sleep_duration: 50s
|
2022-02-19 15:13:48 +01:00
|
|
|
wakeup_pin: GPIO2
|
2021-02-15 18:32:22 +01:00
|
|
|
wakeup_pin_mode: INVERT_WAKEUP
|
|
|
|
|
2019-10-12 15:03:35 +02:00
|
|
|
as3935_i2c:
|
2019-10-27 12:30:19 +01:00
|
|
|
irq_pin: GPIO12
|
2019-10-12 15:03:35 +02:00
|
|
|
|
2021-04-09 03:40:19 +02:00
|
|
|
mcp3008:
|
|
|
|
- id: 'mcp3008_hub'
|
|
|
|
cs_pin: GPIO12
|
|
|
|
|
2021-10-12 21:22:38 +02:00
|
|
|
output:
|
|
|
|
- platform: ac_dimmer
|
|
|
|
id: dimmer1
|
|
|
|
gate_pin: GPIO5
|
|
|
|
zero_cross_pin: GPIO12
|
|
|
|
|
2018-09-26 18:39:41 +02:00
|
|
|
sensor:
|
2020-05-27 00:33:28 +02:00
|
|
|
- platform: homeassistant
|
|
|
|
entity_id: sensor.hello_world
|
|
|
|
id: ha_hello_world
|
2021-05-17 01:16:22 +02:00
|
|
|
- platform: homeassistant
|
|
|
|
entity_id: climate.living_room
|
|
|
|
attribute: temperature
|
|
|
|
id: ha_hello_world_temperature
|
2018-09-26 18:39:41 +02:00
|
|
|
- platform: ble_rssi
|
|
|
|
mac_address: AC:37:43:77:5F:4C
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'BLE Google Home Mini RSSI value'
|
2019-10-31 15:34:19 +01:00
|
|
|
- platform: ble_rssi
|
|
|
|
service_uuid: '11aa'
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'BLE Test Service 16'
|
2019-10-31 15:34:19 +01:00
|
|
|
- platform: ble_rssi
|
|
|
|
service_uuid: '11223344'
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'BLE Test Service 32'
|
2019-10-31 15:34:19 +01:00
|
|
|
- platform: ble_rssi
|
|
|
|
service_uuid: '11223344-5566-7788-99aa-bbccddeeff00'
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'BLE Test Service 128'
|
2021-04-08 13:59:30 +02:00
|
|
|
- platform: b_parasite
|
|
|
|
mac_address: F0:CA:F0:CA:01:01
|
|
|
|
humidity:
|
|
|
|
name: 'b-parasite Air Humidity'
|
|
|
|
temperature:
|
|
|
|
name: 'b-parasite Air Temperature'
|
|
|
|
moisture:
|
|
|
|
name: 'b-parasite Soil Moisture'
|
|
|
|
battery_voltage:
|
|
|
|
name: 'b-parasite Battery Voltage'
|
2021-09-25 13:16:27 +02:00
|
|
|
illuminance:
|
|
|
|
name: 'b-parasite Illuminance'
|
2021-03-22 00:59:41 +01:00
|
|
|
- platform: senseair
|
|
|
|
id: senseair0
|
|
|
|
co2:
|
|
|
|
name: 'SenseAir CO2 Value'
|
|
|
|
on_value:
|
|
|
|
then:
|
|
|
|
- senseair.background_calibration: senseair0
|
|
|
|
- senseair.background_calibration_result: senseair0
|
|
|
|
- senseair.abc_get_period: senseair0
|
|
|
|
- senseair.abc_enable: senseair0
|
|
|
|
- senseair.abc_disable: senseair0
|
|
|
|
update_interval: 15s
|
2020-05-27 00:33:28 +02:00
|
|
|
- platform: ruuvitag
|
|
|
|
mac_address: FF:56:D3:2F:7D:E8
|
|
|
|
humidity:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'RuuviTag Humidity'
|
2020-05-27 00:33:28 +02:00
|
|
|
temperature:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'RuuviTag Temperature'
|
2020-05-27 00:33:28 +02:00
|
|
|
pressure:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'RuuviTag Pressure'
|
2020-05-27 00:33:28 +02:00
|
|
|
acceleration_x:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'RuuviTag Acceleration X'
|
2020-05-27 00:33:28 +02:00
|
|
|
acceleration_y:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'RuuviTag Acceleration Y'
|
2020-05-27 00:33:28 +02:00
|
|
|
acceleration_z:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'RuuviTag Acceleration Z'
|
2020-05-27 00:33:28 +02:00
|
|
|
battery_voltage:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'RuuviTag Battery Voltage'
|
2020-05-27 00:33:28 +02:00
|
|
|
tx_power:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'RuuviTag TX Power'
|
2020-05-27 00:33:28 +02:00
|
|
|
movement_counter:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'RuuviTag Movement Counter'
|
2020-05-27 00:33:28 +02:00
|
|
|
measurement_sequence_number:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'RuuviTag Measurement Sequence Number'
|
2020-05-27 00:33:28 +02:00
|
|
|
- platform: as3935
|
|
|
|
lightning_energy:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'Lightning Energy'
|
2020-05-27 00:33:28 +02:00
|
|
|
distance:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'Distance Storm'
|
2019-10-16 13:29:56 +02:00
|
|
|
- platform: xiaomi_hhccjcy01
|
2018-09-26 18:39:41 +02:00
|
|
|
mac_address: 94:2B:FF:5C:91:61
|
|
|
|
temperature:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'Xiaomi HHCCJCY01 Temperature'
|
2018-09-26 18:39:41 +02:00
|
|
|
moisture:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'Xiaomi HHCCJCY01 Moisture'
|
2018-09-26 18:39:41 +02:00
|
|
|
illuminance:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'Xiaomi HHCCJCY01 Illuminance'
|
2018-09-26 18:39:41 +02:00
|
|
|
conductivity:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'Xiaomi HHCCJCY01 Soil Conductivity'
|
2020-09-20 04:37:34 +02:00
|
|
|
battery_level:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'Xiaomi HHCCJCY01 Battery Level'
|
2019-10-16 13:29:56 +02:00
|
|
|
- platform: xiaomi_lywsdcgq
|
2018-09-26 18:39:41 +02:00
|
|
|
mac_address: 7A:80:8E:19:36:BA
|
|
|
|
temperature:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'Xiaomi LYWSDCGQ Temperature'
|
2018-09-26 18:39:41 +02:00
|
|
|
humidity:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'Xiaomi LYWSDCGQ Humidity'
|
2018-09-26 18:39:41 +02:00
|
|
|
battery_level:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'Xiaomi LYWSDCGQ Battery Level'
|
2019-10-16 13:29:56 +02:00
|
|
|
- platform: xiaomi_lywsd02
|
|
|
|
mac_address: 3F:5B:7D:82:58:4E
|
|
|
|
temperature:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'Xiaomi LYWSD02 Temperature'
|
2019-10-16 13:29:56 +02:00
|
|
|
humidity:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'Xiaomi LYWSD02 Humidity'
|
2020-10-26 18:53:17 +01:00
|
|
|
battery_level:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'Xiaomi LYWSD02 Battery Level'
|
2019-10-16 13:29:56 +02:00
|
|
|
- platform: xiaomi_cgg1
|
|
|
|
mac_address: 7A:80:8E:19:36:BA
|
|
|
|
temperature:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'Xiaomi CGG1 Temperature'
|
2019-10-16 13:29:56 +02:00
|
|
|
humidity:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'Xiaomi CGG1 Humidity'
|
2019-10-16 13:29:56 +02:00
|
|
|
battery_level:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'Xiaomi CGG1 Battery Level'
|
2020-05-27 00:33:28 +02:00
|
|
|
- platform: xiaomi_gcls002
|
2020-11-20 03:59:19 +01:00
|
|
|
mac_address: '94:2B:FF:5C:91:61'
|
2020-05-27 00:33:28 +02:00
|
|
|
temperature:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'GCLS02 Temperature'
|
2020-05-27 00:33:28 +02:00
|
|
|
moisture:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'GCLS02 Moisture'
|
2020-05-27 00:33:28 +02:00
|
|
|
conductivity:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'GCLS02 Soil Conductivity'
|
2020-05-27 00:33:28 +02:00
|
|
|
illuminance:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'GCLS02 Illuminance'
|
2020-05-27 00:33:28 +02:00
|
|
|
- platform: xiaomi_hhccpot002
|
2020-11-20 03:59:19 +01:00
|
|
|
mac_address: '94:2B:FF:5C:91:61'
|
2020-05-27 00:33:28 +02:00
|
|
|
moisture:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'HHCCPOT002 Moisture'
|
2020-05-27 00:33:28 +02:00
|
|
|
conductivity:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'HHCCPOT002 Soil Conductivity'
|
2020-05-27 00:33:28 +02:00
|
|
|
- platform: xiaomi_lywsd03mmc
|
2020-11-20 03:59:19 +01:00
|
|
|
mac_address: 'A4:C1:38:4E:16:78'
|
|
|
|
bindkey: 'e9efaa6873f9f9c87a5e75a5f814801c'
|
2020-05-27 00:33:28 +02:00
|
|
|
temperature:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'Xiaomi LYWSD03MMC Temperature'
|
2019-11-07 22:10:09 +01:00
|
|
|
humidity:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'Xiaomi LYWSD03MMC Humidity'
|
2020-05-27 00:33:28 +02:00
|
|
|
battery_level:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'Xiaomi LYWSD03MMC Battery Level'
|
2020-05-27 00:33:28 +02:00
|
|
|
- platform: xiaomi_cgd1
|
2020-11-20 03:59:19 +01:00
|
|
|
mac_address: 'A4:C1:38:D1:61:7D'
|
|
|
|
bindkey: 'c99d2313182473b38001086febf781bd'
|
2019-11-07 22:10:09 +01:00
|
|
|
temperature:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'Xiaomi CGD1 Temperature'
|
2020-05-27 00:33:28 +02:00
|
|
|
humidity:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'Xiaomi CGD1 Humidity'
|
2020-05-27 00:33:28 +02:00
|
|
|
battery_level:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'Xiaomi CGD1 Battery Level'
|
2020-05-27 00:33:28 +02:00
|
|
|
- platform: xiaomi_jqjcy01ym
|
2020-11-20 03:59:19 +01:00
|
|
|
mac_address: '7A:80:8E:19:36:BA'
|
2020-05-27 00:33:28 +02:00
|
|
|
temperature:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'JQJCY01YM Temperature'
|
2020-05-27 00:33:28 +02:00
|
|
|
humidity:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'JQJCY01YM Humidity'
|
2020-05-27 00:33:28 +02:00
|
|
|
formaldehyde:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'JQJCY01YM Formaldehyde'
|
2020-05-27 00:33:28 +02:00
|
|
|
battery_level:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'JQJCY01YM Battery Level'
|
2022-01-27 00:54:29 +01:00
|
|
|
- platform: xiaomi_mhoc303
|
|
|
|
mac_address: 'E7:50:59:32:A0:1C'
|
|
|
|
temperature:
|
|
|
|
name: 'MHO-C303 Temperature'
|
|
|
|
humidity:
|
|
|
|
name: 'MHO-C303 Humidity'
|
|
|
|
battery_level:
|
|
|
|
name: 'MHO-C303 Battery Level'
|
2020-11-03 18:36:11 +01:00
|
|
|
- platform: atc_mithermometer
|
2020-11-20 03:59:19 +01:00
|
|
|
mac_address: 'A4:C1:38:4E:16:78'
|
2020-11-03 18:36:11 +01:00
|
|
|
temperature:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'ATC Temperature'
|
2020-11-03 18:36:11 +01:00
|
|
|
humidity:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'ATC Humidity'
|
2020-11-03 18:36:11 +01:00
|
|
|
battery_level:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'ATC Battery-Level'
|
2020-11-03 18:36:11 +01:00
|
|
|
battery_voltage:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'ATC Battery-Voltage'
|
2021-07-22 05:21:08 +02:00
|
|
|
- platform: pvvx_mithermometer
|
|
|
|
mac_address: 'A4:C1:38:4E:16:78'
|
|
|
|
temperature:
|
|
|
|
name: 'PVVX Temperature'
|
|
|
|
humidity:
|
|
|
|
name: 'PVVX Humidity'
|
|
|
|
battery_level:
|
|
|
|
name: 'PVVX Battery-Level'
|
|
|
|
battery_voltage:
|
|
|
|
name: 'PVVX Battery-Voltage'
|
2021-02-06 05:04:47 +01:00
|
|
|
- platform: inkbird_ibsth1_mini
|
|
|
|
mac_address: 38:81:D7:0A:9C:11
|
|
|
|
temperature:
|
2021-04-09 03:40:19 +02:00
|
|
|
name: 'Inkbird IBS-TH1 Temperature'
|
2021-02-06 05:04:47 +01:00
|
|
|
humidity:
|
2021-04-09 03:40:19 +02:00
|
|
|
name: 'Inkbird IBS-TH1 Humidity'
|
2021-02-06 05:04:47 +01:00
|
|
|
battery_level:
|
2021-04-09 03:40:19 +02:00
|
|
|
name: 'Inkbird IBS-TH1 Battery Level'
|
2022-04-12 06:19:16 +02:00
|
|
|
- platform: xiaomi_rtcgq02lm
|
|
|
|
id: motion_rtcgq02lm
|
|
|
|
battery_level:
|
|
|
|
name: 'Mi Motion Sensor 2 Battery level'
|
2021-09-22 13:24:19 +02:00
|
|
|
- platform: ltr390
|
|
|
|
uv:
|
|
|
|
name: "LTR390 UV"
|
|
|
|
uv_index:
|
|
|
|
name: "LTR390 UVI"
|
|
|
|
light:
|
|
|
|
name: "LTR390 Light"
|
|
|
|
ambient_light:
|
|
|
|
name: "LTR390 ALS"
|
|
|
|
gain: "X3"
|
|
|
|
resolution: 18
|
|
|
|
window_correction_factor: 1.0
|
|
|
|
address: 0x53
|
|
|
|
update_interval: 60s
|
2021-04-09 03:40:19 +02:00
|
|
|
- platform: sgp40
|
|
|
|
name: 'Workshop VOC'
|
|
|
|
update_interval: 5s
|
|
|
|
store_baseline: 'true'
|
|
|
|
- platform: mcp3008
|
|
|
|
update_interval: 5s
|
|
|
|
mcp3008_id: 'mcp3008_hub'
|
|
|
|
id: freezer_temp_source
|
|
|
|
reference_voltage: 3.19
|
|
|
|
number: 0
|
2021-08-31 04:00:30 +02:00
|
|
|
- platform: airthings_wave_plus
|
|
|
|
ble_client_id: airthings01
|
|
|
|
update_interval: 5min
|
|
|
|
temperature:
|
|
|
|
name: "Wave Plus Temperature"
|
|
|
|
radon:
|
|
|
|
name: "Wave Plus Radon"
|
|
|
|
radon_long_term:
|
|
|
|
name: "Wave Plus Radon Long Term"
|
|
|
|
pressure:
|
|
|
|
name: "Wave Plus Pressure"
|
|
|
|
humidity:
|
|
|
|
name: "Wave Plus Humidity"
|
|
|
|
co2:
|
|
|
|
name: "Wave Plus CO2"
|
|
|
|
tvoc:
|
|
|
|
name: "Wave Plus VOC"
|
2021-10-05 00:56:34 +02:00
|
|
|
- platform: airthings_wave_mini
|
|
|
|
ble_client_id: airthingsmini01
|
|
|
|
update_interval: 5min
|
|
|
|
temperature:
|
|
|
|
name: "Wave Mini Temperature"
|
|
|
|
humidity:
|
|
|
|
name: "Wave Mini Humidity"
|
|
|
|
pressure:
|
|
|
|
name: "Wave Mini Pressure"
|
|
|
|
tvoc:
|
|
|
|
name: "Wave Mini VOC"
|
2021-12-31 10:08:49 +01:00
|
|
|
- platform: ina260
|
|
|
|
address: 0x40
|
|
|
|
current:
|
|
|
|
name: "INA260 Current"
|
|
|
|
power:
|
|
|
|
name: "INA260 Power"
|
|
|
|
bus_voltage:
|
|
|
|
name: "INA260 Voltage"
|
|
|
|
update_interval: 60s
|
2022-02-08 04:32:37 +01:00
|
|
|
- platform: radon_eye_rd200
|
|
|
|
ble_client_id: radon_eye_ble_id
|
|
|
|
update_interval: 10min
|
|
|
|
radon:
|
|
|
|
name: "RD200 Radon"
|
|
|
|
radon_long_term:
|
|
|
|
name: "RD200 Radon Long Term"
|
2022-02-28 23:30:33 +01:00
|
|
|
- platform: mopeka_pro_check
|
|
|
|
mac_address: D3:75:F2:DC:16:91
|
|
|
|
tank_type: CUSTOM
|
|
|
|
custom_distance_full: 40cm
|
|
|
|
custom_distance_empty: 10mm
|
|
|
|
temperature:
|
|
|
|
name: "Propane test temp"
|
|
|
|
level:
|
|
|
|
name: "Propane test level"
|
|
|
|
distance:
|
|
|
|
name: "Propane test distance"
|
|
|
|
battery_level:
|
|
|
|
name: "Propane test battery level"
|
2021-08-31 04:00:30 +02:00
|
|
|
|
2019-01-06 19:03:34 +01:00
|
|
|
time:
|
2020-11-20 03:59:19 +01:00
|
|
|
- platform: homeassistant
|
|
|
|
on_time:
|
|
|
|
- at: '16:00:00'
|
|
|
|
then:
|
|
|
|
- logger.log: It's 16:00
|
2019-01-05 19:52:01 +01:00
|
|
|
|
2018-09-26 18:39:41 +02:00
|
|
|
esp32_touch:
|
|
|
|
setup_mode: True
|
|
|
|
|
|
|
|
binary_sensor:
|
2020-05-27 00:33:28 +02:00
|
|
|
- platform: homeassistant
|
|
|
|
entity_id: binary_sensor.hello_world
|
|
|
|
id: ha_hello_world_binary
|
2021-05-17 01:16:22 +02:00
|
|
|
- platform: homeassistant
|
|
|
|
entity_id: binary_sensor.hello
|
|
|
|
attribute: world
|
|
|
|
id: ha_hello_world_binary_attribute
|
2019-04-17 12:06:00 +02:00
|
|
|
- platform: ble_presence
|
2018-09-26 18:39:41 +02:00
|
|
|
mac_address: AC:37:43:77:5F:4C
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'ESP32 BLE Tracker Google Home Mini'
|
2019-10-31 15:34:19 +01:00
|
|
|
- platform: ble_presence
|
|
|
|
service_uuid: '11aa'
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'BLE Test Service 16 Presence'
|
2019-10-31 15:34:19 +01:00
|
|
|
- platform: ble_presence
|
|
|
|
service_uuid: '11223344'
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'BLE Test Service 32 Presence'
|
2019-10-31 15:34:19 +01:00
|
|
|
- platform: ble_presence
|
|
|
|
service_uuid: '11223344-5566-7788-99aa-bbccddeeff00'
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'BLE Test Service 128 Presence'
|
2021-09-02 01:46:15 +02:00
|
|
|
- platform: ble_presence
|
|
|
|
ibeacon_uuid: '11223344-5566-7788-99aa-bbccddeeff00'
|
|
|
|
ibeacon_major: 100
|
|
|
|
ibeacon_minor: 1
|
|
|
|
name: 'BLE Test iBeacon Presence'
|
2018-09-26 18:39:41 +02:00
|
|
|
- platform: esp32_touch
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'ESP32 Touch Pad GPIO27'
|
2018-09-26 18:39:41 +02:00
|
|
|
pin: GPIO27
|
|
|
|
threshold: 1000
|
2019-10-12 17:03:01 +02:00
|
|
|
- platform: as3935
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'Storm Alert'
|
2020-05-27 00:33:28 +02:00
|
|
|
- platform: xiaomi_mue4094rt
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'MUE4094RT Motion'
|
|
|
|
mac_address: '7A:80:8E:19:36:BA'
|
|
|
|
timeout: '5s'
|
2020-05-27 00:33:28 +02:00
|
|
|
- platform: xiaomi_mjyd02yla
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'MJYD02YL-A Motion'
|
|
|
|
mac_address: '50:EC:50:CD:32:02'
|
|
|
|
bindkey: '48403ebe2d385db8d0c187f81e62cb64'
|
2020-05-27 00:33:28 +02:00
|
|
|
idle_time:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'MJYD02YL-A Idle Time'
|
2020-05-27 00:33:28 +02:00
|
|
|
light:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'MJYD02YL-A Light Status'
|
2020-05-27 00:33:28 +02:00
|
|
|
battery_level:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'MJYD02YL-A Battery Level'
|
2020-05-27 00:33:28 +02:00
|
|
|
- platform: xiaomi_wx08zm
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'WX08ZM Activation State'
|
|
|
|
mac_address: '74:a3:4a:b5:07:34'
|
2020-05-27 00:33:28 +02:00
|
|
|
tablet:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'WX08ZM Tablet Resource'
|
2020-05-27 00:33:28 +02:00
|
|
|
battery_level:
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'WX08ZM Battery Level'
|
2021-08-10 07:06:04 +02:00
|
|
|
- platform: xiaomi_cgpr1
|
|
|
|
name: 'CGPR1 Motion'
|
|
|
|
mac_address: '12:34:56:12:34:56'
|
|
|
|
bindkey: '48403ebe2d385db8d0c187f81e62cb64'
|
|
|
|
battery_level:
|
|
|
|
name: 'CGPR1 battery Level'
|
|
|
|
idle_time:
|
|
|
|
name: 'CGPR1 Idle Time'
|
|
|
|
illuminance:
|
|
|
|
name: 'CGPR1 Illuminance'
|
2022-04-12 06:19:16 +02:00
|
|
|
- platform: xiaomi_rtcgq02lm
|
|
|
|
id: motion_rtcgq02lm
|
|
|
|
motion:
|
|
|
|
name: 'Mi Motion Sensor 2'
|
|
|
|
light:
|
|
|
|
name: 'Mi Motion Sensor 2 Light'
|
|
|
|
button:
|
|
|
|
name: 'Mi Motion Sensor 2 Button'
|
2018-09-26 18:39:41 +02:00
|
|
|
|
|
|
|
esp32_ble_tracker:
|
2020-04-28 01:57:02 +02:00
|
|
|
on_ble_advertise:
|
|
|
|
- mac_address: AC:37:43:77:5F:4C
|
|
|
|
then:
|
|
|
|
- lambda: !lambda |-
|
|
|
|
ESP_LOGD("main", "The device address is %s", x.address_str().c_str());
|
|
|
|
- then:
|
|
|
|
- lambda: !lambda |-
|
|
|
|
ESP_LOGD("main", "The device address is %s", x.address_str().c_str());
|
|
|
|
on_ble_service_data_advertise:
|
|
|
|
- service_uuid: ABCD
|
|
|
|
then:
|
|
|
|
- lambda: !lambda |-
|
|
|
|
ESP_LOGD("main", "Length of service data is %i", x.size());
|
|
|
|
on_ble_manufacturer_data_advertise:
|
|
|
|
- manufacturer_id: ABCD
|
|
|
|
then:
|
|
|
|
- lambda: !lambda |-
|
|
|
|
ESP_LOGD("main", "Length of manufacturer data is %i", x.size());
|
|
|
|
|
2021-08-31 04:00:30 +02:00
|
|
|
ble_client:
|
|
|
|
- mac_address: 01:02:03:04:05:06
|
|
|
|
id: airthings01
|
2021-10-05 00:56:34 +02:00
|
|
|
- mac_address: 01:02:03:04:05:06
|
|
|
|
id: airthingsmini01
|
2022-02-08 04:32:37 +01:00
|
|
|
- mac_address: 01:02:03:04:05:06
|
|
|
|
id: radon_eye_ble_id
|
2021-10-05 00:56:34 +02:00
|
|
|
|
2021-09-20 11:47:51 +02:00
|
|
|
|
2021-08-31 04:00:30 +02:00
|
|
|
airthings_ble:
|
|
|
|
|
2022-02-08 04:32:37 +01:00
|
|
|
radon_eye_ble:
|
|
|
|
|
2021-10-27 22:16:12 +02:00
|
|
|
ruuvi_ble:
|
|
|
|
|
|
|
|
xiaomi_ble:
|
|
|
|
|
2022-02-28 23:30:33 +01:00
|
|
|
mopeka_ble:
|
2021-10-27 22:16:12 +02:00
|
|
|
|
2022-04-12 06:19:16 +02:00
|
|
|
xiaomi_rtcgq02lm:
|
|
|
|
- id: motion_rtcgq02lm
|
|
|
|
mac_address: 01:02:03:04:05:06
|
|
|
|
bindkey: '48403ebe2d385db8d0c187f81e62cb64'
|
|
|
|
|
2019-03-17 16:04:49 +01:00
|
|
|
#esp32_ble_beacon:
|
|
|
|
# type: iBeacon
|
|
|
|
# uuid: 'c29ce823-e67a-4e71-bff2-abaa32e77a98'
|
2018-09-26 18:39:41 +02:00
|
|
|
|
|
|
|
status_led:
|
|
|
|
pin: GPIO2
|
2018-10-17 21:24:02 +02:00
|
|
|
|
|
|
|
text_sensor:
|
|
|
|
- platform: version
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'ESPHome Version'
|
2018-10-17 21:24:02 +02:00
|
|
|
icon: mdi:icon
|
|
|
|
id: version_sensor
|
|
|
|
on_value:
|
2019-03-03 16:45:56 +01:00
|
|
|
- if:
|
|
|
|
condition:
|
|
|
|
- api.connected:
|
|
|
|
then:
|
2020-11-20 03:59:19 +01:00
|
|
|
- lambda: !lambda |-
|
|
|
|
ESP_LOGD("main", "The state is %s=%s", x.c_str(), id(version_sensor).state.c_str());
|
2018-10-20 12:58:02 +02:00
|
|
|
- script.execute: my_script
|
2019-01-14 11:09:32 +01:00
|
|
|
- homeassistant.service:
|
|
|
|
service: notify.html5
|
|
|
|
data:
|
|
|
|
title: New Humidity
|
|
|
|
data_template:
|
|
|
|
message: The humidity is {{ my_variable }}%.
|
|
|
|
variables:
|
|
|
|
my_variable: |-
|
|
|
|
return id(version_sensor).state;
|
2019-04-17 12:06:00 +02:00
|
|
|
my_variable_str: |-
|
|
|
|
return "Hello World";
|
2019-04-22 21:56:30 +02:00
|
|
|
- homeassistant.service:
|
|
|
|
service: light.turn_on
|
|
|
|
data:
|
|
|
|
entity_id: light.my_light
|
2020-09-16 12:29:20 +02:00
|
|
|
- homeassistant.tag_scanned:
|
|
|
|
tag: 1234-abcd
|
|
|
|
- homeassistant.tag_scanned: 1234-abcd
|
2021-02-15 18:32:22 +01:00
|
|
|
- deep_sleep.enter:
|
|
|
|
sleep_duration: 30min
|
2021-05-11 17:36:14 +02:00
|
|
|
- deep_sleep.enter:
|
|
|
|
sleep_duration: !lambda "return 30 * 60 * 1000;"
|
2018-10-17 21:24:02 +02:00
|
|
|
- platform: template
|
2020-11-20 03:59:19 +01:00
|
|
|
name: 'Template Text Sensor'
|
2018-10-17 21:24:02 +02:00
|
|
|
lambda: |-
|
|
|
|
return {"Hello World"};
|
2021-11-25 21:35:33 +01:00
|
|
|
filters:
|
|
|
|
- to_upper:
|
|
|
|
- to_lower:
|
|
|
|
- append: "xyz"
|
|
|
|
- prepend: "abcd"
|
|
|
|
- substitute:
|
|
|
|
- Hello -> Goodbye
|
|
|
|
- map:
|
|
|
|
- red -> green
|
|
|
|
- lambda: return {"1234"};
|
2019-01-06 19:03:34 +01:00
|
|
|
- platform: homeassistant
|
|
|
|
entity_id: sensor.hello_world2
|
|
|
|
id: ha_hello_world2
|
2021-05-17 01:16:22 +02:00
|
|
|
- platform: homeassistant
|
|
|
|
entity_id: sensor.hello_world3
|
|
|
|
id: ha_hello_world3
|
|
|
|
attribute: some_attribute
|
2020-05-20 02:13:50 +02:00
|
|
|
- platform: ble_scanner
|
|
|
|
name: Scanner
|
2018-10-20 12:58:02 +02:00
|
|
|
|
|
|
|
script:
|
|
|
|
- id: my_script
|
2020-08-06 17:08:48 +02:00
|
|
|
mode: single
|
|
|
|
then:
|
|
|
|
- lambda: 'ESP_LOGD("main", "Hello World!");'
|
|
|
|
- id: my_script_queued
|
|
|
|
mode: queued
|
|
|
|
max_runs: 2
|
|
|
|
then:
|
|
|
|
- lambda: 'ESP_LOGD("main", "Hello World!");'
|
|
|
|
- id: my_script_parallel
|
|
|
|
mode: parallel
|
|
|
|
max_runs: 2
|
|
|
|
then:
|
|
|
|
- lambda: 'ESP_LOGD("main", "Hello World!");'
|
|
|
|
- id: my_script_restart
|
|
|
|
mode: restart
|
2018-10-20 12:58:02 +02:00
|
|
|
then:
|
|
|
|
- lambda: 'ESP_LOGD("main", "Hello World!");'
|
2019-01-06 19:03:34 +01:00
|
|
|
|
|
|
|
stepper:
|
|
|
|
- platform: uln2003
|
|
|
|
id: my_stepper
|
|
|
|
pin_a: GPIO23
|
2019-12-04 16:47:34 +01:00
|
|
|
pin_b: GPIO27
|
2019-01-06 19:03:34 +01:00
|
|
|
pin_c: GPIO25
|
|
|
|
pin_d: GPIO26
|
|
|
|
sleep_when_done: no
|
|
|
|
step_mode: HALF_STEP
|
|
|
|
max_speed: 250 steps/s
|
|
|
|
|
|
|
|
# Optional:
|
|
|
|
acceleration: inf
|
|
|
|
deceleration: inf
|
2019-01-09 15:18:54 +01:00
|
|
|
|
|
|
|
interval:
|
|
|
|
interval: 5s
|
|
|
|
then:
|
2020-11-20 03:59:19 +01:00
|
|
|
- logger.log: 'Interval Run'
|
2019-05-26 10:28:46 +02:00
|
|
|
|
|
|
|
display:
|
2021-08-31 04:00:30 +02:00
|
|
|
|
2021-11-10 18:52:49 +01:00
|
|
|
cap1188:
|
|
|
|
id: cap1188_component
|
|
|
|
address: 0x29
|
|
|
|
touch_threshold: 0x20
|
|
|
|
allow_multiple_touches: true
|
|
|
|
reset_pin: 14
|