backup
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -554,7 +554,7 @@ display:
|
||||
it.strftime(clk_xoffset, clk_yoffset, id(font_weekday), TextAlign::TOP_RIGHT, "%A", id(esptime).now());
|
||||
|
||||
// Print time in HH:MM format 335
|
||||
it.strftime(clk_xoffset, clk_yoffset+105, id(font_time), TextAlign::BASELINE_RIGHT, "%H:%M", id(esptime).now());
|
||||
// it.strftime(clk_xoffset, clk_yoffset+105, id(font_time), TextAlign::BASELINE_RIGHT, "%H:%M", id(esptime).now());
|
||||
|
||||
// Print day of the month
|
||||
it.strftime(clk_xoffset+100, clk_yoffset, id(font_day), TextAlign::TOP_RIGHT, "%d", id(esptime).now());
|
||||
|
||||
@@ -33,6 +33,8 @@ wifi:
|
||||
|
||||
captive_portal:
|
||||
|
||||
bluetooth_proxy:
|
||||
active: true
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
|
||||
@@ -1,178 +0,0 @@
|
||||
substitutions:
|
||||
devicename: esp32-matrix
|
||||
mypin: GPIO14
|
||||
board: esp32dev
|
||||
|
||||
external_components:
|
||||
- source:
|
||||
type: git
|
||||
url: https://github.com/lubeda/EsphoMaTrix
|
||||
|
||||
esphome:
|
||||
name: $devicename
|
||||
|
||||
esp32:
|
||||
board: $board
|
||||
|
||||
binary_sensor:
|
||||
- platform: status
|
||||
name: "$devicename Status"
|
||||
|
||||
font:
|
||||
- file: fonts/monobit.ttf
|
||||
id: ehmtx_font
|
||||
size: 16
|
||||
glyphs: |
|
||||
!?"%()+*=,-_.:°0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz€@<>/
|
||||
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
|
||||
api:
|
||||
encryption:
|
||||
key: !secret matrix_led_api
|
||||
|
||||
services:
|
||||
- service: alarm
|
||||
variables:
|
||||
icon_name: string
|
||||
text: string
|
||||
then:
|
||||
lambda: |-
|
||||
id(rgb8x32)->add_screen(icon_name, text, 7, true);
|
||||
id(rgb8x32)->force_screen(icon_name);
|
||||
- service: screen
|
||||
variables:
|
||||
icon_name: string
|
||||
text: string
|
||||
then:
|
||||
lambda: |-
|
||||
id(rgb8x32)->add_screen(icon_name, text, 5, false);
|
||||
- service: brightness
|
||||
variables:
|
||||
brightness: int
|
||||
then:
|
||||
lambda: |-
|
||||
id(rgb8x32)->set_brightness(brightness);
|
||||
- service: status
|
||||
then:
|
||||
lambda: |-
|
||||
id(rgb8x32)->get_status();
|
||||
- service: del_screen
|
||||
variables:
|
||||
icon_name: string
|
||||
then:
|
||||
lambda: |-
|
||||
id(rgb8x32)->del_screen(icon_name);
|
||||
- service: indicator_on
|
||||
variables:
|
||||
r: int
|
||||
g: int
|
||||
b: int
|
||||
then:
|
||||
lambda: |-
|
||||
id(rgb8x32)->set_indicator_color(r,g,b);
|
||||
id(rgb8x32)->set_indicator_on();
|
||||
- service: text_color
|
||||
variables:
|
||||
r: int
|
||||
g: int
|
||||
b: int
|
||||
then:
|
||||
lambda: |-
|
||||
id(rgb8x32)->set_text_color(r,g,b);
|
||||
- service: alarm_color
|
||||
variables:
|
||||
r: int
|
||||
g: int
|
||||
b: int
|
||||
then:
|
||||
lambda: |-
|
||||
id(rgb8x32)->set_alarm_color(r,g,b);
|
||||
- service: indicator_off
|
||||
then:
|
||||
lambda: |-
|
||||
id(rgb8x32)->set_indicator_off();
|
||||
|
||||
ota:
|
||||
password: !secret ota_password
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
|
||||
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||
ap:
|
||||
ssid: $devicename
|
||||
password: "InM2TlqVfJe4"
|
||||
|
||||
|
||||
light:
|
||||
- platform: neopixelbus
|
||||
id: ehmtx_light
|
||||
type: GRB
|
||||
variant: WS2812
|
||||
pin: $mypin
|
||||
num_leds: 256
|
||||
color_correct: [30%, 30%, 30%]
|
||||
name: "$devicename Light"
|
||||
restore_mode: ALWAYS_OFF
|
||||
on_turn_on:
|
||||
lambda: |-
|
||||
id(ehmtx_display)->set_enabled(false);
|
||||
on_turn_off:
|
||||
lambda: |-
|
||||
id(ehmtx_display)->set_enabled(true);
|
||||
|
||||
number:
|
||||
- platform: template
|
||||
name: "LED brightness"
|
||||
min_value: 0
|
||||
max_value: 255
|
||||
step: 1
|
||||
lambda: |-
|
||||
return id(rgb8x32)->get_brightness();
|
||||
set_action:
|
||||
lambda: |-
|
||||
id(rgb8x32)->set_brightness(x);
|
||||
|
||||
time:
|
||||
- platform: homeassistant
|
||||
id: ehmtx_time
|
||||
|
||||
display:
|
||||
- platform: addressable_light
|
||||
id: ehmtx_display
|
||||
addressable_light_id: ehmtx_light
|
||||
width: 32
|
||||
height: 8
|
||||
pixel_mapper: |-
|
||||
if (x % 2 == 0) {
|
||||
return (x * 8) + y;
|
||||
}
|
||||
return (x * 8) + (7 - y);
|
||||
rotation: 0°
|
||||
update_interval: 16ms
|
||||
auto_clear_enabled: true
|
||||
lambda: |-
|
||||
id(rgb8x32)->tick();
|
||||
id(rgb8x32)->draw();
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
|
||||
ehmtx:
|
||||
id: rgb8x32
|
||||
show_clock: 4
|
||||
show_screen: 6
|
||||
display8x32: ehmtx_display
|
||||
time: ehmtx_time
|
||||
duration: 7
|
||||
font_id: ehmtx_font
|
||||
on_next_screen:
|
||||
lambda: |-
|
||||
ESP_LOGD("Trigger","Ole it works");
|
||||
icons:
|
||||
- file: icons/1350.gif
|
||||
id: boot
|
||||
@@ -8,7 +8,7 @@ esphome:
|
||||
esp32:
|
||||
board: esp32-s2-saola-1
|
||||
framework:
|
||||
type: esp-idf
|
||||
type: arduino
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
@@ -29,13 +29,43 @@ wifi:
|
||||
ap:
|
||||
ssid: ${esp_name} fallback
|
||||
password: !secret fallback_password
|
||||
|
||||
|
||||
uart:
|
||||
rx_pin: GPIO18
|
||||
baud_rate: 9600
|
||||
|
||||
i2c:
|
||||
sda: 21
|
||||
scl: 17
|
||||
scan: true
|
||||
id: bus_a
|
||||
|
||||
sensor:
|
||||
- platform: pm1006
|
||||
pm_2_5:
|
||||
name: "Zolder Particulate Matter 2.5µm Concentration"
|
||||
name: "Zolder Particulate Matter 2.5µm Concentration"
|
||||
|
||||
- platform: scd30
|
||||
co2:
|
||||
name: "zolder CO2"
|
||||
accuracy_decimals: 1
|
||||
temperature:
|
||||
name: "zolder Temperature"
|
||||
accuracy_decimals: 2
|
||||
humidity:
|
||||
name: "zolder Humidity"
|
||||
accuracy_decimals: 1
|
||||
temperature_offset: 1.5 °C
|
||||
address: 0x61
|
||||
update_interval: 5s
|
||||
|
||||
- platform: sgp30
|
||||
eco2:
|
||||
name: "zolder eCO2"
|
||||
accuracy_decimals: 1
|
||||
tvoc:
|
||||
name: "zolder TVOC"
|
||||
accuracy_decimals: 1
|
||||
store_baseline: yes
|
||||
address: 0x58
|
||||
update_interval: 1s
|
||||
72
esphome/esp32-s2-aqs-ikea2.yaml
Normal file
72
esphome/esp32-s2-aqs-ikea2.yaml
Normal file
@@ -0,0 +1,72 @@
|
||||
substitutions:
|
||||
esp_name: "esp32-s2-aqs-ikea2"
|
||||
|
||||
esphome:
|
||||
name: ${esp_name}
|
||||
comment: ${esp_name}
|
||||
|
||||
esp32:
|
||||
board: esp32-s2-saola-1
|
||||
framework:
|
||||
type: arduino
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
encryption:
|
||||
key: "f/PrPgYPV3TbX413d8ad8RgNBwrD7ie7rR6o+jlAiRQ="
|
||||
|
||||
ota:
|
||||
password: !secret aqs2_ota_password
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
|
||||
# Enable fallback hotspot in case wifi connection fails
|
||||
ap:
|
||||
ssid: ${esp_name} fallback
|
||||
password: !secret fallback_password
|
||||
|
||||
uart:
|
||||
rx_pin: GPIO18
|
||||
baud_rate: 9600
|
||||
|
||||
i2c:
|
||||
sda: 21
|
||||
scl: 17
|
||||
scan: true
|
||||
id: bus_a
|
||||
|
||||
sensor:
|
||||
- platform: pm1006
|
||||
pm_2_5:
|
||||
name: "${esp_name} PM2.5"
|
||||
|
||||
- platform: scd30
|
||||
co2:
|
||||
name: "${esp_name} CO2"
|
||||
accuracy_decimals: 1
|
||||
temperature:
|
||||
name: "${esp_name} Temperature"
|
||||
accuracy_decimals: 2
|
||||
humidity:
|
||||
name: "${esp_name} Humidity"
|
||||
accuracy_decimals: 1
|
||||
temperature_offset: 1.5 °C
|
||||
address: 0x61
|
||||
update_interval: 5s
|
||||
|
||||
- platform: sgp30
|
||||
eco2:
|
||||
name: "${esp_name} eCO2"
|
||||
accuracy_decimals: 1
|
||||
tvoc:
|
||||
name: "${esp_name} TVOC"
|
||||
accuracy_decimals: 1
|
||||
store_baseline: yes
|
||||
address: 0x58
|
||||
update_interval: 1s
|
||||
|
||||
@@ -65,28 +65,28 @@ climate:
|
||||
# max_temperature: 25
|
||||
# temperature_Step: 1
|
||||
|
||||
tuya:
|
||||
status_pin: GPIO16
|
||||
time_id: homeassistant_time
|
||||
#tuya:
|
||||
# status_pin: GPIO16
|
||||
# time_id: homeassistant_time
|
||||
|
||||
sensor:
|
||||
- platform: "tuya"
|
||||
name: "Temperature"
|
||||
sensor_datapoint: 101
|
||||
unit_of_measurement: "°C"
|
||||
device_class: "temperature"
|
||||
state_class: "measurement"
|
||||
filters:
|
||||
- multiply: 0.1
|
||||
accuracy_decimals: 1
|
||||
#sensor:
|
||||
# - platform: "tuya"
|
||||
# name: "Temperature"
|
||||
# sensor_datapoint: 101
|
||||
# unit_of_measurement: "°C"
|
||||
# device_class: "temperature"
|
||||
# state_class: "measurement"
|
||||
# filters:
|
||||
# - multiply: 0.1
|
||||
# accuracy_decimals: 1
|
||||
|
||||
- platform: "tuya"
|
||||
name: "humidity"
|
||||
sensor_datapoint: 102
|
||||
unit_of_measurement: "%rh"
|
||||
device_class: "humidity"
|
||||
state_class: "measurement"
|
||||
accuracy_decimals: 1
|
||||
# - platform: "tuya"
|
||||
# name: "humidity"
|
||||
# sensor_datapoint: 102
|
||||
# unit_of_measurement: "%rh"
|
||||
# device_class: "humidity"
|
||||
# state_class: "measurement"
|
||||
# accuracy_decimals: 1
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user