2022-09-06 05:48:01 +02:00
|
|
|
---
|
2020-07-13 16:45:06 +02:00
|
|
|
substitutions:
|
|
|
|
devicename: test1
|
2021-02-20 01:52:42 +01:00
|
|
|
sensorname: my
|
|
|
|
textname: template
|
|
|
|
roomname: living_room
|
2020-07-13 16:45:06 +02:00
|
|
|
|
2019-02-13 16:54:02 +01:00
|
|
|
esphome:
|
2018-08-26 11:26:14 +02:00
|
|
|
name: test1
|
2021-03-17 21:22:48 +01:00
|
|
|
name_add_mac_suffix: true
|
2018-08-26 11:26:14 +02:00
|
|
|
platform: ESP32
|
|
|
|
board: nodemcu-32s
|
2021-05-03 01:10:50 +02:00
|
|
|
platformio_options:
|
|
|
|
board_build.partitions: huge_app.csv
|
2018-08-26 11:26:14 +02:00
|
|
|
on_boot:
|
|
|
|
priority: 150.0
|
|
|
|
then:
|
|
|
|
- lambda: >-
|
|
|
|
ESP_LOGD("main", "ON BOOT!");
|
|
|
|
on_shutdown:
|
|
|
|
then:
|
|
|
|
- lambda: >-
|
|
|
|
ESP_LOGD("main", "ON SHUTDOWN!");
|
2018-09-23 18:58:41 +02:00
|
|
|
on_loop:
|
|
|
|
then:
|
|
|
|
- lambda: >-
|
|
|
|
ESP_LOGV("main", "ON LOOP!");
|
2021-01-23 23:44:20 +01:00
|
|
|
- http_request.get:
|
|
|
|
url: https://esphome.io
|
|
|
|
headers:
|
|
|
|
Content-Type: application/json
|
|
|
|
verify_ssl: false
|
|
|
|
- http_request.post:
|
|
|
|
url: https://esphome.io
|
|
|
|
verify_ssl: false
|
|
|
|
json:
|
|
|
|
key: !lambda |-
|
2021-02-20 01:52:42 +01:00
|
|
|
return id(${textname}_text).state;
|
2022-09-06 05:48:01 +02:00
|
|
|
greeting: Hello World
|
2021-01-23 23:44:20 +01:00
|
|
|
- http_request.send:
|
|
|
|
method: PUT
|
|
|
|
url: https://esphome.io
|
|
|
|
headers:
|
|
|
|
Content-Type: application/json
|
2022-09-06 05:48:01 +02:00
|
|
|
body: Some data
|
2021-01-23 23:44:20 +01:00
|
|
|
verify_ssl: false
|
2021-03-22 04:26:10 +01:00
|
|
|
on_response:
|
|
|
|
then:
|
|
|
|
- logger.log:
|
2022-01-23 09:05:37 +01:00
|
|
|
format: "Response status: %d"
|
2021-03-22 04:26:10 +01:00
|
|
|
args:
|
|
|
|
- status_code
|
2018-09-26 18:39:41 +02:00
|
|
|
build_path: build/test1
|
2018-08-26 11:26:14 +02:00
|
|
|
|
2020-07-13 16:45:06 +02:00
|
|
|
packages:
|
|
|
|
wifi: !include test_packages/test_packages_package_wifi.yaml
|
|
|
|
pkg_test: !include test_packages/test_packages_package1.yaml
|
|
|
|
|
2018-08-26 11:26:14 +02:00
|
|
|
wifi:
|
2019-01-06 11:43:14 +01:00
|
|
|
networks:
|
2022-01-23 09:05:37 +01:00
|
|
|
- ssid: "MySSID"
|
|
|
|
password: "password1"
|
|
|
|
- ssid: "MySSID2"
|
|
|
|
password: ""
|
2020-11-20 03:59:19 +01:00
|
|
|
channel: 14
|
2022-01-23 09:05:37 +01:00
|
|
|
bssid: "A1:63:95:47:D3:1D"
|
2018-08-26 11:26:14 +02:00
|
|
|
manual_ip:
|
|
|
|
static_ip: 192.168.178.230
|
|
|
|
gateway: 192.168.178.1
|
|
|
|
subnet: 255.255.255.0
|
|
|
|
dns1: 1.1.1.1
|
|
|
|
dns2: 1.2.2.1
|
|
|
|
domain: .local
|
|
|
|
reboot_timeout: 120s
|
2021-06-22 10:53:10 +02:00
|
|
|
power_save_mode: light
|
2023-11-07 06:17:13 +01:00
|
|
|
on_connect:
|
|
|
|
- light.turn_on: ${roomname}_lights
|
|
|
|
on_disconnect:
|
|
|
|
- light.turn_off: ${roomname}_lights
|
2018-08-26 11:26:14 +02:00
|
|
|
|
2023-09-27 10:38:43 +02:00
|
|
|
network:
|
|
|
|
enable_ipv6: true
|
|
|
|
|
2021-09-20 11:47:51 +02:00
|
|
|
mdns:
|
|
|
|
disabled: false
|
|
|
|
|
2021-01-23 23:44:20 +01:00
|
|
|
http_request:
|
|
|
|
useragent: esphome/device
|
|
|
|
timeout: 10s
|
|
|
|
|
2018-08-26 11:26:14 +02:00
|
|
|
mqtt:
|
2022-01-23 09:05:37 +01:00
|
|
|
broker: "192.168.178.84"
|
2018-08-26 11:26:14 +02:00
|
|
|
port: 1883
|
2022-01-23 09:05:37 +01:00
|
|
|
username: "debug"
|
|
|
|
password: "debug"
|
2018-08-26 11:26:14 +02:00
|
|
|
client_id: someclient
|
2021-10-31 03:34:08 +01:00
|
|
|
use_abbreviations: false
|
2022-09-06 05:48:01 +02:00
|
|
|
discovery: true
|
|
|
|
discovery_retain: false
|
2018-08-26 11:26:14 +02:00
|
|
|
discovery_prefix: discovery
|
2021-11-15 15:49:18 +01:00
|
|
|
discovery_unique_id_generator: legacy
|
2018-08-26 11:26:14 +02:00
|
|
|
topic_prefix: helloworld
|
2018-10-14 18:46:17 +02:00
|
|
|
log_topic:
|
|
|
|
topic: helloworld/hi
|
|
|
|
level: INFO
|
2018-08-26 11:26:14 +02:00
|
|
|
birth_message:
|
|
|
|
will_message:
|
|
|
|
shutdown_message:
|
|
|
|
topic: topic/to/send/to
|
|
|
|
payload: hi
|
|
|
|
qos: 2
|
2022-09-06 05:48:01 +02:00
|
|
|
retain: true
|
2018-08-26 11:26:14 +02:00
|
|
|
keepalive: 60s
|
|
|
|
reboot_timeout: 60s
|
|
|
|
on_message:
|
|
|
|
- topic: my/custom/topic
|
|
|
|
qos: 0
|
|
|
|
then:
|
|
|
|
- lambda: >-
|
2018-09-23 18:58:41 +02:00
|
|
|
ESP_LOGD("main", "Got message %s", x.c_str());
|
2018-08-26 11:26:14 +02:00
|
|
|
- topic: livingroom/ota_mode
|
|
|
|
then:
|
2020-11-20 03:59:19 +01:00
|
|
|
- deep_sleep.prevent
|
2022-05-11 02:47:50 +02:00
|
|
|
- deep_sleep.allow
|
2018-08-26 11:26:14 +02:00
|
|
|
- topic: livingroom/ota_mode
|
|
|
|
then:
|
2020-11-20 03:59:19 +01:00
|
|
|
- deep_sleep.enter:
|
2018-10-20 12:41:00 +02:00
|
|
|
on_json_message:
|
|
|
|
topic: the/topic
|
|
|
|
then:
|
2020-11-20 03:59:19 +01:00
|
|
|
- if:
|
|
|
|
condition:
|
|
|
|
- wifi.connected:
|
|
|
|
- mqtt.connected:
|
|
|
|
- light.is_on: kitchen
|
|
|
|
- light.is_off: kitchen
|
2021-09-02 02:16:11 +02:00
|
|
|
- fan.is_on: fan_speed
|
|
|
|
- fan.is_off: fan_speed
|
2020-11-20 03:59:19 +01:00
|
|
|
then:
|
|
|
|
- lambda: |-
|
|
|
|
int data = x["my_data"];
|
|
|
|
ESP_LOGD("main", "The data is: %d", data);
|
|
|
|
- light.turn_on:
|
2021-02-20 01:52:42 +01:00
|
|
|
id: ${roomname}_lights
|
2020-11-20 03:59:19 +01:00
|
|
|
brightness: !lambda |-
|
|
|
|
float brightness = 1.0;
|
|
|
|
if (x.containsKey("brightness"))
|
|
|
|
brightness = x["brightness"];
|
|
|
|
return brightness;
|
|
|
|
effect: !lambda |-
|
|
|
|
const char *effect = "None";
|
|
|
|
if (x.containsKey("effect"))
|
|
|
|
effect = x["effect"];
|
|
|
|
return effect;
|
|
|
|
- light.control:
|
2021-02-20 01:52:42 +01:00
|
|
|
id: ${roomname}_lights
|
2022-09-06 05:48:01 +02:00
|
|
|
# yamllint disable-line rule:line-length
|
2022-01-23 09:05:37 +01:00
|
|
|
brightness: !lambda "return id(${roomname}_lights).current_values.get_brightness() + 0.5;"
|
2020-11-20 03:59:19 +01:00
|
|
|
- light.dim_relative:
|
2021-02-20 01:52:42 +01:00
|
|
|
id: ${roomname}_lights
|
2020-11-20 03:59:19 +01:00
|
|
|
relative_brightness: 5%
|
|
|
|
- uart.write:
|
2023-03-20 03:29:21 +01:00
|
|
|
id: uart_0
|
2020-11-20 03:59:19 +01:00
|
|
|
data: Hello World
|
2021-03-07 23:59:32 +01:00
|
|
|
- uart.write:
|
2023-03-20 03:29:21 +01:00
|
|
|
id: uart_0
|
2021-03-07 23:59:32 +01:00
|
|
|
data: [0x00, 0x20, 0x30]
|
|
|
|
- uart.write:
|
2023-03-20 03:29:21 +01:00
|
|
|
id: uart_0
|
2021-03-07 23:59:32 +01:00
|
|
|
data: !lambda |-
|
|
|
|
return {};
|
2023-08-16 01:31:18 +02:00
|
|
|
- bluetooth_password.set:
|
|
|
|
id: my_ld2410
|
|
|
|
password: abcdef
|
2022-06-03 03:51:50 +02:00
|
|
|
on_connect:
|
|
|
|
- light.turn_on: ${roomname}_lights
|
|
|
|
- mqtt.publish:
|
|
|
|
topic: some/topic
|
|
|
|
payload: Hello
|
|
|
|
on_disconnect:
|
|
|
|
- light.turn_off: ${roomname}_lights
|
2018-08-26 11:26:14 +02:00
|
|
|
|
|
|
|
i2c:
|
2023-12-05 00:56:53 +01:00
|
|
|
sda:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: 21
|
|
|
|
scl:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: 22
|
2022-09-06 05:48:01 +02:00
|
|
|
scan: true
|
2018-08-26 11:26:14 +02:00
|
|
|
frequency: 100kHz
|
2018-11-12 23:30:31 +01:00
|
|
|
setup_priority: -100
|
2021-09-20 11:47:51 +02:00
|
|
|
id: i2c_bus
|
2018-08-26 11:26:14 +02:00
|
|
|
|
|
|
|
spi:
|
2023-11-07 10:15:13 +01:00
|
|
|
id: spi_bus
|
2023-12-05 00:56:53 +01:00
|
|
|
clk_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO21
|
|
|
|
mosi_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO22
|
|
|
|
miso_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
2018-08-26 11:26:14 +02:00
|
|
|
|
|
|
|
uart:
|
2021-09-20 11:47:51 +02:00
|
|
|
- tx_pin:
|
2023-12-05 00:56:53 +01:00
|
|
|
allow_other_uses: true
|
2021-09-20 11:47:51 +02:00
|
|
|
number: GPIO22
|
2022-09-06 05:48:01 +02:00
|
|
|
inverted: true
|
2021-09-20 11:47:51 +02:00
|
|
|
rx_pin:
|
2023-12-05 00:56:53 +01:00
|
|
|
allow_other_uses: true
|
2021-09-20 11:47:51 +02:00
|
|
|
number: GPIO23
|
2022-09-06 05:48:01 +02:00
|
|
|
inverted: true
|
2020-06-13 01:34:38 +02:00
|
|
|
baud_rate: 115200
|
2023-03-20 03:29:21 +01:00
|
|
|
id: uart_0
|
2020-06-13 01:34:38 +02:00
|
|
|
parity: NONE
|
|
|
|
data_bits: 8
|
|
|
|
stop_bits: 1
|
|
|
|
rx_buffer_size: 512
|
2021-11-10 23:34:17 +01:00
|
|
|
debug:
|
|
|
|
dummy_receiver: true
|
|
|
|
direction: both
|
|
|
|
after:
|
|
|
|
bytes: 50
|
|
|
|
timeout: 500ms
|
|
|
|
delimiter: "\r\n"
|
|
|
|
sequence:
|
|
|
|
- lambda: UARTDebug::log_hex(direction, bytes, ':');
|
|
|
|
- lambda: UARTDebug::log_string(direction, bytes);
|
|
|
|
- lambda: UARTDebug::log_int(direction, bytes, ',');
|
|
|
|
- lambda: UARTDebug::log_binary(direction, bytes, ';');
|
2023-02-06 23:47:50 +01:00
|
|
|
- id: ld2410_uart
|
2023-12-05 00:56:53 +01:00
|
|
|
tx_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: 18
|
|
|
|
rx_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: 23
|
2023-02-06 23:47:50 +01:00
|
|
|
baud_rate: 256000
|
|
|
|
parity: NONE
|
|
|
|
stop_bits: 1
|
2023-10-27 06:56:33 +02:00
|
|
|
- id: dfrobot_mmwave_uart
|
2023-12-05 00:56:53 +01:00
|
|
|
tx_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: 14
|
|
|
|
rx_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: 27
|
2023-10-27 06:56:33 +02:00
|
|
|
baud_rate: 115200
|
2023-11-03 00:02:23 +01:00
|
|
|
- id: ld2420_uart
|
2023-12-05 00:56:53 +01:00
|
|
|
tx_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: 17
|
|
|
|
rx_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: 16
|
2023-11-03 00:02:23 +01:00
|
|
|
baud_rate: 115200
|
|
|
|
parity: NONE
|
|
|
|
stop_bits: 1
|
2023-08-10 07:04:22 +02:00
|
|
|
- id: gcja5_uart
|
|
|
|
rx_pin: GPIO10
|
|
|
|
parity: EVEN
|
|
|
|
baud_rate: 9600
|
2018-08-26 11:26:14 +02:00
|
|
|
|
|
|
|
ota:
|
2022-09-06 05:48:01 +02:00
|
|
|
safe_mode: true
|
2022-01-23 09:05:37 +01:00
|
|
|
password: "superlongpasswordthatnoonewillknow"
|
2018-08-26 11:26:14 +02:00
|
|
|
port: 3286
|
2020-12-01 23:41:39 +01:00
|
|
|
reboot_timeout: 2min
|
|
|
|
num_attempts: 5
|
2021-07-10 21:52:19 +02:00
|
|
|
on_state_change:
|
|
|
|
then:
|
|
|
|
lambda: >-
|
|
|
|
ESP_LOGD("ota", "State %d", state);
|
|
|
|
on_begin:
|
|
|
|
then:
|
2022-09-06 05:48:01 +02:00
|
|
|
logger.log: OTA begin
|
2021-07-10 21:52:19 +02:00
|
|
|
on_progress:
|
|
|
|
then:
|
|
|
|
lambda: >-
|
|
|
|
ESP_LOGD("ota", "Got progress %f", x);
|
|
|
|
on_end:
|
|
|
|
then:
|
2022-09-06 05:48:01 +02:00
|
|
|
logger.log: OTA end
|
2021-07-10 21:52:19 +02:00
|
|
|
on_error:
|
|
|
|
then:
|
|
|
|
lambda: >-
|
|
|
|
ESP_LOGD("ota", "Got error code %d", x);
|
2018-08-26 11:26:14 +02:00
|
|
|
|
|
|
|
logger:
|
|
|
|
baud_rate: 0
|
|
|
|
level: VERBOSE
|
|
|
|
logs:
|
|
|
|
mqtt.component: DEBUG
|
|
|
|
mqtt.client: ERROR
|
|
|
|
|
|
|
|
web_server:
|
|
|
|
port: 8080
|
2022-03-08 03:02:24 +01:00
|
|
|
version: 2
|
2018-08-26 11:26:14 +02:00
|
|
|
|
|
|
|
power_supply:
|
2022-09-06 05:48:01 +02:00
|
|
|
id: atx_power_supply
|
2018-08-26 11:26:14 +02:00
|
|
|
enable_time: 20ms
|
|
|
|
keep_on_time: 10s
|
|
|
|
pin:
|
|
|
|
number: 13
|
2023-12-05 00:56:53 +01:00
|
|
|
allow_other_uses: true
|
2018-08-26 11:26:14 +02:00
|
|
|
inverted: true
|
|
|
|
|
|
|
|
deep_sleep:
|
|
|
|
run_duration: 20s
|
|
|
|
sleep_duration: 50s
|
2023-12-05 00:56:53 +01:00
|
|
|
wakeup_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO2
|
|
|
|
ignore_strapping_warning: true
|
2018-08-26 11:26:14 +02:00
|
|
|
wakeup_pin_mode: INVERT_WAKEUP
|
|
|
|
|
|
|
|
ads1115:
|
|
|
|
address: 0x48
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2018-08-26 11:26:14 +02:00
|
|
|
|
2023-12-21 01:07:40 +01:00
|
|
|
as5600:
|
|
|
|
i2c_id: i2c_bus
|
2023-12-21 05:37:02 +01:00
|
|
|
dir_pin:
|
|
|
|
number: 27
|
|
|
|
allow_other_uses: true
|
2023-12-21 01:07:40 +01:00
|
|
|
direction: clockwise
|
|
|
|
start_position: 90deg
|
|
|
|
range: 180deg
|
|
|
|
watchdog: true
|
|
|
|
power_mode: low1
|
|
|
|
hysteresis: lsb1
|
|
|
|
slow_filter: 8x
|
|
|
|
fast_filter: lsb6
|
|
|
|
|
2018-08-26 11:26:14 +02:00
|
|
|
dallas:
|
2023-12-05 00:56:53 +01:00
|
|
|
pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
2018-08-26 11:26:14 +02:00
|
|
|
|
2019-10-12 15:03:35 +02:00
|
|
|
as3935_spi:
|
2023-12-05 00:56:53 +01:00
|
|
|
cs_pin:
|
|
|
|
ignore_strapping_warning: true
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO12
|
|
|
|
irq_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO13
|
2019-10-12 15:03:35 +02:00
|
|
|
|
2023-05-01 23:25:10 +02:00
|
|
|
esp32_ble:
|
|
|
|
io_capability: keyboard_only
|
|
|
|
|
2021-05-03 01:10:50 +02:00
|
|
|
esp32_ble_tracker:
|
|
|
|
|
|
|
|
ble_client:
|
|
|
|
- mac_address: AA:BB:CC:DD:EE:FF
|
|
|
|
id: ble_foo
|
2023-12-29 08:35:44 +01:00
|
|
|
auto_connect: true
|
2021-05-03 01:10:50 +02:00
|
|
|
- mac_address: 11:22:33:44:55:66
|
|
|
|
id: ble_blah
|
2023-12-29 08:35:44 +01:00
|
|
|
auto_connect: false
|
2021-05-03 01:10:50 +02:00
|
|
|
on_connect:
|
|
|
|
then:
|
2021-05-14 10:06:31 +02:00
|
|
|
- switch.turn_on: ble1_status
|
2021-05-03 01:10:50 +02:00
|
|
|
on_disconnect:
|
|
|
|
then:
|
2021-05-14 10:06:31 +02:00
|
|
|
- switch.turn_on: ble1_status
|
2023-05-01 23:25:10 +02:00
|
|
|
on_passkey_request:
|
|
|
|
then:
|
|
|
|
- ble_client.passkey_reply:
|
|
|
|
id: ble_blah
|
|
|
|
passkey: 123456
|
|
|
|
on_passkey_notification:
|
|
|
|
then:
|
|
|
|
- logger.log: "Passkey notification received"
|
|
|
|
on_numeric_comparison_request:
|
|
|
|
then:
|
|
|
|
- ble_client.numeric_comparison_reply:
|
|
|
|
id: ble_blah
|
|
|
|
accept: True
|
2022-04-14 03:16:13 +02:00
|
|
|
- mac_address: C4:4F:33:11:22:33
|
|
|
|
id: my_bedjet_ble_client
|
2023-07-11 07:12:43 +02:00
|
|
|
|
2022-08-09 00:14:37 +02:00
|
|
|
bedjet:
|
|
|
|
- ble_client_id: my_bedjet_ble_client
|
|
|
|
id: my_bedjet_client
|
|
|
|
time_id: sntp_time
|
2020-12-06 18:43:55 +01:00
|
|
|
mcp23s08:
|
2022-09-06 05:48:01 +02:00
|
|
|
- id: mcp23s08_hub
|
2023-12-05 00:56:53 +01:00
|
|
|
cs_pin:
|
|
|
|
ignore_strapping_warning: true
|
|
|
|
number: GPIO12
|
|
|
|
allow_other_uses: true
|
2020-12-06 18:43:55 +01:00
|
|
|
deviceaddress: 0
|
2021-01-12 14:13:53 +01:00
|
|
|
|
2020-12-06 18:43:55 +01:00
|
|
|
mcp23s17:
|
2022-09-06 05:48:01 +02:00
|
|
|
- id: mcp23s17_hub
|
2023-12-05 00:56:53 +01:00
|
|
|
cs_pin:
|
|
|
|
ignore_strapping_warning: true
|
|
|
|
number: GPIO12
|
|
|
|
allow_other_uses: true
|
2020-12-06 18:43:55 +01:00
|
|
|
deviceaddress: 1
|
|
|
|
|
2023-11-03 07:54:47 +01:00
|
|
|
micronova:
|
2023-12-05 00:56:53 +01:00
|
|
|
enable_rx_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: 4
|
2023-11-03 07:54:47 +01:00
|
|
|
uart_id: uart_0
|
|
|
|
|
2023-10-27 06:56:33 +02:00
|
|
|
dfrobot_sen0395:
|
|
|
|
- id: mmwave
|
|
|
|
uart_id: dfrobot_mmwave_uart
|
|
|
|
|
2018-08-26 11:26:14 +02:00
|
|
|
sensor:
|
2023-11-07 00:46:30 +01:00
|
|
|
- platform: xgzp68xx
|
|
|
|
i2c_id: i2c_bus
|
|
|
|
temperature:
|
|
|
|
name: Pressure Temperature
|
|
|
|
pressure:
|
|
|
|
name: Differential pressure
|
|
|
|
k_value: 4096
|
|
|
|
|
2023-08-17 22:03:39 +02:00
|
|
|
- platform: pmwcs3
|
|
|
|
i2c_id: i2c_bus
|
|
|
|
e25:
|
|
|
|
name: pmwcs3_e25
|
|
|
|
ec:
|
|
|
|
name: pmwcs3_ec
|
|
|
|
temperature:
|
|
|
|
name: pmwcs3_temperature
|
|
|
|
vwc:
|
|
|
|
name: pmwcs3_vwc
|
2023-08-10 07:04:22 +02:00
|
|
|
- platform: gcja5
|
|
|
|
pm_1_0:
|
|
|
|
name: "Particulate Matter <1.0µm Concentration"
|
|
|
|
pm_2_5:
|
|
|
|
name: "Particulate Matter <2.5µm Concentration"
|
|
|
|
pm_10_0:
|
|
|
|
name: "Particulate Matter <10.0µm Concentration"
|
|
|
|
pmc_0_5:
|
|
|
|
name: "PMC 0.5"
|
|
|
|
pmc_1_0:
|
|
|
|
name: "PMC 1.0"
|
|
|
|
pmc_2_5:
|
|
|
|
name: "PMC 2.5"
|
|
|
|
pmc_5_0:
|
|
|
|
name: "PMC 5.0"
|
|
|
|
pmc_10_0:
|
|
|
|
name: "PMC 10.0"
|
|
|
|
uart_id: gcja5_uart
|
2023-02-20 03:47:37 +01:00
|
|
|
- platform: internal_temperature
|
2023-03-09 02:54:51 +01:00
|
|
|
name: Internal Temperature
|
2021-05-03 01:10:50 +02:00
|
|
|
- platform: ble_client
|
2022-10-12 04:23:56 +02:00
|
|
|
type: characteristic
|
2021-05-03 01:10:50 +02:00
|
|
|
ble_client_id: ble_foo
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Green iTag btn
|
|
|
|
service_uuid: ffe0
|
|
|
|
characteristic_uuid: ffe1
|
|
|
|
descriptor_uuid: ffe2
|
2021-05-03 01:10:50 +02:00
|
|
|
notify: true
|
|
|
|
update_interval: never
|
2021-06-01 11:46:54 +02:00
|
|
|
lambda: |-
|
|
|
|
ESP_LOGD("main", "Length of data is %i", x.size());
|
|
|
|
return x[0];
|
2021-05-03 01:10:50 +02:00
|
|
|
on_notify:
|
|
|
|
then:
|
|
|
|
- lambda: |-
|
|
|
|
ESP_LOGD("green_btn", "Button was pressed, val%f", x);
|
2022-10-12 04:23:56 +02:00
|
|
|
- platform: ble_client
|
|
|
|
type: rssi
|
|
|
|
ble_client_id: ble_foo
|
|
|
|
name: Green iTag RSSI
|
|
|
|
update_interval: 15s
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: adc
|
|
|
|
pin: A0
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room Brightness
|
2022-01-23 09:05:37 +01:00
|
|
|
update_interval: "1:01"
|
2018-08-26 11:26:14 +02:00
|
|
|
attenuation: 2.5db
|
2022-01-23 09:05:37 +01:00
|
|
|
unit_of_measurement: "°C"
|
|
|
|
icon: "mdi:water-percent"
|
2018-08-26 11:26:14 +02:00
|
|
|
accuracy_decimals: 5
|
|
|
|
expire_after: 120s
|
2018-11-12 23:30:31 +01:00
|
|
|
setup_priority: -100
|
2019-10-21 15:46:39 +02:00
|
|
|
force_update: true
|
2018-08-26 11:26:14 +02:00
|
|
|
filters:
|
|
|
|
- offset: 2.0
|
|
|
|
- multiply: 1.2
|
2019-02-26 19:38:39 +01:00
|
|
|
- calibrate_linear:
|
2023-07-30 23:09:09 +02:00
|
|
|
datapoints:
|
|
|
|
- 0.0 -> 0.0
|
|
|
|
- 40.0 -> 45.0
|
|
|
|
- 100.0 -> 102.5
|
|
|
|
- clamp:
|
|
|
|
min_value: -100
|
|
|
|
max_value: 100
|
2018-08-26 11:26:14 +02:00
|
|
|
- filter_out: 42.0
|
2019-03-18 15:07:20 +01:00
|
|
|
- filter_out: nan
|
2019-08-27 19:39:04 +02:00
|
|
|
- median:
|
|
|
|
window_size: 5
|
|
|
|
send_every: 5
|
|
|
|
send_first_at: 3
|
2021-03-05 14:10:06 +01:00
|
|
|
- min:
|
|
|
|
window_size: 5
|
|
|
|
send_every: 5
|
|
|
|
send_first_at: 3
|
|
|
|
- max:
|
|
|
|
window_size: 5
|
|
|
|
send_every: 5
|
|
|
|
send_first_at: 3
|
2018-08-26 11:26:14 +02:00
|
|
|
- sliding_window_moving_average:
|
|
|
|
window_size: 15
|
|
|
|
send_every: 15
|
2018-10-26 22:59:03 +02:00
|
|
|
send_first_at: 15
|
2018-08-26 11:26:14 +02:00
|
|
|
- exponential_moving_average:
|
|
|
|
alpha: 0.1
|
|
|
|
send_every: 15
|
2022-02-21 01:13:06 +01:00
|
|
|
send_first_at: 15
|
2021-10-13 00:35:30 +02:00
|
|
|
- throttle_average: 60s
|
2018-08-26 11:26:14 +02:00
|
|
|
- throttle: 1s
|
|
|
|
- heartbeat: 5s
|
|
|
|
- debounce: 0.1s
|
|
|
|
- delta: 5.0
|
2023-03-15 23:20:18 +01:00
|
|
|
- delta: 1%
|
2018-08-26 11:26:14 +02:00
|
|
|
- or:
|
2020-11-20 03:59:19 +01:00
|
|
|
- throttle: 1s
|
|
|
|
- delta: 5.0
|
2018-08-26 11:26:14 +02:00
|
|
|
- lambda: return x * (9.0/5.0) + 32.0;
|
|
|
|
on_value:
|
|
|
|
then:
|
2022-09-06 05:48:01 +02:00
|
|
|
# yamllint disable rule:line-length
|
2018-12-05 21:22:06 +01:00
|
|
|
- lambda: |-
|
2018-08-26 11:26:14 +02:00
|
|
|
ESP_LOGD("main", "Got value %f", x);
|
2021-02-20 01:52:42 +01:00
|
|
|
id(${sensorname}_sensor).publish_state(42.0);
|
|
|
|
ESP_LOGI("main", "Value of my sensor: %f", id(${sensorname}_sensor).state);
|
|
|
|
ESP_LOGI("main", "Raw Value of my sensor: %f", id(${sensorname}_sensor).state);
|
2022-09-06 05:48:01 +02:00
|
|
|
# yamllint enable rule:line-length
|
2018-08-26 11:26:14 +02:00
|
|
|
on_value_range:
|
|
|
|
above: 5
|
|
|
|
below: 10
|
|
|
|
then:
|
|
|
|
- lambda: >-
|
|
|
|
ESP_LOGD("main", "Got value range %f", x);
|
2021-10-12 21:23:24 +02:00
|
|
|
- wait_until: wifi.connected
|
2019-02-17 19:27:33 +01:00
|
|
|
- wait_until:
|
2021-10-12 21:23:24 +02:00
|
|
|
condition:
|
|
|
|
binary_sensor.is_on: binary_sensor1
|
|
|
|
timeout: 1s
|
2018-08-26 11:26:14 +02:00
|
|
|
on_raw_value:
|
|
|
|
- lambda: >-
|
|
|
|
ESP_LOGD("main", "Got raw value %f", x);
|
2018-10-20 15:19:59 +02:00
|
|
|
- logger.log:
|
|
|
|
level: DEBUG
|
2022-09-06 05:48:01 +02:00
|
|
|
format: Got raw value %f
|
2022-01-23 09:05:37 +01:00
|
|
|
args: ["x"]
|
2022-09-06 05:48:01 +02:00
|
|
|
- logger.log: Got raw value NAN
|
2018-08-26 11:26:14 +02:00
|
|
|
- mqtt.publish:
|
|
|
|
topic: some/topic
|
|
|
|
payload: Hello
|
|
|
|
qos: 2
|
2022-09-06 05:48:01 +02:00
|
|
|
retain: true
|
2019-04-22 21:56:30 +02:00
|
|
|
- platform: esp32_hall
|
|
|
|
name: ESP32 Hall Sensor
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: ads1115
|
2022-09-06 05:48:01 +02:00
|
|
|
multiplexer: A0_A1
|
2018-08-26 11:26:14 +02:00
|
|
|
gain: 1.024
|
2021-02-20 01:52:42 +01:00
|
|
|
id: ${sensorname}_sensor
|
2018-08-26 11:26:14 +02:00
|
|
|
filters:
|
|
|
|
state_topic: hi/me
|
|
|
|
retain: false
|
|
|
|
availability:
|
2023-12-21 01:07:40 +01:00
|
|
|
- platform: as5600
|
|
|
|
name: AS5600 Position
|
|
|
|
raw_position:
|
2023-12-21 05:37:02 +01:00
|
|
|
name: AS5600 Raw Position
|
2023-12-21 01:07:40 +01:00
|
|
|
gain:
|
2023-12-21 05:37:02 +01:00
|
|
|
name: AS5600 Gain
|
2023-12-21 01:07:40 +01:00
|
|
|
magnitude:
|
2023-12-21 05:37:02 +01:00
|
|
|
name: AS5600 Magnitude
|
2023-12-21 01:07:40 +01:00
|
|
|
status:
|
2023-12-21 05:37:02 +01:00
|
|
|
name: AS5600 Status
|
2023-03-08 02:15:49 +01:00
|
|
|
- platform: as7341
|
|
|
|
update_interval: 15s
|
|
|
|
gain: X8
|
|
|
|
atime: 120
|
|
|
|
astep: 99
|
|
|
|
f1:
|
|
|
|
name: F1
|
|
|
|
f2:
|
|
|
|
name: F2
|
|
|
|
f3:
|
|
|
|
name: F3
|
|
|
|
f4:
|
|
|
|
name: F4
|
|
|
|
f5:
|
|
|
|
name: F5
|
|
|
|
f6:
|
|
|
|
name: F6
|
|
|
|
f7:
|
|
|
|
name: F7
|
|
|
|
f8:
|
|
|
|
name: F8
|
|
|
|
clear:
|
|
|
|
name: Clear
|
|
|
|
nir:
|
|
|
|
name: NIR
|
|
|
|
i2c_id: i2c_bus
|
2023-07-12 07:10:22 +02:00
|
|
|
- platform: atm90e26
|
2023-12-05 00:56:53 +01:00
|
|
|
cs_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: 5
|
2023-07-12 07:10:22 +02:00
|
|
|
voltage:
|
|
|
|
name: Line Voltage
|
|
|
|
current:
|
|
|
|
name: CT Amps
|
|
|
|
power:
|
|
|
|
name: Active Watts
|
|
|
|
power_factor:
|
|
|
|
name: Power Factor
|
|
|
|
frequency:
|
|
|
|
name: Line Frequency
|
|
|
|
line_frequency: 50Hz
|
|
|
|
meter_constant: 1000
|
|
|
|
pl_const: 1429876
|
|
|
|
gain_pga: 1X
|
|
|
|
gain_metering: 7481
|
|
|
|
gain_voltage: 26400
|
|
|
|
gain_ct: 31251
|
2019-06-16 12:00:15 +02:00
|
|
|
- platform: atm90e32
|
2023-12-05 00:56:53 +01:00
|
|
|
cs_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: 5
|
2019-06-16 12:00:15 +02:00
|
|
|
phase_a:
|
|
|
|
voltage:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: EMON Line Voltage A
|
2019-06-16 12:00:15 +02:00
|
|
|
current:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: EMON CT1 Current
|
2019-06-16 12:00:15 +02:00
|
|
|
power:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: EMON Active Power CT1
|
2019-11-13 08:49:59 +01:00
|
|
|
reactive_power:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: EMON Reactive Power CT1
|
2019-11-13 08:49:59 +01:00
|
|
|
power_factor:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: EMON Power Factor CT1
|
2020-03-13 18:27:19 +01:00
|
|
|
gain_voltage: 7305
|
|
|
|
gain_ct: 27961
|
2019-06-16 12:00:15 +02:00
|
|
|
phase_b:
|
|
|
|
current:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: EMON CT2 Current
|
2019-06-16 12:00:15 +02:00
|
|
|
power:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: EMON Active Power CT2
|
2019-11-20 17:47:34 +01:00
|
|
|
reactive_power:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: EMON Reactive Power CT2
|
2019-11-20 17:47:34 +01:00
|
|
|
power_factor:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: EMON Power Factor CT2
|
2020-03-13 18:27:19 +01:00
|
|
|
gain_voltage: 7305
|
|
|
|
gain_ct: 27961
|
2019-06-16 12:00:15 +02:00
|
|
|
phase_c:
|
|
|
|
current:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: EMON CT3 Current
|
2019-06-16 12:00:15 +02:00
|
|
|
power:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: EMON Active Power CT3
|
2019-11-20 17:47:34 +01:00
|
|
|
reactive_power:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: EMON Reactive Power CT3
|
2019-11-20 17:47:34 +01:00
|
|
|
power_factor:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: EMON Power Factor CT3
|
2020-03-13 18:27:19 +01:00
|
|
|
gain_voltage: 7305
|
|
|
|
gain_ct: 27961
|
2019-06-16 12:00:15 +02:00
|
|
|
frequency:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: EMON Line Frequency
|
2019-11-20 17:47:34 +01:00
|
|
|
chip_temperature:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: EMON Chip Temp A
|
2020-03-13 18:27:19 +01:00
|
|
|
line_frequency: 60Hz
|
|
|
|
current_phases: 3
|
2019-06-16 12:00:15 +02:00
|
|
|
gain_pga: 2X
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: bh1750
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room Brightness 3
|
2018-08-26 11:26:14 +02:00
|
|
|
internal: true
|
|
|
|
address: 0x23
|
|
|
|
update_interval: 30s
|
2022-09-06 05:48:01 +02:00
|
|
|
retain: false
|
2018-08-26 11:26:14 +02:00
|
|
|
availability:
|
|
|
|
state_topic: livingroom/custom_state_topic
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2022-02-19 09:49:45 +01:00
|
|
|
- platform: max44009
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Outside Brightness 1
|
2022-02-19 09:49:45 +01:00
|
|
|
internal: true
|
|
|
|
address: 0x4A
|
|
|
|
update_interval: 30s
|
|
|
|
mode: low_power
|
|
|
|
i2c_id: i2c_bus
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: bme280
|
|
|
|
temperature:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Outside Temperature
|
2018-08-26 11:26:14 +02:00
|
|
|
oversampling: 16x
|
|
|
|
pressure:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Outside Pressure
|
2018-08-26 11:26:14 +02:00
|
|
|
oversampling: none
|
|
|
|
humidity:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Outside Humidity
|
2018-08-26 11:26:14 +02:00
|
|
|
oversampling: 8x
|
|
|
|
address: 0x77
|
|
|
|
iir_filter: 16x
|
|
|
|
update_interval: 15s
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: bme680
|
|
|
|
temperature:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Outside Temperature
|
2018-08-26 11:26:14 +02:00
|
|
|
oversampling: 16x
|
|
|
|
pressure:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Outside Pressure
|
2018-08-26 11:26:14 +02:00
|
|
|
humidity:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Outside Humidity
|
2018-08-26 11:26:14 +02:00
|
|
|
gas_resistance:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Outside Gas Sensor
|
2018-08-26 11:26:14 +02:00
|
|
|
address: 0x77
|
|
|
|
heater:
|
|
|
|
temperature: 320
|
|
|
|
duration: 150ms
|
|
|
|
update_interval: 15s
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: bmp085
|
|
|
|
temperature:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Outside Temperature
|
2018-08-26 11:26:14 +02:00
|
|
|
pressure:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Outside Pressure
|
2018-08-26 11:26:14 +02:00
|
|
|
filters:
|
|
|
|
- lambda: >-
|
|
|
|
return x / powf(1.0 - (x / 44330.0), 5.255);
|
|
|
|
update_interval: 15s
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: bmp280
|
|
|
|
temperature:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Outside Temperature
|
2018-08-26 11:26:14 +02:00
|
|
|
oversampling: 16x
|
|
|
|
pressure:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Outside Pressure
|
2018-08-26 11:26:14 +02:00
|
|
|
address: 0x77
|
|
|
|
update_interval: 15s
|
|
|
|
iir_filter: 16x
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: dallas
|
|
|
|
address: 0x1C0000031EDD2A28
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room Temperature
|
2018-08-26 11:26:14 +02:00
|
|
|
resolution: 9
|
|
|
|
- platform: dallas
|
|
|
|
index: 1
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room Temperature 2
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: dht
|
2023-12-05 00:56:53 +01:00
|
|
|
pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO26
|
2018-08-26 11:26:14 +02:00
|
|
|
temperature:
|
2022-09-08 01:40:27 +02:00
|
|
|
id: dht_temperature
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room Temperature 3
|
2018-08-26 11:26:14 +02:00
|
|
|
humidity:
|
2022-09-08 01:40:27 +02:00
|
|
|
id: dht_humidity
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room Humidity 3
|
2018-08-26 11:26:14 +02:00
|
|
|
model: AM2302
|
|
|
|
update_interval: 15s
|
|
|
|
- platform: dht12
|
|
|
|
temperature:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room Temperature 4
|
2018-08-26 11:26:14 +02:00
|
|
|
humidity:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room Humidity 4
|
2018-08-26 11:26:14 +02:00
|
|
|
update_interval: 15s
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: duty_cycle
|
2023-12-05 00:56:53 +01:00
|
|
|
pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO25
|
2018-08-26 11:26:14 +02:00
|
|
|
name: Duty Cycle Sensor
|
2023-01-17 22:42:43 +01:00
|
|
|
- platform: ee895
|
|
|
|
co2:
|
|
|
|
name: Office CO2 1
|
|
|
|
temperature:
|
|
|
|
name: Office Temperature 1
|
|
|
|
pressure:
|
|
|
|
name: Office Pressure 1
|
|
|
|
address: 0x5F
|
|
|
|
i2c_id: i2c_bus
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: esp32_hall
|
2022-09-06 05:48:01 +02:00
|
|
|
name: ESP32 Hall Sensor
|
2018-08-26 11:26:14 +02:00
|
|
|
update_interval: 15s
|
2022-05-09 07:23:38 +02:00
|
|
|
- platform: ens210
|
2018-08-26 11:26:14 +02:00
|
|
|
temperature:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room Temperature 5
|
2018-08-26 11:26:14 +02:00
|
|
|
humidity:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room Humidity 5
|
2022-05-09 07:23:38 +02:00
|
|
|
update_interval: 15s
|
|
|
|
i2c_id: i2c_bus
|
|
|
|
- platform: hdc1080
|
|
|
|
temperature:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room Temperature 6
|
2022-05-09 07:23:38 +02:00
|
|
|
humidity:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room Humidity 5
|
2018-08-26 11:26:14 +02:00
|
|
|
update_interval: 15s
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: hlw8012
|
2023-12-05 00:56:53 +01:00
|
|
|
sel_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: 5
|
|
|
|
cf_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: 14
|
|
|
|
cf1_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: 13
|
2018-08-26 11:26:14 +02:00
|
|
|
current:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: HLW8012 Current
|
2018-08-26 11:26:14 +02:00
|
|
|
voltage:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: HLW8012 Voltage
|
2018-08-26 11:26:14 +02:00
|
|
|
power:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: HLW8012 Power
|
2018-11-09 20:27:19 +01:00
|
|
|
id: hlw8012_power
|
2021-02-13 09:57:06 +01:00
|
|
|
energy:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: HLW8012 Energy
|
2021-02-13 09:57:06 +01:00
|
|
|
id: hlw8012_energy
|
2018-08-26 11:26:14 +02:00
|
|
|
update_interval: 15s
|
|
|
|
current_resistor: 0.001 ohm
|
|
|
|
voltage_divider: 2351
|
2023-12-20 11:52:46 +01:00
|
|
|
change_mode_every: "never"
|
2019-06-06 22:44:52 +02:00
|
|
|
initial_mode: VOLTAGE
|
2021-07-05 01:09:09 +02:00
|
|
|
model: hlw8012
|
2018-11-09 20:27:19 +01:00
|
|
|
- platform: total_daily_energy
|
|
|
|
power_id: hlw8012_power
|
2022-09-06 05:48:01 +02:00
|
|
|
name: HLW8012 Total Daily Energy
|
2019-06-06 15:06:02 +02:00
|
|
|
- platform: integration
|
|
|
|
sensor: hlw8012_power
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Integration Sensor
|
2019-06-06 15:06:02 +02:00
|
|
|
time_unit: s
|
2021-08-03 16:41:34 +02:00
|
|
|
- platform: integration
|
|
|
|
sensor: hlw8012_power
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Integration Sensor lazy
|
2021-08-03 16:41:34 +02:00
|
|
|
time_unit: s
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: hmc5883l
|
|
|
|
address: 0x68
|
|
|
|
field_strength_x:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: HMC5883L Field Strength X
|
2018-08-26 11:26:14 +02:00
|
|
|
field_strength_y:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: HMC5883L Field Strength Y
|
2018-08-26 11:26:14 +02:00
|
|
|
field_strength_z:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: HMC5883L Field Strength Z
|
2018-08-26 11:26:14 +02:00
|
|
|
heading:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: HMC5883L Heading
|
2018-08-26 11:26:14 +02:00
|
|
|
range: 130uT
|
2019-11-26 18:43:11 +01:00
|
|
|
oversampling: 8x
|
|
|
|
update_interval: 15s
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2022-02-22 11:22:30 +01:00
|
|
|
- platform: honeywellabp
|
|
|
|
pressure:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Honeywell pressure
|
2022-02-22 11:22:30 +01:00
|
|
|
min_pressure: 0
|
|
|
|
max_pressure: 15
|
|
|
|
temperature:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Honeywell temperature
|
2023-12-05 00:56:53 +01:00
|
|
|
cs_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO5
|
2023-10-25 20:28:07 +02:00
|
|
|
- platform: honeywellabp2_i2c
|
|
|
|
pressure:
|
|
|
|
name: Honeywell2 pressure
|
|
|
|
min_pressure: 0
|
|
|
|
max_pressure: 16000
|
|
|
|
transfer_function: A
|
|
|
|
temperature:
|
|
|
|
name: Honeywell temperature
|
|
|
|
i2c_id: i2c_bus
|
|
|
|
address: 0x28
|
2023-01-17 22:42:47 +01:00
|
|
|
- platform: hte501
|
|
|
|
temperature:
|
|
|
|
name: Office Temperature 2
|
|
|
|
humidity:
|
|
|
|
name: Office Humidity 1
|
|
|
|
address: 0x40
|
|
|
|
i2c_id: i2c_bus
|
2019-11-26 18:43:11 +01:00
|
|
|
- platform: qmc5883l
|
|
|
|
address: 0x0D
|
|
|
|
field_strength_x:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: QMC5883L Field Strength X
|
2019-11-26 18:43:11 +01:00
|
|
|
field_strength_y:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: QMC5883L Field Strength Y
|
2019-11-26 18:43:11 +01:00
|
|
|
field_strength_z:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: QMC5883L Field Strength Z
|
2019-11-26 18:43:11 +01:00
|
|
|
heading:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: QMC5883L Heading
|
2019-11-26 18:43:11 +01:00
|
|
|
range: 800uT
|
|
|
|
oversampling: 256x
|
2018-08-26 11:26:14 +02:00
|
|
|
update_interval: 15s
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: hx711
|
2022-09-06 05:48:01 +02:00
|
|
|
name: HX711 Value
|
2023-12-05 00:56:53 +01:00
|
|
|
dout_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
|
|
|
clk_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO25
|
2018-08-26 11:26:14 +02:00
|
|
|
gain: 128
|
|
|
|
update_interval: 15s
|
|
|
|
- platform: ina219
|
|
|
|
address: 0x40
|
|
|
|
shunt_resistance: 0.1 ohm
|
|
|
|
current:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: INA219 Current
|
2018-08-26 11:26:14 +02:00
|
|
|
power:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: INA219 Power
|
2018-08-26 11:26:14 +02:00
|
|
|
bus_voltage:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: INA219 Bus Voltage
|
2018-08-26 11:26:14 +02:00
|
|
|
shunt_voltage:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: INA219 Shunt Voltage
|
2018-08-26 11:26:14 +02:00
|
|
|
max_voltage: 32.0V
|
|
|
|
max_current: 3.2A
|
|
|
|
update_interval: 15s
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2019-11-06 13:59:00 +01:00
|
|
|
- platform: ina226
|
|
|
|
address: 0x40
|
|
|
|
shunt_resistance: 0.1 ohm
|
|
|
|
current:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: INA226 Current
|
2019-11-06 13:59:00 +01:00
|
|
|
power:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: INA226 Power
|
2019-11-06 13:59:00 +01:00
|
|
|
bus_voltage:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: INA226 Bus Voltage
|
2019-11-06 13:59:00 +01:00
|
|
|
shunt_voltage:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: INA226 Shunt Voltage
|
2019-11-06 13:59:00 +01:00
|
|
|
max_current: 3.2A
|
|
|
|
update_interval: 15s
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: ina3221
|
|
|
|
address: 0x40
|
|
|
|
channel_1:
|
|
|
|
shunt_resistance: 0.1 ohm
|
|
|
|
current:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: INA3221 Channel 1 Current
|
2018-08-26 11:26:14 +02:00
|
|
|
power:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: INA3221 Channel 1 Power
|
2018-08-26 11:26:14 +02:00
|
|
|
bus_voltage:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: INA3221 Channel 1 Bus Voltage
|
2018-08-26 11:26:14 +02:00
|
|
|
shunt_voltage:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: INA3221 Channel 1 Shunt Voltage
|
2018-08-26 11:26:14 +02:00
|
|
|
update_interval: 15s
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2023-08-08 02:32:34 +02:00
|
|
|
- platform: kmeteriso
|
|
|
|
temperature:
|
|
|
|
name: Outside Temperature
|
|
|
|
internal_temperature:
|
|
|
|
name: Internal Ttemperature
|
|
|
|
update_interval: 15s
|
|
|
|
i2c_id: i2c_bus
|
2022-01-09 23:44:36 +01:00
|
|
|
- platform: kalman_combinator
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Kalman-filtered temperature
|
2022-01-09 23:44:36 +01:00
|
|
|
process_std_dev: 0.00139
|
|
|
|
sources:
|
|
|
|
- source: scd30_temperature
|
|
|
|
error: !lambda |-
|
|
|
|
return 0.4 + std::abs(x - 25) * 0.023;
|
|
|
|
- source: scd4x_temperature
|
|
|
|
error: 1.5
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: htu21d
|
|
|
|
temperature:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room Temperature 6
|
2018-08-26 11:26:14 +02:00
|
|
|
humidity:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room Humidity 6
|
2023-09-02 02:03:30 +02:00
|
|
|
heater:
|
|
|
|
name: Living Room Heater 6
|
2018-08-26 11:26:14 +02:00
|
|
|
update_interval: 15s
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: max6675
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room Temperature
|
2023-12-05 00:56:53 +01:00
|
|
|
cs_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
2018-08-26 11:26:14 +02:00
|
|
|
update_interval: 15s
|
2019-01-05 20:08:25 +01:00
|
|
|
- platform: max31855
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Den Temperature
|
2023-12-05 00:56:53 +01:00
|
|
|
cs_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
2019-01-05 20:08:25 +01:00
|
|
|
update_interval: 15s
|
2019-11-06 13:56:43 +01:00
|
|
|
reference_temperature:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: MAX31855 Internal Temperature
|
2020-05-25 00:33:59 +02:00
|
|
|
- platform: max31856
|
2022-09-06 05:48:01 +02:00
|
|
|
name: BBQ Temperature
|
2023-12-05 00:56:53 +01:00
|
|
|
cs_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO17
|
2020-05-25 00:33:59 +02:00
|
|
|
update_interval: 15s
|
|
|
|
mains_filter: 50Hz
|
2019-11-06 13:56:43 +01:00
|
|
|
- platform: max31865
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Water Tank Temperature
|
2023-12-05 00:56:53 +01:00
|
|
|
cs_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
2019-11-06 13:56:43 +01:00
|
|
|
update_interval: 15s
|
2022-09-06 05:48:01 +02:00
|
|
|
reference_resistance: 430 Ω
|
|
|
|
rtd_nominal_resistance: 100 Ω
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: mhz19
|
2023-03-20 03:29:21 +01:00
|
|
|
uart_id: uart_0
|
2018-08-26 11:26:14 +02:00
|
|
|
co2:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: MH-Z19 CO2 Value
|
2018-08-26 11:26:14 +02:00
|
|
|
temperature:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: MH-Z19 Temperature
|
2018-08-26 11:26:14 +02:00
|
|
|
update_interval: 15s
|
2019-08-27 19:33:25 +02:00
|
|
|
automatic_baseline_calibration: false
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: mpu6050
|
|
|
|
address: 0x68
|
|
|
|
accel_x:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: MPU6050 Accel X
|
2018-08-26 11:26:14 +02:00
|
|
|
accel_y:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: MPU6050 Accel Y
|
2018-08-26 11:26:14 +02:00
|
|
|
accel_z:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: MPU6050 Accel z
|
2018-08-26 11:26:14 +02:00
|
|
|
gyro_x:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: MPU6050 Gyro X
|
2018-08-26 11:26:14 +02:00
|
|
|
gyro_y:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: MPU6050 Gyro Y
|
2018-08-26 11:26:14 +02:00
|
|
|
gyro_z:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: MPU6050 Gyro z
|
2018-08-26 11:26:14 +02:00
|
|
|
temperature:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: MPU6050 Temperature
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2022-02-21 00:23:26 +01:00
|
|
|
- platform: mpu6886
|
|
|
|
address: 0x68
|
|
|
|
accel_x:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: MPU6886 Accel X
|
2022-02-21 00:23:26 +01:00
|
|
|
accel_y:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: MPU6886 Accel Y
|
2022-02-21 00:23:26 +01:00
|
|
|
accel_z:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: MPU6886 Accel z
|
2022-02-21 00:23:26 +01:00
|
|
|
gyro_x:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: MPU6886 Gyro X
|
2022-02-21 00:23:26 +01:00
|
|
|
gyro_y:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: MPU6886 Gyro Y
|
2022-02-21 00:23:26 +01:00
|
|
|
gyro_z:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: MPU6886 Gyro z
|
2022-02-21 00:23:26 +01:00
|
|
|
temperature:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: MPU6886 Temperature
|
2022-02-21 00:23:26 +01:00
|
|
|
i2c_id: i2c_bus
|
2023-09-10 04:25:09 +02:00
|
|
|
- platform: bmi160
|
|
|
|
address: 0x68
|
|
|
|
acceleration_x:
|
|
|
|
name: BMI160 Accel X
|
|
|
|
acceleration_y:
|
|
|
|
name: BMI160 Accel Y
|
|
|
|
acceleration_z:
|
|
|
|
name: BMI160 Accel z
|
|
|
|
gyroscope_x:
|
|
|
|
name: BMI160 Gyro X
|
|
|
|
gyroscope_y:
|
|
|
|
name: BMI160 Gyro Y
|
|
|
|
gyroscope_z:
|
|
|
|
name: BMI160 Gyro z
|
|
|
|
temperature:
|
|
|
|
name: BMI160 Temperature
|
|
|
|
i2c_id: i2c_bus
|
2023-04-04 04:34:14 +02:00
|
|
|
- platform: mmc5603
|
|
|
|
address: 0x30
|
|
|
|
field_strength_x:
|
|
|
|
name: HMC5883L Field Strength X
|
|
|
|
field_strength_y:
|
|
|
|
name: HMC5883L Field Strength Y
|
|
|
|
field_strength_z:
|
|
|
|
name: HMC5883L Field Strength Z
|
|
|
|
i2c_id: i2c_bus
|
2022-08-18 21:49:35 +02:00
|
|
|
- platform: dps310
|
|
|
|
temperature:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: DPS310 Temperature
|
2022-08-18 21:49:35 +02:00
|
|
|
pressure:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: DPS310 Pressure
|
2022-08-18 21:49:35 +02:00
|
|
|
address: 0x77
|
|
|
|
update_interval: 15s
|
|
|
|
i2c_id: i2c_bus
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: ms5611
|
|
|
|
temperature:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Outside Temperature
|
2018-08-26 11:26:14 +02:00
|
|
|
pressure:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Outside Pressure
|
2018-08-26 11:26:14 +02:00
|
|
|
address: 0x77
|
|
|
|
update_interval: 15s
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2021-08-10 11:00:16 +02:00
|
|
|
- platform: pmsa003i
|
|
|
|
pm_1_0:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PMSA003i PM1.0
|
2021-08-10 11:00:16 +02:00
|
|
|
pm_2_5:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PMSA003i PM2.5
|
2021-08-10 11:00:16 +02:00
|
|
|
pm_10_0:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PMSA003i PM10.0
|
2021-08-10 11:00:16 +02:00
|
|
|
pmc_0_3:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PMSA003i PMC <0.3µm
|
2021-08-10 11:00:16 +02:00
|
|
|
pmc_0_5:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PMSA003i PMC <0.5µm
|
2021-08-10 11:00:16 +02:00
|
|
|
pmc_1_0:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PMSA003i PMC <1µm
|
2021-08-10 11:00:16 +02:00
|
|
|
pmc_2_5:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PMSA003i PMC <2.5µm
|
2021-08-10 11:00:16 +02:00
|
|
|
pmc_5_0:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PMSA003i PMC <5µm
|
2021-08-10 11:00:16 +02:00
|
|
|
pmc_10_0:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PMSA003i PMC <10µm
|
2021-08-10 11:00:16 +02:00
|
|
|
address: 0x12
|
2022-09-06 05:48:01 +02:00
|
|
|
standard_units: true
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: pulse_counter
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Pulse Counter
|
2023-12-05 00:56:53 +01:00
|
|
|
pin:
|
|
|
|
ignore_strapping_warning: true
|
|
|
|
number: GPIO12
|
|
|
|
allow_other_uses: true
|
2018-08-26 11:26:14 +02:00
|
|
|
count_mode:
|
|
|
|
rising_edge: INCREMENT
|
|
|
|
falling_edge: DECREMENT
|
|
|
|
internal_filter: 13us
|
|
|
|
update_interval: 15s
|
2021-03-19 09:16:27 +01:00
|
|
|
- platform: pulse_meter
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Pulse Meter
|
2021-05-14 10:06:31 +02:00
|
|
|
id: pulse_meter_sensor
|
2023-12-05 00:56:53 +01:00
|
|
|
pin:
|
|
|
|
ignore_strapping_warning: true
|
|
|
|
number: GPIO12
|
|
|
|
allow_other_uses: true
|
2021-03-19 09:16:27 +01:00
|
|
|
internal_filter: 100ms
|
|
|
|
timeout: 2 min
|
2021-05-14 10:06:31 +02:00
|
|
|
on_value:
|
|
|
|
- pulse_meter.set_total_pulses:
|
|
|
|
id: pulse_meter_sensor
|
|
|
|
value: 12345
|
2021-03-19 09:16:27 +01:00
|
|
|
total:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Pulse Meter Total
|
2022-03-14 20:09:17 +01:00
|
|
|
- platform: qmp6988
|
|
|
|
temperature:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Temperature QMP
|
2022-03-14 20:09:17 +01:00
|
|
|
oversampling: 32x
|
|
|
|
pressure:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Pressure QMP
|
2022-03-14 20:09:17 +01:00
|
|
|
oversampling: 2x
|
|
|
|
address: 0x70
|
|
|
|
update_interval: 30s
|
|
|
|
iir_filter: 16x
|
|
|
|
i2c_id: i2c_bus
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: rotary_encoder
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Rotary Encoder
|
2019-10-17 19:14:52 +02:00
|
|
|
id: rotary_encoder1
|
2023-12-05 00:56:53 +01:00
|
|
|
pin_a:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
|
|
|
pin_b:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO25
|
|
|
|
pin_reset:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO25
|
2018-08-26 11:26:14 +02:00
|
|
|
filters:
|
|
|
|
- or:
|
2020-11-20 03:59:19 +01:00
|
|
|
- debounce: 0.1s
|
|
|
|
- delta: 10
|
2019-02-28 10:17:38 +01:00
|
|
|
resolution: 4
|
|
|
|
min_value: -10
|
|
|
|
max_value: 30
|
2019-10-17 19:14:52 +02:00
|
|
|
on_value:
|
|
|
|
- sensor.rotary_encoder.set_value:
|
|
|
|
id: rotary_encoder1
|
|
|
|
value: 10
|
|
|
|
- sensor.rotary_encoder.set_value:
|
|
|
|
id: rotary_encoder1
|
2022-01-23 09:05:37 +01:00
|
|
|
value: !lambda "return -1;"
|
2020-11-01 18:24:26 +01:00
|
|
|
on_clockwise:
|
2022-09-06 05:48:01 +02:00
|
|
|
- logger.log: Clockwise
|
2023-12-12 04:15:59 +01:00
|
|
|
- display_menu.down: test_lcd_menu
|
|
|
|
- display_menu.down: test_graphical_display_menu
|
2020-11-01 18:24:26 +01:00
|
|
|
on_anticlockwise:
|
2022-09-06 05:48:01 +02:00
|
|
|
- logger.log: Anticlockwise
|
2023-12-12 04:15:59 +01:00
|
|
|
- display_menu.up: test_lcd_menu
|
|
|
|
- display_menu.up: test_graphical_display_menu
|
2019-04-22 21:56:30 +02:00
|
|
|
- platform: pulse_width
|
|
|
|
name: Pulse Width
|
2023-12-05 00:56:53 +01:00
|
|
|
pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO12
|
2021-03-03 01:54:52 +01:00
|
|
|
- platform: sm300d2
|
2023-03-20 03:29:21 +01:00
|
|
|
uart_id: uart_0
|
2021-03-03 01:54:52 +01:00
|
|
|
co2:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: SM300D2 CO2 Value
|
2021-03-03 01:54:52 +01:00
|
|
|
formaldehyde:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: SM300D2 Formaldehyde Value
|
2021-03-03 01:54:52 +01:00
|
|
|
tvoc:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: SM300D2 TVOC Value
|
2021-03-03 01:54:52 +01:00
|
|
|
pm_2_5:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: SM300D2 PM2.5 Value
|
2021-03-03 01:54:52 +01:00
|
|
|
pm_10_0:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: SM300D2 PM10 Value
|
2021-03-03 01:54:52 +01:00
|
|
|
temperature:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: SM300D2 Temperature Value
|
2021-03-03 01:54:52 +01:00
|
|
|
humidity:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: SM300D2 Humidity Value
|
2021-03-07 23:59:32 +01:00
|
|
|
update_interval: 60s
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: sht3xd
|
|
|
|
temperature:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room Temperature 8
|
2018-08-26 11:26:14 +02:00
|
|
|
humidity:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room Humidity 8
|
2018-08-26 11:26:14 +02:00
|
|
|
address: 0x44
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2018-08-26 11:26:14 +02:00
|
|
|
update_interval: 15s
|
2019-10-19 21:31:37 +02:00
|
|
|
- platform: sts3x
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room Temperature 9
|
2019-10-19 21:31:37 +02:00
|
|
|
address: 0x4A
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2019-08-31 19:24:37 +02:00
|
|
|
- platform: scd30
|
|
|
|
co2:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room CO2 9
|
2019-08-31 19:24:37 +02:00
|
|
|
temperature:
|
2022-01-09 23:44:36 +01:00
|
|
|
id: scd30_temperature
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room Temperature 9
|
2019-08-31 19:24:37 +02:00
|
|
|
humidity:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room Humidity 9
|
2019-08-31 19:24:37 +02:00
|
|
|
address: 0x61
|
|
|
|
update_interval: 15s
|
2021-09-28 22:10:25 +02:00
|
|
|
automatic_self_calibration: true
|
|
|
|
altitude_compensation: 10m
|
|
|
|
ambient_pressure_compensation: 961mBar
|
|
|
|
temperature_offset: 4.2C
|
|
|
|
i2c_id: i2c_bus
|
|
|
|
- platform: scd4x
|
2022-05-10 11:25:44 +02:00
|
|
|
id: scd40
|
2021-09-28 22:10:25 +02:00
|
|
|
co2:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: SCD4X CO2
|
2021-09-28 22:10:25 +02:00
|
|
|
temperature:
|
2022-01-09 23:44:36 +01:00
|
|
|
id: scd4x_temperature
|
2022-09-06 05:48:01 +02:00
|
|
|
name: SCD4X Temperature
|
2021-09-28 22:10:25 +02:00
|
|
|
humidity:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: SCD4X Humidity
|
2021-09-28 22:10:25 +02:00
|
|
|
update_interval: 15s
|
2020-03-12 01:39:40 +01:00
|
|
|
automatic_self_calibration: true
|
|
|
|
altitude_compensation: 10m
|
2020-11-15 19:03:08 +01:00
|
|
|
ambient_pressure_compensation: 961mBar
|
2020-12-03 19:21:10 +01:00
|
|
|
temperature_offset: 4.2C
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2023-10-15 20:49:57 +02:00
|
|
|
- platform: sfa30
|
|
|
|
formaldehyde:
|
|
|
|
name: "SFA30 formaldehyde"
|
|
|
|
temperature:
|
|
|
|
name: "SFA30 temperature"
|
|
|
|
humidity:
|
|
|
|
name: "SFA30 humidity"
|
|
|
|
i2c_id: i2c_bus
|
|
|
|
address: 0x5D
|
|
|
|
update_interval: 30s
|
2023-09-06 00:09:22 +02:00
|
|
|
- platform: sen0321
|
|
|
|
name: Workshop Ozone Sensor
|
|
|
|
id: sen0321_ozone
|
|
|
|
update_interval: 10s
|
|
|
|
i2c_id: i2c_bus
|
2019-10-19 21:21:07 +02:00
|
|
|
- platform: sgp30
|
|
|
|
eco2:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Workshop eCO2
|
2019-10-19 21:21:07 +02:00
|
|
|
accuracy_decimals: 1
|
|
|
|
tvoc:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Workshop TVOC
|
2019-10-19 21:21:07 +02:00
|
|
|
accuracy_decimals: 1
|
|
|
|
address: 0x58
|
|
|
|
update_interval: 5s
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2019-12-04 12:34:10 +01:00
|
|
|
- platform: sps30
|
|
|
|
pm_1_0:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Workshop PM <1µm Weight concentration
|
|
|
|
id: workshop_PM_1_0
|
2019-12-04 12:34:10 +01:00
|
|
|
pm_2_5:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Workshop PM <2.5µm Weight concentration
|
|
|
|
id: workshop_PM_2_5
|
2019-12-04 12:34:10 +01:00
|
|
|
pm_4_0:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Workshop PM <4µm Weight concentration
|
|
|
|
id: workshop_PM_4_0
|
2019-12-04 12:34:10 +01:00
|
|
|
pm_10_0:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Workshop PM <10µm Weight concentration
|
|
|
|
id: workshop_PM_10_0
|
2019-12-04 12:34:10 +01:00
|
|
|
pmc_0_5:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Workshop PM <0.5µm Number concentration
|
|
|
|
id: workshop_PMC_0_5
|
2019-12-04 12:34:10 +01:00
|
|
|
pmc_1_0:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Workshop PM <1µm Number concentration
|
|
|
|
id: workshop_PMC_1_0
|
2019-12-04 12:34:10 +01:00
|
|
|
pmc_2_5:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Workshop PM <2.5µm Number concentration
|
|
|
|
id: workshop_PMC_2_5
|
2019-12-04 12:34:10 +01:00
|
|
|
pmc_4_0:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Workshop PM <4µm Number concentration
|
|
|
|
id: workshop_PMC_4_0
|
2019-12-04 12:34:10 +01:00
|
|
|
pmc_10_0:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Workshop PM <10µm Number concentration
|
|
|
|
id: workshop_PMC_10_0
|
2019-12-04 12:34:10 +01:00
|
|
|
address: 0x69
|
|
|
|
update_interval: 10s
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2021-04-28 10:22:46 +02:00
|
|
|
- platform: sht4x
|
|
|
|
temperature:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: SHT4X Temperature
|
2021-04-28 10:22:46 +02:00
|
|
|
humidity:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: SHT4X Humidity
|
2021-04-28 10:22:46 +02:00
|
|
|
address: 0x44
|
|
|
|
update_interval: 15s
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2019-10-19 21:31:27 +02:00
|
|
|
- platform: shtcx
|
2019-10-19 21:59:55 +02:00
|
|
|
temperature:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room Temperature 10
|
2019-10-19 21:59:55 +02:00
|
|
|
humidity:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room Humidity 10
|
2019-10-19 21:59:55 +02:00
|
|
|
address: 0x70
|
|
|
|
update_interval: 15s
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: template
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Template Sensor
|
2021-06-03 03:49:56 +02:00
|
|
|
state_class: measurement
|
2019-02-10 23:35:07 +01:00
|
|
|
id: template_sensor
|
|
|
|
lambda: |-
|
2018-10-20 15:16:58 +02:00
|
|
|
if (id(ultrasonic_sensor1).state > 1) {
|
2018-08-26 11:26:14 +02:00
|
|
|
return 42.0;
|
|
|
|
} else {
|
|
|
|
return {};
|
|
|
|
}
|
|
|
|
update_interval: 15s
|
2019-02-10 23:35:07 +01:00
|
|
|
on_value:
|
|
|
|
- sensor.template.publish:
|
|
|
|
id: template_sensor
|
|
|
|
state: 43.0
|
|
|
|
- sensor.template.publish:
|
|
|
|
id: template_sensor
|
2022-01-23 09:05:37 +01:00
|
|
|
state: !lambda "return NAN;"
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: tsl2561
|
2022-09-06 05:48:01 +02:00
|
|
|
name: TSL2561 Ambient Light
|
2018-08-26 11:26:14 +02:00
|
|
|
address: 0x39
|
|
|
|
update_interval: 15s
|
|
|
|
is_cs_package: true
|
|
|
|
integration_time: 402ms
|
|
|
|
gain: 16x
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2021-08-10 10:48:06 +02:00
|
|
|
- platform: tsl2591
|
|
|
|
id: this_little_light_of_mine
|
|
|
|
address: 0x29
|
|
|
|
update_interval: 15s
|
|
|
|
integration_time: 600ms
|
|
|
|
gain: high
|
|
|
|
visible:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: tsl2591 visible
|
2021-08-10 10:48:06 +02:00
|
|
|
id: tsl2591_vis
|
2022-09-06 05:48:01 +02:00
|
|
|
unit_of_measurement: pH
|
2021-08-10 10:48:06 +02:00
|
|
|
infrared:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: tsl2591 infrared
|
2021-08-10 10:48:06 +02:00
|
|
|
id: tsl2591_ir
|
|
|
|
full_spectrum:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: tsl2591 full_spectrum
|
2021-08-10 10:48:06 +02:00
|
|
|
id: tsl2591_fs
|
|
|
|
calculated_lux:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: tsl2591 calculated_lux
|
2021-08-10 10:48:06 +02:00
|
|
|
id: tsl2591_cl
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2023-01-17 22:43:16 +01:00
|
|
|
- platform: tee501
|
|
|
|
name: Office Temperature 3
|
|
|
|
address: 0x48
|
|
|
|
i2c_id: i2c_bus
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: ultrasonic
|
2023-12-05 00:56:53 +01:00
|
|
|
trigger_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO25
|
2018-08-26 11:26:14 +02:00
|
|
|
echo_pin:
|
|
|
|
number: GPIO23
|
2023-12-05 00:56:53 +01:00
|
|
|
allow_other_uses: true
|
2018-08-26 11:26:14 +02:00
|
|
|
inverted: true
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Ultrasonic Sensor
|
2019-03-03 16:47:10 +01:00
|
|
|
timeout: 5.5m
|
2018-08-26 11:26:14 +02:00
|
|
|
id: ultrasonic_sensor1
|
|
|
|
- platform: uptime
|
|
|
|
name: Uptime Sensor
|
2023-02-07 02:08:40 +01:00
|
|
|
- id: !extend ${devicename}_uptime_pcg
|
|
|
|
unit_of_measurement: s
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: wifi_signal
|
2022-09-06 05:48:01 +02:00
|
|
|
name: WiFi Signal Sensor
|
2018-08-26 11:26:14 +02:00
|
|
|
update_interval: 15s
|
2019-01-29 17:29:21 +01:00
|
|
|
- platform: mqtt_subscribe
|
2022-09-06 05:48:01 +02:00
|
|
|
name: MQTT Subscribe Sensor 1
|
|
|
|
topic: mqtt/topic
|
2019-01-29 17:29:21 +01:00
|
|
|
id: the_sensor
|
|
|
|
qos: 2
|
|
|
|
on_value:
|
|
|
|
- mqtt.publish_json:
|
|
|
|
topic: the/topic
|
|
|
|
payload: |-
|
2019-03-05 13:53:09 +01:00
|
|
|
root["key"] = id(the_sensor).state;
|
2019-01-29 17:29:21 +01:00
|
|
|
root["greeting"] = "Hello World";
|
2019-03-06 12:39:52 +01:00
|
|
|
- platform: sds011
|
2023-03-20 03:29:21 +01:00
|
|
|
uart_id: uart_0
|
2019-03-06 12:39:52 +01:00
|
|
|
pm_2_5:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: SDS011 PM2.5
|
2019-03-06 12:39:52 +01:00
|
|
|
pm_10_0:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: SDS011 PM10.0
|
2019-03-06 12:39:52 +01:00
|
|
|
update_interval: 5min
|
|
|
|
rx_only: false
|
2019-05-13 13:06:14 +02:00
|
|
|
- platform: ccs811
|
|
|
|
eco2:
|
|
|
|
name: CCS811 eCO2
|
|
|
|
tvoc:
|
|
|
|
name: CCS811 TVOC
|
|
|
|
update_interval: 30s
|
|
|
|
baseline: 0x4242
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2019-07-03 16:42:32 +02:00
|
|
|
- platform: tx20
|
|
|
|
wind_speed:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Windspeed
|
2019-07-03 16:42:32 +02:00
|
|
|
wind_direction_degrees:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Winddirection Degrees
|
2019-12-03 15:50:06 +01:00
|
|
|
pin:
|
2019-07-03 16:42:32 +02:00
|
|
|
number: GPIO04
|
|
|
|
mode: INPUT
|
2023-12-05 00:56:53 +01:00
|
|
|
allow_other_uses: true
|
2019-07-03 16:33:18 +02:00
|
|
|
- platform: zyaura
|
2023-12-05 00:56:53 +01:00
|
|
|
clock_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO5
|
|
|
|
data_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO4
|
2019-07-03 16:33:18 +02:00
|
|
|
co2:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: ZyAura CO2
|
2019-07-03 16:33:18 +02:00
|
|
|
temperature:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: ZyAura Temperature
|
2019-07-03 16:33:18 +02:00
|
|
|
humidity:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: ZyAura Humidity
|
2019-10-12 17:03:01 +02:00
|
|
|
- platform: as3935
|
2019-10-12 15:03:35 +02:00
|
|
|
lightning_energy:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Lightning Energy
|
2019-10-12 15:03:35 +02:00
|
|
|
distance:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Distance Storm
|
2020-03-12 22:25:00 +01:00
|
|
|
- platform: tmp117
|
2022-09-06 05:48:01 +02:00
|
|
|
name: TMP117 Temperature
|
2020-03-12 22:25:00 +01:00
|
|
|
update_interval: 5s
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2020-04-06 19:11:41 +02:00
|
|
|
- platform: hm3301
|
|
|
|
pm_1_0:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PM1.0
|
2020-04-06 19:11:41 +02:00
|
|
|
pm_2_5:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PM2.5
|
2020-04-06 19:11:41 +02:00
|
|
|
pm_10_0:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PM10.0
|
2020-06-12 04:14:54 +02:00
|
|
|
aqi:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: AQI
|
|
|
|
calculation_type: CAQI
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2020-11-15 19:08:19 +01:00
|
|
|
- platform: teleinfo
|
2022-09-06 05:48:01 +02:00
|
|
|
tag_name: HCHC
|
|
|
|
name: hchc
|
|
|
|
unit_of_measurement: Wh
|
2021-06-01 03:32:09 +02:00
|
|
|
icon: mdi:flash
|
|
|
|
teleinfo_id: myteleinfo
|
2020-10-26 19:24:26 +01:00
|
|
|
- platform: mcp9808
|
2022-09-06 05:48:01 +02:00
|
|
|
name: MCP9808 Temperature
|
2020-10-26 19:24:26 +01:00
|
|
|
update_interval: 15s
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2020-11-17 10:01:42 +01:00
|
|
|
- platform: ezo
|
|
|
|
id: ph_ezo
|
|
|
|
address: 99
|
2022-09-06 05:48:01 +02:00
|
|
|
unit_of_measurement: pH
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2021-07-29 10:57:52 +02:00
|
|
|
- platform: sdp3x
|
2022-09-06 05:48:01 +02:00
|
|
|
name: HVAC Filter Pressure drop
|
2021-07-29 10:57:52 +02:00
|
|
|
id: filter_pressure
|
|
|
|
update_interval: 5s
|
|
|
|
accuracy_decimals: 3
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2021-05-31 06:07:33 +02:00
|
|
|
- platform: cs5460a
|
|
|
|
id: cs5460a1
|
|
|
|
current:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Socket current
|
2021-05-31 06:07:33 +02:00
|
|
|
voltage:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Mains voltage
|
2021-05-31 06:07:33 +02:00
|
|
|
power:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Socket power
|
2021-05-31 06:07:33 +02:00
|
|
|
on_value:
|
|
|
|
then:
|
|
|
|
cs5460a.restart: cs5460a1
|
|
|
|
samples: 1600
|
|
|
|
pga_gain: 10X
|
|
|
|
current_gain: 0.01
|
|
|
|
voltage_gain: 0.000573
|
2022-09-06 05:48:01 +02:00
|
|
|
current_hpf: true
|
|
|
|
voltage_hpf: true
|
2021-05-31 06:07:33 +02:00
|
|
|
phase_offset: 20
|
|
|
|
pulse_energy: 0.01 kWh
|
|
|
|
cs_pin:
|
|
|
|
mcp23xxx: mcp23017_hub
|
|
|
|
number: 14
|
2022-02-08 10:56:40 +01:00
|
|
|
- platform: max9611
|
|
|
|
i2c_id: i2c_bus
|
|
|
|
shunt_resistance: 0.2 ohm
|
2022-09-06 05:48:01 +02:00
|
|
|
gain: 1X
|
2022-02-08 10:56:40 +01:00
|
|
|
voltage:
|
|
|
|
name: Max9611 Voltage
|
|
|
|
current:
|
|
|
|
name: Max9611 Current
|
|
|
|
power:
|
|
|
|
name: Max9611 Watts
|
|
|
|
temperature:
|
|
|
|
name: Max9611 Temp
|
|
|
|
update_interval: 1s
|
2023-04-27 03:17:09 +02:00
|
|
|
- platform: mlx90614
|
|
|
|
i2c_id: i2c_bus
|
|
|
|
ambient:
|
|
|
|
name: Ambient
|
|
|
|
object:
|
|
|
|
name: Object
|
|
|
|
emissivity: 1.0
|
2022-09-09 07:18:02 +02:00
|
|
|
- platform: mpl3115a2
|
|
|
|
i2c_id: i2c_bus
|
|
|
|
temperature:
|
|
|
|
name: "MPL3115A2 Temperature"
|
|
|
|
pressure:
|
|
|
|
name: "MPL3115A2 Pressure"
|
|
|
|
update_interval: 10s
|
2023-07-11 07:12:43 +02:00
|
|
|
- platform: alpha3
|
|
|
|
ble_client_id: ble_foo
|
|
|
|
flow:
|
|
|
|
name: "Radiator Pump Flow"
|
|
|
|
head:
|
|
|
|
name: "Radiator Pump Head"
|
|
|
|
power:
|
|
|
|
name: "Radiator Pump Power"
|
|
|
|
speed:
|
|
|
|
name: "Radiator Pump Speed"
|
2023-02-06 23:47:50 +01:00
|
|
|
- platform: ld2410
|
2023-08-16 01:31:18 +02:00
|
|
|
light:
|
|
|
|
name: light
|
2023-02-06 23:47:50 +01:00
|
|
|
moving_distance:
|
|
|
|
name: "Moving distance (cm)"
|
|
|
|
still_distance:
|
|
|
|
name: "Still Distance (cm)"
|
|
|
|
moving_energy:
|
2023-08-16 01:31:18 +02:00
|
|
|
name: "Move Energy (%)"
|
2023-02-06 23:47:50 +01:00
|
|
|
still_energy:
|
2023-08-16 01:31:18 +02:00
|
|
|
name: "Still Energy (%)"
|
2023-02-06 23:47:50 +01:00
|
|
|
detection_distance:
|
2023-08-16 01:31:18 +02:00
|
|
|
name: "Distance Detection (cm)"
|
|
|
|
g0:
|
|
|
|
move_energy:
|
|
|
|
name: g0 move energy
|
|
|
|
still_energy:
|
|
|
|
name: g0 still energy
|
|
|
|
g1:
|
|
|
|
move_energy:
|
|
|
|
name: g1 move energy
|
|
|
|
still_energy:
|
|
|
|
name: g1 still energy
|
|
|
|
g2:
|
|
|
|
move_energy:
|
|
|
|
name: g2 move energy
|
|
|
|
still_energy:
|
|
|
|
name: g2 still energy
|
|
|
|
g3:
|
|
|
|
move_energy:
|
|
|
|
name: g3 move energy
|
|
|
|
still_energy:
|
|
|
|
name: g3 still energy
|
|
|
|
g4:
|
|
|
|
move_energy:
|
|
|
|
name: g4 move energy
|
|
|
|
still_energy:
|
|
|
|
name: g4 still energy
|
|
|
|
g5:
|
|
|
|
move_energy:
|
|
|
|
name: g5 move energy
|
|
|
|
still_energy:
|
|
|
|
name: g5 still energy
|
|
|
|
g6:
|
|
|
|
move_energy:
|
|
|
|
name: g6 move energy
|
|
|
|
still_energy:
|
|
|
|
name: g6 still energy
|
|
|
|
g7:
|
|
|
|
move_energy:
|
|
|
|
name: g7 move energy
|
|
|
|
still_energy:
|
|
|
|
name: g7 still energy
|
|
|
|
g8:
|
|
|
|
move_energy:
|
|
|
|
name: g8 move energy
|
|
|
|
still_energy:
|
|
|
|
name: g8 still energy
|
|
|
|
|
2023-11-03 00:02:23 +01:00
|
|
|
- platform: ld2420
|
|
|
|
moving_distance:
|
|
|
|
name: "Moving distance (cm)"
|
2023-02-23 01:37:23 +01:00
|
|
|
- platform: sen21231
|
|
|
|
name: "Person Sensor"
|
|
|
|
i2c_id: i2c_bus
|
2023-03-07 05:25:14 +01:00
|
|
|
- platform: fs3000
|
|
|
|
name: "Air Velocity"
|
|
|
|
model: 1005
|
|
|
|
update_interval: 60s
|
|
|
|
i2c_id: i2c_bus
|
2023-03-07 21:47:25 +01:00
|
|
|
- platform: absolute_humidity
|
|
|
|
name: DHT Absolute Humidity
|
|
|
|
temperature: dht_temperature
|
|
|
|
humidity: dht_humidity
|
2023-05-01 06:18:31 +02:00
|
|
|
- platform: hyt271
|
|
|
|
i2c_id: i2c_bus
|
|
|
|
temperature:
|
|
|
|
name: "Temperature hyt271"
|
|
|
|
id: temp_etuve
|
|
|
|
humidity:
|
|
|
|
name: "Humidity hyt271"
|
2023-10-24 01:35:51 +02:00
|
|
|
- platform: iaqcore
|
|
|
|
i2c_id: i2c_bus
|
|
|
|
co2:
|
|
|
|
name: "iAQ Core CO2 Sensor"
|
|
|
|
tvoc:
|
|
|
|
name: "iAQ Core TVOC Sensor"
|
2023-05-26 07:01:21 +02:00
|
|
|
- platform: tmp1075
|
|
|
|
name: "Temperature TMP1075"
|
|
|
|
update_interval: 10s
|
|
|
|
i2c_id: i2c_bus
|
|
|
|
conversion_rate: 27.5ms
|
|
|
|
alert:
|
|
|
|
limit_low: 50
|
|
|
|
limit_high: 75
|
|
|
|
fault_count: 1
|
|
|
|
polarity: active_high
|
|
|
|
function: comparator
|
2023-07-11 06:24:18 +02:00
|
|
|
- platform: zio_ultrasonic
|
|
|
|
name: "Distance"
|
|
|
|
update_interval: 60s
|
|
|
|
i2c_id: i2c_bus
|
2023-08-08 07:05:08 +02:00
|
|
|
- platform: bmp581
|
|
|
|
i2c_id: i2c_bus
|
|
|
|
temperature:
|
|
|
|
name: "BMP581 Temperature"
|
|
|
|
iir_filter: 2x
|
|
|
|
pressure:
|
|
|
|
name: "BMP581 Pressure"
|
|
|
|
oversampling: 128x
|
2023-09-05 04:02:59 +02:00
|
|
|
- platform: debug
|
|
|
|
free:
|
|
|
|
name: "Heap Free"
|
|
|
|
block:
|
|
|
|
name: "Heap Max Block"
|
|
|
|
loop_time:
|
|
|
|
name: "Loop Time"
|
|
|
|
psram:
|
|
|
|
name: "PSRAM Free"
|
2023-10-08 23:26:58 +02:00
|
|
|
- platform: mmc5983
|
|
|
|
i2c_id: i2c_bus
|
|
|
|
field_strength_x:
|
|
|
|
name: "Magnet X"
|
|
|
|
id: magnet_x
|
|
|
|
field_strength_y:
|
|
|
|
name: "Magnet Y"
|
|
|
|
id: magnet_y
|
|
|
|
field_strength_z:
|
|
|
|
name: "Magnet Z"
|
|
|
|
id: magnet_z
|
2023-11-03 07:54:47 +01:00
|
|
|
- platform: micronova
|
|
|
|
room_temperature:
|
|
|
|
name: Room Temperature
|
|
|
|
fumes_temperature:
|
|
|
|
name: Fumes Temperature
|
|
|
|
water_temperature:
|
|
|
|
name: Water temperature
|
|
|
|
water_pressure:
|
|
|
|
name: Water pressure
|
|
|
|
stove_power:
|
|
|
|
name: Stove Power
|
|
|
|
fan_speed:
|
|
|
|
fan_rpm_offset: 240
|
|
|
|
name: Fan RPM
|
|
|
|
memory_address_sensor:
|
|
|
|
memory_location: 0x20
|
|
|
|
memory_address: 0x7d
|
|
|
|
name: Adres sensor
|
2023-03-07 05:25:14 +01:00
|
|
|
|
2023-11-28 01:42:03 +01:00
|
|
|
psram:
|
|
|
|
|
2018-08-26 11:26:14 +02:00
|
|
|
esp32_touch:
|
2022-09-06 05:48:01 +02:00
|
|
|
setup_mode: false
|
2018-08-26 11:26:14 +02:00
|
|
|
iir_filter: 10ms
|
|
|
|
sleep_duration: 27ms
|
|
|
|
measurement_duration: 8ms
|
|
|
|
low_voltage_reference: 0.5V
|
|
|
|
high_voltage_reference: 2.7V
|
|
|
|
voltage_attenuation: 1.5V
|
|
|
|
|
|
|
|
binary_sensor:
|
2020-12-06 18:43:55 +01:00
|
|
|
- platform: gpio
|
2022-01-23 09:05:37 +01:00
|
|
|
name: "MCP23S08 Pin #1"
|
2020-12-06 18:43:55 +01:00
|
|
|
pin:
|
2021-03-07 20:23:54 +01:00
|
|
|
mcp23xxx: mcp23s08_hub
|
2020-12-06 18:43:55 +01:00
|
|
|
# Use pin number 1
|
|
|
|
number: 1
|
|
|
|
# One of INPUT or INPUT_PULLUP
|
|
|
|
mode: INPUT_PULLUP
|
2022-09-06 05:48:01 +02:00
|
|
|
inverted: false
|
2020-12-06 18:43:55 +01:00
|
|
|
- platform: gpio
|
2022-01-23 09:05:37 +01:00
|
|
|
name: "MCP23S17 Pin #1"
|
2020-12-06 18:43:55 +01:00
|
|
|
pin:
|
2021-03-07 20:23:54 +01:00
|
|
|
mcp23xxx: mcp23s17_hub
|
2020-12-06 18:43:55 +01:00
|
|
|
# Use pin number 1
|
|
|
|
number: 1
|
2023-12-05 00:56:53 +01:00
|
|
|
allow_other_uses: true
|
2020-12-06 18:43:55 +01:00
|
|
|
# One of INPUT or INPUT_PULLUP
|
|
|
|
mode: INPUT_PULLUP
|
2022-09-06 05:48:01 +02:00
|
|
|
inverted: false
|
2021-03-07 20:23:54 +01:00
|
|
|
- platform: gpio
|
2022-01-23 09:05:37 +01:00
|
|
|
name: "MCP23S17 Pin #1 with interrupt"
|
2021-03-07 20:23:54 +01:00
|
|
|
pin:
|
|
|
|
mcp23xxx: mcp23s17_hub
|
|
|
|
# Use pin number 1
|
2023-12-05 00:56:53 +01:00
|
|
|
allow_other_uses: true
|
2021-03-07 20:23:54 +01:00
|
|
|
number: 1
|
|
|
|
# One of INPUT or INPUT_PULLUP
|
|
|
|
mode: INPUT_PULLUP
|
2022-09-06 05:48:01 +02:00
|
|
|
inverted: false
|
2021-03-07 20:23:54 +01:00
|
|
|
interrupt: FALLING
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: gpio
|
2023-12-05 00:56:53 +01:00
|
|
|
pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO9
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room Window
|
2018-08-26 11:26:14 +02:00
|
|
|
device_class: window
|
|
|
|
filters:
|
|
|
|
- invert:
|
2023-07-04 02:25:48 +02:00
|
|
|
- delayed_on_off: 40ms
|
|
|
|
- delayed_on_off:
|
|
|
|
time_on: 10s
|
|
|
|
time_off: !lambda "return 1000;"
|
2018-08-26 11:26:14 +02:00
|
|
|
- delayed_on: 40ms
|
|
|
|
- delayed_off: 40ms
|
2023-07-04 02:25:48 +02:00
|
|
|
- delayed_on_off: !lambda "return 10;"
|
|
|
|
- delayed_on: !lambda "return 1000;"
|
|
|
|
- delayed_off: !lambda "return 0;"
|
2023-12-22 03:33:29 +01:00
|
|
|
- settle: 40ms
|
|
|
|
- settle: !lambda "return 10;"
|
2018-08-26 11:26:14 +02:00
|
|
|
on_press:
|
|
|
|
then:
|
|
|
|
- lambda: >-
|
|
|
|
ESP_LOGD("main", "Pressed");
|
|
|
|
on_release:
|
|
|
|
then:
|
|
|
|
- lambda: >-
|
|
|
|
ESP_LOGD("main", "Released");
|
|
|
|
on_click:
|
|
|
|
- min_length: 50ms
|
|
|
|
max_length: 350ms
|
|
|
|
then:
|
|
|
|
- lambda: >-
|
|
|
|
ESP_LOGD("main", "Clicked");
|
|
|
|
- then:
|
|
|
|
- lambda: >-
|
|
|
|
ESP_LOGD("main", "Clicked");
|
|
|
|
on_double_click:
|
|
|
|
- min_length: 50ms
|
|
|
|
max_length: 350ms
|
|
|
|
then:
|
2020-11-20 03:59:19 +01:00
|
|
|
- lambda: >-
|
|
|
|
ESP_LOGD("main", "Double Clicked");
|
2018-08-26 11:26:14 +02:00
|
|
|
- then:
|
2020-11-20 03:59:19 +01:00
|
|
|
- lambda: >-
|
|
|
|
ESP_LOGD("main", "Double Clicked");
|
2018-11-09 20:18:04 +01:00
|
|
|
on_multi_click:
|
2020-11-20 03:59:19 +01:00
|
|
|
- timing:
|
|
|
|
- ON for at most 1s
|
|
|
|
- OFF for at most 1s
|
|
|
|
- ON for at most 1s
|
|
|
|
- OFF for at least 0.2s
|
|
|
|
then:
|
|
|
|
- logger.log:
|
2022-09-06 05:48:01 +02:00
|
|
|
format: Multi Clicked TWO
|
2020-11-20 03:59:19 +01:00
|
|
|
level: warn
|
|
|
|
- timing:
|
|
|
|
- OFF for 1s to 2s
|
|
|
|
- ON for 1s to 2s
|
|
|
|
- OFF for at least 0.5s
|
|
|
|
then:
|
|
|
|
- logger.log:
|
2022-09-06 05:48:01 +02:00
|
|
|
format: Multi Clicked LONG SINGLE
|
2020-11-20 03:59:19 +01:00
|
|
|
level: warn
|
|
|
|
- timing:
|
|
|
|
- ON for at most 1s
|
|
|
|
- OFF for at least 0.5s
|
|
|
|
then:
|
|
|
|
- logger.log:
|
2022-09-06 05:48:01 +02:00
|
|
|
format: Multi Clicked SINGLE
|
2020-11-20 03:59:19 +01:00
|
|
|
level: warn
|
2018-08-26 11:26:14 +02:00
|
|
|
id: binary_sensor1
|
2018-12-02 13:16:02 +01:00
|
|
|
- platform: gpio
|
|
|
|
pin:
|
|
|
|
number: GPIO9
|
2023-12-05 00:56:53 +01:00
|
|
|
allow_other_uses: true
|
2018-12-02 13:16:02 +01:00
|
|
|
mode: INPUT_PULLUP
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room Window 2
|
2023-02-07 00:55:35 +01:00
|
|
|
- platform: gpio
|
|
|
|
pin:
|
|
|
|
number: GPIO9
|
2023-12-05 00:56:53 +01:00
|
|
|
allow_other_uses: true
|
2023-02-07 00:55:35 +01:00
|
|
|
mode: INPUT_OUTPUT_OPEN_DRAIN
|
|
|
|
name: Living Room Button
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: status
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room Status
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: esp32_touch
|
2022-09-06 05:48:01 +02:00
|
|
|
name: ESP32 Touch Pad GPIO27
|
2018-08-26 11:26:14 +02:00
|
|
|
pin: GPIO27
|
|
|
|
threshold: 1000
|
2019-06-16 19:14:13 +02:00
|
|
|
id: btn_left
|
2022-11-07 07:00:55 +01:00
|
|
|
on_press:
|
|
|
|
- if:
|
|
|
|
condition:
|
2023-12-12 04:15:59 +01:00
|
|
|
display_menu.is_active: test_lcd_menu
|
2022-11-07 07:00:55 +01:00
|
|
|
then:
|
2023-12-12 04:15:59 +01:00
|
|
|
- display_menu.enter: test_lcd_menu
|
2022-11-07 07:00:55 +01:00
|
|
|
else:
|
2023-12-12 04:15:59 +01:00
|
|
|
- display_menu.left: test_lcd_menu
|
|
|
|
- display_menu.right: test_lcd_menu
|
|
|
|
- display_menu.show: test_lcd_menu
|
|
|
|
- if:
|
|
|
|
condition:
|
|
|
|
display_menu.is_active: test_graphical_display_menu
|
|
|
|
then:
|
|
|
|
- display_menu.enter: test_graphical_display_menu
|
|
|
|
else:
|
|
|
|
- display_menu.left: test_graphical_display_menu
|
|
|
|
- display_menu.right: test_graphical_display_menu
|
|
|
|
- display_menu.show: test_graphical_display_menu
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: template
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Garage Door Open
|
2019-02-10 23:35:07 +01:00
|
|
|
id: garage_door
|
|
|
|
lambda: |-
|
2021-02-20 01:52:42 +01:00
|
|
|
if (isnan(id(${sensorname}_sensor).state)) {
|
2018-08-26 11:26:14 +02:00
|
|
|
// isnan checks if the ultrasonic sensor echo
|
|
|
|
// has timed out, resulting in a NaN (not a number) state
|
|
|
|
// in that case, return {} to indicate that we don't know.
|
|
|
|
return {};
|
2021-02-20 01:52:42 +01:00
|
|
|
} else if (id(${sensorname}_sensor).state > 30) {
|
2018-08-26 11:26:14 +02:00
|
|
|
// Garage Door is open.
|
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
// Garage Door is closed.
|
|
|
|
return false;
|
|
|
|
}
|
2019-02-10 23:35:07 +01:00
|
|
|
on_press:
|
|
|
|
- binary_sensor.template.publish:
|
|
|
|
id: garage_door
|
2022-09-06 05:48:01 +02:00
|
|
|
state: false
|
2019-10-18 11:22:08 +02:00
|
|
|
- output.ledc.set_frequency:
|
|
|
|
id: gpio_19
|
|
|
|
frequency: 500.0Hz
|
|
|
|
- output.ledc.set_frequency:
|
|
|
|
id: gpio_19
|
2022-01-23 09:05:37 +01:00
|
|
|
frequency: !lambda "return 500.0;"
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: pn532
|
2021-03-07 23:59:32 +01:00
|
|
|
pn532_id: pn532_bs
|
2018-08-26 11:26:14 +02:00
|
|
|
uid: 74-10-37-94
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PN532 NFC Tag
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: rdm6300
|
|
|
|
uid: 7616525
|
2022-09-06 05:48:01 +02:00
|
|
|
name: RDM6300 NFC Tag
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: gpio
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PCF binary sensor
|
2018-08-26 11:26:14 +02:00
|
|
|
pin:
|
|
|
|
pcf8574: pcf8574_hub
|
|
|
|
number: 1
|
|
|
|
mode: INPUT
|
2022-09-06 05:48:01 +02:00
|
|
|
inverted: true
|
2022-12-22 06:39:25 +01:00
|
|
|
- platform: gpio
|
|
|
|
name: PCA9554 binary sensor
|
|
|
|
pin:
|
|
|
|
pca9554: pca9554_hub
|
|
|
|
number: 1
|
|
|
|
mode: INPUT
|
|
|
|
inverted: true
|
2023-05-01 06:00:21 +02:00
|
|
|
- platform: gpio
|
|
|
|
name: PCA6416A binary sensor
|
|
|
|
pin:
|
|
|
|
pca6416a: pca6416a_hub
|
|
|
|
number: 15
|
|
|
|
mode: INPUT
|
|
|
|
inverted: true
|
2019-03-03 16:51:55 +01:00
|
|
|
- platform: gpio
|
2022-09-06 05:48:01 +02:00
|
|
|
name: MCP21 binary sensor
|
2019-03-03 16:51:55 +01:00
|
|
|
pin:
|
2021-03-07 20:23:54 +01:00
|
|
|
mcp23xxx: mcp23017_hub
|
2019-03-03 16:51:55 +01:00
|
|
|
number: 1
|
2023-12-05 00:56:53 +01:00
|
|
|
allow_other_uses: true
|
2019-03-03 16:51:55 +01:00
|
|
|
mode: INPUT
|
2022-09-06 05:48:01 +02:00
|
|
|
inverted: true
|
2019-10-17 16:18:41 +02:00
|
|
|
- platform: gpio
|
2022-09-06 05:48:01 +02:00
|
|
|
name: MCP22 binary sensor
|
2019-10-17 16:18:41 +02:00
|
|
|
pin:
|
2021-03-07 20:23:54 +01:00
|
|
|
mcp23xxx: mcp23008_hub
|
2019-10-17 16:18:41 +02:00
|
|
|
number: 7
|
|
|
|
mode: INPUT_PULLUP
|
2022-09-06 05:48:01 +02:00
|
|
|
inverted: false
|
2020-04-12 21:07:10 +02:00
|
|
|
- platform: gpio
|
2022-09-06 05:48:01 +02:00
|
|
|
name: MCP23 binary sensor
|
2020-04-12 21:07:10 +02:00
|
|
|
pin:
|
|
|
|
mcp23016: mcp23016_hub
|
|
|
|
number: 7
|
|
|
|
mode: INPUT
|
2022-09-06 05:48:01 +02:00
|
|
|
inverted: false
|
2023-10-19 09:02:27 +02:00
|
|
|
- platform: gpio
|
|
|
|
name: Speed Fan Cycle binary sensor"
|
|
|
|
pin:
|
|
|
|
number: 18
|
2023-12-05 00:56:53 +01:00
|
|
|
allow_other_uses: true
|
2023-10-19 09:02:27 +02:00
|
|
|
mode:
|
|
|
|
input: true
|
|
|
|
pulldown: true
|
|
|
|
on_press:
|
|
|
|
- fan.cycle_speed:
|
|
|
|
id: fan_speed
|
|
|
|
off_speed_cycle: False
|
|
|
|
- logger.log: "Cycle speed clicked"
|
2019-06-14 12:53:27 +02:00
|
|
|
- platform: remote_receiver
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Raw Remote Receiver Test
|
2019-06-14 12:53:27 +02:00
|
|
|
raw:
|
2020-11-20 03:59:19 +01:00
|
|
|
code:
|
|
|
|
[
|
|
|
|
5685,
|
|
|
|
-4252,
|
|
|
|
1711,
|
|
|
|
-2265,
|
|
|
|
1712,
|
|
|
|
-2265,
|
|
|
|
1711,
|
|
|
|
-2264,
|
|
|
|
1712,
|
|
|
|
-2266,
|
|
|
|
3700,
|
|
|
|
-2263,
|
|
|
|
1712,
|
|
|
|
-4254,
|
|
|
|
1711,
|
|
|
|
-4249,
|
|
|
|
1715,
|
|
|
|
-2266,
|
|
|
|
1710,
|
|
|
|
-2267,
|
|
|
|
1709,
|
|
|
|
-2265,
|
|
|
|
3704,
|
|
|
|
-4250,
|
|
|
|
1712,
|
|
|
|
-4254,
|
|
|
|
3700,
|
|
|
|
-2260,
|
|
|
|
1714,
|
|
|
|
-2265,
|
|
|
|
1712,
|
|
|
|
-2262,
|
|
|
|
1714,
|
|
|
|
-2267,
|
|
|
|
1709,
|
|
|
|
]
|
2023-07-22 22:15:37 +02:00
|
|
|
- platform: remote_receiver
|
|
|
|
name: Coolix Test 1
|
|
|
|
coolix: 0xB21F98
|
|
|
|
- platform: remote_receiver
|
|
|
|
name: Coolix Test 2
|
|
|
|
coolix:
|
|
|
|
first: 0xB2E003
|
|
|
|
- platform: remote_receiver
|
|
|
|
name: Coolix Test 3
|
|
|
|
coolix:
|
|
|
|
first: 0xB2E003
|
|
|
|
second: 0xB21F98
|
2019-10-12 17:03:01 +02:00
|
|
|
- platform: as3935
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Storm Alert
|
2022-02-17 21:14:10 +01:00
|
|
|
- platform: analog_threshold
|
|
|
|
name: Analog Trheshold 1
|
|
|
|
sensor_id: template_sensor
|
2022-02-19 14:42:54 +01:00
|
|
|
threshold:
|
2022-02-17 21:14:10 +01:00
|
|
|
upper: 110
|
|
|
|
lower: 90
|
2022-02-19 14:42:54 +01:00
|
|
|
filters:
|
2022-02-17 21:14:10 +01:00
|
|
|
- delayed_on: 0s
|
|
|
|
- delayed_off: 10s
|
|
|
|
- platform: analog_threshold
|
|
|
|
name: Analog Trheshold 2
|
|
|
|
sensor_id: template_sensor
|
|
|
|
threshold: 100
|
2022-02-19 14:42:54 +01:00
|
|
|
filters:
|
|
|
|
- invert:
|
2022-08-09 07:21:27 +02:00
|
|
|
- platform: template
|
|
|
|
id: open_endstop_sensor
|
|
|
|
- platform: template
|
|
|
|
id: open_sensor
|
|
|
|
- platform: template
|
|
|
|
id: open_obstacle_sensor
|
|
|
|
|
|
|
|
- platform: template
|
|
|
|
id: close_endstop_sensor
|
|
|
|
- platform: template
|
|
|
|
id: close_sensor
|
|
|
|
- platform: template
|
|
|
|
id: close_obstacle_sensor
|
2023-02-06 23:47:50 +01:00
|
|
|
- platform: ld2410
|
|
|
|
has_target:
|
|
|
|
name: presence
|
|
|
|
has_moving_target:
|
|
|
|
name: movement
|
|
|
|
has_still_target:
|
|
|
|
name: still
|
2023-08-16 01:31:18 +02:00
|
|
|
out_pin_presence_status:
|
|
|
|
name: out pin presence status
|
2023-10-25 21:29:21 +02:00
|
|
|
- platform: qwiic_pir
|
|
|
|
i2c_id: i2c_bus
|
|
|
|
name: "Qwiic PIR Motion Sensor"
|
2023-10-27 06:56:33 +02:00
|
|
|
- platform: dfrobot_sen0395
|
|
|
|
id: mmwave_detected_uart
|
|
|
|
dfrobot_sen0395_id: mmwave
|
2018-08-26 11:26:14 +02:00
|
|
|
|
|
|
|
pca9685:
|
|
|
|
frequency: 500
|
|
|
|
address: 0x0
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2018-08-26 11:26:14 +02:00
|
|
|
|
2019-10-14 11:30:41 +02:00
|
|
|
tlc59208f:
|
|
|
|
- address: 0x20
|
|
|
|
id: tlc59208f_1
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2019-10-14 11:30:41 +02:00
|
|
|
- address: 0x22
|
|
|
|
id: tlc59208f_2
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2019-10-14 11:30:41 +02:00
|
|
|
- address: 0x24
|
|
|
|
id: tlc59208f_3
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2019-10-14 11:30:41 +02:00
|
|
|
|
2018-11-13 16:51:30 +01:00
|
|
|
my9231:
|
2023-12-05 00:56:53 +01:00
|
|
|
data_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO12
|
|
|
|
clock_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO14
|
2018-11-13 16:51:30 +01:00
|
|
|
num_channels: 6
|
|
|
|
num_chips: 2
|
|
|
|
bit_depth: 16
|
|
|
|
|
2022-12-22 23:04:21 +01:00
|
|
|
sm2235:
|
2023-12-05 00:56:53 +01:00
|
|
|
data_pin:
|
2023-12-21 05:37:02 +01:00
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO4
|
2023-12-05 00:56:53 +01:00
|
|
|
clock_pin:
|
2023-12-21 05:37:02 +01:00
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO5
|
2022-12-22 23:04:21 +01:00
|
|
|
max_power_color_channels: 9
|
|
|
|
max_power_white_channels: 9
|
|
|
|
|
|
|
|
sm2335:
|
2023-12-05 00:56:53 +01:00
|
|
|
data_pin:
|
2023-12-21 05:37:02 +01:00
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO4
|
2023-12-05 00:56:53 +01:00
|
|
|
clock_pin:
|
2023-12-21 05:37:02 +01:00
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO5
|
2022-12-22 23:04:21 +01:00
|
|
|
max_power_color_channels: 9
|
|
|
|
max_power_white_channels: 9
|
|
|
|
|
2022-12-22 22:39:44 +01:00
|
|
|
bp1658cj:
|
2023-12-05 00:56:53 +01:00
|
|
|
data_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO3
|
|
|
|
clock_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO5
|
2022-12-22 22:39:44 +01:00
|
|
|
max_power_color_channels: 4
|
|
|
|
max_power_white_channels: 6
|
|
|
|
|
2022-12-22 22:24:46 +01:00
|
|
|
bp5758d:
|
2023-12-05 00:56:53 +01:00
|
|
|
data_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO3
|
|
|
|
clock_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO5
|
2022-12-22 22:24:46 +01:00
|
|
|
|
2018-08-26 11:26:14 +02:00
|
|
|
output:
|
|
|
|
- platform: gpio
|
2023-12-05 00:56:53 +01:00
|
|
|
pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO26
|
2018-08-26 11:26:14 +02:00
|
|
|
id: gpio_26
|
|
|
|
power_supply: atx_power_supply
|
2022-09-06 05:48:01 +02:00
|
|
|
inverted: false
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: ledc
|
2023-12-05 00:56:53 +01:00
|
|
|
pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: 19
|
2018-08-26 11:26:14 +02:00
|
|
|
id: gpio_19
|
|
|
|
frequency: 1500Hz
|
|
|
|
channel: 14
|
|
|
|
max_power: 0.5
|
|
|
|
- platform: pca9685
|
|
|
|
id: pca_0
|
|
|
|
channel: 0
|
|
|
|
- platform: pca9685
|
|
|
|
id: pca_1
|
|
|
|
channel: 1
|
|
|
|
- platform: pca9685
|
|
|
|
id: pca_2
|
|
|
|
channel: 2
|
|
|
|
- platform: pca9685
|
|
|
|
id: pca_3
|
|
|
|
channel: 3
|
|
|
|
- platform: pca9685
|
|
|
|
id: pca_4
|
|
|
|
channel: 4
|
|
|
|
- platform: pca9685
|
|
|
|
id: pca_5
|
|
|
|
channel: 5
|
|
|
|
- platform: pca9685
|
|
|
|
id: pca_6
|
|
|
|
channel: 6
|
|
|
|
- platform: pca9685
|
|
|
|
id: pca_7
|
|
|
|
channel: 7
|
2019-10-14 11:30:41 +02:00
|
|
|
- platform: tlc59208f
|
|
|
|
id: tlc_0
|
|
|
|
channel: 0
|
2022-09-06 05:48:01 +02:00
|
|
|
tlc59208f_id: tlc59208f_1
|
2019-10-14 11:30:41 +02:00
|
|
|
- platform: tlc59208f
|
|
|
|
id: tlc_1
|
|
|
|
channel: 1
|
2022-09-06 05:48:01 +02:00
|
|
|
tlc59208f_id: tlc59208f_1
|
2019-10-14 11:30:41 +02:00
|
|
|
- platform: tlc59208f
|
|
|
|
id: tlc_2
|
|
|
|
channel: 2
|
2022-09-06 05:48:01 +02:00
|
|
|
tlc59208f_id: tlc59208f_1
|
2019-10-14 11:30:41 +02:00
|
|
|
- platform: tlc59208f
|
|
|
|
id: tlc_3
|
|
|
|
channel: 0
|
2022-09-06 05:48:01 +02:00
|
|
|
tlc59208f_id: tlc59208f_2
|
2019-10-14 11:30:41 +02:00
|
|
|
- platform: tlc59208f
|
|
|
|
id: tlc_4
|
|
|
|
channel: 1
|
2022-09-06 05:48:01 +02:00
|
|
|
tlc59208f_id: tlc59208f_2
|
2019-10-14 11:30:41 +02:00
|
|
|
- platform: tlc59208f
|
|
|
|
id: tlc_5
|
|
|
|
channel: 2
|
2022-09-06 05:48:01 +02:00
|
|
|
tlc59208f_id: tlc59208f_2
|
2019-10-14 11:30:41 +02:00
|
|
|
- platform: tlc59208f
|
|
|
|
id: tlc_6
|
|
|
|
channel: 0
|
2022-09-06 05:48:01 +02:00
|
|
|
tlc59208f_id: tlc59208f_3
|
2019-10-14 11:30:41 +02:00
|
|
|
- platform: tlc59208f
|
|
|
|
id: tlc_7
|
|
|
|
channel: 1
|
2022-09-06 05:48:01 +02:00
|
|
|
tlc59208f_id: tlc59208f_3
|
2019-10-14 11:30:41 +02:00
|
|
|
- platform: tlc59208f
|
|
|
|
id: tlc_8
|
|
|
|
channel: 2
|
2022-09-06 05:48:01 +02:00
|
|
|
tlc59208f_id: tlc59208f_3
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: gpio
|
|
|
|
id: id2
|
|
|
|
pin:
|
|
|
|
pcf8574: pcf8574_hub
|
|
|
|
number: 0
|
2023-12-05 00:56:53 +01:00
|
|
|
#allow_other_uses: true
|
2018-08-26 11:26:14 +02:00
|
|
|
mode: OUTPUT
|
2022-09-06 05:48:01 +02:00
|
|
|
inverted: false
|
2022-12-22 06:39:25 +01:00
|
|
|
- platform: gpio
|
|
|
|
id: id26
|
|
|
|
pin:
|
|
|
|
pca9554: pca9554_hub
|
|
|
|
number: 0
|
2023-12-05 00:56:53 +01:00
|
|
|
#allow_other_uses: true
|
2022-12-22 06:39:25 +01:00
|
|
|
mode: OUTPUT
|
|
|
|
inverted: false
|
2019-03-03 16:51:55 +01:00
|
|
|
- platform: gpio
|
|
|
|
id: id22
|
|
|
|
pin:
|
2021-03-07 20:23:54 +01:00
|
|
|
mcp23xxx: mcp23017_hub
|
2019-03-03 16:51:55 +01:00
|
|
|
number: 0
|
|
|
|
mode: OUTPUT
|
2022-09-06 05:48:01 +02:00
|
|
|
inverted: false
|
2019-10-17 16:18:41 +02:00
|
|
|
- platform: gpio
|
|
|
|
id: id23
|
|
|
|
pin:
|
2021-03-07 20:23:54 +01:00
|
|
|
mcp23xxx: mcp23008_hub
|
2019-10-17 16:18:41 +02:00
|
|
|
number: 0
|
|
|
|
mode: OUTPUT
|
2022-09-06 05:48:01 +02:00
|
|
|
inverted: false
|
2020-04-12 21:07:10 +02:00
|
|
|
- platform: gpio
|
|
|
|
id: id25
|
|
|
|
pin:
|
|
|
|
mcp23016: mcp23016_hub
|
|
|
|
number: 0
|
|
|
|
mode: OUTPUT
|
2022-09-06 05:48:01 +02:00
|
|
|
inverted: false
|
2018-11-13 16:51:30 +01:00
|
|
|
- platform: my9231
|
|
|
|
id: my_0
|
|
|
|
channel: 0
|
|
|
|
- platform: my9231
|
|
|
|
id: my_1
|
|
|
|
channel: 1
|
|
|
|
- platform: my9231
|
|
|
|
id: my_2
|
|
|
|
channel: 2
|
|
|
|
- platform: my9231
|
|
|
|
id: my_3
|
|
|
|
channel: 3
|
|
|
|
- platform: my9231
|
|
|
|
id: my_4
|
|
|
|
channel: 4
|
|
|
|
- platform: my9231
|
|
|
|
id: my_5
|
|
|
|
channel: 5
|
2022-12-22 23:04:21 +01:00
|
|
|
- platform: sm2235
|
|
|
|
id: sm2235_red
|
|
|
|
channel: 1
|
|
|
|
- platform: sm2235
|
|
|
|
id: sm2235_green
|
|
|
|
channel: 0
|
|
|
|
- platform: sm2235
|
|
|
|
id: sm2235_blue
|
|
|
|
channel: 2
|
|
|
|
- platform: sm2235
|
|
|
|
id: sm2235_coldwhite
|
|
|
|
channel: 4
|
|
|
|
- platform: sm2235
|
|
|
|
id: sm2235_warmwhite
|
|
|
|
channel: 3
|
|
|
|
- platform: sm2335
|
|
|
|
id: sm2335_red
|
|
|
|
channel: 1
|
|
|
|
- platform: sm2335
|
|
|
|
id: sm2335_green
|
|
|
|
channel: 0
|
|
|
|
- platform: sm2335
|
|
|
|
id: sm2335_blue
|
|
|
|
channel: 2
|
|
|
|
- platform: sm2335
|
|
|
|
id: sm2335_coldwhite
|
|
|
|
channel: 4
|
|
|
|
- platform: sm2335
|
|
|
|
id: sm2335_warmwhite
|
|
|
|
channel: 3
|
2019-12-07 17:15:04 +01:00
|
|
|
- platform: slow_pwm
|
|
|
|
id: id24
|
2023-12-05 00:56:53 +01:00
|
|
|
pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO26
|
2019-12-07 17:15:04 +01:00
|
|
|
period: 15s
|
Add AC Dimmer support (#880)
* Add AC Dimmer support
Fixes https://github.com/esphome/feature-requests/issues/278
* fixes
basically missed the output pin setup and in the switching was switching true true true :P
* Format
* Enable ESP32
* Also setup ZC pin
* Support multiple dimmers sharing ZC pin
* Fix ESP32
* Lint
* off gate on zc detect
* tests pins validation
* Climate Mitsubishi (#725)
* add climate
* Mitsubishi updates
* refactor mitsubishi to use climate_ir
* lint
* fix: only decode when not str already (#923)
Signed-off-by: wilmardo <info@wilmardenouden.nl>
* fix climate-ir bad merge (#935)
* fix climate-ir bad merge
* add mitshubishi test
* http_request: fix memory allocation (#916)
* http_request version fix (#917)
* PID Climate (#885)
* PID Climate
* Add sensor for debugging PID output value
* Add dump_config, use percent
* Add more observable values
* Update
* Set target temperature
* Add autotuner
* Add algorithm explanation
* Add autotuner action, update controller
* Add simulator
* Format
* Change defaults
* Updates
* Use b''.decode() instead of str(b'') (#941)
Handling of request arguments in WizardRequestHandler is not decoding
bytes and rather just doing a str conversion resulting in a value of
"b''" being supplied to the wizard code.
* Adding the espressif 2.6.3 (#944)
* extract and use current version of python 3 (#938)
* Inverted output in neopixelbus (#895)
* Added inverted output
* Added support for inverted output in neopixelbus
* Update esphome/components/neopixelbus/light.py
Co-Authored-By: Otto Winter <otto@otto-winter.com>
* Update light.py
* corrected lint errors
Co-authored-by: Otto Winter <otto@otto-winter.com>
* Added degree symbol for MAX7219 7-segment display. (#764)
The ascii char to use it is "~" (0x7E).
Disclaimer: I didn't test this yet.
* Fix dump/tx of 64 bit codes (#940)
* Fix dump/tx of 64 bit codes
* fixed source format
* Update hdc1080.cpp (#887)
* Update hdc1080.cpp
increase waittime, to fix reading errors
* Fix: Update HDC1080.cpp
i fixed the my change on write_bytes
* add tcl112 support for dry, fan and swing (#939)
* Fix SGP30 incorrect baseline reading/writing (#936)
* Split the SGP30 baseline into 2 values
- According to the SGP30 datasheet, each eCO2 and TVOC baseline is a 2-byte value (MSB first)
- The current implementation ignores the MSB of each of the value
- Update the schema to allow 2 different baseline values (optional, but both need to be specified for the baseline to apply)
* Make both eCO2 and TVOC required if the optional baseline is defined
* Make dump_config() looks better
* Add register_*_effect to allow registering custom effects (#947)
This allows to register custom effect from user components,
allowing for bigger composability of source.
* Bugfix/normalize core comparisons (and Python 3 update fixes) (#952)
* Correct implementation of comparisons to be Pythonic
If a comparison cannot be made return NotImplemented, this allows the
Python interpreter to try other comparisons (eg __ieq__) and either
return False (in the case of __eq__) or raise a TypeError
exception (eg in the case of __lt__).
* Python 3 updates
* Add a more helpful message in exception if platform is not defined
* Added a basic pre-commit check
* Add transmit pioneer (#922)
* Added pioneer_protocol to support transmit_pioneer
* Display tm1637 (#946)
* add TM1637 support
* Support a further variant of Xiaomi CGG1 (#930)
* Daikin climate ir component (#964)
* Daikin ARC43XXX IR remote controller support
* Format and lint fixes
* Check temperature values against allowed min/max
* fix tm1637 missing __init__.py (#975)
* Add AC Dimmer support
Fixes https://github.com/esphome/feature-requests/issues/278
* fixes
basically missed the output pin setup and in the switching was switching true true true :P
* Format
* Enable ESP32
* Also setup ZC pin
* Support multiple dimmers sharing ZC pin
* Fix ESP32
* Lint
* off gate on zc detect
* tests pins validation
* fix esp8266 many dimmers, changed timing
* Increased value resolution, added min power
* use min_power from base class
* fix min_power. add init with half cycle
* added method for trailing pulse, trailing and leading
* fix method name. try filter invalid falling pulse
* renamed to ac_dimmer
* fix ESP32 not configuring zero cross twice
Co-authored-by: Guillermo Ruffino <glm.net@gmail.com>
Co-authored-by: Wilmar den Ouden <wilmardo@users.noreply.github.com>
Co-authored-by: Nikolay Vasilchuk <Anonym.tsk@gmail.com>
Co-authored-by: Tim Savage <tim@savage.company>
Co-authored-by: Vc <37367415+Valcob@users.noreply.github.com>
Co-authored-by: gitolicious <mrjchn@gmail.com>
Co-authored-by: voibit <krestean@gmail.com>
Co-authored-by: Luar Roji <cyberplant@users.noreply.github.com>
Co-authored-by: András Bíró <1202136+andrasbiro@users.noreply.github.com>
Co-authored-by: dmkif <dmkif@users.noreply.github.com>
Co-authored-by: Panuruj Khambanonda (PK) <pk@panurujk.com>
Co-authored-by: Kamil Trzciński <ayufan@ayufan.eu>
Co-authored-by: Keith Burzinski <kbx81x@gmail.com>
Co-authored-by: Mario <4376789+mario-tux@users.noreply.github.com>
Co-authored-by: Héctor Giménez <hector.fwbz@gmail.com>
2020-04-10 05:07:18 +02:00
|
|
|
- platform: ac_dimmer
|
|
|
|
id: dimmer1
|
2023-12-05 00:56:53 +01:00
|
|
|
gate_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO5
|
|
|
|
zero_cross_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO26
|
2020-05-24 05:06:55 +02:00
|
|
|
- platform: esp32_dac
|
2023-12-05 00:56:53 +01:00
|
|
|
pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO25
|
2020-05-24 05:06:55 +02:00
|
|
|
id: dac_output
|
2021-02-06 16:18:48 +01:00
|
|
|
- platform: mcp4725
|
|
|
|
id: mcp4725_dac_output
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2022-02-21 12:47:03 +01:00
|
|
|
- platform: mcp4728
|
|
|
|
id: mcp4728_dac_output_a
|
|
|
|
channel: A
|
|
|
|
vref: vdd
|
|
|
|
power_down: normal
|
|
|
|
- platform: mcp4728
|
|
|
|
id: mcp4728_dac_output_b
|
|
|
|
channel: B
|
|
|
|
vref: internal
|
|
|
|
gain: X1
|
|
|
|
power_down: gnd_1k
|
|
|
|
- platform: mcp4728
|
|
|
|
id: mcp4728_dac_output_c
|
|
|
|
channel: C
|
|
|
|
vref: vdd
|
|
|
|
power_down: gnd_100k
|
|
|
|
- platform: mcp4728
|
|
|
|
id: mcp4728_dac_output_d
|
|
|
|
channel: D
|
|
|
|
vref: internal
|
|
|
|
gain: X2
|
|
|
|
power_down: gnd_500k
|
2022-12-22 22:39:44 +01:00
|
|
|
- platform: bp1658cj
|
|
|
|
id: bp1658cj_red
|
|
|
|
channel: 1
|
|
|
|
- platform: bp1658cj
|
|
|
|
id: bp1658cj_green
|
|
|
|
channel: 2
|
|
|
|
- platform: bp1658cj
|
|
|
|
id: bp1658cj_blue
|
|
|
|
channel: 0
|
|
|
|
- platform: bp1658cj
|
|
|
|
id: bp1658cj_coldwhite
|
|
|
|
channel: 3
|
|
|
|
- platform: bp1658cj
|
|
|
|
id: bp1658cj_warmwhite
|
|
|
|
channel: 4
|
2022-12-22 22:24:46 +01:00
|
|
|
- platform: bp5758d
|
|
|
|
id: bp5758d_red
|
|
|
|
channel: 2
|
|
|
|
current: 10
|
|
|
|
- platform: bp5758d
|
|
|
|
id: bp5758d_green
|
|
|
|
channel: 3
|
|
|
|
current: 10
|
|
|
|
- platform: bp5758d
|
|
|
|
id: bp5758d_blue
|
|
|
|
channel: 1
|
|
|
|
current: 10
|
|
|
|
- platform: bp5758d
|
|
|
|
id: bp5758d_coldwhite
|
|
|
|
channel: 5
|
|
|
|
current: 10
|
|
|
|
- platform: bp5758d
|
|
|
|
id: bp5758d_warmwhite
|
|
|
|
channel: 4
|
|
|
|
current: 10
|
2023-01-11 02:51:50 +01:00
|
|
|
- platform: x9c
|
|
|
|
id: test_x9c
|
2023-12-05 00:56:53 +01:00
|
|
|
cs_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO25
|
|
|
|
inc_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO26
|
|
|
|
ud_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO27
|
2023-01-11 02:51:50 +01:00
|
|
|
initial_value: 0.5
|
2018-08-26 11:26:14 +02:00
|
|
|
|
|
|
|
light:
|
|
|
|
- platform: binary
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Desk Lamp
|
2018-08-26 11:26:14 +02:00
|
|
|
output: gpio_26
|
|
|
|
effects:
|
|
|
|
- strobe:
|
|
|
|
- strobe:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: My Strobe
|
2018-08-26 11:26:14 +02:00
|
|
|
colors:
|
2022-09-06 05:48:01 +02:00
|
|
|
- state: true
|
2018-08-26 11:26:14 +02:00
|
|
|
duration: 250ms
|
2022-09-06 05:48:01 +02:00
|
|
|
- state: false
|
2018-08-26 11:26:14 +02:00
|
|
|
duration: 250ms
|
2020-04-25 20:39:34 +02:00
|
|
|
on_turn_on:
|
|
|
|
- switch.template.publish:
|
|
|
|
id: livingroom_lights
|
2022-09-06 05:48:01 +02:00
|
|
|
state: true
|
2020-04-25 20:39:34 +02:00
|
|
|
on_turn_off:
|
|
|
|
- switch.template.publish:
|
|
|
|
id: livingroom_lights
|
2022-09-06 05:48:01 +02:00
|
|
|
state: true
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: monochromatic
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Kitchen Lights
|
2018-08-26 11:26:14 +02:00
|
|
|
id: kitchen
|
|
|
|
output: gpio_19
|
|
|
|
gamma_correct: 2.8
|
|
|
|
default_transition_length: 2s
|
|
|
|
effects:
|
|
|
|
- strobe:
|
|
|
|
- flicker:
|
|
|
|
- flicker:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: My Flicker
|
2018-08-26 11:26:14 +02:00
|
|
|
alpha: 98%
|
|
|
|
intensity: 1.5%
|
|
|
|
- lambda:
|
|
|
|
name: My Custom Effect
|
|
|
|
update_interval: 1s
|
|
|
|
lambda: |-
|
|
|
|
static int state = 0;
|
|
|
|
state += 1;
|
|
|
|
if (state == 4)
|
|
|
|
state = 0;
|
2023-11-07 00:39:47 +01:00
|
|
|
- pulse:
|
|
|
|
transition_length: 10s
|
|
|
|
update_interval: 20s
|
|
|
|
min_brightness: 10%
|
|
|
|
max_brightness: 90%
|
|
|
|
- pulse:
|
|
|
|
name: pulse2
|
|
|
|
transition_length:
|
|
|
|
on_length: 10s
|
|
|
|
off_length: 5s
|
|
|
|
update_interval: 15s
|
|
|
|
min_brightness: 10%
|
|
|
|
max_brightness: 90%
|
|
|
|
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: rgb
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room Lights
|
2021-02-20 01:52:42 +01:00
|
|
|
id: ${roomname}_lights
|
2018-08-26 11:26:14 +02:00
|
|
|
red: pca_0
|
|
|
|
green: pca_1
|
|
|
|
blue: pca_2
|
|
|
|
- platform: rgbw
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room Lights 2
|
2018-08-26 11:26:14 +02:00
|
|
|
red: pca_3
|
|
|
|
green: pca_4
|
|
|
|
blue: pca_5
|
|
|
|
white: pca_6
|
2020-07-10 01:29:44 +02:00
|
|
|
color_interlock: true
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: rgbww
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room Lights 2
|
2018-08-26 11:26:14 +02:00
|
|
|
red: pca_3
|
|
|
|
green: pca_4
|
|
|
|
blue: pca_5
|
|
|
|
cold_white: pca_6
|
|
|
|
warm_white: pca_6
|
|
|
|
cold_white_color_temperature: 153 mireds
|
|
|
|
warm_white_color_temperature: 500 mireds
|
2020-07-10 01:29:44 +02:00
|
|
|
color_interlock: true
|
2021-08-10 11:28:56 +02:00
|
|
|
- platform: rgbct
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room Lights 2
|
2021-08-10 11:28:56 +02:00
|
|
|
red: pca_3
|
|
|
|
green: pca_4
|
|
|
|
blue: pca_5
|
|
|
|
color_temperature: pca_6
|
|
|
|
white_brightness: pca_6
|
|
|
|
cold_white_color_temperature: 153 mireds
|
|
|
|
warm_white_color_temperature: 500 mireds
|
|
|
|
color_interlock: true
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: cwww
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room Lights 2
|
2018-08-26 11:26:14 +02:00
|
|
|
cold_white: pca_6
|
|
|
|
warm_white: pca_6
|
|
|
|
cold_white_color_temperature: 153 mireds
|
|
|
|
warm_white_color_temperature: 500 mireds
|
2020-04-08 14:31:23 +02:00
|
|
|
constant_brightness: true
|
2021-08-10 11:28:56 +02:00
|
|
|
- platform: color_temperature
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room Lights 2
|
2021-08-10 11:28:56 +02:00
|
|
|
color_temperature: pca_6
|
|
|
|
brightness: pca_6
|
|
|
|
cold_white_color_temperature: 153 mireds
|
|
|
|
warm_white_color_temperature: 500 mireds
|
2018-08-26 11:26:14 +02:00
|
|
|
|
|
|
|
remote_transmitter:
|
2023-12-05 00:56:53 +01:00
|
|
|
- pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: 32
|
2019-04-17 12:06:00 +02:00
|
|
|
carrier_duty_percent: 100%
|
2018-08-26 11:26:14 +02:00
|
|
|
|
2019-05-27 20:17:12 +02:00
|
|
|
climate:
|
|
|
|
- platform: tcl112
|
|
|
|
name: TCL112 Climate With Sensor
|
2022-09-06 05:48:01 +02:00
|
|
|
supports_heat: true
|
|
|
|
supports_cool: true
|
2021-02-20 01:52:42 +01:00
|
|
|
sensor: ${sensorname}_sensor
|
2019-05-27 20:17:12 +02:00
|
|
|
- platform: tcl112
|
|
|
|
name: TCL112 Climate
|
2021-10-10 17:55:22 +02:00
|
|
|
action_state_topic: action/state/topic
|
|
|
|
away_command_topic: away/command/topic
|
|
|
|
away_state_topic: away/state/topic
|
|
|
|
current_temperature_state_topic: current/temperature/state/topic
|
|
|
|
fan_mode_command_topic: fan_mode/mode/command/topic
|
2022-01-23 09:05:37 +01:00
|
|
|
fan_mode_state_topic: fan_mode/mode/state/topic
|
2021-10-10 17:55:22 +02:00
|
|
|
mode_command_topic: mode/command/topic
|
|
|
|
mode_state_topic: mode/state/topic
|
|
|
|
swing_mode_command_topic: swing_mode/command/topic
|
|
|
|
swing_mode_state_topic: swing_mode/state/topic
|
|
|
|
target_temperature_command_topic: target/temperature/command/topic
|
|
|
|
target_temperature_high_command_topic: target/temperature/high/command/topic
|
|
|
|
target_temperature_high_state_topic: target/temperature/high/state/topic
|
|
|
|
target_temperature_low_command_topic: target/temperature/low/command/topic
|
|
|
|
target_temperature_low_state_topic: target/temperature/low/state/topic
|
|
|
|
target_temperature_state_topic: target/temperature/state/topic
|
2019-05-27 21:09:16 +02:00
|
|
|
- platform: coolix
|
|
|
|
name: Coolix Climate With Sensor
|
2022-09-06 05:48:01 +02:00
|
|
|
supports_heat: true
|
|
|
|
supports_cool: true
|
2021-02-20 01:52:42 +01:00
|
|
|
sensor: ${sensorname}_sensor
|
2019-05-27 21:09:16 +02:00
|
|
|
- platform: coolix
|
|
|
|
name: Coolix Climate
|
2019-12-03 15:50:06 +01:00
|
|
|
- platform: fujitsu_general
|
|
|
|
name: Fujitsu General Climate
|
2020-01-22 23:38:04 +01:00
|
|
|
- platform: daikin
|
|
|
|
name: Daikin Climate
|
2022-10-19 09:29:22 +02:00
|
|
|
- platform: daikin_brc
|
|
|
|
name: Daikin BRC Climate
|
|
|
|
use_fahrenheit: true
|
2022-05-10 11:22:22 +02:00
|
|
|
- platform: delonghi
|
|
|
|
name: Delonghi Climate
|
2019-12-03 15:50:06 +01:00
|
|
|
- platform: yashima
|
|
|
|
name: Yashima Climate
|
2019-12-31 04:20:11 +01:00
|
|
|
- platform: mitsubishi
|
|
|
|
name: Mitsubishi
|
2020-04-22 03:53:14 +02:00
|
|
|
- platform: whirlpool
|
|
|
|
name: Whirlpool Climate
|
2020-06-22 03:29:43 +02:00
|
|
|
- platform: climate_ir_lg
|
|
|
|
name: LG Climate
|
2020-07-13 14:23:53 +02:00
|
|
|
- platform: toshiba
|
|
|
|
name: Toshiba Climate
|
2020-11-18 02:05:12 +01:00
|
|
|
- platform: hitachi_ac344
|
|
|
|
name: Hitachi Climate
|
2021-10-12 20:38:19 +02:00
|
|
|
- platform: heatpumpir
|
|
|
|
protocol: mitsubishi_heavy_zm
|
|
|
|
horizontal_default: left
|
|
|
|
vertical_default: up
|
|
|
|
name: HeatpumpIR Climate
|
|
|
|
min_temperature: 18
|
|
|
|
max_temperature: 30
|
2023-08-21 02:20:00 +02:00
|
|
|
- platform: heatpumpir
|
|
|
|
protocol: greeyt
|
|
|
|
horizontal_default: left
|
|
|
|
vertical_default: up
|
|
|
|
name: HeatpumpIR Climate
|
|
|
|
min_temperature: 18
|
|
|
|
max_temperature: 30
|
2022-01-09 23:47:19 +01:00
|
|
|
- platform: midea_ir
|
|
|
|
name: Midea IR
|
|
|
|
use_fahrenheit: true
|
2021-09-08 23:10:02 +02:00
|
|
|
- platform: midea
|
2023-03-07 05:19:49 +01:00
|
|
|
on_control:
|
2023-07-30 21:52:01 +02:00
|
|
|
- logger.log: Control message received!
|
|
|
|
- lambda: |-
|
|
|
|
x.set_mode(CLIMATE_MODE_FAN_ONLY);
|
2021-11-13 15:42:15 +01:00
|
|
|
on_state:
|
2023-07-30 21:52:01 +02:00
|
|
|
- logger.log: State changed!
|
|
|
|
- lambda: |-
|
|
|
|
if (x.mode == CLIMATE_MODE_FAN_ONLY)
|
|
|
|
id(binary_sensor1).publish_state(true);
|
2021-09-08 23:10:02 +02:00
|
|
|
id: midea_unit
|
2023-03-20 03:29:21 +01:00
|
|
|
uart_id: uart_0
|
2021-09-08 23:10:02 +02:00
|
|
|
name: Midea Climate
|
|
|
|
transmitter_id:
|
|
|
|
period: 1s
|
|
|
|
num_attempts: 5
|
|
|
|
timeout: 2s
|
|
|
|
beeper: false
|
|
|
|
autoconf: true
|
2021-07-05 01:59:12 +02:00
|
|
|
visual:
|
2021-09-08 23:10:02 +02:00
|
|
|
min_temperature: 17 °C
|
|
|
|
max_temperature: 30 °C
|
|
|
|
temperature_step: 0.5 °C
|
|
|
|
supported_modes:
|
|
|
|
- FAN_ONLY
|
|
|
|
- HEAT_COOL
|
|
|
|
- COOL
|
|
|
|
- HEAT
|
|
|
|
- DRY
|
|
|
|
custom_fan_modes:
|
|
|
|
- SILENT
|
|
|
|
- TURBO
|
|
|
|
supported_presets:
|
|
|
|
- ECO
|
|
|
|
- BOOST
|
|
|
|
- SLEEP
|
|
|
|
custom_presets:
|
|
|
|
- FREEZE_PROTECTION
|
|
|
|
supported_swing_modes:
|
|
|
|
- VERTICAL
|
|
|
|
- HORIZONTAL
|
|
|
|
- BOTH
|
2021-07-05 01:59:12 +02:00
|
|
|
outdoor_temperature:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Temp
|
2021-07-05 01:59:12 +02:00
|
|
|
power_usage:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Power
|
2021-07-05 01:59:12 +02:00
|
|
|
humidity_setpoint:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Humidity
|
2021-07-05 01:59:12 +02:00
|
|
|
- platform: anova
|
|
|
|
name: Anova cooker
|
|
|
|
ble_client_id: ble_blah
|
2021-08-08 22:05:36 +02:00
|
|
|
unit_of_measurement: c
|
2021-10-10 10:37:05 +02:00
|
|
|
icon: mdi:stove
|
2022-04-14 03:16:13 +02:00
|
|
|
- platform: bedjet
|
|
|
|
name: My Bedjet
|
2022-08-09 00:14:37 +02:00
|
|
|
bedjet_id: my_bedjet_client
|
2022-05-31 05:45:01 +02:00
|
|
|
heat_mode: extended
|
2022-08-09 00:49:03 +02:00
|
|
|
- platform: whynter
|
|
|
|
name: Whynter
|
2023-10-24 05:28:53 +02:00
|
|
|
- platform: noblex
|
|
|
|
name: AC Living
|
|
|
|
id: noblex_ac
|
|
|
|
sensor: ${sensorname}_sensor
|
|
|
|
receiver_id: rcvr
|
2023-10-24 00:34:46 +02:00
|
|
|
- platform: gree
|
|
|
|
name: GREE
|
|
|
|
model: generic
|
2023-10-24 00:33:47 +02:00
|
|
|
- platform: zhlt01
|
|
|
|
name: ZH/LT-01 Climate
|
2021-07-05 01:59:12 +02:00
|
|
|
|
2021-09-08 23:10:02 +02:00
|
|
|
script:
|
|
|
|
- id: climate_custom
|
|
|
|
then:
|
|
|
|
- climate.control:
|
|
|
|
id: midea_unit
|
|
|
|
custom_preset: FREEZE_PROTECTION
|
|
|
|
custom_fan_mode: SILENT
|
|
|
|
- id: climate_preset
|
|
|
|
then:
|
|
|
|
- climate.control:
|
|
|
|
id: midea_unit
|
|
|
|
preset: SLEEP
|
2019-05-27 20:17:12 +02:00
|
|
|
|
2018-08-26 11:26:14 +02:00
|
|
|
switch:
|
2021-09-08 23:10:02 +02:00
|
|
|
- platform: template
|
|
|
|
name: MIDEA_AC_BEEPER_CONTROL
|
|
|
|
optimistic: true
|
|
|
|
turn_on_action:
|
|
|
|
midea_ac.beeper_on:
|
|
|
|
turn_off_action:
|
|
|
|
midea_ac.beeper_off:
|
|
|
|
- platform: template
|
|
|
|
name: MIDEA_RAW
|
|
|
|
turn_on_action:
|
2023-07-22 22:15:37 +02:00
|
|
|
- remote_transmitter.transmit_coolix:
|
|
|
|
first: 0xB21F98
|
|
|
|
- remote_transmitter.transmit_coolix:
|
|
|
|
first: 0xB21F98
|
|
|
|
second: 0xB21F98
|
|
|
|
- remote_transmitter.transmit_coolix:
|
|
|
|
first: !lambda "return 0xB21F98;"
|
|
|
|
second: !lambda "return 0xB21F98;"
|
|
|
|
- remote_transmitter.transmit_midea:
|
|
|
|
code: [0xA2, 0x08, 0xFF, 0xFF, 0xFF]
|
2023-08-13 23:06:04 +02:00
|
|
|
- remote_transmitter.transmit_midea:
|
|
|
|
code: !lambda "return {0xA2, 0x08, 0xFF, 0xFF, 0xFF};"
|
2020-12-06 18:43:55 +01:00
|
|
|
- platform: gpio
|
2022-01-23 09:05:37 +01:00
|
|
|
name: "MCP23S08 Pin #0"
|
2020-12-06 18:43:55 +01:00
|
|
|
pin:
|
2021-03-07 20:23:54 +01:00
|
|
|
mcp23xxx: mcp23s08_hub
|
2020-12-06 18:43:55 +01:00
|
|
|
# Use pin number 0
|
|
|
|
number: 0
|
|
|
|
mode: OUTPUT
|
2022-09-06 05:48:01 +02:00
|
|
|
inverted: false
|
2020-12-06 18:43:55 +01:00
|
|
|
- platform: gpio
|
2022-01-23 09:05:37 +01:00
|
|
|
name: "MCP23S17 Pin #0"
|
2020-12-06 18:43:55 +01:00
|
|
|
pin:
|
2021-03-07 20:23:54 +01:00
|
|
|
mcp23xxx: mcp23s17_hub
|
2020-12-06 18:43:55 +01:00
|
|
|
# Use pin number 0
|
|
|
|
number: 1
|
2023-12-05 00:56:53 +01:00
|
|
|
allow_other_uses: true
|
2020-12-06 18:43:55 +01:00
|
|
|
mode: OUTPUT
|
2022-09-06 05:48:01 +02:00
|
|
|
inverted: false
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: gpio
|
2023-12-05 00:56:53 +01:00
|
|
|
pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO25
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room Dehumidifier
|
2022-01-23 09:05:37 +01:00
|
|
|
icon: "mdi:restart"
|
2022-09-06 05:48:01 +02:00
|
|
|
inverted: true
|
2018-08-26 11:26:14 +02:00
|
|
|
command_topic: custom_command_topic
|
2022-01-23 09:05:37 +01:00
|
|
|
command_retain: true
|
2019-01-06 11:43:14 +01:00
|
|
|
restore_mode: ALWAYS_OFF
|
2019-04-17 12:06:00 +02:00
|
|
|
- platform: template
|
|
|
|
name: JVC Off
|
2018-08-26 11:26:14 +02:00
|
|
|
id: living_room_lights_on
|
2019-04-17 12:06:00 +02:00
|
|
|
turn_on_action:
|
|
|
|
remote_transmitter.transmit_jvc:
|
|
|
|
data: 0x10EF
|
|
|
|
- platform: template
|
2022-02-18 22:22:41 +01:00
|
|
|
name: MagiQuest
|
|
|
|
turn_on_action:
|
|
|
|
remote_transmitter.transmit_magiquest:
|
|
|
|
wand_id: 0x01234567
|
|
|
|
- platform: template
|
2019-04-17 12:06:00 +02:00
|
|
|
name: NEC
|
2018-08-26 11:26:14 +02:00
|
|
|
id: living_room_lights_off
|
2019-04-17 12:06:00 +02:00
|
|
|
turn_on_action:
|
|
|
|
remote_transmitter.transmit_nec:
|
|
|
|
address: 0x4242
|
|
|
|
command: 0x8484
|
|
|
|
- platform: template
|
|
|
|
name: LG
|
|
|
|
turn_on_action:
|
|
|
|
remote_transmitter.transmit_lg:
|
|
|
|
data: 4294967295
|
|
|
|
nbits: 28
|
|
|
|
- platform: template
|
|
|
|
name: Samsung
|
|
|
|
turn_on_action:
|
|
|
|
remote_transmitter.transmit_samsung:
|
|
|
|
data: 0xABCDEF
|
2021-02-28 00:16:27 +01:00
|
|
|
- platform: template
|
|
|
|
name: Samsung36
|
|
|
|
turn_on_action:
|
|
|
|
remote_transmitter.transmit_samsung36:
|
|
|
|
address: 0x0400
|
2021-03-07 23:59:32 +01:00
|
|
|
command: 0x000E00FF
|
2021-08-10 03:21:10 +02:00
|
|
|
- platform: template
|
|
|
|
name: ToshibaAC
|
|
|
|
turn_on_action:
|
|
|
|
- remote_transmitter.transmit_toshiba_ac:
|
|
|
|
rc_code_1: 0xB24DBF4050AF
|
|
|
|
rc_code_2: 0xD5660001003C
|
2019-04-17 12:06:00 +02:00
|
|
|
- platform: template
|
|
|
|
name: Sony
|
|
|
|
turn_on_action:
|
|
|
|
remote_transmitter.transmit_sony:
|
|
|
|
data: 0xABCDEF
|
|
|
|
nbits: 12
|
|
|
|
- platform: template
|
|
|
|
name: Panasonic
|
|
|
|
turn_on_action:
|
|
|
|
remote_transmitter.transmit_panasonic:
|
|
|
|
address: 0x4004
|
|
|
|
command: 0x1000BCD
|
2020-01-13 23:39:17 +01:00
|
|
|
- platform: template
|
|
|
|
name: Pioneer
|
|
|
|
turn_on_action:
|
|
|
|
- remote_transmitter.transmit_pioneer:
|
|
|
|
rc_code_1: 0xA556
|
|
|
|
rc_code_2: 0xA506
|
|
|
|
repeat:
|
|
|
|
times: 2
|
2019-04-17 12:06:00 +02:00
|
|
|
- platform: template
|
|
|
|
name: RC Switch Raw
|
|
|
|
turn_on_action:
|
|
|
|
remote_transmitter.transmit_rc_switch_raw:
|
2022-01-23 09:05:37 +01:00
|
|
|
code: "00101001100111110101xxxx"
|
2019-04-17 12:06:00 +02:00
|
|
|
protocol: 1
|
|
|
|
- platform: template
|
|
|
|
name: RC Switch Type A
|
|
|
|
turn_on_action:
|
|
|
|
remote_transmitter.transmit_rc_switch_type_a:
|
2022-01-23 09:05:37 +01:00
|
|
|
group: "11001"
|
|
|
|
device: "01000"
|
2022-09-06 05:48:01 +02:00
|
|
|
state: true
|
2019-04-17 12:06:00 +02:00
|
|
|
protocol:
|
|
|
|
pulse_length: 175
|
|
|
|
sync: [1, 31]
|
|
|
|
zero: [1, 3]
|
|
|
|
one: [3, 1]
|
2022-09-06 05:48:01 +02:00
|
|
|
inverted: false
|
2019-04-17 12:06:00 +02:00
|
|
|
- platform: template
|
|
|
|
name: RC Switch Type B
|
|
|
|
turn_on_action:
|
|
|
|
remote_transmitter.transmit_rc_switch_type_b:
|
|
|
|
address: 4
|
|
|
|
channel: 2
|
2022-09-06 05:48:01 +02:00
|
|
|
state: true
|
2019-04-17 12:06:00 +02:00
|
|
|
- platform: template
|
|
|
|
name: RC Switch Type C
|
|
|
|
turn_on_action:
|
|
|
|
remote_transmitter.transmit_rc_switch_type_c:
|
2022-01-23 09:05:37 +01:00
|
|
|
family: "a"
|
2019-04-17 12:06:00 +02:00
|
|
|
group: 1
|
|
|
|
device: 2
|
2022-09-06 05:48:01 +02:00
|
|
|
state: true
|
2019-04-17 12:06:00 +02:00
|
|
|
- platform: template
|
|
|
|
name: RC Switch Type D
|
|
|
|
turn_on_action:
|
|
|
|
remote_transmitter.transmit_rc_switch_type_d:
|
2022-01-23 09:05:37 +01:00
|
|
|
group: "a"
|
2019-04-17 12:06:00 +02:00
|
|
|
device: 2
|
2022-09-06 05:48:01 +02:00
|
|
|
state: true
|
2019-04-17 12:06:00 +02:00
|
|
|
- platform: template
|
|
|
|
name: RC5
|
|
|
|
turn_on_action:
|
|
|
|
remote_transmitter.transmit_rc5:
|
|
|
|
address: 0x00
|
|
|
|
command: 0x0B
|
|
|
|
- platform: template
|
|
|
|
name: RC5
|
|
|
|
turn_on_action:
|
|
|
|
remote_transmitter.transmit_raw:
|
|
|
|
code: [1000, -1000]
|
2022-08-31 06:43:33 +02:00
|
|
|
- platform: template
|
|
|
|
name: AEHA
|
|
|
|
id: eaha_hitachi_climate_power_on
|
|
|
|
turn_on_action:
|
|
|
|
remote_transmitter.transmit_aeha:
|
|
|
|
address: 0x8008
|
2022-09-06 05:48:01 +02:00
|
|
|
data:
|
|
|
|
[
|
|
|
|
0x00,
|
|
|
|
0x02,
|
|
|
|
0xFD,
|
|
|
|
0xFF,
|
|
|
|
0x00,
|
|
|
|
0x33,
|
|
|
|
0xCC,
|
|
|
|
0x49,
|
|
|
|
0xB6,
|
|
|
|
0xC8,
|
|
|
|
0x37,
|
|
|
|
0x16,
|
|
|
|
0xE9,
|
|
|
|
0x00,
|
|
|
|
0xFF,
|
|
|
|
0x00,
|
|
|
|
0xFF,
|
|
|
|
0x00,
|
|
|
|
0xFF,
|
|
|
|
0x00,
|
|
|
|
0xFF,
|
|
|
|
0x00,
|
|
|
|
0xFF,
|
|
|
|
0xCA,
|
|
|
|
0x35,
|
|
|
|
0x8F,
|
|
|
|
0x70,
|
|
|
|
0x00,
|
|
|
|
0xFF,
|
|
|
|
0x00,
|
|
|
|
0xFF,
|
|
|
|
0x00,
|
|
|
|
0xFF,
|
|
|
|
0x00,
|
|
|
|
0xFF,
|
|
|
|
]
|
2023-10-08 22:49:55 +02:00
|
|
|
- platform: template
|
|
|
|
name: Haier
|
|
|
|
turn_on_action:
|
|
|
|
remote_transmitter.transmit_haier:
|
2023-10-27 06:56:33 +02:00
|
|
|
code:
|
|
|
|
[
|
|
|
|
0xA6,
|
|
|
|
0xDA,
|
|
|
|
0x00,
|
|
|
|
0x00,
|
|
|
|
0x40,
|
|
|
|
0x40,
|
|
|
|
0x00,
|
|
|
|
0x80,
|
|
|
|
0x00,
|
|
|
|
0x00,
|
|
|
|
0x00,
|
|
|
|
0x00,
|
|
|
|
0x05,
|
|
|
|
]
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: template
|
|
|
|
name: Living Room Lights
|
2019-02-10 23:35:07 +01:00
|
|
|
id: livingroom_lights
|
2022-09-06 05:48:01 +02:00
|
|
|
optimistic: true
|
|
|
|
assumed_state: true
|
2018-08-26 11:26:14 +02:00
|
|
|
turn_on_action:
|
2020-11-20 03:59:19 +01:00
|
|
|
- switch.turn_on: living_room_lights_on
|
|
|
|
- output.set_level:
|
|
|
|
id: gpio_19
|
|
|
|
level: 50%
|
|
|
|
- output.set_level:
|
|
|
|
id: gpio_19
|
2022-01-23 09:05:37 +01:00
|
|
|
level: !lambda "return 0.5;"
|
2020-11-20 03:59:19 +01:00
|
|
|
- output.set_level:
|
|
|
|
id: dac_output
|
|
|
|
level: 50%
|
|
|
|
- output.set_level:
|
|
|
|
id: dac_output
|
2022-01-23 09:05:37 +01:00
|
|
|
level: !lambda "return 0.5;"
|
2021-02-06 16:18:48 +01:00
|
|
|
- output.set_level:
|
|
|
|
id: mcp4725_dac_output
|
2022-01-23 09:05:37 +01:00
|
|
|
level: !lambda "return 0.5;"
|
2022-02-21 12:47:03 +01:00
|
|
|
- output.set_level:
|
|
|
|
id: mcp4728_dac_output_a
|
|
|
|
level: !lambda "return 0.5;"
|
2018-08-26 11:26:14 +02:00
|
|
|
turn_off_action:
|
2020-11-20 03:59:19 +01:00
|
|
|
- switch.turn_on: living_room_lights_off
|
2019-02-10 23:35:07 +01:00
|
|
|
on_turn_on:
|
|
|
|
- switch.template.publish:
|
|
|
|
id: livingroom_lights
|
2022-09-06 05:48:01 +02:00
|
|
|
state: true
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: restart
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room Restart
|
2021-10-06 09:44:48 +02:00
|
|
|
- platform: safe_mode
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room Restart (Safe Mode)
|
2022-09-12 00:23:46 +02:00
|
|
|
- platform: factory_reset
|
|
|
|
name: Living Room Restart (Factory Default Settings)
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: shutdown
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room Shutdown
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: output
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Generic Output
|
2018-08-26 11:26:14 +02:00
|
|
|
output: pca_6
|
|
|
|
- platform: template
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Template Switch
|
2018-08-26 11:26:14 +02:00
|
|
|
id: my_switch
|
|
|
|
lambda: |-
|
2018-10-20 15:16:58 +02:00
|
|
|
if (id(binary_sensor1).state) {
|
2018-08-26 11:26:14 +02:00
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
return {};
|
|
|
|
}
|
|
|
|
id(my_switch).publish_state(false);
|
|
|
|
id(my_switch).publish_state(true);
|
2018-10-20 15:16:58 +02:00
|
|
|
if (id(my_switch).state) {
|
2018-08-26 11:26:14 +02:00
|
|
|
// Switch is ON, do something here
|
2018-10-20 15:16:58 +02:00
|
|
|
id(my_switch).turn_off();
|
|
|
|
id(my_switch).turn_on();
|
2018-08-26 11:26:14 +02:00
|
|
|
} else {
|
|
|
|
// Switch is OFF, do something else here
|
|
|
|
}
|
|
|
|
optimistic: true
|
2022-09-06 05:48:01 +02:00
|
|
|
assumed_state: false
|
2019-02-10 23:35:07 +01:00
|
|
|
on_turn_off:
|
|
|
|
- switch.template.publish:
|
|
|
|
id: my_switch
|
2022-01-23 09:05:37 +01:00
|
|
|
state: !lambda "return false;"
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: uart
|
2023-03-20 03:29:21 +01:00
|
|
|
uart_id: uart_0
|
2022-09-06 05:48:01 +02:00
|
|
|
name: UART String Output
|
|
|
|
data: DataToSend
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: uart
|
2023-03-20 03:29:21 +01:00
|
|
|
uart_id: uart_0
|
2022-09-06 05:48:01 +02:00
|
|
|
name: UART Bytes Output
|
2018-08-26 11:26:14 +02:00
|
|
|
data: [0xDE, 0xAD, 0xBE, 0xEF]
|
2021-02-27 23:53:53 +01:00
|
|
|
- platform: uart
|
2023-03-20 03:29:21 +01:00
|
|
|
uart_id: uart_0
|
2022-09-06 05:48:01 +02:00
|
|
|
name: UART Recurring Output
|
2021-02-27 23:53:53 +01:00
|
|
|
data: [0xDE, 0xAD, 0xBE, 0xEF]
|
|
|
|
send_every: 1s
|
2023-10-17 21:07:29 +02:00
|
|
|
- platform: uart
|
|
|
|
uart_id: uart_0
|
|
|
|
name: "UART On/Off"
|
|
|
|
data:
|
|
|
|
turn_on: "TurnOn\r\n"
|
|
|
|
turn_off: "TurnOff\r\n"
|
2018-10-26 22:57:03 +02:00
|
|
|
- platform: template
|
2022-09-06 05:48:01 +02:00
|
|
|
assumed_state: true
|
2018-10-26 22:57:03 +02:00
|
|
|
name: Stepper Switch
|
|
|
|
turn_on_action:
|
2020-11-20 03:59:19 +01:00
|
|
|
- stepper.set_target:
|
|
|
|
id: my_stepper
|
|
|
|
target: !lambda |-
|
|
|
|
static int32_t i = 0;
|
|
|
|
i += 1000;
|
|
|
|
if (i > 5000) {
|
|
|
|
i = -5000;
|
|
|
|
}
|
|
|
|
return i;
|
|
|
|
- stepper.report_position:
|
|
|
|
id: my_stepper
|
|
|
|
position: 0
|
2018-08-26 11:26:14 +02:00
|
|
|
|
2020-06-28 00:08:15 +02:00
|
|
|
- platform: gpio
|
2022-01-23 09:05:37 +01:00
|
|
|
name: "SN74HC595 Pin #0"
|
2020-06-28 00:08:15 +02:00
|
|
|
pin:
|
2023-11-07 10:15:13 +01:00
|
|
|
sn74hc595: sn74hc595_hub_2
|
2020-06-28 00:08:15 +02:00
|
|
|
# Use pin number 0
|
|
|
|
number: 0
|
2022-09-06 05:48:01 +02:00
|
|
|
inverted: false
|
2021-05-03 01:10:50 +02:00
|
|
|
- platform: template
|
|
|
|
id: ble1_status
|
2021-09-04 04:46:53 +02:00
|
|
|
optimistic: true
|
2022-02-03 21:04:48 +01:00
|
|
|
- platform: template
|
|
|
|
id: outlet_switch
|
|
|
|
optimistic: true
|
|
|
|
device_class: outlet
|
2023-08-16 01:31:18 +02:00
|
|
|
- platform: ld2410
|
|
|
|
engineering_mode:
|
|
|
|
name: "control ld2410 engineering mode"
|
|
|
|
bluetooth:
|
|
|
|
name: "control ld2410 bluetooth"
|
2023-11-03 07:54:47 +01:00
|
|
|
- platform: micronova
|
|
|
|
stove:
|
|
|
|
name: Stove on/off
|
2020-06-28 00:08:15 +02:00
|
|
|
|
2018-08-26 11:26:14 +02:00
|
|
|
fan:
|
|
|
|
- platform: binary
|
|
|
|
output: gpio_26
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room Fan 1
|
2020-06-14 21:54:31 +02:00
|
|
|
oscillation_output: gpio_19
|
|
|
|
direction_output: gpio_26
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: speed
|
2021-09-02 02:16:11 +02:00
|
|
|
id: fan_speed
|
2021-10-10 10:37:05 +02:00
|
|
|
icon: mdi:weather-windy
|
2018-08-26 11:26:14 +02:00
|
|
|
output: pca_6
|
2021-03-17 14:40:02 +01:00
|
|
|
speed_count: 10
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Living Room Fan 2
|
2020-06-14 21:54:31 +02:00
|
|
|
oscillation_output: gpio_19
|
|
|
|
direction_output: gpio_26
|
2020-07-15 11:45:54 +02:00
|
|
|
oscillation_state_topic: oscillation/state/topic
|
|
|
|
oscillation_command_topic: oscillation/command/topic
|
2021-09-22 13:42:58 +02:00
|
|
|
speed_level_state_topic: speed_level/state/topic
|
|
|
|
speed_level_command_topic: speed_level/command/topic
|
2020-07-15 11:45:54 +02:00
|
|
|
speed_state_topic: speed/state/topic
|
|
|
|
speed_command_topic: speed/command/topic
|
2021-09-08 05:15:57 +02:00
|
|
|
on_speed_set:
|
|
|
|
then:
|
2022-09-06 05:48:01 +02:00
|
|
|
- logger.log: Fan speed was changed!
|
2023-12-12 06:13:26 +01:00
|
|
|
- platform: speed
|
|
|
|
id: fan_speed_presets
|
|
|
|
icon: mdi:weather-windy
|
|
|
|
output: pca_6
|
|
|
|
speed_count: 10
|
|
|
|
name: Speed Fan w/ Presets
|
|
|
|
oscillation_output: gpio_19
|
|
|
|
direction_output: gpio_26
|
|
|
|
preset_modes:
|
|
|
|
- Preset 1
|
|
|
|
- Preset 2
|
|
|
|
on_preset_set:
|
|
|
|
then:
|
|
|
|
- logger.log: Preset mode was changed!
|
|
|
|
- platform: hbridge
|
|
|
|
id: fan_hbridge_presets
|
|
|
|
icon: mdi:weather-windy
|
|
|
|
speed_count: 4
|
|
|
|
name: H-bridge Fan w/ Presets
|
|
|
|
pin_a: pca_6
|
|
|
|
pin_b: pca_7
|
|
|
|
preset_modes:
|
|
|
|
- Preset 1
|
|
|
|
- Preset 2
|
|
|
|
on_preset_set:
|
|
|
|
then:
|
|
|
|
- logger.log: Preset mode was changed!
|
2022-08-31 03:53:18 +02:00
|
|
|
- platform: bedjet
|
|
|
|
name: My Bedjet fan
|
|
|
|
bedjet_id: my_bedjet_client
|
2022-02-20 21:13:37 +01:00
|
|
|
- platform: copy
|
|
|
|
source_id: fan_speed
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Fan Speed Copy
|
2018-08-26 11:26:14 +02:00
|
|
|
|
2019-02-17 00:35:23 +01:00
|
|
|
interval:
|
|
|
|
- interval: 10s
|
|
|
|
then:
|
2020-11-20 03:59:19 +01:00
|
|
|
- display.page.show: !lambda |-
|
|
|
|
if (true) return id(page1); else return id(page2);
|
|
|
|
- display.page.show_next: display1
|
|
|
|
- display.page.show_previous: display1
|
2019-06-16 19:14:13 +02:00
|
|
|
- interval: 2s
|
|
|
|
then:
|
2022-09-06 05:48:01 +02:00
|
|
|
# yamllint disable rule:line-length
|
2019-06-16 19:14:13 +02:00
|
|
|
- lambda: |-
|
2020-11-20 03:59:19 +01:00
|
|
|
static uint16_t btn_left_state = id(btn_left)->get_value();
|
2019-06-16 19:14:13 +02:00
|
|
|
|
2020-11-20 03:59:19 +01:00
|
|
|
ESP_LOGD("adaptive touch", "___ Touch Pad '%s' (T%u): val: %u state: %u tres:%u", id(btn_left)->get_name().c_str(), id(btn_left)->get_touch_pad(), id(btn_left)->get_value(), btn_left_state, id(btn_left)->get_threshold());
|
2019-12-03 15:50:06 +01:00
|
|
|
|
2020-11-20 03:59:19 +01:00
|
|
|
btn_left_state = ((uint32_t) id(btn_left)->get_value() + 63 * (uint32_t)btn_left_state) >> 6;
|
2019-06-16 19:14:13 +02:00
|
|
|
|
2020-11-20 03:59:19 +01:00
|
|
|
id(btn_left)->set_threshold(btn_left_state * 0.9);
|
2022-09-06 05:48:01 +02:00
|
|
|
# yamllint enable rule:line-length
|
2021-04-03 04:00:41 +02:00
|
|
|
- if:
|
|
|
|
condition:
|
|
|
|
display.is_displaying_page:
|
|
|
|
id: display1
|
|
|
|
page_id: page1
|
|
|
|
then:
|
2022-09-06 05:48:01 +02:00
|
|
|
- logger.log: Seeing page 1
|
2023-12-29 08:35:44 +01:00
|
|
|
- interval: 60min
|
|
|
|
then:
|
|
|
|
- ble_client.connect: ble_blah
|
|
|
|
- ble_client.ble_write:
|
|
|
|
id: ble_blah
|
|
|
|
service_uuid: EBE0CCB0-7A0A-4B0C-8A1A-6FF2997DA3A6
|
|
|
|
characteristic_uuid: EBE0CCB7-7A0A-4B0C-8A1A-6FF2997DA3A6
|
|
|
|
value: !lambda |-
|
|
|
|
return {1, 0};
|
|
|
|
- ble_client.disconnect: ble_blah
|
2019-02-17 00:35:23 +01:00
|
|
|
|
2020-06-28 23:37:36 +02:00
|
|
|
color:
|
|
|
|
- id: kbx_red
|
|
|
|
red: 100%
|
2021-03-02 15:08:57 +01:00
|
|
|
green_int: 123
|
2020-06-28 23:37:36 +02:00
|
|
|
blue: 2%
|
|
|
|
- id: kbx_blue
|
|
|
|
red: 0%
|
|
|
|
green: 1%
|
|
|
|
blue: 100%
|
2023-03-12 21:26:27 +01:00
|
|
|
- id: kbx_green
|
|
|
|
hex: "3DEC55"
|
2023-12-30 00:49:02 +01:00
|
|
|
- id: layout_black
|
|
|
|
red: 100%
|
|
|
|
green: 100%
|
|
|
|
blue: 100%
|
|
|
|
- id: layout_white
|
|
|
|
red: 0%
|
|
|
|
green: 0%
|
|
|
|
blue: 0%
|
2020-06-28 23:37:36 +02:00
|
|
|
|
2018-08-26 11:26:14 +02:00
|
|
|
display:
|
2020-11-20 03:59:19 +01:00
|
|
|
- platform: lcd_gpio
|
2022-11-07 07:00:55 +01:00
|
|
|
id: my_lcd_gpio
|
2020-11-20 03:59:19 +01:00
|
|
|
dimensions: 18x4
|
|
|
|
data_pins:
|
2023-12-21 05:37:02 +01:00
|
|
|
- allow_other_uses: true
|
2023-12-05 00:56:53 +01:00
|
|
|
number: GPIO19
|
2023-12-21 05:37:02 +01:00
|
|
|
- allow_other_uses: true
|
2023-12-05 00:56:53 +01:00
|
|
|
number: GPIO21
|
2023-12-21 05:37:02 +01:00
|
|
|
- allow_other_uses: true
|
2023-12-05 00:56:53 +01:00
|
|
|
number: GPIO22
|
2023-12-21 05:37:02 +01:00
|
|
|
- allow_other_uses: true
|
2023-12-05 00:56:53 +01:00
|
|
|
number: GPIO23
|
|
|
|
enable_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
|
|
|
rs_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO25
|
2020-11-20 03:59:19 +01:00
|
|
|
lambda: |-
|
|
|
|
it.print("Hello World!");
|
|
|
|
- platform: lcd_pcf8574
|
|
|
|
dimensions: 18x4
|
|
|
|
address: 0x3F
|
2022-03-24 07:37:48 +01:00
|
|
|
user_characters:
|
|
|
|
- position: 0
|
|
|
|
data:
|
|
|
|
- 0b00000
|
|
|
|
- 0b01010
|
|
|
|
- 0b00000
|
|
|
|
- 0b00100
|
|
|
|
- 0b00100
|
|
|
|
- 0b10001
|
|
|
|
- 0b01110
|
|
|
|
- 0b00000
|
2020-11-20 03:59:19 +01:00
|
|
|
lambda: |-
|
|
|
|
it.print("Hello World!");
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2020-11-20 03:59:19 +01:00
|
|
|
- platform: max7219
|
2023-12-05 00:56:53 +01:00
|
|
|
cs_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
2020-11-20 03:59:19 +01:00
|
|
|
num_chips: 1
|
|
|
|
lambda: |-
|
|
|
|
it.print("01234567");
|
|
|
|
- platform: tm1637
|
2023-12-05 00:56:53 +01:00
|
|
|
clk_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
|
|
|
dio_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO25
|
2020-11-20 03:59:19 +01:00
|
|
|
intensity: 3
|
|
|
|
lambda: |-
|
2020-01-13 23:44:55 +01:00
|
|
|
it.print("1234");
|
2020-11-20 03:59:19 +01:00
|
|
|
- platform: tm1637
|
|
|
|
clk_pin:
|
2021-03-07 20:23:54 +01:00
|
|
|
mcp23xxx: mcp23017_hub
|
2020-11-20 03:59:19 +01:00
|
|
|
number: 1
|
2023-12-05 00:56:53 +01:00
|
|
|
allow_other_uses: true
|
2020-11-20 03:59:19 +01:00
|
|
|
dio_pin:
|
2021-03-07 20:23:54 +01:00
|
|
|
mcp23xxx: mcp23017_hub
|
2020-11-20 03:59:19 +01:00
|
|
|
number: 2
|
|
|
|
intensity: 3
|
2021-12-20 09:30:35 +01:00
|
|
|
inverted: true
|
|
|
|
length: 4
|
2020-11-20 03:59:19 +01:00
|
|
|
lambda: |-
|
2020-05-19 00:13:29 +02:00
|
|
|
it.print("1234");
|
2020-11-20 03:59:19 +01:00
|
|
|
- platform: pcd8544
|
2023-12-05 00:56:53 +01:00
|
|
|
cs_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
|
|
|
dc_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
|
|
|
reset_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
2020-11-20 03:59:19 +01:00
|
|
|
contrast: 60
|
|
|
|
lambda: |-
|
|
|
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
|
|
|
- platform: ssd1306_i2c
|
2022-09-06 05:48:01 +02:00
|
|
|
model: SSD1306_128X64
|
2023-12-05 00:56:53 +01:00
|
|
|
reset_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
2020-11-20 03:59:19 +01:00
|
|
|
address: 0x3C
|
|
|
|
id: display1
|
2021-09-22 13:47:41 +02:00
|
|
|
contrast: 60%
|
2020-11-20 03:59:19 +01:00
|
|
|
pages:
|
|
|
|
- id: page1
|
|
|
|
lambda: |-
|
2022-01-26 10:20:45 +01:00
|
|
|
it.qr_code(0, 0, id(homepage_qr));
|
2020-11-20 03:59:19 +01:00
|
|
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
|
|
|
- id: page2
|
|
|
|
lambda: |-
|
|
|
|
// Nothing
|
2021-05-23 22:56:04 +02:00
|
|
|
on_page_change:
|
|
|
|
from: page1
|
|
|
|
to: page2
|
|
|
|
then:
|
|
|
|
lambda: |-
|
|
|
|
ESP_LOGD("display", "1 -> 2");
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2020-11-20 03:59:19 +01:00
|
|
|
- platform: ssd1306_spi
|
2022-09-06 05:48:01 +02:00
|
|
|
model: SSD1306 128x64
|
2023-12-05 00:56:53 +01:00
|
|
|
cs_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
|
|
|
dc_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
|
|
|
reset_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
2020-12-30 10:52:41 +01:00
|
|
|
lambda: |-
|
|
|
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
|
|
|
- platform: ssd1322_spi
|
2022-09-06 05:48:01 +02:00
|
|
|
model: SSD1322 256x64
|
2023-12-05 00:56:53 +01:00
|
|
|
cs_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
|
|
|
dc_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
|
|
|
reset_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
2020-11-20 03:59:19 +01:00
|
|
|
lambda: |-
|
|
|
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
|
|
|
- platform: ssd1325_spi
|
2022-09-06 05:48:01 +02:00
|
|
|
model: SSD1325 128x64
|
2023-12-05 00:56:53 +01:00
|
|
|
cs_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
|
|
|
dc_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
|
|
|
reset_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
2020-11-20 03:59:19 +01:00
|
|
|
lambda: |-
|
|
|
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
2020-12-30 10:48:23 +01:00
|
|
|
- platform: ssd1327_i2c
|
2022-09-06 05:48:01 +02:00
|
|
|
model: SSD1327 128X128
|
2023-12-05 00:56:53 +01:00
|
|
|
reset_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
2020-12-30 10:48:23 +01:00
|
|
|
address: 0x3D
|
|
|
|
id: display1327
|
|
|
|
brightness: 60%
|
|
|
|
pages:
|
|
|
|
- id: page13271
|
|
|
|
lambda: |-
|
|
|
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
|
|
|
- id: page13272
|
|
|
|
lambda: |-
|
|
|
|
// Nothing
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2020-12-30 10:48:23 +01:00
|
|
|
- platform: ssd1327_spi
|
2022-09-06 05:48:01 +02:00
|
|
|
model: SSD1327 128x128
|
2023-12-05 00:56:53 +01:00
|
|
|
cs_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
|
|
|
dc_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
|
|
|
reset_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
2020-12-30 10:48:23 +01:00
|
|
|
lambda: |-
|
|
|
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
2020-11-20 03:59:19 +01:00
|
|
|
- platform: ssd1331_spi
|
2023-12-05 00:56:53 +01:00
|
|
|
cs_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
|
|
|
dc_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
|
|
|
reset_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
2020-11-20 03:59:19 +01:00
|
|
|
lambda: |-
|
|
|
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
|
|
|
- platform: ssd1351_spi
|
2022-09-06 05:48:01 +02:00
|
|
|
model: SSD1351 128x128
|
2023-12-05 00:56:53 +01:00
|
|
|
cs_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
|
|
|
dc_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
|
|
|
reset_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
2020-11-20 03:59:19 +01:00
|
|
|
lambda: |-
|
|
|
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
|
|
|
- platform: st7789v
|
2022-08-07 21:54:48 +02:00
|
|
|
model: TTGO TDisplay 135x240
|
2023-12-05 00:56:53 +01:00
|
|
|
cs_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO5
|
|
|
|
dc_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO16
|
|
|
|
reset_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
2023-10-04 03:10:26 +02:00
|
|
|
backlight_pin: no
|
2020-11-20 03:59:19 +01:00
|
|
|
lambda: |-
|
|
|
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
2021-08-26 04:33:03 +02:00
|
|
|
- platform: st7920
|
|
|
|
width: 128
|
|
|
|
height: 64
|
|
|
|
cs_pin:
|
2023-12-05 00:56:53 +01:00
|
|
|
allow_other_uses: true
|
2021-08-26 04:33:03 +02:00
|
|
|
number: GPIO23
|
|
|
|
inverted: true
|
|
|
|
lambda: |-
|
|
|
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
2023-12-27 02:01:15 +01:00
|
|
|
- platform: st7567_i2c
|
|
|
|
id: st7735_display_i2c
|
|
|
|
address: 0x3F
|
|
|
|
i2c_id: i2c_bus
|
|
|
|
lambda: |-
|
|
|
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
|
|
|
- platform: st7567_spi
|
|
|
|
id: st7735_display_spi
|
|
|
|
cs_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO5
|
|
|
|
dc_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO16
|
|
|
|
reset_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
|
|
|
lambda: |-
|
|
|
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
2020-11-23 18:37:43 +01:00
|
|
|
- platform: st7735
|
2023-12-12 04:15:59 +01:00
|
|
|
id: st7735_display
|
2022-09-06 05:48:01 +02:00
|
|
|
model: INITR_BLACKTAB
|
2023-12-05 00:56:53 +01:00
|
|
|
cs_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO5
|
|
|
|
dc_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO16
|
|
|
|
reset_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
2020-11-23 18:37:43 +01:00
|
|
|
rotation: 0
|
2021-02-14 06:21:43 +01:00
|
|
|
device_width: 128
|
|
|
|
device_height: 160
|
|
|
|
col_start: 0
|
|
|
|
row_start: 0
|
2020-11-23 18:37:43 +01:00
|
|
|
lambda: |-
|
|
|
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
2023-03-09 00:03:49 +01:00
|
|
|
- platform: ili9xxx
|
2023-11-28 01:42:03 +01:00
|
|
|
invert_colors: true
|
|
|
|
dimensions: 320x240
|
|
|
|
transform:
|
|
|
|
swap_xy: true
|
|
|
|
mirror_x: true
|
|
|
|
mirror_y: false
|
2022-09-06 05:48:01 +02:00
|
|
|
model: TFT 2.4
|
2023-12-05 00:56:53 +01:00
|
|
|
cs_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO5
|
|
|
|
dc_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO4
|
2023-09-27 01:25:14 +02:00
|
|
|
color_palette: GRAYSCALE
|
2023-12-05 00:56:53 +01:00
|
|
|
reset_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO22
|
Make per-loop display clearing optional (#2626)
Currently, in each loop during DisplayBuffer::update_() the display is
cleared by calling DisplayBuffer::clear().
This prevents more efficient display usages that do not render the
screen in each loop, but only if necessary. This can be helpful, for
example, if images are rendered. This would cause the loop time to be
exceeded frequently.
This change adds a new optional flag "auto_clear" that can be used to
control the clearing behavior. If unset, the DisplayBuffer defaults to
enabled auto clearing, the current behavior and thus backward compatible.
This flag applies to displays that use DisplayBuffer.
Example excerpt:
globals:
- id: state
type: bool
restore_value: no
initial_value: "false"
- id: state_processed
type: bool
restore_value: no
initial_value: "false"
switch:
- platform: template
name: "State"
id: state_switch
lambda: |-
return id(state);
turn_on_action:
- globals.set:
id: state
value: "true"
- globals.set:
id: state_processed
value: "false"
turn_off_action:
- globals.set:
id: state
value: "false"
- globals.set:
id: state_processed
value: "false"
display:
- platform: ili9341
# ...
auto_clear_enabled: false
lambda: |-
if (!id(state_processed)) {
it.fill(COLOR_WHITE);
if (id(state)) {
it.image(80, 20, id(image1));
} else {
it.image(80, 20, id(image2));
}
id(state_processed) = true;
}
Co-authored-by: Tim Niemueller <timdn@google.com>
2021-11-03 17:56:09 +01:00
|
|
|
lambda: |-
|
|
|
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
2023-03-09 00:03:49 +01:00
|
|
|
- platform: ili9xxx
|
2023-11-28 01:42:03 +01:00
|
|
|
dimensions:
|
|
|
|
width: 320
|
|
|
|
height: 240
|
|
|
|
offset_width: 20
|
|
|
|
offset_height: 10
|
2022-09-06 05:48:01 +02:00
|
|
|
model: TFT 2.4
|
2023-12-05 00:56:53 +01:00
|
|
|
cs_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO5
|
|
|
|
dc_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO4
|
|
|
|
reset_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO22
|
Make per-loop display clearing optional (#2626)
Currently, in each loop during DisplayBuffer::update_() the display is
cleared by calling DisplayBuffer::clear().
This prevents more efficient display usages that do not render the
screen in each loop, but only if necessary. This can be helpful, for
example, if images are rendered. This would cause the loop time to be
exceeded frequently.
This change adds a new optional flag "auto_clear" that can be used to
control the clearing behavior. If unset, the DisplayBuffer defaults to
enabled auto clearing, the current behavior and thus backward compatible.
This flag applies to displays that use DisplayBuffer.
Example excerpt:
globals:
- id: state
type: bool
restore_value: no
initial_value: "false"
- id: state_processed
type: bool
restore_value: no
initial_value: "false"
switch:
- platform: template
name: "State"
id: state_switch
lambda: |-
return id(state);
turn_on_action:
- globals.set:
id: state
value: "true"
- globals.set:
id: state_processed
value: "false"
turn_off_action:
- globals.set:
id: state
value: "false"
- globals.set:
id: state_processed
value: "false"
display:
- platform: ili9341
# ...
auto_clear_enabled: false
lambda: |-
if (!id(state_processed)) {
it.fill(COLOR_WHITE);
if (id(state)) {
it.image(80, 20, id(image1));
} else {
it.image(80, 20, id(image2));
}
id(state_processed) = true;
}
Co-authored-by: Tim Niemueller <timdn@google.com>
2021-11-03 17:56:09 +01:00
|
|
|
auto_clear_enabled: false
|
|
|
|
rotation: 90
|
|
|
|
lambda: |-
|
|
|
|
if (!id(glob_bool_processed)) {
|
|
|
|
it.fill(Color::WHITE);
|
|
|
|
id(glob_bool_processed) = true;
|
|
|
|
}
|
2022-08-15 00:56:25 +02:00
|
|
|
- platform: pvvx_mithermometer
|
|
|
|
ble_client_id: ble_foo
|
|
|
|
time_id: sntp_time
|
|
|
|
disconnect_delay: 3s
|
|
|
|
update_interval: 10min
|
|
|
|
validity_period: 20min
|
|
|
|
lambda: |-
|
|
|
|
it.print_bignum(188.8);
|
|
|
|
it.print_unit(pvvx_mithermometer::UNIT_DEG_E);
|
|
|
|
it.print_smallnum(88);
|
|
|
|
it.print_percent(true);
|
|
|
|
it.print_happy(true);
|
|
|
|
it.print_sad(true);
|
|
|
|
it.print_bracket(true);
|
|
|
|
it.print_battery(true);
|
2022-09-08 01:40:27 +02:00
|
|
|
- platform: tm1621
|
|
|
|
id: tm1621_display
|
2023-12-05 00:56:53 +01:00
|
|
|
cs_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO17
|
|
|
|
data_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO5
|
|
|
|
read_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
|
|
|
write_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO18
|
2022-09-08 01:40:27 +02:00
|
|
|
lambda: |-
|
|
|
|
it.printf(0, "%.1f", id(dht_temperature).state);
|
|
|
|
it.display_celsius(true);
|
|
|
|
it.printf(1, "%.1f", id(dht_humidity).state);
|
|
|
|
it.display_humidity(true);
|
2021-06-01 03:32:09 +02:00
|
|
|
|
2019-12-04 13:11:53 +01:00
|
|
|
tm1651:
|
|
|
|
id: tm1651_battery
|
2023-12-05 00:56:53 +01:00
|
|
|
clk_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
|
|
|
dio_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
2019-12-04 13:11:53 +01:00
|
|
|
|
2018-08-26 11:26:14 +02:00
|
|
|
remote_receiver:
|
2023-10-24 05:28:53 +02:00
|
|
|
id: rcvr
|
2023-12-05 00:56:53 +01:00
|
|
|
pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO32
|
2018-08-26 11:26:14 +02:00
|
|
|
dump: all
|
2023-07-22 22:15:37 +02:00
|
|
|
on_coolix:
|
|
|
|
then:
|
|
|
|
delay: !lambda "return x.first + x.second;"
|
2023-11-13 18:55:36 +01:00
|
|
|
on_rc_switch:
|
|
|
|
then:
|
|
|
|
delay: !lambda "return uint32_t(x.code) + x.protocol;"
|
2018-08-26 11:26:14 +02:00
|
|
|
|
|
|
|
status_led:
|
2023-12-05 00:56:53 +01:00
|
|
|
pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO2
|
|
|
|
ignore_strapping_warning: true
|
2018-08-26 11:26:14 +02:00
|
|
|
|
2020-10-31 23:55:48 +01:00
|
|
|
pn532_spi:
|
2021-03-07 23:59:32 +01:00
|
|
|
id: pn532_bs
|
2023-12-05 00:56:53 +01:00
|
|
|
cs_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
2018-08-26 11:26:14 +02:00
|
|
|
update_interval: 1s
|
2018-10-17 21:29:44 +02:00
|
|
|
on_tag:
|
|
|
|
- lambda: |-
|
|
|
|
ESP_LOGD("main", "Found tag %s", x.c_str());
|
|
|
|
- mqtt.publish:
|
|
|
|
topic: the/topic
|
2022-01-23 09:05:37 +01:00
|
|
|
payload: !lambda "return x;"
|
2021-05-18 01:54:09 +02:00
|
|
|
on_tag_removed:
|
|
|
|
- lambda: |-
|
|
|
|
ESP_LOGD("main", "Removed tag %s", x.c_str());
|
|
|
|
- mqtt.publish:
|
|
|
|
topic: the/topic
|
2022-01-23 09:05:37 +01:00
|
|
|
payload: !lambda "return x;"
|
2018-08-26 11:26:14 +02:00
|
|
|
|
2020-10-31 23:55:48 +01:00
|
|
|
pn532_i2c:
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2020-10-31 23:55:48 +01:00
|
|
|
|
2023-12-14 00:27:35 +01:00
|
|
|
pn7150_i2c:
|
|
|
|
i2c_id: i2c_bus
|
|
|
|
irq_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO32
|
|
|
|
ven_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO16
|
|
|
|
|
2023-12-13 23:54:55 +01:00
|
|
|
pn7160_i2c:
|
|
|
|
id: nfcc_pn7160_i2c
|
|
|
|
i2c_id: i2c_bus
|
|
|
|
dwl_req_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO17
|
|
|
|
irq_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO35
|
|
|
|
ven_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO16
|
|
|
|
wkup_req_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO21
|
|
|
|
emulation_message: https://www.home-assistant.io/tag/pulse_ce
|
|
|
|
tag_ttl: 1000ms
|
|
|
|
|
|
|
|
pn7160_spi:
|
|
|
|
id: nfcc_pn7160_spi
|
|
|
|
cs_pin:
|
|
|
|
number: GPIO15
|
|
|
|
dwl_req_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO17
|
|
|
|
irq_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO35
|
|
|
|
ven_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO16
|
|
|
|
wkup_req_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO21
|
|
|
|
emulation_message: https://www.home-assistant.io/tag/pulse_ce
|
|
|
|
tag_ttl: 1000ms
|
|
|
|
|
2018-08-26 11:26:14 +02:00
|
|
|
rdm6300:
|
2023-03-20 03:29:21 +01:00
|
|
|
uart_id: uart_0
|
2018-08-26 11:26:14 +02:00
|
|
|
|
2020-10-27 00:41:57 +01:00
|
|
|
rc522_spi:
|
2023-12-05 00:56:53 +01:00
|
|
|
cs_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
2020-10-27 00:41:57 +01:00
|
|
|
update_interval: 1s
|
|
|
|
on_tag:
|
|
|
|
- lambda: |-
|
|
|
|
ESP_LOGD("main", "Found tag %s", x.c_str());
|
|
|
|
|
2021-01-12 14:13:53 +01:00
|
|
|
rc522_i2c:
|
2021-05-15 07:02:52 +02:00
|
|
|
- update_interval: 1s
|
|
|
|
on_tag:
|
|
|
|
- lambda: |-
|
|
|
|
ESP_LOGD("main", "Found tag %s", x.c_str());
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2021-05-15 07:02:52 +02:00
|
|
|
|
|
|
|
- update_interval: 1s
|
|
|
|
on_tag:
|
|
|
|
- lambda: |-
|
|
|
|
ESP_LOGD("main", "Found tag %s", x.c_str());
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2021-01-12 14:13:53 +01:00
|
|
|
|
2022-02-21 12:47:03 +01:00
|
|
|
mcp4728:
|
|
|
|
- id: mcp4728_dac
|
2022-09-06 05:48:01 +02:00
|
|
|
store_in_eeprom: false
|
2022-02-21 12:47:03 +01:00
|
|
|
address: 0x60
|
|
|
|
i2c_id: i2c_bus
|
|
|
|
|
2019-05-13 13:11:02 +02:00
|
|
|
gps:
|
2023-03-20 03:29:21 +01:00
|
|
|
uart_id: uart_0
|
2019-05-13 13:11:02 +02:00
|
|
|
|
2018-08-26 11:26:14 +02:00
|
|
|
time:
|
2020-11-20 03:59:19 +01:00
|
|
|
- platform: sntp
|
|
|
|
id: sntp_time
|
|
|
|
servers:
|
|
|
|
- 0.pool.ntp.org
|
|
|
|
- 1.pool.ntp.org
|
|
|
|
- 192.168.178.1
|
|
|
|
on_time:
|
2022-01-23 09:05:37 +01:00
|
|
|
cron: "/30 0-30,30/5 * ? JAN-DEC MON,SAT-SUN,TUE-FRI"
|
2020-11-20 03:59:19 +01:00
|
|
|
then:
|
|
|
|
- lambda: 'ESP_LOGD("main", "time");'
|
|
|
|
- platform: gps
|
2021-01-18 13:34:50 +01:00
|
|
|
on_time_sync:
|
2021-01-08 23:40:22 +01:00
|
|
|
then:
|
2021-01-18 13:35:35 +01:00
|
|
|
ds1307.write_time:
|
2021-01-08 23:40:22 +01:00
|
|
|
id: ds1307_time
|
|
|
|
- platform: ds1307
|
|
|
|
id: ds1307_time
|
2021-01-12 19:37:22 +01:00
|
|
|
update_interval: never
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2023-10-03 11:58:11 +02:00
|
|
|
on_time:
|
|
|
|
- seconds: 0
|
|
|
|
then: ds1307.read_time
|
|
|
|
- at: "16:00:00"
|
|
|
|
then:
|
|
|
|
- if:
|
|
|
|
condition:
|
|
|
|
or:
|
|
|
|
- binary_sensor.is_on: close_sensor
|
|
|
|
- binary_sensor.is_on: open_sensor
|
|
|
|
then:
|
|
|
|
logger.log: "close_sensor or open_sensor is on"
|
|
|
|
- if:
|
|
|
|
condition:
|
|
|
|
and:
|
|
|
|
- binary_sensor.is_on: close_sensor
|
|
|
|
- binary_sensor.is_on: open_sensor
|
|
|
|
then:
|
|
|
|
logger.log: "close_sensor and open_sensor are both on"
|
|
|
|
- if:
|
|
|
|
condition:
|
|
|
|
xor:
|
|
|
|
- binary_sensor.is_on: close_sensor
|
|
|
|
- binary_sensor.is_on: open_sensor
|
|
|
|
then:
|
|
|
|
logger.log: "close_sensor or open_sensor is exclusively on"
|
|
|
|
- if:
|
|
|
|
condition:
|
|
|
|
not:
|
|
|
|
- binary_sensor.is_on: close_sensor
|
|
|
|
then:
|
|
|
|
logger.log: "close_sensor is not on"
|
2018-08-26 11:26:14 +02:00
|
|
|
cover:
|
|
|
|
- platform: template
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Template Cover
|
2019-02-10 23:35:07 +01:00
|
|
|
id: template_cover
|
|
|
|
lambda: |-
|
2018-10-20 15:16:58 +02:00
|
|
|
if (id(binary_sensor1).state) {
|
2019-04-22 21:56:30 +02:00
|
|
|
return COVER_OPEN;
|
2018-08-26 11:26:14 +02:00
|
|
|
} else {
|
|
|
|
return {};
|
|
|
|
}
|
|
|
|
optimistic: true
|
2019-02-10 23:35:07 +01:00
|
|
|
open_action:
|
|
|
|
- cover.template.publish:
|
|
|
|
id: template_cover
|
|
|
|
state: CLOSED
|
2022-09-06 05:48:01 +02:00
|
|
|
assumed_state: false
|
|
|
|
has_position: true
|
2021-10-10 17:54:07 +02:00
|
|
|
position_state_topic: position/state/topic
|
|
|
|
position_command_topic: position/command/topic
|
2022-01-23 09:05:37 +01:00
|
|
|
tilt_lambda: !lambda "return 0.5;"
|
2021-10-10 17:54:07 +02:00
|
|
|
tilt_state_topic: tilt/state/topic
|
|
|
|
tilt_command_topic: tilt/command/topic
|
2021-10-12 04:39:21 +02:00
|
|
|
on_open:
|
|
|
|
then:
|
|
|
|
- lambda: 'ESP_LOGD("cover", "open");'
|
|
|
|
on_closed:
|
|
|
|
then:
|
|
|
|
- lambda: 'ESP_LOGD("cover", "closed");'
|
2021-08-11 06:07:10 +02:00
|
|
|
- platform: am43
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Test AM43
|
2021-08-11 06:07:10 +02:00
|
|
|
id: am43_test
|
|
|
|
ble_client_id: ble_foo
|
2021-10-10 10:37:05 +02:00
|
|
|
icon: mdi:blinds
|
2022-08-09 07:21:27 +02:00
|
|
|
- platform: feedback
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Feedback Cover
|
2022-08-09 07:21:27 +02:00
|
|
|
id: gate
|
|
|
|
device_class: gate
|
|
|
|
|
|
|
|
infer_endstop_from_movement: false
|
|
|
|
has_built_in_endstop: false
|
|
|
|
max_duration: 30s
|
|
|
|
direction_change_wait_time: 300ms
|
|
|
|
acceleration_wait_time: 150ms
|
|
|
|
obstacle_rollback: 10%
|
|
|
|
|
|
|
|
open_duration: 22.1s
|
|
|
|
open_endstop: open_endstop_sensor
|
|
|
|
open_sensor: open_sensor
|
|
|
|
open_obstacle_sensor: open_obstacle_sensor
|
|
|
|
|
|
|
|
close_duration: 22.4s
|
|
|
|
close_endstop: close_endstop_sensor
|
|
|
|
close_sensor: close_sensor
|
|
|
|
close_obstacle_sensor: close_obstacle_sensor
|
|
|
|
|
|
|
|
open_action:
|
|
|
|
- logger.log: Open Action
|
|
|
|
|
|
|
|
close_action:
|
|
|
|
- logger.log: Close Action
|
|
|
|
|
|
|
|
stop_action:
|
|
|
|
- logger.log: Stop Action
|
2018-08-26 11:26:14 +02:00
|
|
|
|
|
|
|
debug:
|
|
|
|
|
2021-03-29 21:50:30 +02:00
|
|
|
tca9548a:
|
|
|
|
- address: 0x70
|
|
|
|
id: multiplex0
|
2021-09-20 11:47:51 +02:00
|
|
|
channels:
|
|
|
|
- bus_id: multiplex0_chan0
|
|
|
|
channel: 0
|
|
|
|
i2c_id: i2c_bus
|
2021-03-29 21:50:30 +02:00
|
|
|
- address: 0x71
|
|
|
|
id: multiplex1
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: multiplex0_chan0
|
2021-03-29 21:50:30 +02:00
|
|
|
|
2018-08-26 11:26:14 +02:00
|
|
|
pcf8574:
|
2022-09-06 05:48:01 +02:00
|
|
|
- id: pcf8574_hub
|
2018-08-26 11:26:14 +02:00
|
|
|
address: 0x21
|
2022-09-06 05:48:01 +02:00
|
|
|
pcf8575: false
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2018-10-26 22:57:03 +02:00
|
|
|
|
2022-12-22 06:39:25 +01:00
|
|
|
pca9554:
|
|
|
|
- id: pca9554_hub
|
2023-11-01 00:22:04 +01:00
|
|
|
pin_count: 8
|
2022-12-22 06:39:25 +01:00
|
|
|
address: 0x3F
|
|
|
|
i2c_id: i2c_bus
|
|
|
|
|
2023-05-01 06:00:21 +02:00
|
|
|
pca6416a:
|
|
|
|
- id: pca6416a_hub
|
|
|
|
address: 0x21
|
|
|
|
i2c_id: i2c_bus
|
|
|
|
|
2019-03-03 16:51:55 +01:00
|
|
|
mcp23017:
|
2022-09-06 05:48:01 +02:00
|
|
|
- id: mcp23017_hub
|
|
|
|
open_drain_interrupt: true
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2019-03-03 16:51:55 +01:00
|
|
|
|
2019-10-17 16:18:41 +02:00
|
|
|
mcp23008:
|
2022-09-06 05:48:01 +02:00
|
|
|
- id: mcp23008_hub
|
2019-10-17 16:18:41 +02:00
|
|
|
address: 0x22
|
2022-09-06 05:48:01 +02:00
|
|
|
open_drain_interrupt: true
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2019-10-17 16:18:41 +02:00
|
|
|
|
2020-04-12 21:07:10 +02:00
|
|
|
mcp23016:
|
2022-09-06 05:48:01 +02:00
|
|
|
- id: mcp23016_hub
|
2020-04-12 21:07:10 +02:00
|
|
|
address: 0x23
|
2021-09-20 11:47:51 +02:00
|
|
|
i2c_id: i2c_bus
|
2020-04-12 21:07:10 +02:00
|
|
|
|
2018-10-26 22:57:03 +02:00
|
|
|
stepper:
|
2020-11-20 03:59:19 +01:00
|
|
|
- platform: a4988
|
|
|
|
id: my_stepper
|
2023-12-05 00:56:53 +01:00
|
|
|
step_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
|
|
|
dir_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO25
|
|
|
|
sleep_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO25
|
2020-11-20 03:59:19 +01:00
|
|
|
max_speed: 250 steps/s
|
|
|
|
acceleration: 100 steps/s^2
|
|
|
|
deceleration: 200 steps/s^2
|
2018-11-12 23:30:31 +01:00
|
|
|
|
|
|
|
globals:
|
2020-11-20 03:59:19 +01:00
|
|
|
- id: glob_int
|
|
|
|
type: int
|
2022-09-06 05:48:01 +02:00
|
|
|
restore_value: true
|
2022-01-23 09:05:37 +01:00
|
|
|
initial_value: "0"
|
2020-11-20 03:59:19 +01:00
|
|
|
- id: glob_float
|
|
|
|
type: float
|
2022-09-06 05:48:01 +02:00
|
|
|
restore_value: true
|
2022-01-23 09:05:37 +01:00
|
|
|
initial_value: "0.0f"
|
2020-11-20 03:59:19 +01:00
|
|
|
- id: glob_bool
|
|
|
|
type: bool
|
2022-09-06 05:48:01 +02:00
|
|
|
restore_value: false
|
2022-01-23 09:05:37 +01:00
|
|
|
initial_value: "true"
|
2020-11-20 03:59:19 +01:00
|
|
|
- id: glob_string
|
|
|
|
type: std::string
|
2022-09-06 05:48:01 +02:00
|
|
|
restore_value: false
|
2020-11-20 03:59:19 +01:00
|
|
|
# initial_value: ""
|
Make per-loop display clearing optional (#2626)
Currently, in each loop during DisplayBuffer::update_() the display is
cleared by calling DisplayBuffer::clear().
This prevents more efficient display usages that do not render the
screen in each loop, but only if necessary. This can be helpful, for
example, if images are rendered. This would cause the loop time to be
exceeded frequently.
This change adds a new optional flag "auto_clear" that can be used to
control the clearing behavior. If unset, the DisplayBuffer defaults to
enabled auto clearing, the current behavior and thus backward compatible.
This flag applies to displays that use DisplayBuffer.
Example excerpt:
globals:
- id: state
type: bool
restore_value: no
initial_value: "false"
- id: state_processed
type: bool
restore_value: no
initial_value: "false"
switch:
- platform: template
name: "State"
id: state_switch
lambda: |-
return id(state);
turn_on_action:
- globals.set:
id: state
value: "true"
- globals.set:
id: state_processed
value: "false"
turn_off_action:
- globals.set:
id: state
value: "false"
- globals.set:
id: state_processed
value: "false"
display:
- platform: ili9341
# ...
auto_clear_enabled: false
lambda: |-
if (!id(state_processed)) {
it.fill(COLOR_WHITE);
if (id(state)) {
it.image(80, 20, id(image1));
} else {
it.image(80, 20, id(image2));
}
id(state_processed) = true;
}
Co-authored-by: Tim Niemueller <timdn@google.com>
2021-11-03 17:56:09 +01:00
|
|
|
- id: glob_bool_processed
|
|
|
|
type: bool
|
2022-09-06 05:48:01 +02:00
|
|
|
restore_value: false
|
2022-01-23 09:05:37 +01:00
|
|
|
initial_value: "false"
|
2019-01-29 17:29:21 +01:00
|
|
|
|
|
|
|
text_sensor:
|
2022-02-19 09:45:32 +01:00
|
|
|
- platform: ble_client
|
|
|
|
ble_client_id: ble_foo
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Sensor Location
|
2022-08-09 07:21:27 +02:00
|
|
|
service_uuid: "180d"
|
|
|
|
characteristic_uuid: "2a38"
|
|
|
|
descriptor_uuid: "2902"
|
2022-02-19 09:45:32 +01:00
|
|
|
notify: true
|
|
|
|
update_interval: never
|
|
|
|
on_notify:
|
|
|
|
then:
|
|
|
|
- lambda: |-
|
2022-02-19 14:42:54 +01:00
|
|
|
ESP_LOGD("green_btn", "Location changed: %s", x.c_str());
|
2020-11-20 03:59:19 +01:00
|
|
|
- platform: mqtt_subscribe
|
2022-09-06 05:48:01 +02:00
|
|
|
name: MQTT Subscribe Text
|
2022-01-23 09:05:37 +01:00
|
|
|
topic: "the/topic"
|
2020-11-20 03:59:19 +01:00
|
|
|
qos: 2
|
|
|
|
on_value:
|
|
|
|
- text_sensor.template.publish:
|
2021-02-20 01:52:42 +01:00
|
|
|
id: ${textname}_text
|
2020-11-20 03:59:19 +01:00
|
|
|
state: Hello World
|
|
|
|
- text_sensor.template.publish:
|
2021-02-20 01:52:42 +01:00
|
|
|
id: ${textname}_text
|
2020-11-20 03:59:19 +01:00
|
|
|
state: |-
|
|
|
|
return "Hello World2";
|
|
|
|
- globals.set:
|
|
|
|
id: glob_int
|
2022-01-23 09:05:37 +01:00
|
|
|
value: "0"
|
2020-12-21 20:27:20 +01:00
|
|
|
- canbus.send:
|
2022-01-11 20:54:35 +01:00
|
|
|
canbus_id: mcp2515_can
|
|
|
|
can_id: 23
|
|
|
|
data: [0x10, 0x20, 0x30]
|
2023-10-23 20:26:23 +02:00
|
|
|
- canbus.send:
|
|
|
|
canbus_id: mcp2515_can
|
|
|
|
can_id: 23
|
|
|
|
data: !lambda return {0x10, 0x20, 0x30};
|
2022-01-11 20:54:35 +01:00
|
|
|
- canbus.send:
|
|
|
|
canbus_id: esp32_internal_can
|
2020-12-21 20:27:20 +01:00
|
|
|
can_id: 23
|
2021-01-12 14:13:53 +01:00
|
|
|
data: [0x10, 0x20, 0x30]
|
2022-04-04 01:15:51 +02:00
|
|
|
- canbus.send:
|
|
|
|
canbus_id: mcp2515_can
|
|
|
|
can_id: 24
|
|
|
|
remote_transmission_request: true
|
|
|
|
data: []
|
|
|
|
- canbus.send:
|
|
|
|
canbus_id: esp32_internal_can
|
|
|
|
can_id: 24
|
|
|
|
remote_transmission_request: true
|
|
|
|
data: []
|
2020-11-20 03:59:19 +01:00
|
|
|
- platform: template
|
|
|
|
name: Template Text Sensor
|
2021-02-20 01:52:42 +01:00
|
|
|
id: ${textname}_text
|
2020-11-20 03:59:19 +01:00
|
|
|
- platform: wifi_info
|
2021-09-22 13:44:09 +02:00
|
|
|
scan_results:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Scan Results
|
2020-11-20 03:59:19 +01:00
|
|
|
ip_address:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: IP Address
|
2020-11-20 03:59:19 +01:00
|
|
|
ssid:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: SSID
|
2020-11-20 03:59:19 +01:00
|
|
|
bssid:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: BSSID
|
2020-11-20 03:59:19 +01:00
|
|
|
mac_address:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Mac Address
|
2023-05-17 06:29:21 +02:00
|
|
|
dns_address:
|
|
|
|
name: DNS ADdress
|
2020-11-20 03:59:19 +01:00
|
|
|
- platform: version
|
2022-09-06 05:48:01 +02:00
|
|
|
name: ESPHome Version No Timestamp
|
|
|
|
hide_timestamp: true
|
2021-06-01 03:32:09 +02:00
|
|
|
- platform: teleinfo
|
2022-09-06 05:48:01 +02:00
|
|
|
tag_name: OPTARIF
|
|
|
|
name: optarif
|
2021-06-01 03:32:09 +02:00
|
|
|
teleinfo_id: myteleinfo
|
2023-08-16 01:31:18 +02:00
|
|
|
- platform: ld2410
|
|
|
|
version:
|
|
|
|
name: "presenece sensor version"
|
|
|
|
mac_address:
|
|
|
|
name: "presenece sensor mac address"
|
2020-06-28 00:08:15 +02:00
|
|
|
|
|
|
|
sn74hc595:
|
2022-09-06 05:48:01 +02:00
|
|
|
- id: sn74hc595_hub
|
2023-12-05 00:56:53 +01:00
|
|
|
data_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO21
|
|
|
|
clock_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO23
|
|
|
|
latch_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO22
|
|
|
|
oe_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO32
|
2020-06-28 00:08:15 +02:00
|
|
|
sr_count: 2
|
2023-11-07 10:15:13 +01:00
|
|
|
- id: sn74hc595_hub_2
|
2023-12-05 00:56:53 +01:00
|
|
|
latch_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO22
|
|
|
|
oe_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO32
|
2023-11-07 10:15:13 +01:00
|
|
|
sr_count: 2
|
|
|
|
spi_id: spi_bus
|
2020-07-25 17:57:11 +02:00
|
|
|
|
|
|
|
rtttl:
|
|
|
|
output: gpio_19
|
2020-12-21 20:27:20 +01:00
|
|
|
|
|
|
|
canbus:
|
|
|
|
- platform: mcp2515
|
2022-01-11 20:54:35 +01:00
|
|
|
id: mcp2515_can
|
2023-11-01 00:22:04 +01:00
|
|
|
cs_pin:
|
|
|
|
pca9554: pca9554_hub
|
|
|
|
number: 7
|
|
|
|
mode:
|
|
|
|
output: true
|
|
|
|
inverted: true
|
2020-12-21 20:27:20 +01:00
|
|
|
can_id: 4
|
|
|
|
bit_rate: 50kbps
|
|
|
|
on_frame:
|
2021-01-12 14:13:53 +01:00
|
|
|
- can_id: 500
|
|
|
|
then:
|
|
|
|
- lambda: |-
|
|
|
|
std::string b(x.begin(), x.end());
|
2022-02-19 14:42:54 +01:00
|
|
|
ESP_LOGD("canid 500", "%s", b.c_str());
|
2021-01-12 14:13:53 +01:00
|
|
|
- can_id: 23
|
|
|
|
then:
|
|
|
|
- if:
|
|
|
|
condition:
|
2022-01-23 09:05:37 +01:00
|
|
|
lambda: "return x[0] == 0x11;"
|
2021-01-12 14:13:53 +01:00
|
|
|
then:
|
2021-02-20 01:52:42 +01:00
|
|
|
light.toggle: ${roomname}_lights
|
2022-08-09 07:21:27 +02:00
|
|
|
- can_id: 0b00000000000000000000001000000
|
2022-02-17 05:00:31 +01:00
|
|
|
can_id_mask: 0b11111000000000011111111000000
|
|
|
|
use_extended_id: true
|
|
|
|
then:
|
|
|
|
- lambda: |-
|
|
|
|
auto pdo_id = can_id >> 14;
|
|
|
|
switch (pdo_id)
|
|
|
|
{
|
|
|
|
case 117:
|
|
|
|
ESP_LOGD("canbus", "exhaust_fan_duty");
|
|
|
|
break;
|
|
|
|
case 118:
|
|
|
|
ESP_LOGD("canbus", "supply_fan_duty");
|
|
|
|
break;
|
|
|
|
case 119:
|
|
|
|
ESP_LOGD("canbus", "supply_fan_flow");
|
|
|
|
break;
|
|
|
|
// to be continued...
|
|
|
|
}
|
2022-01-11 20:54:35 +01:00
|
|
|
- platform: esp32_can
|
|
|
|
id: esp32_internal_can
|
2023-12-05 00:56:53 +01:00
|
|
|
rx_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO04
|
|
|
|
tx_pin:
|
|
|
|
allow_other_uses: true
|
|
|
|
number: GPIO05
|
2022-01-11 20:54:35 +01:00
|
|
|
can_id: 4
|
|
|
|
bit_rate: 50kbps
|
|
|
|
on_frame:
|
|
|
|
- can_id: 500
|
|
|
|
then:
|
|
|
|
- lambda: |-
|
|
|
|
std::string b(x.begin(), x.end());
|
2022-02-19 14:42:54 +01:00
|
|
|
ESP_LOGD("canid 500", "%s", b.c_str() );
|
2022-01-11 20:54:35 +01:00
|
|
|
- can_id: 23
|
|
|
|
then:
|
|
|
|
- if:
|
|
|
|
condition:
|
2022-01-23 09:05:37 +01:00
|
|
|
lambda: "return x[0] == 0x11;"
|
2022-01-11 20:54:35 +01:00
|
|
|
then:
|
|
|
|
light.toggle: ${roomname}_lights
|
2022-08-09 07:21:27 +02:00
|
|
|
- can_id: 0b00000000000000000000001000000
|
2022-02-17 05:00:31 +01:00
|
|
|
can_id_mask: 0b11111000000000011111111000000
|
|
|
|
use_extended_id: true
|
|
|
|
then:
|
|
|
|
- lambda: |-
|
|
|
|
auto pdo_id = can_id >> 14;
|
|
|
|
switch (pdo_id)
|
|
|
|
{
|
|
|
|
case 117:
|
|
|
|
ESP_LOGD("canbus", "exhaust_fan_duty");
|
|
|
|
break;
|
|
|
|
case 118:
|
|
|
|
ESP_LOGD("canbus", "supply_fan_duty");
|
|
|
|
break;
|
|
|
|
case 119:
|
|
|
|
ESP_LOGD("canbus", "supply_fan_flow");
|
|
|
|
break;
|
|
|
|
// to be continued...
|
|
|
|
}
|
2021-06-01 03:32:09 +02:00
|
|
|
|
|
|
|
teleinfo:
|
|
|
|
id: myteleinfo
|
2023-03-20 03:29:21 +01:00
|
|
|
uart_id: uart_0
|
2021-06-01 03:32:09 +02:00
|
|
|
update_interval: 60s
|
|
|
|
historical_mode: true
|
2021-11-14 14:59:34 +01:00
|
|
|
|
|
|
|
number:
|
|
|
|
- platform: template
|
|
|
|
id: test_number
|
|
|
|
state_topic: livingroom/custom_state_topic
|
|
|
|
command_topic: livingroom/custom_command_topic
|
|
|
|
min_value: 0
|
|
|
|
step: 1
|
|
|
|
max_value: 10
|
|
|
|
optimistic: true
|
2023-08-16 01:31:18 +02:00
|
|
|
- platform: ld2410
|
|
|
|
light_threshold:
|
|
|
|
name: light threshold
|
|
|
|
timeout:
|
|
|
|
name: timeout
|
|
|
|
max_move_distance_gate:
|
|
|
|
name: max move distance gate
|
|
|
|
max_still_distance_gate:
|
|
|
|
name: max still distance gate
|
|
|
|
g0:
|
|
|
|
move_threshold:
|
|
|
|
name: g0 move threshold
|
|
|
|
still_threshold:
|
|
|
|
name: g0 still threshold
|
|
|
|
g1:
|
|
|
|
move_threshold:
|
|
|
|
name: g1 move threshold
|
|
|
|
still_threshold:
|
|
|
|
name: g1 still threshold
|
|
|
|
g2:
|
|
|
|
move_threshold:
|
|
|
|
name: g2 move threshold
|
|
|
|
still_threshold:
|
|
|
|
name: g2 still threshold
|
|
|
|
g3:
|
|
|
|
move_threshold:
|
|
|
|
name: g3 move threshold
|
|
|
|
still_threshold:
|
|
|
|
name: g3 still threshold
|
|
|
|
g4:
|
|
|
|
move_threshold:
|
|
|
|
name: g4 move threshold
|
|
|
|
still_threshold:
|
|
|
|
name: g4 still threshold
|
|
|
|
g5:
|
|
|
|
move_threshold:
|
|
|
|
name: g5 move threshold
|
|
|
|
still_threshold:
|
|
|
|
name: g5 still threshold
|
|
|
|
g6:
|
|
|
|
move_threshold:
|
|
|
|
name: g6 move threshold
|
|
|
|
still_threshold:
|
|
|
|
name: g6 still threshold
|
|
|
|
g7:
|
|
|
|
move_threshold:
|
|
|
|
name: g7 move threshold
|
|
|
|
still_threshold:
|
|
|
|
name: g7 still threshold
|
|
|
|
g8:
|
|
|
|
move_threshold:
|
|
|
|
name: g8 move threshold
|
|
|
|
still_threshold:
|
|
|
|
name: g8 still threshold
|
2023-11-03 07:54:47 +01:00
|
|
|
- platform: micronova
|
|
|
|
thermostat_temperature:
|
|
|
|
name: Micronova Thermostaat
|
|
|
|
step: 1
|
|
|
|
power_level:
|
|
|
|
name: Micronova Power level
|
2023-08-16 01:31:18 +02:00
|
|
|
|
2021-11-14 14:59:34 +01:00
|
|
|
select:
|
|
|
|
- platform: template
|
|
|
|
id: test_select
|
|
|
|
state_topic: livingroom/custom_state_topic
|
|
|
|
command_topic: livingroom/custom_command_topic
|
|
|
|
options:
|
|
|
|
- one
|
|
|
|
- two
|
|
|
|
optimistic: true
|
2022-02-20 21:13:37 +01:00
|
|
|
- platform: copy
|
|
|
|
source_id: test_select
|
|
|
|
name: Test Select Copy
|
2023-08-16 01:31:18 +02:00
|
|
|
- platform: ld2410
|
|
|
|
distance_resolution:
|
|
|
|
name: distance resolution
|
|
|
|
baud_rate:
|
|
|
|
name: baud rate
|
|
|
|
light_function:
|
|
|
|
name: light function
|
|
|
|
out_pin_level:
|
|
|
|
name: out ping level
|
2022-01-26 10:20:45 +01:00
|
|
|
|
|
|
|
qr_code:
|
|
|
|
- id: homepage_qr
|
|
|
|
value: https://esphome.io/index.html
|
2022-02-03 19:24:31 +01:00
|
|
|
|
|
|
|
lock:
|
|
|
|
- platform: template
|
|
|
|
id: test_lock1
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Template Switch
|
2022-02-03 19:24:31 +01:00
|
|
|
lambda: |-
|
|
|
|
if (id(binary_sensor1).state) {
|
|
|
|
return LOCK_STATE_LOCKED;
|
|
|
|
}else{
|
|
|
|
return LOCK_STATE_UNLOCKED;
|
|
|
|
}
|
|
|
|
optimistic: true
|
2022-09-06 05:48:01 +02:00
|
|
|
assumed_state: false
|
2022-02-03 19:24:31 +01:00
|
|
|
on_unlock:
|
|
|
|
- lock.template.publish:
|
|
|
|
id: test_lock1
|
|
|
|
state: !lambda "return LOCK_STATE_UNLOCKED;"
|
|
|
|
on_lock:
|
|
|
|
- lock.template.publish:
|
|
|
|
id: test_lock1
|
|
|
|
state: !lambda "return LOCK_STATE_LOCKED;"
|
|
|
|
- platform: output
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Generic Output Lock
|
2022-02-03 19:24:31 +01:00
|
|
|
id: test_lock2
|
|
|
|
output: pca_6
|
2022-02-20 21:13:37 +01:00
|
|
|
- platform: copy
|
|
|
|
source_id: test_lock2
|
|
|
|
name: Generic Output Lock Copy
|
2022-05-10 11:25:44 +02:00
|
|
|
|
|
|
|
button:
|
|
|
|
- platform: template
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Start calibration
|
2022-05-10 11:25:44 +02:00
|
|
|
on_press:
|
|
|
|
- scd4x.perform_forced_calibration:
|
|
|
|
value: 419
|
|
|
|
id: scd40
|
|
|
|
- scd4x.factory_reset:
|
|
|
|
id: scd40
|
2022-05-23 10:51:45 +02:00
|
|
|
- platform: template
|
|
|
|
name: Midea Display Toggle
|
|
|
|
on_press:
|
|
|
|
midea_ac.display_toggle:
|
|
|
|
- platform: template
|
|
|
|
name: Midea Swing Step
|
|
|
|
on_press:
|
|
|
|
midea_ac.swing_step:
|
|
|
|
- platform: template
|
|
|
|
name: Midea Power On
|
|
|
|
on_press:
|
|
|
|
midea_ac.power_on:
|
|
|
|
- platform: template
|
|
|
|
name: Midea Power Off
|
|
|
|
on_press:
|
|
|
|
midea_ac.power_off:
|
|
|
|
- platform: template
|
|
|
|
name: Midea Power Inverse
|
|
|
|
on_press:
|
|
|
|
midea_ac.power_toggle:
|
2023-10-27 06:56:33 +02:00
|
|
|
- platform: template
|
|
|
|
name: Update Mmwave Sensor Settings
|
|
|
|
on_press:
|
|
|
|
- dfrobot_sen0395.settings:
|
|
|
|
id: mmwave
|
|
|
|
factory_reset: true
|
|
|
|
detection_segments:
|
|
|
|
- [0cm, 5m]
|
|
|
|
- 600cm
|
|
|
|
- !lambda |-
|
|
|
|
return 7;
|
|
|
|
output_latency:
|
|
|
|
delay_after_detect: 0s
|
|
|
|
delay_after_disappear: 0s
|
|
|
|
sensitivity: 6
|
|
|
|
- platform: template
|
|
|
|
name: Reset Mmwave Sensor
|
|
|
|
on_press:
|
|
|
|
- dfrobot_sen0395.reset:
|
2023-10-02 22:25:13 +02:00
|
|
|
- platform: template
|
|
|
|
name: Poller component suspend test
|
|
|
|
on_press:
|
|
|
|
- component.suspend: myteleinfo
|
|
|
|
- delay: 20s
|
|
|
|
- component.update: myteleinfo
|
|
|
|
- delay: 20s
|
|
|
|
- component.resume: myteleinfo
|
|
|
|
- delay: 20s
|
|
|
|
- component.resume:
|
|
|
|
id: myteleinfo
|
|
|
|
update_interval: 2s
|
|
|
|
- delay: 20s
|
|
|
|
- component.resume:
|
|
|
|
id: myteleinfo
|
|
|
|
update_interval: !lambda return 2500;
|
2023-08-16 01:31:18 +02:00
|
|
|
- platform: ld2410
|
|
|
|
factory_reset:
|
|
|
|
name: "factory reset"
|
|
|
|
restart:
|
|
|
|
name: "restart"
|
|
|
|
query_params:
|
|
|
|
name: query params
|
2023-10-17 20:30:32 +02:00
|
|
|
- platform: uart
|
|
|
|
uart_id: uart_0
|
|
|
|
name: UART button
|
|
|
|
data: "Pressed\r\n"
|
2023-11-03 07:54:47 +01:00
|
|
|
- platform: micronova
|
|
|
|
custom_button:
|
|
|
|
name: Custom Micronova Button
|
|
|
|
memory_location: 0xA0
|
|
|
|
memory_address: 0x7D
|
|
|
|
memory_data: 0x0F
|
2022-11-07 07:00:55 +01:00
|
|
|
|
2023-02-06 23:47:50 +01:00
|
|
|
ld2410:
|
|
|
|
id: my_ld2410
|
|
|
|
uart_id: ld2410_uart
|
|
|
|
|
2023-11-03 00:02:23 +01:00
|
|
|
ld2420:
|
|
|
|
id: my_ld2420
|
|
|
|
uart_id: ld2420_uart
|
|
|
|
|
2022-11-07 07:00:55 +01:00
|
|
|
lcd_menu:
|
2023-12-12 04:15:59 +01:00
|
|
|
id: test_lcd_menu
|
2022-11-07 07:00:55 +01:00
|
|
|
display_id: my_lcd_gpio
|
|
|
|
mark_back: 0x5e
|
|
|
|
mark_selected: 0x3e
|
|
|
|
mark_editing: 0x2a
|
|
|
|
mark_submenu: 0x7e
|
|
|
|
active: false
|
|
|
|
mode: rotary
|
|
|
|
on_enter:
|
|
|
|
then:
|
|
|
|
lambda: 'ESP_LOGI("lcd_menu", "root enter");'
|
|
|
|
on_leave:
|
|
|
|
then:
|
|
|
|
lambda: 'ESP_LOGI("lcd_menu", "root leave");'
|
|
|
|
items:
|
|
|
|
- type: back
|
2023-03-09 02:54:51 +01:00
|
|
|
text: Back
|
2022-11-07 07:00:55 +01:00
|
|
|
- type: label
|
|
|
|
- type: menu
|
2023-03-09 02:54:51 +01:00
|
|
|
text: Submenu 1
|
2022-11-07 07:00:55 +01:00
|
|
|
items:
|
|
|
|
- type: back
|
2023-03-09 02:54:51 +01:00
|
|
|
text: Back
|
2022-11-07 07:00:55 +01:00
|
|
|
- type: menu
|
2023-03-09 02:54:51 +01:00
|
|
|
text: Submenu 21
|
2022-11-07 07:00:55 +01:00
|
|
|
items:
|
|
|
|
- type: back
|
2023-03-09 02:54:51 +01:00
|
|
|
text: Back
|
2022-11-07 07:00:55 +01:00
|
|
|
- type: command
|
2023-03-09 02:54:51 +01:00
|
|
|
text: Show Main
|
2022-11-07 07:00:55 +01:00
|
|
|
on_value:
|
|
|
|
then:
|
2023-12-12 04:15:59 +01:00
|
|
|
- display_menu.show_main: test_lcd_menu
|
2022-11-07 07:00:55 +01:00
|
|
|
- type: select
|
2023-03-09 02:54:51 +01:00
|
|
|
text: Enum Item
|
2022-11-07 07:00:55 +01:00
|
|
|
immediate_edit: true
|
|
|
|
select: test_select
|
|
|
|
on_enter:
|
|
|
|
then:
|
|
|
|
lambda: 'ESP_LOGI("lcd_menu", "select enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
|
|
|
on_leave:
|
|
|
|
then:
|
|
|
|
lambda: 'ESP_LOGI("lcd_menu", "select leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
|
|
|
on_value:
|
|
|
|
then:
|
|
|
|
lambda: 'ESP_LOGI("lcd_menu", "select value: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
|
|
|
- type: number
|
2023-03-09 02:54:51 +01:00
|
|
|
text: Number
|
2022-11-07 07:00:55 +01:00
|
|
|
number: test_number
|
|
|
|
on_enter:
|
|
|
|
then:
|
|
|
|
lambda: 'ESP_LOGI("lcd_menu", "number enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
|
|
|
on_leave:
|
|
|
|
then:
|
|
|
|
lambda: 'ESP_LOGI("lcd_menu", "number leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
|
|
|
on_value:
|
|
|
|
then:
|
|
|
|
lambda: 'ESP_LOGI("lcd_menu", "number value: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
|
|
|
- type: command
|
2023-03-09 02:54:51 +01:00
|
|
|
text: Hide
|
2022-11-07 07:00:55 +01:00
|
|
|
on_value:
|
|
|
|
then:
|
2023-12-12 04:15:59 +01:00
|
|
|
- display_menu.hide: test_lcd_menu
|
2022-11-07 07:00:55 +01:00
|
|
|
- type: switch
|
2023-03-09 02:54:51 +01:00
|
|
|
text: Switch
|
2022-11-07 07:00:55 +01:00
|
|
|
switch: my_switch
|
2023-03-09 02:54:51 +01:00
|
|
|
on_text: Bright
|
|
|
|
off_text: Dark
|
2022-11-07 07:00:55 +01:00
|
|
|
immediate_edit: false
|
|
|
|
on_value:
|
|
|
|
then:
|
|
|
|
lambda: 'ESP_LOGI("lcd_menu", "switch value: %s", it->get_value_text().c_str());'
|
|
|
|
- type: custom
|
|
|
|
text: !lambda 'return "Custom";'
|
|
|
|
value_lambda: 'return "Val";'
|
|
|
|
on_next:
|
|
|
|
then:
|
|
|
|
lambda: 'ESP_LOGI("lcd_menu", "custom next: %s", it->get_text().c_str());'
|
|
|
|
on_prev:
|
|
|
|
then:
|
|
|
|
lambda: 'ESP_LOGI("lcd_menu", "custom prev: %s", it->get_text().c_str());'
|
2023-06-15 02:34:39 +02:00
|
|
|
|
2023-12-12 04:15:59 +01:00
|
|
|
font:
|
|
|
|
- file: "gfonts://Roboto"
|
|
|
|
id: roboto
|
|
|
|
size: 20
|
|
|
|
|
|
|
|
graphical_display_menu:
|
|
|
|
id: test_graphical_display_menu
|
|
|
|
display: st7735_display
|
|
|
|
font: roboto
|
|
|
|
active: false
|
|
|
|
mode: rotary
|
|
|
|
on_enter:
|
|
|
|
then:
|
|
|
|
lambda: 'ESP_LOGI("graphical_display_menu", "root enter");'
|
|
|
|
on_leave:
|
|
|
|
then:
|
|
|
|
lambda: 'ESP_LOGI("graphical_display_menu", "root leave");'
|
|
|
|
items:
|
|
|
|
- type: back
|
2023-12-21 05:37:02 +01:00
|
|
|
text: "Back"
|
2023-12-12 04:15:59 +01:00
|
|
|
- type: label
|
|
|
|
- type: menu
|
2023-12-21 05:37:02 +01:00
|
|
|
text: "Submenu 1"
|
2023-12-12 04:15:59 +01:00
|
|
|
items:
|
|
|
|
- type: back
|
2023-12-21 05:37:02 +01:00
|
|
|
text: "Back"
|
2023-12-12 04:15:59 +01:00
|
|
|
- type: menu
|
2023-12-21 05:37:02 +01:00
|
|
|
text: "Submenu 21"
|
2023-12-12 04:15:59 +01:00
|
|
|
items:
|
|
|
|
- type: back
|
2023-12-21 05:37:02 +01:00
|
|
|
text: "Back"
|
2023-12-12 04:15:59 +01:00
|
|
|
- type: command
|
2023-12-21 05:37:02 +01:00
|
|
|
text: "Show Main"
|
2023-12-12 04:15:59 +01:00
|
|
|
on_value:
|
|
|
|
then:
|
|
|
|
- display_menu.show_main: test_graphical_display_menu
|
|
|
|
- type: select
|
2023-12-21 05:37:02 +01:00
|
|
|
text: "Enum Item"
|
2023-12-12 04:15:59 +01:00
|
|
|
immediate_edit: true
|
|
|
|
select: test_select
|
|
|
|
on_enter:
|
|
|
|
then:
|
|
|
|
lambda: 'ESP_LOGI("graphical_display_menu", "select enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
|
|
|
on_leave:
|
|
|
|
then:
|
|
|
|
lambda: 'ESP_LOGI("graphical_display_menu", "select leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
|
|
|
on_value:
|
|
|
|
then:
|
|
|
|
lambda: 'ESP_LOGI("graphical_display_menu", "select value: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
|
|
|
- type: number
|
2023-12-21 05:37:02 +01:00
|
|
|
text: "Number"
|
2023-12-12 04:15:59 +01:00
|
|
|
number: test_number
|
|
|
|
on_enter:
|
|
|
|
then:
|
|
|
|
lambda: 'ESP_LOGI("graphical_display_menu", "number enter: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
|
|
|
on_leave:
|
|
|
|
then:
|
|
|
|
lambda: 'ESP_LOGI("graphical_display_menu", "number leave: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
|
|
|
on_value:
|
|
|
|
then:
|
|
|
|
lambda: 'ESP_LOGI("graphical_display_menu", "number value: %s, %s", it->get_text().c_str(), it->get_value_text().c_str());'
|
|
|
|
- type: command
|
2023-12-21 05:37:02 +01:00
|
|
|
text: "Hide"
|
2023-12-12 04:15:59 +01:00
|
|
|
on_value:
|
|
|
|
then:
|
|
|
|
- display_menu.hide: test_graphical_display_menu
|
|
|
|
- type: switch
|
2023-12-21 05:37:02 +01:00
|
|
|
text: "Switch"
|
2023-12-12 04:15:59 +01:00
|
|
|
switch: my_switch
|
2023-12-21 05:37:02 +01:00
|
|
|
on_text: "Bright"
|
|
|
|
off_text: "Dark"
|
2023-12-12 04:15:59 +01:00
|
|
|
immediate_edit: false
|
|
|
|
on_value:
|
|
|
|
then:
|
|
|
|
lambda: 'ESP_LOGI("graphical_display_menu", "switch value: %s", it->get_value_text().c_str());'
|
|
|
|
- type: custom
|
|
|
|
text: !lambda 'return "Custom";'
|
|
|
|
value_lambda: 'return "Val";'
|
|
|
|
on_next:
|
|
|
|
then:
|
|
|
|
lambda: 'ESP_LOGI("graphical_display_menu", "custom next: %s", it->get_text().c_str());'
|
|
|
|
on_prev:
|
|
|
|
then:
|
|
|
|
lambda: 'ESP_LOGI("graphical_display_menu", "custom prev: %s", it->get_text().c_str());'
|
|
|
|
|
2023-06-15 02:34:39 +02:00
|
|
|
alarm_control_panel:
|
|
|
|
- platform: template
|
|
|
|
id: alarmcontrolpanel1
|
|
|
|
name: Alarm Panel
|
|
|
|
codes:
|
|
|
|
- "1234"
|
|
|
|
requires_code_to_arm: true
|
|
|
|
arming_home_time: 1s
|
|
|
|
arming_away_time: 15s
|
|
|
|
pending_time: 15s
|
|
|
|
trigger_time: 30s
|
|
|
|
binary_sensors:
|
|
|
|
- binary_sensor1
|
|
|
|
on_state:
|
|
|
|
then:
|
|
|
|
- lambda: !lambda |-
|
|
|
|
ESP_LOGD("TEST", "State change %s", alarm_control_panel_state_to_string(id(alarmcontrolpanel1)->get_state()));
|