esphome/tests/test2.yaml

797 lines
20 KiB
YAML
Raw Normal View History

2022-09-06 05:48:01 +02:00
---
esphome:
[Huge] Util Refactor, Dashboard Improvements, Hass.io Auth API, Better Validation Errors, Conditions, Custom Platforms, Substitutions (#234) * Implement custom sensor platform * Update * Ethernet * Lint * Fix * Login page * Rename cookie secret * Update manifest * Update cookie check logic * Favicon * Fix * Favicon manifest * Fix * Fix * Fix * Use hostname * Message * Temporary commit for screenshot * Automatic board selection * Undo temporary commit * Update esphomeyaml-edge * In-dashboard editing and hosting files locally * Update esphomeyaml-edge * Better ANSI color escaping * Message * Lint * Download Efficiency * Fix gitlab * Fix * Rename extra_libraries to libraries * Add example * Update README.md * Update README.md * Update README.md * HassIO -> Hass.io * Updates * Add update available notice * Update * Fix substitutions * Better error message * Re-do dashboard ANSI colors * Only include FastLED if user says so * Autoscroll logs * Remove old checks * Use safer RedirectText * Improvements * Fix * Use enviornment variable * Use http://hassio/host/info * Fix conditions * Update platformio versions * Revert "Use enviornment variable" This reverts commit 7f038eb5d26df72f76ea9ae76774e2cec1fd7f59. * Fix * README update * Temp * Better invalid config messages * Platformio debug * Improve error messages * Debug * Remove debug * Multi Conf * Update * Better paths * Remove unused * Fixes * Lint * lib_ignore * Try fix platformio colors * Fix dashboard scrolling * Revert * Lint * Revert
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
globals:
- id: my_global_string
type: std::string
restore_value: yes
max_restore_data_length: 70
initial_value: '"DefaultValue"'
[Huge] Util Refactor, Dashboard Improvements, Hass.io Auth API, Better Validation Errors, Conditions, Custom Platforms, Substitutions (#234) * Implement custom sensor platform * Update * Ethernet * Lint * Fix * Login page * Rename cookie secret * Update manifest * Update cookie check logic * Favicon * Fix * Favicon manifest * Fix * Fix * Fix * Use hostname * Message * Temporary commit for screenshot * Automatic board selection * Undo temporary commit * Update esphomeyaml-edge * In-dashboard editing and hosting files locally * Update esphomeyaml-edge * Better ANSI color escaping * Message * Lint * Download Efficiency * Fix gitlab * Fix * Rename extra_libraries to libraries * Add example * Update README.md * Update README.md * Update README.md * HassIO -> Hass.io * Updates * Add update available notice * Update * Fix substitutions * Better error message * Re-do dashboard ANSI colors * Only include FastLED if user says so * Autoscroll logs * Remove old checks * Use safer RedirectText * Improvements * Fix * Use enviornment variable * Use http://hassio/host/info * Fix conditions * Update platformio versions * Revert "Use enviornment variable" This reverts commit 7f038eb5d26df72f76ea9ae76774e2cec1fd7f59. * Fix * README update * Temp * Better invalid config messages * Platformio debug * Improve error messages * Debug * Remove debug * Multi Conf * Update * Better paths * Remove unused * Fixes * Lint * lib_ignore * Try fix platformio colors * Fix dashboard scrolling * Revert * Lint * Revert
2018-12-05 21:22:06 +01:00
substitutions:
devicename: test2
ethernet:
type: LAN8720
mdc_pin: GPIO23
mdio_pin: GPIO25
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
network:
enable_ipv6: true
ESP-IDF support and generic target platforms (#2303) * Socket refactor and SSL * esp-idf temp * Fixes * Echo component and noise * Add noise API transport support * Updates * ESP-IDF * Complete * Fixes * Fixes * Versions update * New i2c APIs * Complete i2c refactor * SPI migration * Revert ESP Preferences migration, too complex for now * OTA support * Remove echo again * Remove ssl again * GPIOFlags updates * Rename esphal and ICACHE_RAM_ATTR * Make ESP32 arduino compilable again * Fix GPIO flags * Complete pin registry refactor and fixes * Fixes to make test1 compile * Remove sdkconfig file * Ignore sdkconfig file * Fixes in reviewing * Make test2 compile * Make test4 compile * Make test5 compile * Run clang-format * Fix lint errors * Use esp-idf APIs instead of btStart * Another round of fixes * Start implementing ESP8266 * Make test3 compile * Guard esp8266 code * Lint * Reformat * Fixes * Fixes v2 * more fixes * ESP-IDF tidy target * Convert ARDUINO_ARCH_ESPxx * Update WiFiSignalSensor * Update time ifdefs * OTA needs millis from hal * RestartSwitch needs delay from hal * ESP-IDF Uart * Fix OTA blank password * Allow setting sdkconfig * Fix idf partitions and allow setting sdkconfig from yaml * Re-add read/write compat APIs and fix esp8266 uart * Fix esp8266 store log strings in flash * Fix ESP32 arduino preferences not initialized * Update ifdefs * Change how sdkconfig change is detected * Add checks to ci-custom and fix them * Run clang-format * Add esp-idf clang-tidy target and fix errors * Fixes from clang-tidy idf round 2 * Fixes from compiling tests with esp-idf * Run clang-format * Switch test5.yaml to esp-idf * Implement ESP8266 Preferences * Lint * Re-do PIO package version selection a bit * Fix arduinoespressif32 package version * Fix unit tests * Lint * Lint fixes * Fix readv/writev not defined * Fix graphing component * Re-add all old options from core/config.py Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
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
2022-09-06 05:48:01 +02:00
scan: false
2018-09-26 18:39:41 +02:00
spi:
clk_pin: GPIO21
mosi_pin: GPIO22
miso_pin: GPIO23
uart:
tx_pin: GPIO22
rx_pin: GPIO23
baud_rate: 115200
# 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:
2022-09-06 05:48:01 +02:00
safe_mode: true
2018-09-26 18:39:41 +02:00
port: 3286
2020-12-01 23:41:39 +01:00
num_attempts: 15
2018-09-26 18:39:41 +02:00
logger:
level: DEBUG
debug:
deep_sleep:
run_duration:
default: 20s
gpio_wakeup_reason: 10s
touch_wakeup_reason: 15s
sleep_duration: 50s
2022-02-19 15:13:48 +01:00
wakeup_pin: GPIO2
wakeup_pin_mode: INVERT_WAKEUP
as3935_i2c:
irq_pin: GPIO12
mcp3008:
2022-09-06 05:48:01 +02:00
- 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:
- platform: homeassistant
entity_id: sensor.hello_world
id: ha_hello_world
- 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
2022-09-06 05:48:01 +02:00
name: BLE Google Home Mini RSSI value
- platform: ble_rssi
2022-09-06 05:48:01 +02:00
service_uuid: 11aa
name: BLE Test Service 16
- platform: ble_rssi
2022-09-06 05:48:01 +02:00
service_uuid: "11223344"
name: BLE Test Service 32
- platform: ble_rssi
2022-09-06 05:48:01 +02:00
service_uuid: 11223344-5566-7788-99aa-bbccddeeff00
name: BLE Test Service 128
- platform: ble_rssi
2022-09-06 05:48:01 +02:00
service_uuid: 11223344-5566-7788-99aa-bbccddeeff00
name: BLE Test iBeacon UUID
- platform: b_parasite
mac_address: F0:CA:F0:CA:01:01
humidity:
2022-09-06 05:48:01 +02:00
name: b-parasite Air Humidity
temperature:
2022-09-06 05:48:01 +02:00
name: b-parasite Air Temperature
moisture:
2022-09-06 05:48:01 +02:00
name: b-parasite Soil Moisture
battery_voltage:
2022-09-06 05:48:01 +02:00
name: b-parasite Battery Voltage
illuminance:
2022-09-06 05:48:01 +02:00
name: b-parasite Illuminance
- platform: senseair
id: senseair0
co2:
2022-09-06 05:48:01 +02:00
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
- platform: ruuvitag
mac_address: FF:56:D3:2F:7D:E8
humidity:
2022-09-06 05:48:01 +02:00
name: RuuviTag Humidity
temperature:
2022-09-06 05:48:01 +02:00
name: RuuviTag Temperature
pressure:
2022-09-06 05:48:01 +02:00
name: RuuviTag Pressure
acceleration_x:
2022-09-06 05:48:01 +02:00
name: RuuviTag Acceleration X
acceleration_y:
2022-09-06 05:48:01 +02:00
name: RuuviTag Acceleration Y
acceleration_z:
2022-09-06 05:48:01 +02:00
name: RuuviTag Acceleration Z
battery_voltage:
2022-09-06 05:48:01 +02:00
name: RuuviTag Battery Voltage
tx_power:
2022-09-06 05:48:01 +02:00
name: RuuviTag TX Power
movement_counter:
2022-09-06 05:48:01 +02:00
name: RuuviTag Movement Counter
measurement_sequence_number:
2022-09-06 05:48:01 +02:00
name: RuuviTag Measurement Sequence Number
- platform: as3935
lightning_energy:
2022-09-06 05:48:01 +02:00
name: Lightning Energy
distance:
2022-09-06 05:48:01 +02:00
name: Distance Storm
- platform: xiaomi_hhccjcy01
2018-09-26 18:39:41 +02:00
mac_address: 94:2B:FF:5C:91:61
temperature:
2022-09-06 05:48:01 +02:00
name: Xiaomi HHCCJCY01 Temperature
2018-09-26 18:39:41 +02:00
moisture:
2022-09-06 05:48:01 +02:00
name: Xiaomi HHCCJCY01 Moisture
2018-09-26 18:39:41 +02:00
illuminance:
2022-09-06 05:48:01 +02:00
name: Xiaomi HHCCJCY01 Illuminance
2018-09-26 18:39:41 +02:00
conductivity:
2022-09-06 05:48:01 +02:00
name: Xiaomi HHCCJCY01 Soil Conductivity
battery_level:
2022-09-06 05:48:01 +02:00
name: Xiaomi HHCCJCY01 Battery Level
- platform: xiaomi_lywsdcgq
2018-09-26 18:39:41 +02:00
mac_address: 7A:80:8E:19:36:BA
temperature:
2022-09-06 05:48:01 +02:00
name: Xiaomi LYWSDCGQ Temperature
2018-09-26 18:39:41 +02:00
humidity:
2022-09-06 05:48:01 +02:00
name: Xiaomi LYWSDCGQ Humidity
2018-09-26 18:39:41 +02:00
battery_level:
2022-09-06 05:48:01 +02:00
name: Xiaomi LYWSDCGQ Battery Level
- platform: xiaomi_lywsd02
mac_address: 3F:5B:7D:82:58:4E
temperature:
2022-09-06 05:48:01 +02:00
name: Xiaomi LYWSD02 Temperature
humidity:
2022-09-06 05:48:01 +02:00
name: Xiaomi LYWSD02 Humidity
battery_level:
2022-09-06 05:48:01 +02:00
name: Xiaomi LYWSD02 Battery Level
- platform: xiaomi_cgg1
mac_address: 7A:80:8E:19:36:BA
temperature:
2022-09-06 05:48:01 +02:00
name: Xiaomi CGG1 Temperature
humidity:
2022-09-06 05:48:01 +02:00
name: Xiaomi CGG1 Humidity
battery_level:
2022-09-06 05:48:01 +02:00
name: Xiaomi CGG1 Battery Level
- platform: xiaomi_gcls002
2022-09-06 05:48:01 +02:00
mac_address: 94:2B:FF:5C:91:61
temperature:
2022-09-06 05:48:01 +02:00
name: GCLS02 Temperature
moisture:
2022-09-06 05:48:01 +02:00
name: GCLS02 Moisture
conductivity:
2022-09-06 05:48:01 +02:00
name: GCLS02 Soil Conductivity
illuminance:
2022-09-06 05:48:01 +02:00
name: GCLS02 Illuminance
- platform: xiaomi_hhccpot002
2022-09-06 05:48:01 +02:00
mac_address: 94:2B:FF:5C:91:61
moisture:
2022-09-06 05:48:01 +02:00
name: HHCCPOT002 Moisture
conductivity:
2022-09-06 05:48:01 +02:00
name: HHCCPOT002 Soil Conductivity
- platform: xiaomi_lywsd03mmc
2022-09-06 05:48:01 +02:00
mac_address: A4:C1:38:4E:16:78
bindkey: e9efaa6873f9f9c87a5e75a5f814801c
temperature:
2022-09-06 05:48:01 +02:00
name: Xiaomi LYWSD03MMC Temperature
humidity:
2022-09-06 05:48:01 +02:00
name: Xiaomi LYWSD03MMC Humidity
battery_level:
2022-09-06 05:48:01 +02:00
name: Xiaomi LYWSD03MMC Battery Level
- platform: xiaomi_cgd1
2022-09-06 05:48:01 +02:00
mac_address: A4:C1:38:D1:61:7D
bindkey: c99d2313182473b38001086febf781bd
temperature:
2022-09-06 05:48:01 +02:00
name: Xiaomi CGD1 Temperature
humidity:
2022-09-06 05:48:01 +02:00
name: Xiaomi CGD1 Humidity
battery_level:
2022-09-06 05:48:01 +02:00
name: Xiaomi CGD1 Battery Level
- platform: xiaomi_jqjcy01ym
2022-09-06 05:48:01 +02:00
mac_address: 7A:80:8E:19:36:BA
temperature:
2022-09-06 05:48:01 +02:00
name: JQJCY01YM Temperature
humidity:
2022-09-06 05:48:01 +02:00
name: JQJCY01YM Humidity
formaldehyde:
2022-09-06 05:48:01 +02:00
name: JQJCY01YM Formaldehyde
battery_level:
2022-09-06 05:48:01 +02:00
name: JQJCY01YM Battery Level
- platform: xiaomi_mhoc303
2022-09-06 05:48:01 +02:00
mac_address: E7:50:59:32:A0:1C
temperature:
2022-09-06 05:48:01 +02:00
name: MHO-C303 Temperature
humidity:
2022-09-06 05:48:01 +02:00
name: MHO-C303 Humidity
battery_level:
2022-09-06 05:48:01 +02:00
name: MHO-C303 Battery Level
Add support for ATC_MiThermometer (#1291) * Add support for additional Xiaomi BLE sensors (#1027) * Revert "Add support for additional Xiaomi BLE sensors (#1027)" This reverts commit b2723830f4ed1e29611e3688a2c9323c1071bc23. * initial ATC Mithermometer component * removed references to xiaomi_ble * temp, humi and batt in % working, todo: battery in mV * report battery level in volt * report battery level again in percent * Add files via upload * add ATC Mithermometer component * remove some comments * fix travis ci build issues * mark codeowner, make functions protected * add newlines, remove spaces * two lines after function or class definition * update codeowners * Bump flake8 from 3.8.3 to 3.8.4 Bumps [flake8](https://gitlab.com/pycqa/flake8) from 3.8.3 to 3.8.4. - [Release notes](https://gitlab.com/pycqa/flake8/tags) - [Commits](https://gitlab.com/pycqa/flake8/compare/3.8.3...3.8.4) Signed-off-by: dependabot[bot] <support@github.com> * Add files via upload * Bump pytest from 6.0.2 to 6.1.1 Bumps [pytest](https://github.com/pytest-dev/pytest) from 6.0.2 to 6.1.1. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/6.0.2...6.1.1) Signed-off-by: dependabot[bot] <support@github.com> * add ATC battery voltage to test2.yaml * fix lint-python * Bump colorlog from 4.2.1 to 4.4.0 Bumps [colorlog](https://github.com/borntyping/python-colorlog) from 4.2.1 to 4.4.0. - [Release notes](https://github.com/borntyping/python-colorlog/releases) - [Commits](https://github.com/borntyping/python-colorlog/compare/v4.2.1...v4.4.0) Signed-off-by: dependabot[bot] <support@github.com> * Bump voluptuous from 0.11.7 to 0.12.0 Bumps [voluptuous](https://github.com/alecthomas/voluptuous) from 0.11.7 to 0.12.0. - [Release notes](https://github.com/alecthomas/voluptuous/releases) - [Changelog](https://github.com/alecthomas/voluptuous/blob/master/CHANGELOG.md) - [Commits](https://github.com/alecthomas/voluptuous/commits/v0.12.0) Signed-off-by: dependabot[bot] <support@github.com> * restore requirements * move codeowner above dependencies * Revert "restore requirements" This reverts commit 3c9fd8b42183ff251c68404ae5e75d72ded00006. * Revert "Bump voluptuous from 0.11.7 to 0.12.0" This reverts commit 8eb0dba1c3f2fdcad28f6970381021a04a4051e7. * Revert "Bump flake8 from 3.8.3 to 3.8.4" This reverts commit 20952632dba032f70b97c86cac5daa84521c1840. * Revert "Bump colorlog from 4.2.1 to 4.4.0" This reverts commit 87bbf95d860a3213e5c9a909cbf6325f00e9094e. * Revert "Bump pytest from 6.0.2 to 6.1.1" This reverts commit 1b6ed8043137d8e8f38de32824cfa113dbc5a0ec. Co-authored-by: vevsvevs <v-v@mail.ru> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-03 18:36:11 +01:00
- platform: atc_mithermometer
2022-09-06 05:48:01 +02:00
mac_address: A4:C1:38:4E:16:78
Add support for ATC_MiThermometer (#1291) * Add support for additional Xiaomi BLE sensors (#1027) * Revert "Add support for additional Xiaomi BLE sensors (#1027)" This reverts commit b2723830f4ed1e29611e3688a2c9323c1071bc23. * initial ATC Mithermometer component * removed references to xiaomi_ble * temp, humi and batt in % working, todo: battery in mV * report battery level in volt * report battery level again in percent * Add files via upload * add ATC Mithermometer component * remove some comments * fix travis ci build issues * mark codeowner, make functions protected * add newlines, remove spaces * two lines after function or class definition * update codeowners * Bump flake8 from 3.8.3 to 3.8.4 Bumps [flake8](https://gitlab.com/pycqa/flake8) from 3.8.3 to 3.8.4. - [Release notes](https://gitlab.com/pycqa/flake8/tags) - [Commits](https://gitlab.com/pycqa/flake8/compare/3.8.3...3.8.4) Signed-off-by: dependabot[bot] <support@github.com> * Add files via upload * Bump pytest from 6.0.2 to 6.1.1 Bumps [pytest](https://github.com/pytest-dev/pytest) from 6.0.2 to 6.1.1. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/6.0.2...6.1.1) Signed-off-by: dependabot[bot] <support@github.com> * add ATC battery voltage to test2.yaml * fix lint-python * Bump colorlog from 4.2.1 to 4.4.0 Bumps [colorlog](https://github.com/borntyping/python-colorlog) from 4.2.1 to 4.4.0. - [Release notes](https://github.com/borntyping/python-colorlog/releases) - [Commits](https://github.com/borntyping/python-colorlog/compare/v4.2.1...v4.4.0) Signed-off-by: dependabot[bot] <support@github.com> * Bump voluptuous from 0.11.7 to 0.12.0 Bumps [voluptuous](https://github.com/alecthomas/voluptuous) from 0.11.7 to 0.12.0. - [Release notes](https://github.com/alecthomas/voluptuous/releases) - [Changelog](https://github.com/alecthomas/voluptuous/blob/master/CHANGELOG.md) - [Commits](https://github.com/alecthomas/voluptuous/commits/v0.12.0) Signed-off-by: dependabot[bot] <support@github.com> * restore requirements * move codeowner above dependencies * Revert "restore requirements" This reverts commit 3c9fd8b42183ff251c68404ae5e75d72ded00006. * Revert "Bump voluptuous from 0.11.7 to 0.12.0" This reverts commit 8eb0dba1c3f2fdcad28f6970381021a04a4051e7. * Revert "Bump flake8 from 3.8.3 to 3.8.4" This reverts commit 20952632dba032f70b97c86cac5daa84521c1840. * Revert "Bump colorlog from 4.2.1 to 4.4.0" This reverts commit 87bbf95d860a3213e5c9a909cbf6325f00e9094e. * Revert "Bump pytest from 6.0.2 to 6.1.1" This reverts commit 1b6ed8043137d8e8f38de32824cfa113dbc5a0ec. Co-authored-by: vevsvevs <v-v@mail.ru> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-03 18:36:11 +01:00
temperature:
2022-09-06 05:48:01 +02:00
name: ATC Temperature
Add support for ATC_MiThermometer (#1291) * Add support for additional Xiaomi BLE sensors (#1027) * Revert "Add support for additional Xiaomi BLE sensors (#1027)" This reverts commit b2723830f4ed1e29611e3688a2c9323c1071bc23. * initial ATC Mithermometer component * removed references to xiaomi_ble * temp, humi and batt in % working, todo: battery in mV * report battery level in volt * report battery level again in percent * Add files via upload * add ATC Mithermometer component * remove some comments * fix travis ci build issues * mark codeowner, make functions protected * add newlines, remove spaces * two lines after function or class definition * update codeowners * Bump flake8 from 3.8.3 to 3.8.4 Bumps [flake8](https://gitlab.com/pycqa/flake8) from 3.8.3 to 3.8.4. - [Release notes](https://gitlab.com/pycqa/flake8/tags) - [Commits](https://gitlab.com/pycqa/flake8/compare/3.8.3...3.8.4) Signed-off-by: dependabot[bot] <support@github.com> * Add files via upload * Bump pytest from 6.0.2 to 6.1.1 Bumps [pytest](https://github.com/pytest-dev/pytest) from 6.0.2 to 6.1.1. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/6.0.2...6.1.1) Signed-off-by: dependabot[bot] <support@github.com> * add ATC battery voltage to test2.yaml * fix lint-python * Bump colorlog from 4.2.1 to 4.4.0 Bumps [colorlog](https://github.com/borntyping/python-colorlog) from 4.2.1 to 4.4.0. - [Release notes](https://github.com/borntyping/python-colorlog/releases) - [Commits](https://github.com/borntyping/python-colorlog/compare/v4.2.1...v4.4.0) Signed-off-by: dependabot[bot] <support@github.com> * Bump voluptuous from 0.11.7 to 0.12.0 Bumps [voluptuous](https://github.com/alecthomas/voluptuous) from 0.11.7 to 0.12.0. - [Release notes](https://github.com/alecthomas/voluptuous/releases) - [Changelog](https://github.com/alecthomas/voluptuous/blob/master/CHANGELOG.md) - [Commits](https://github.com/alecthomas/voluptuous/commits/v0.12.0) Signed-off-by: dependabot[bot] <support@github.com> * restore requirements * move codeowner above dependencies * Revert "restore requirements" This reverts commit 3c9fd8b42183ff251c68404ae5e75d72ded00006. * Revert "Bump voluptuous from 0.11.7 to 0.12.0" This reverts commit 8eb0dba1c3f2fdcad28f6970381021a04a4051e7. * Revert "Bump flake8 from 3.8.3 to 3.8.4" This reverts commit 20952632dba032f70b97c86cac5daa84521c1840. * Revert "Bump colorlog from 4.2.1 to 4.4.0" This reverts commit 87bbf95d860a3213e5c9a909cbf6325f00e9094e. * Revert "Bump pytest from 6.0.2 to 6.1.1" This reverts commit 1b6ed8043137d8e8f38de32824cfa113dbc5a0ec. Co-authored-by: vevsvevs <v-v@mail.ru> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-03 18:36:11 +01:00
humidity:
2022-09-06 05:48:01 +02:00
name: ATC Humidity
Add support for ATC_MiThermometer (#1291) * Add support for additional Xiaomi BLE sensors (#1027) * Revert "Add support for additional Xiaomi BLE sensors (#1027)" This reverts commit b2723830f4ed1e29611e3688a2c9323c1071bc23. * initial ATC Mithermometer component * removed references to xiaomi_ble * temp, humi and batt in % working, todo: battery in mV * report battery level in volt * report battery level again in percent * Add files via upload * add ATC Mithermometer component * remove some comments * fix travis ci build issues * mark codeowner, make functions protected * add newlines, remove spaces * two lines after function or class definition * update codeowners * Bump flake8 from 3.8.3 to 3.8.4 Bumps [flake8](https://gitlab.com/pycqa/flake8) from 3.8.3 to 3.8.4. - [Release notes](https://gitlab.com/pycqa/flake8/tags) - [Commits](https://gitlab.com/pycqa/flake8/compare/3.8.3...3.8.4) Signed-off-by: dependabot[bot] <support@github.com> * Add files via upload * Bump pytest from 6.0.2 to 6.1.1 Bumps [pytest](https://github.com/pytest-dev/pytest) from 6.0.2 to 6.1.1. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/6.0.2...6.1.1) Signed-off-by: dependabot[bot] <support@github.com> * add ATC battery voltage to test2.yaml * fix lint-python * Bump colorlog from 4.2.1 to 4.4.0 Bumps [colorlog](https://github.com/borntyping/python-colorlog) from 4.2.1 to 4.4.0. - [Release notes](https://github.com/borntyping/python-colorlog/releases) - [Commits](https://github.com/borntyping/python-colorlog/compare/v4.2.1...v4.4.0) Signed-off-by: dependabot[bot] <support@github.com> * Bump voluptuous from 0.11.7 to 0.12.0 Bumps [voluptuous](https://github.com/alecthomas/voluptuous) from 0.11.7 to 0.12.0. - [Release notes](https://github.com/alecthomas/voluptuous/releases) - [Changelog](https://github.com/alecthomas/voluptuous/blob/master/CHANGELOG.md) - [Commits](https://github.com/alecthomas/voluptuous/commits/v0.12.0) Signed-off-by: dependabot[bot] <support@github.com> * restore requirements * move codeowner above dependencies * Revert "restore requirements" This reverts commit 3c9fd8b42183ff251c68404ae5e75d72ded00006. * Revert "Bump voluptuous from 0.11.7 to 0.12.0" This reverts commit 8eb0dba1c3f2fdcad28f6970381021a04a4051e7. * Revert "Bump flake8 from 3.8.3 to 3.8.4" This reverts commit 20952632dba032f70b97c86cac5daa84521c1840. * Revert "Bump colorlog from 4.2.1 to 4.4.0" This reverts commit 87bbf95d860a3213e5c9a909cbf6325f00e9094e. * Revert "Bump pytest from 6.0.2 to 6.1.1" This reverts commit 1b6ed8043137d8e8f38de32824cfa113dbc5a0ec. Co-authored-by: vevsvevs <v-v@mail.ru> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-03 18:36:11 +01:00
battery_level:
2022-09-06 05:48:01 +02:00
name: ATC Battery-Level
Add support for ATC_MiThermometer (#1291) * Add support for additional Xiaomi BLE sensors (#1027) * Revert "Add support for additional Xiaomi BLE sensors (#1027)" This reverts commit b2723830f4ed1e29611e3688a2c9323c1071bc23. * initial ATC Mithermometer component * removed references to xiaomi_ble * temp, humi and batt in % working, todo: battery in mV * report battery level in volt * report battery level again in percent * Add files via upload * add ATC Mithermometer component * remove some comments * fix travis ci build issues * mark codeowner, make functions protected * add newlines, remove spaces * two lines after function or class definition * update codeowners * Bump flake8 from 3.8.3 to 3.8.4 Bumps [flake8](https://gitlab.com/pycqa/flake8) from 3.8.3 to 3.8.4. - [Release notes](https://gitlab.com/pycqa/flake8/tags) - [Commits](https://gitlab.com/pycqa/flake8/compare/3.8.3...3.8.4) Signed-off-by: dependabot[bot] <support@github.com> * Add files via upload * Bump pytest from 6.0.2 to 6.1.1 Bumps [pytest](https://github.com/pytest-dev/pytest) from 6.0.2 to 6.1.1. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/6.0.2...6.1.1) Signed-off-by: dependabot[bot] <support@github.com> * add ATC battery voltage to test2.yaml * fix lint-python * Bump colorlog from 4.2.1 to 4.4.0 Bumps [colorlog](https://github.com/borntyping/python-colorlog) from 4.2.1 to 4.4.0. - [Release notes](https://github.com/borntyping/python-colorlog/releases) - [Commits](https://github.com/borntyping/python-colorlog/compare/v4.2.1...v4.4.0) Signed-off-by: dependabot[bot] <support@github.com> * Bump voluptuous from 0.11.7 to 0.12.0 Bumps [voluptuous](https://github.com/alecthomas/voluptuous) from 0.11.7 to 0.12.0. - [Release notes](https://github.com/alecthomas/voluptuous/releases) - [Changelog](https://github.com/alecthomas/voluptuous/blob/master/CHANGELOG.md) - [Commits](https://github.com/alecthomas/voluptuous/commits/v0.12.0) Signed-off-by: dependabot[bot] <support@github.com> * restore requirements * move codeowner above dependencies * Revert "restore requirements" This reverts commit 3c9fd8b42183ff251c68404ae5e75d72ded00006. * Revert "Bump voluptuous from 0.11.7 to 0.12.0" This reverts commit 8eb0dba1c3f2fdcad28f6970381021a04a4051e7. * Revert "Bump flake8 from 3.8.3 to 3.8.4" This reverts commit 20952632dba032f70b97c86cac5daa84521c1840. * Revert "Bump colorlog from 4.2.1 to 4.4.0" This reverts commit 87bbf95d860a3213e5c9a909cbf6325f00e9094e. * Revert "Bump pytest from 6.0.2 to 6.1.1" This reverts commit 1b6ed8043137d8e8f38de32824cfa113dbc5a0ec. Co-authored-by: vevsvevs <v-v@mail.ru> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-03 18:36:11 +01:00
battery_voltage:
2022-09-06 05:48:01 +02:00
name: ATC Battery-Voltage
- platform: pvvx_mithermometer
2022-09-06 05:48:01 +02:00
mac_address: A4:C1:38:4E:16:78
temperature:
2022-09-06 05:48:01 +02:00
name: PVVX Temperature
humidity:
2022-09-06 05:48:01 +02:00
name: PVVX Humidity
battery_level:
2022-09-06 05:48:01 +02:00
name: PVVX Battery-Level
battery_voltage:
2022-09-06 05:48:01 +02:00
name: PVVX Battery-Voltage
- platform: inkbird_ibsth1_mini
mac_address: 38:81:D7:0A:9C:11
temperature:
2022-09-06 05:48:01 +02:00
name: Inkbird IBS-TH1 Temperature
humidity:
2022-09-06 05:48:01 +02:00
name: Inkbird IBS-TH1 Humidity
battery_level:
2022-09-06 05:48:01 +02:00
name: Inkbird IBS-TH1 Battery Level
- platform: xiaomi_rtcgq02lm
id: motion_rtcgq02lm
battery_level:
2022-09-06 05:48:01 +02:00
name: Mi Motion Sensor 2 Battery level
- platform: ltr390
uv:
2022-09-06 05:48:01 +02:00
name: LTR390 UV
uv_index:
2022-09-06 05:48:01 +02:00
name: LTR390 UVI
light:
2022-09-06 05:48:01 +02:00
name: LTR390 Light
ambient_light:
2022-09-06 05:48:01 +02:00
name: LTR390 ALS
gain: X3
resolution: 18
window_correction_factor: 1.0
address: 0x53
update_interval: 60s
- platform: sgp4x
voc:
2022-09-06 05:48:01 +02:00
name: VOC Index
id: sgp40_voc_index
algorithm_tuning:
index_offset: 100
learning_time_offset_hours: 12
learning_time_gain_hours: 12
gating_max_duration_minutes: 180
std_initial: 50
gain_factor: 230
nox:
2022-09-06 05:48:01 +02:00
name: NOx
algorithm_tuning:
index_offset: 100
learning_time_offset_hours: 12
learning_time_gain_hours: 12
gating_max_duration_minutes: 180
std_initial: 50
gain_factor: 230
update_interval: 5s
- platform: mcp3008
update_interval: 5s
2022-09-06 05:48:01 +02:00
mcp3008_id: mcp3008_hub
id: freezer_temp_source
reference_voltage: 3.19
number: 0
- id: airthingswp
platform: airthings_wave_plus
ble_client_id: airthings01
update_interval: 5min
battery_update_interval: 12h
temperature:
2022-09-06 05:48:01 +02:00
name: Wave Plus Temperature
radon:
2022-09-06 05:48:01 +02:00
name: Wave Plus Radon
radon_long_term:
2022-09-06 05:48:01 +02:00
name: Wave Plus Radon Long Term
pressure:
2022-09-06 05:48:01 +02:00
name: Wave Plus Pressure
humidity:
2022-09-06 05:48:01 +02:00
name: Wave Plus Humidity
co2:
2022-09-06 05:48:01 +02:00
name: Wave Plus CO2
tvoc:
2022-09-06 05:48:01 +02:00
name: Wave Plus VOC
battery_voltage:
name: Wave Plus Battery Voltage
- id: airthingswm
platform: airthings_wave_mini
ble_client_id: airthingsmini01
update_interval: 5min
battery_update_interval: 12h
temperature:
2022-09-06 05:48:01 +02:00
name: Wave Mini Temperature
humidity:
2022-09-06 05:48:01 +02:00
name: Wave Mini Humidity
pressure:
2022-09-06 05:48:01 +02:00
name: Wave Mini Pressure
tvoc:
2022-09-06 05:48:01 +02:00
name: Wave Mini VOC
battery_voltage:
name: Wave Mini Battery Voltage
- platform: ina260
address: 0x40
current:
2022-09-06 05:48:01 +02:00
name: INA260 Current
power:
2022-09-06 05:48:01 +02:00
name: INA260 Power
bus_voltage:
2022-09-06 05:48:01 +02:00
name: INA260 Voltage
update_interval: 60s
- platform: radon_eye_rd200
ble_client_id: radon_eye_ble_id
update_interval: 10min
radon:
2022-09-06 05:48:01 +02:00
name: RD200 Radon
radon_long_term:
2022-09-06 05:48:01 +02:00
name: RD200 Radon Long Term
- platform: mopeka_pro_check
mac_address: D3:75:F2:DC:16:91
tank_type: CUSTOM
custom_distance_full: 40cm
custom_distance_empty: 10mm
temperature:
2022-09-06 05:48:01 +02:00
name: Propane test temp
level:
2022-09-06 05:48:01 +02:00
name: Propane test level
distance:
2022-09-06 05:48:01 +02:00
name: Propane test distance
battery_level:
2022-09-06 05:48:01 +02:00
name: Propane test battery level
- platform: ufire_ec
id: ufire_ec_board
ec:
name: Ufire EC
temperature_sensor: ha_hello_world_temperature
temperature_compensation: 20.0
temperature_coefficient: 0.019
- platform: ufire_ise
id: ufire_ise_board
temperature_sensor: ha_hello_world_temperature
ph:
name: Ufire pH
2023-01-24 21:58:44 +01:00
- platform: mics_4514
update_interval: 60s
nitrogen_dioxide:
name: MICS-4514 NO2
carbon_monoxide:
name: MICS-4514 CO
methane:
name: MICS-4514 CH4
hydrogen:
name: MICS-4514 H2
ethanol:
name: MICS-4514 C2H5OH
ammonia:
name: MICS-4514 NH3
- platform: mopeka_std_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
- platform: duty_time
id: duty_time1
name: Test Duty Time
restore: true
last_time:
name: Test Last Duty Time Sensor
sensor: ha_hello_world_binary
- platform: duty_time
id: duty_time2
name: Test Duty Time 2
restore: false
lambda: "return true;"
2019-01-06 19:03:34 +01:00
time:
2020-11-20 03:59:19 +01:00
- platform: homeassistant
on_time:
2023-03-09 02:54:51 +01:00
- at: "16:00:00"
2020-11-20 03:59:19 +01:00
then:
- logger.log: It's 16:00
- if:
condition:
- sensor.duty_time.is_running: duty_time2
then:
- sensor.duty_time.start: duty_time1
- if:
condition:
- sensor.duty_time.is_not_running: duty_time1
then:
- sensor.duty_time.stop: duty_time2
- sensor.duty_time.reset: duty_time1
2019-01-05 19:52:01 +01:00
2018-09-26 18:39:41 +02:00
esp32_touch:
2022-09-06 05:48:01 +02:00
setup_mode: true
2018-09-26 18:39:41 +02:00
binary_sensor:
- platform: homeassistant
entity_id: binary_sensor.hello_world
id: ha_hello_world_binary
- platform: homeassistant
entity_id: binary_sensor.hello
attribute: world
id: ha_hello_world_binary_attribute
🏗 Merge C++ into python codebase (#504) ## Description: Move esphome-core codebase into esphome (and a bunch of other refactors). See https://github.com/esphome/feature-requests/issues/97 Yes this is a shit ton of work and no there's no way to automate it :( But it will be worth it 👍 Progress: - Core support (file copy etc): 80% - Base Abstractions (light, switch): ~50% - Integrations: ~10% - Working? Yes, (but only with ported components). Other refactors: - Moves all codegen related stuff into a single class: `esphome.codegen` (imported as `cg`) - Rework coroutine syntax - Move from `component/platform.py` to `domain/component.py` structure as with HA - Move all defaults out of C++ and into config validation. - Remove `make_...` helpers from Application class. Reason: Merge conflicts with every single new integration. - Pointer Variables are stored globally instead of locally in setup(). Reason: stack size limit. Future work: - Rework const.py - Move all `CONF_...` into a conf class (usage `conf.UPDATE_INTERVAL` vs `CONF_UPDATE_INTERVAL`). Reason: Less convoluted import block - Enable loading from `custom_components` folder. **Related issue (if applicable):** https://github.com/esphome/feature-requests/issues/97 **Pull request in [esphome-docs](https://github.com/esphome/esphome-docs) with documentation (if applicable):** esphome/esphome-docs#<esphome-docs PR number goes here> ## Checklist: - [ ] The code change is tested and works locally. - [ ] Tests have been added to verify that the new code works (under `tests/` folder). If user exposed functionality or configuration variables are added/changed: - [ ] Documentation added/updated in [esphomedocs](https://github.com/OttoWinter/esphomedocs).
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
2022-09-06 05:48:01 +02:00
name: ESP32 BLE Tracker Google Home Mini
- platform: ble_presence
2022-09-06 05:48:01 +02:00
service_uuid: 11aa
name: BLE Test Service 16 Presence
- platform: ble_presence
2022-09-06 05:48:01 +02:00
service_uuid: "11223344"
name: BLE Test Service 32 Presence
- platform: ble_presence
2022-09-06 05:48:01 +02:00
service_uuid: 11223344-5566-7788-99aa-bbccddeeff00
name: BLE Test Service 128 Presence
- platform: ble_presence
2022-09-06 05:48:01 +02:00
ibeacon_uuid: 11223344-5566-7788-99aa-bbccddeeff00
ibeacon_major: 100
ibeacon_minor: 1
2022-09-06 05:48:01 +02:00
name: BLE Test iBeacon Presence
2018-09-26 18:39:41 +02:00
- platform: esp32_touch
2022-09-06 05:48:01 +02: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
2022-09-06 05:48:01 +02:00
name: Storm Alert
- platform: xiaomi_mue4094rt
2022-09-06 05:48:01 +02:00
name: MUE4094RT Motion
mac_address: 7A:80:8E:19:36:BA
timeout: 5s
- platform: xiaomi_mjyd02yla
2022-09-06 05:48:01 +02:00
name: MJYD02YL-A Motion
mac_address: 50:EC:50:CD:32:02
bindkey: 48403ebe2d385db8d0c187f81e62cb64
idle_time:
2022-09-06 05:48:01 +02:00
name: MJYD02YL-A Idle Time
light:
2022-09-06 05:48:01 +02:00
name: MJYD02YL-A Light Status
battery_level:
2022-09-06 05:48:01 +02:00
name: MJYD02YL-A Battery Level
- platform: xiaomi_wx08zm
2022-09-06 05:48:01 +02:00
name: WX08ZM Activation State
mac_address: 74:a3:4a:b5:07:34
tablet:
2022-09-06 05:48:01 +02:00
name: WX08ZM Tablet Resource
battery_level:
2022-09-06 05:48:01 +02:00
name: WX08ZM Battery Level
- platform: xiaomi_cgpr1
2022-09-06 05:48:01 +02:00
name: CGPR1 Motion
mac_address: "12:34:56:12:34:56"
bindkey: 48403ebe2d385db8d0c187f81e62cb64
battery_level:
2022-09-06 05:48:01 +02:00
name: CGPR1 battery Level
idle_time:
2022-09-06 05:48:01 +02:00
name: CGPR1 Idle Time
illuminance:
2022-09-06 05:48:01 +02:00
name: CGPR1 Illuminance
- platform: xiaomi_rtcgq02lm
id: motion_rtcgq02lm
motion:
2022-09-06 05:48:01 +02:00
name: Mi Motion Sensor 2
light:
2022-09-06 05:48:01 +02:00
name: Mi Motion Sensor 2 Light
button:
2022-09-06 05:48:01 +02:00
name: Mi Motion Sensor 2 Button
- platform: gpio
id: gpio_set_retry_test
pin: GPIO9
on_press:
then:
- lambda: |-
App.scheduler.set_retry(id(gpio_set_retry_test), "set_retry_test", 100, 3, [](const uint8_t remaining) {
return remaining ? RetryResult::RETRY : RetryResult::DONE; // just to reference both symbols
}, 5.0f);
2018-09-26 18:39:41 +02:00
esp32_ble_tracker:
on_ble_advertise:
- mac_address:
- AA:BB:CC:DD:EE:FF
- FF:EE:DD:CC:BB:AA
then:
# yamllint disable rule:line-length
- lambda: !lambda |-
ESP_LOGD("main", "The device address (%s) exists in list", x.address_str().c_str());
# yamllint enable rule:line-length
- mac_address: AC:37:43:77:5F:4C
then:
2022-09-06 05:48:01 +02:00
# yamllint disable rule:line-length
- lambda: !lambda |-
ESP_LOGD("main", "The device address is %s", x.address_str().c_str());
2022-09-06 05:48:01 +02:00
# yamllint enable rule:line-length
- then:
2022-09-06 05:48:01 +02:00
# yamllint disable rule:line-length
- lambda: !lambda |-
ESP_LOGD("main", "The device address is %s", x.address_str().c_str());
2022-09-06 05:48:01 +02:00
# yamllint enable rule:line-length
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());
ble_client:
- mac_address: 01:02:03:04:05:06
id: airthings01
- mac_address: 01:02:03:04:05:06
id: airthingsmini01
- mac_address: 01:02:03:04:05:06
id: radon_eye_ble_id
airthings_ble:
radon_eye_ble:
ruuvi_ble:
xiaomi_ble:
mopeka_ble:
2022-10-12 11:22:07 +02:00
bluetooth_proxy:
active: true
xiaomi_rtcgq02lm:
- id: motion_rtcgq02lm
mac_address: 01:02:03:04:05:06
2023-03-09 02:54:51 +01:00
bindkey: "48403ebe2d385db8d0c187f81e62cb64"
2018-09-26 18:39:41 +02:00
status_led:
pin: GPIO2
text_sensor:
- platform: version
2022-09-06 05:48:01 +02:00
name: ESPHome Version
icon: mdi:icon
id: version_sensor
on_value:
- if:
condition:
- api.connected:
then:
2022-09-06 05:48:01 +02:00
# yamllint disable rule:line-length
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());
2022-09-06 05:48:01 +02:00
# yamllint enable rule:line-length
- script.execute: my_script
- script.execute:
id: my_script_with_params
prefix: Running my_script_with_params
param2: 100
param3: true
- script.execute:
id: my_script_with_params
prefix: Running my_script_with_params using lambda parameters
param2: !lambda return 200;
param3: !lambda return true;
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;
🏗 Merge C++ into python codebase (#504) ## Description: Move esphome-core codebase into esphome (and a bunch of other refactors). See https://github.com/esphome/feature-requests/issues/97 Yes this is a shit ton of work and no there's no way to automate it :( But it will be worth it 👍 Progress: - Core support (file copy etc): 80% - Base Abstractions (light, switch): ~50% - Integrations: ~10% - Working? Yes, (but only with ported components). Other refactors: - Moves all codegen related stuff into a single class: `esphome.codegen` (imported as `cg`) - Rework coroutine syntax - Move from `component/platform.py` to `domain/component.py` structure as with HA - Move all defaults out of C++ and into config validation. - Remove `make_...` helpers from Application class. Reason: Merge conflicts with every single new integration. - Pointer Variables are stored globally instead of locally in setup(). Reason: stack size limit. Future work: - Rework const.py - Move all `CONF_...` into a conf class (usage `conf.UPDATE_INTERVAL` vs `CONF_UPDATE_INTERVAL`). Reason: Less convoluted import block - Enable loading from `custom_components` folder. **Related issue (if applicable):** https://github.com/esphome/feature-requests/issues/97 **Pull request in [esphome-docs](https://github.com/esphome/esphome-docs) with documentation (if applicable):** esphome/esphome-docs#<esphome-docs PR number goes here> ## Checklist: - [ ] The code change is tested and works locally. - [ ] Tests have been added to verify that the new code works (under `tests/` folder). If user exposed functionality or configuration variables are added/changed: - [ ] Documentation added/updated in [esphomedocs](https://github.com/OttoWinter/esphomedocs).
2019-04-17 12:06:00 +02:00
my_variable_str: |-
return "Hello World";
- homeassistant.service:
service: light.turn_on
data:
entity_id: light.my_light
- homeassistant.tag_scanned:
tag: 1234-abcd
- homeassistant.tag_scanned: 1234-abcd
- deep_sleep.enter:
sleep_duration: 30min
- deep_sleep.enter:
sleep_duration: !lambda "return 30 * 60 * 1000;"
- platform: template
2022-09-06 05:48:01 +02:00
name: Template Text Sensor
lambda: |-
return {"Hello World"};
filters:
- to_upper:
- to_lower:
2022-09-06 05:48:01 +02:00
- append: xyz
- prepend: abcd
- substitute:
- Hello -> Goodbye
- map:
- red -> green
2022-09-06 05:48:01 +02:00
- lambda: 'return {"1234"};'
2019-01-06 19:03:34 +01:00
- platform: homeassistant
entity_id: sensor.hello_world2
id: ha_hello_world2
- platform: homeassistant
entity_id: sensor.hello_world3
id: ha_hello_world3
attribute: some_attribute
- platform: ble_scanner
name: Scanner
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
then:
- lambda: 'ESP_LOGD("main", "Hello World!");'
- id: my_script_with_params
parameters:
prefix: string
param2: int
param3: bool
then:
- lambda: 'ESP_LOGD("main", (prefix + " Hello World!" + to_string(param2) + " " + to_string(param3)).c_str());'
2019-01-06 19:03:34 +01:00
stepper:
- platform: uln2003
id: my_stepper
pin_a: GPIO23
pin_b: GPIO27
2019-01-06 19:03:34 +01:00
pin_c: GPIO25
pin_d: GPIO26
2022-09-06 05:48:01 +02:00
sleep_when_done: false
2019-01-06 19:03:34 +01:00
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:
2022-09-06 05:48:01 +02:00
- logger.log: Interval Run
display:
- platform: st7789v
model: LILYGO_T-EMBED_170X320
2023-10-04 22:18:33 +02:00
spi_mode: mode0
height: 320
width: 170
offset_height: 35
offset_width: 0
dc_pin: GPIO13
reset_pin: GPIO9
image:
- id: binary_image
file: pnglogo.png
type: BINARY
dither: FloydSteinberg
- id: transparent_transparent_image
file: pnglogo.png
type: TRANSPARENT_BINARY
- id: rgba_image
file: pnglogo.png
type: RGBA
resize: 50x50
- id: rgb24_image
file: pnglogo.png
type: RGB24
use_transparency: yes
- id: rgb565_image
file: pnglogo.png
type: RGB565
use_transparency: no
2023-06-06 23:32:21 +02:00
- id: mdi_alert
file: mdi:alert-circle-outline
resize: 50x50
- id: another_alert_icon
file: mdi:alert-outline
type: BINARY
graph:
- id: my_graph
sensor: ha_hello_world_temperature
duration: 1h
width: 100
height: 100
cap1188:
id: cap1188_component
address: 0x29
touch_threshold: 0x20
allow_multiple_touches: true
reset_pin: 14
switch:
- platform: template
2022-09-06 05:48:01 +02:00
name: Test BLE Write Action
turn_on_action:
- ble_client.ble_write:
id: airthings01
service_uuid: F61E3BE9-2826-A81B-970A-4D4DECFABBAE
characteristic_uuid: 6490FAFE-0734-732C-8705-91B653A081FC
value: [0x01, 0xab, 0xff]
- ble_client.ble_write:
id: airthings01
service_uuid: F61E3BE9-2826-A81B-970A-4D4DECFABBAE
characteristic_uuid: 6490FAFE-0734-732C-8705-91B653A081FC
value: !lambda |-
return {0x13, 0x37};
esp32_ble_server:
id: ble
manufacturer_data: [0x72, 0x4, 0x00, 0x23]