Skip to content
Snippets Groups Projects
Commit 31e0e163 authored by Philipp's avatar Philipp
Browse files

make ready for redeployment

parent 82bf5deb
No related branches found
No related tags found
No related merge requests found
Showing
with 70 additions and 42 deletions
......@@ -44,4 +44,4 @@ binary_sensor:
on_press:
then:
- switch.turn_off: sirene
- switch.turn_off: blaulicht
- switch.turn_off: blaulicht
\ No newline at end of file
......@@ -65,5 +65,4 @@ sensor:
send_first_at: 3
address: 0x77
update_interval: 10s
iir_filter: 16x
iir_filter: 16x
\ No newline at end of file
......@@ -14,11 +14,9 @@
- me-no-dev/ESPAsyncTCP
external_components:
- source:
type: git
url: https://github.com/Palakis/esphome-frekvens-panel
ref: master
components: [ frekvens_panel ]
- source: github://phiten/esphome-ikea-led-matrix@master
components: [ frekvens_panel ]
refresh: 0s
{% include "/includes/common.inc.yaml" %}
......@@ -31,27 +29,45 @@ light:
output:
- platform: esp8266_pwm
# Enables brightness control.
max_power: 0.05
id: matrix_brightness
pin:
number: GPIO14
inverted: True
time:
- platform: sntp
id: ntp_time
timezone: 'Europe/Berlin'
globals:
- id: coords
type: int
restore_value: no
initial_value: '0'
- id: length
type: int
restore_value: no
initial_value: '0'
interval:
- interval: 300ms
then:
lambda: |-
if (id(coords) < -(id(length))) {
id(coords) = 0;
}
else {
id(coords) -= 2;
}
font:
- file: "04B03.ttf"
id: b03
size: 8
size: 16
display:
- platform: frekvens_panel
latch_pin: 12
clock_pin: 04
data_pin: 05
lambda: |-
auto time = id(ntp_time).now();
it.printf(0, 0, id(b03), "%d:%d", time.hour, time.minute);
std::string printout=" warpzone";
int clength = printout.length();
id(length)=clength*16;
it.print(id(coords), 0, id(b03), printout.c_str());;
\ No newline at end of file
......@@ -14,11 +14,9 @@
- me-no-dev/ESPAsyncTCP
external_components:
- source:
type: git
url: https://github.com/Palakis/esphome-frekvens-panel
ref: master
components: [ frekvens_panel ]
- source: github://phiten/esphome-ikea-led-matrix@master
components: [ obegraensad_panel ]
refresh: 0s
{% include "/includes/common.inc.yaml" %}
......@@ -36,22 +34,39 @@ output:
number: GPIO14
inverted: True
time:
- platform: sntp
id: ntp_time
timezone: 'Europe/Berlin'
globals:
- id: coords
type: int
restore_value: no
initial_value: '0'
- id: length
type: int
restore_value: no
initial_value: '0'
interval:
- interval: 300ms
then:
lambda: |-
if (id(coords) < -(id(length))) {
id(coords) = 0;
}
else {
id(coords) -= 2;
}
font:
- file: "04B03.ttf"
id: b03
size: 8
size: 16
display:
- platform: frekvens_panel
- platform: obegraensad_panel
latch_pin: 12
clock_pin: 04
data_pin: 05
lambda: |-
auto time = id(ntp_time).now();
it.printf(0, 0, id(b03), "%d:%d", time.hour, time.minute);
std::string printout=" warpzone";
int clength = printout.length();
id(length)=clength*16;
it.print(id(coords), 0, id(b03), printout.c_str());;
\ No newline at end of file
......@@ -14,4 +14,4 @@ uart:
sensor:
- platform: pm1006
pm_2_5:
name: "feinstaub_2_5"
name: "feinstaub_2_5"
\ No newline at end of file
......@@ -66,5 +66,4 @@ sensor:
send_first_at: 3
address: 0x77
update_interval: 10s
iir_filter: 16x
iir_filter: 16x
\ No newline at end of file
......@@ -79,4 +79,4 @@ sensor:
- sliding_window_moving_average:
window_size: 3
send_every: 3
send_first_at: 3
send_first_at: 3
\ No newline at end of file
......@@ -8,7 +8,7 @@
# Dallas DS18B20
dallas:
- pin: D3
- pin: D4
update_interval: 10s
# Sensor configs
......@@ -30,5 +30,4 @@ sensor:
- sliding_window_moving_average:
window_size: 3
send_every: 3
send_first_at: 3
send_first_at: 3
\ No newline at end of file
......@@ -27,4 +27,4 @@ binary_sensor:
- platform: gpio
pin: D2
id: kuehlschrank_door
name: Kuehlschrank-Door
name: Kuehlschrank-Door
\ No newline at end of file
......@@ -79,4 +79,4 @@ sensor:
- sliding_window_moving_average:
window_size: 3
send_every: 3
send_first_at: 3
send_first_at: 3
\ No newline at end of file
......@@ -57,4 +57,4 @@ fan:
name: "Luftfilter01"
speed_count: 3
speed_command_topic: "ESPHome/esphome_luftfilter01/fan/luftfilter01/speed/command"
command_topic: "ESPHome/esphome_luftfilter01/fan/luftfilter01/speed/on-off"
command_topic: "ESPHome/esphome_luftfilter01/fan/luftfilter01/speed/on-off"
\ No newline at end of file
......@@ -30,4 +30,4 @@ sensor:
accuracy_decimals: 3
filters:
# (800 Impulse / kWh)^-1 = 0.00125kWh
- multiply: 0.00125
- multiply: 0.00125
\ No newline at end of file
......@@ -79,4 +79,4 @@ sensor:
- sliding_window_moving_average:
window_size: 3
send_every: 3
send_first_at: 3
send_first_at: 3
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment