2020-05-27 00:33:28 +02:00
|
|
|
esphome:
|
|
|
|
name: $devicename
|
|
|
|
platform: ESP32
|
|
|
|
board: nodemcu-32s
|
|
|
|
build_path: build/test4
|
|
|
|
|
|
|
|
substitutions:
|
2020-07-30 00:02:34 +02:00
|
|
|
devicename: test-4
|
2020-05-27 00:33:28 +02:00
|
|
|
|
|
|
|
ethernet:
|
|
|
|
type: LAN8720
|
|
|
|
mdc_pin: GPIO23
|
|
|
|
mdio_pin: GPIO25
|
|
|
|
clk_mode: GPIO0_IN
|
|
|
|
phy_addr: 0
|
|
|
|
power_pin: GPIO25
|
|
|
|
manual_ip:
|
|
|
|
static_ip: 192.168.178.56
|
|
|
|
gateway: 192.168.178.1
|
|
|
|
subnet: 255.255.255.0
|
|
|
|
domain: .local
|
|
|
|
|
|
|
|
api:
|
|
|
|
|
|
|
|
i2c:
|
|
|
|
sda: 21
|
|
|
|
scl: 22
|
|
|
|
scan: False
|
|
|
|
|
|
|
|
spi:
|
|
|
|
clk_pin: GPIO21
|
|
|
|
mosi_pin: GPIO22
|
|
|
|
miso_pin: GPIO23
|
|
|
|
|
|
|
|
uart:
|
|
|
|
tx_pin: GPIO22
|
|
|
|
rx_pin: GPIO23
|
|
|
|
baud_rate: 115200
|
|
|
|
|
|
|
|
ota:
|
|
|
|
safe_mode: True
|
|
|
|
port: 3286
|
|
|
|
|
|
|
|
logger:
|
|
|
|
level: DEBUG
|
|
|
|
|
|
|
|
web_server:
|
|
|
|
auth:
|
|
|
|
username: admin
|
|
|
|
password: admin
|
|
|
|
|
2020-11-10 23:31:28 +01:00
|
|
|
time:
|
|
|
|
- platform: sntp
|
|
|
|
id: sntp_time
|
|
|
|
|
2020-07-11 22:52:29 +02:00
|
|
|
tuya:
|
2020-11-10 23:31:28 +01:00
|
|
|
time_id: sntp_time
|
2020-07-11 22:52:29 +02:00
|
|
|
|
2020-05-27 00:33:28 +02:00
|
|
|
sensor:
|
|
|
|
- platform: homeassistant
|
|
|
|
entity_id: sensor.hello_world
|
|
|
|
id: ha_hello_world
|
2020-07-12 00:46:10 +02:00
|
|
|
- platform: tuya
|
|
|
|
id: tuya_sensor
|
|
|
|
sensor_datapoint: 1
|
2020-05-27 00:33:28 +02:00
|
|
|
#
|
|
|
|
# platform sensor.apds9960 requires component apds9960
|
|
|
|
#
|
|
|
|
# - platform: apds9960
|
|
|
|
# type: proximity
|
|
|
|
# name: APDS9960 Proximity
|
|
|
|
# - platform: apds9960
|
|
|
|
# type: clear
|
|
|
|
# name: APDS9960 Clear
|
|
|
|
# - platform: apds9960
|
|
|
|
# type: red
|
|
|
|
# name: APDS9960 Red
|
|
|
|
# - platform: apds9960
|
|
|
|
# type: green
|
|
|
|
# name: APDS9960 Green
|
|
|
|
# - platform: apds9960
|
|
|
|
# type: blue
|
|
|
|
# name: APDS9960 Blue
|
2020-07-11 22:52:29 +02:00
|
|
|
|
2020-07-12 00:50:41 +02:00
|
|
|
binary_sensor:
|
|
|
|
- platform: tuya
|
|
|
|
id: tuya_binary_sensor
|
|
|
|
sensor_datapoint: 1
|
2021-05-13 22:36:53 +02:00
|
|
|
- platform: template
|
|
|
|
id: ar1
|
|
|
|
lambda: 'return {};'
|
|
|
|
filters:
|
|
|
|
- autorepeat:
|
|
|
|
- delay: 2s
|
|
|
|
time_off: 100ms
|
|
|
|
time_on: 900ms
|
|
|
|
- delay: 4s
|
|
|
|
time_off: 100ms
|
|
|
|
time_on: 400ms
|
|
|
|
on_state:
|
|
|
|
then:
|
|
|
|
- lambda: 'ESP_LOGI("ar1:", "%d", x);'
|
2020-07-12 00:50:41 +02:00
|
|
|
|
2020-07-12 00:04:34 +02:00
|
|
|
climate:
|
|
|
|
- platform: tuya
|
|
|
|
id: tuya_climate
|
|
|
|
switch_datapoint: 1
|
|
|
|
target_temperature_datapoint: 3
|
2020-11-11 18:31:35 +01:00
|
|
|
current_temperature_multiplier: 0.5
|
|
|
|
target_temperature_multiplier: 0.5
|
2020-07-12 00:04:34 +02:00
|
|
|
|
2020-07-11 22:52:29 +02:00
|
|
|
switch:
|
|
|
|
- platform: tuya
|
|
|
|
id: tuya_switch
|
|
|
|
switch_datapoint: 1
|
2021-03-18 07:08:50 +01:00
|
|
|
|
|
|
|
light:
|
|
|
|
- platform: fastled_clockless
|
|
|
|
id: led_matrix_32x8
|
|
|
|
name: "led_matrix_32x8"
|
|
|
|
chipset: WS2812B
|
|
|
|
pin: GPIO15
|
|
|
|
num_leds: 256
|
|
|
|
rgb_order: GRB
|
|
|
|
default_transition_length: 0s
|
|
|
|
color_correct: [50%, 50%, 50%]
|
|
|
|
|
|
|
|
display:
|
|
|
|
- platform: addressable_light
|
|
|
|
id: led_matrix_32x8_display
|
|
|
|
addressable_light_id: led_matrix_32x8
|
|
|
|
width: 32
|
|
|
|
height: 8
|
|
|
|
pixel_mapper: |-
|
|
|
|
if (x % 2 == 0) {
|
|
|
|
return (x * 8) + y;
|
|
|
|
}
|
|
|
|
return (x * 8) + (7 - y);
|
|
|
|
lambda: |-
|
|
|
|
Color red = Color(0xFF0000);
|
|
|
|
Color green = Color(0x00FF00);
|
|
|
|
Color blue = Color(0x0000FF);
|
|
|
|
it.rectangle(0, 0, it.get_width(), it.get_height(), red);
|
|
|
|
it.rectangle(1, 1, it.get_width()-2, it.get_height()-2, green);
|
|
|
|
it.rectangle(2, 2, it.get_width()-4, it.get_height()-4, blue);
|
|
|
|
it.rectangle(3, 3, it.get_width()-6, it.get_height()-6, red);
|
|
|
|
rotation: 0°
|
|
|
|
update_interval: 16ms
|
2021-03-20 08:32:46 +01:00
|
|
|
- platform: waveshare_epaper
|
|
|
|
cs_pin: GPIO23
|
|
|
|
dc_pin: GPIO23
|
|
|
|
busy_pin: GPIO23
|
|
|
|
reset_pin: GPIO23
|
|
|
|
model: 2.13in-ttgo-b1
|
|
|
|
full_update_every: 30
|
|
|
|
lambda: |-
|
|
|
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
|
|
|
- platform: waveshare_epaper
|
|
|
|
cs_pin: GPIO23
|
|
|
|
dc_pin: GPIO23
|
|
|
|
busy_pin: GPIO23
|
|
|
|
reset_pin: GPIO23
|
|
|
|
model: 2.90in
|
|
|
|
full_update_every: 30
|
|
|
|
lambda: |-
|
|
|
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
|
|
|
- platform: waveshare_epaper
|
|
|
|
cs_pin: GPIO23
|
|
|
|
dc_pin: GPIO23
|
|
|
|
busy_pin: GPIO23
|
|
|
|
reset_pin: GPIO23
|
|
|
|
model: 2.90inv2
|
|
|
|
full_update_every: 30
|
|
|
|
lambda: |-
|
|
|
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
|
|
|
|
2021-05-07 20:02:17 +02:00
|
|
|
external_components:
|
|
|
|
- source: github://esphome/esphome@dev
|
|
|
|
refresh: 1d
|
|
|
|
components: ["bh1750"]
|
|
|
|
- source: ../esphome/components
|
|
|
|
components: ["sntp"]
|