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: ...@@ -44,4 +44,4 @@ binary_sensor:
on_press: on_press:
then: then:
- switch.turn_off: sirene - switch.turn_off: sirene
- switch.turn_off: blaulicht - switch.turn_off: blaulicht
\ No newline at end of file
...@@ -65,5 +65,4 @@ sensor: ...@@ -65,5 +65,4 @@ sensor:
send_first_at: 3 send_first_at: 3
address: 0x77 address: 0x77
update_interval: 10s update_interval: 10s
iir_filter: 16x iir_filter: 16x
\ No newline at end of file
...@@ -14,11 +14,9 @@ ...@@ -14,11 +14,9 @@
- me-no-dev/ESPAsyncTCP - me-no-dev/ESPAsyncTCP
external_components: external_components:
- source: - source: github://phiten/esphome-ikea-led-matrix@master
type: git components: [ frekvens_panel ]
url: https://github.com/Palakis/esphome-frekvens-panel refresh: 0s
ref: master
components: [ frekvens_panel ]
{% include "/includes/common.inc.yaml" %} {% include "/includes/common.inc.yaml" %}
...@@ -31,27 +29,45 @@ light: ...@@ -31,27 +29,45 @@ light:
output: output:
- platform: esp8266_pwm - platform: esp8266_pwm
# Enables brightness control. # Enables brightness control.
max_power: 0.05
id: matrix_brightness id: matrix_brightness
pin: pin:
number: GPIO14 number: GPIO14
inverted: True inverted: True
time: globals:
- platform: sntp - id: coords
id: ntp_time type: int
timezone: 'Europe/Berlin' 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: font:
- file: "04B03.ttf" - file: "04B03.ttf"
id: b03 id: b03
size: 8 size: 16
display: display:
- platform: frekvens_panel - platform: frekvens_panel
latch_pin: 12 latch_pin: 12
clock_pin: 04 clock_pin: 04
data_pin: 05 data_pin: 05
lambda: |- lambda: |-
auto time = id(ntp_time).now(); std::string printout=" warpzone";
it.printf(0, 0, id(b03), "%d:%d", time.hour, time.minute); 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 @@ ...@@ -14,11 +14,9 @@
- me-no-dev/ESPAsyncTCP - me-no-dev/ESPAsyncTCP
external_components: external_components:
- source: - source: github://phiten/esphome-ikea-led-matrix@master
type: git components: [ obegraensad_panel ]
url: https://github.com/Palakis/esphome-frekvens-panel refresh: 0s
ref: master
components: [ frekvens_panel ]
{% include "/includes/common.inc.yaml" %} {% include "/includes/common.inc.yaml" %}
...@@ -36,22 +34,39 @@ output: ...@@ -36,22 +34,39 @@ output:
number: GPIO14 number: GPIO14
inverted: True inverted: True
time: globals:
- platform: sntp - id: coords
id: ntp_time type: int
timezone: 'Europe/Berlin' 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: font:
- file: "04B03.ttf" - file: "04B03.ttf"
id: b03 id: b03
size: 8 size: 16
display: display:
- platform: frekvens_panel - platform: obegraensad_panel
latch_pin: 12 latch_pin: 12
clock_pin: 04 clock_pin: 04
data_pin: 05 data_pin: 05
lambda: |- lambda: |-
auto time = id(ntp_time).now(); std::string printout=" warpzone";
it.printf(0, 0, id(b03), "%d:%d", time.hour, time.minute); 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: ...@@ -14,4 +14,4 @@ uart:
sensor: sensor:
- platform: pm1006 - platform: pm1006
pm_2_5: pm_2_5:
name: "feinstaub_2_5" name: "feinstaub_2_5"
\ No newline at end of file
...@@ -66,5 +66,4 @@ sensor: ...@@ -66,5 +66,4 @@ sensor:
send_first_at: 3 send_first_at: 3
address: 0x77 address: 0x77
update_interval: 10s update_interval: 10s
iir_filter: 16x iir_filter: 16x
\ No newline at end of file
...@@ -79,4 +79,4 @@ sensor: ...@@ -79,4 +79,4 @@ sensor:
- sliding_window_moving_average: - sliding_window_moving_average:
window_size: 3 window_size: 3
send_every: 3 send_every: 3
send_first_at: 3 send_first_at: 3
\ No newline at end of file
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
# Dallas DS18B20 # Dallas DS18B20
dallas: dallas:
- pin: D3 - pin: D4
update_interval: 10s update_interval: 10s
# Sensor configs # Sensor configs
...@@ -30,5 +30,4 @@ sensor: ...@@ -30,5 +30,4 @@ sensor:
- sliding_window_moving_average: - sliding_window_moving_average:
window_size: 3 window_size: 3
send_every: 3 send_every: 3
send_first_at: 3 send_first_at: 3
\ No newline at end of file
...@@ -27,4 +27,4 @@ binary_sensor: ...@@ -27,4 +27,4 @@ binary_sensor:
- platform: gpio - platform: gpio
pin: D2 pin: D2
id: kuehlschrank_door id: kuehlschrank_door
name: Kuehlschrank-Door name: Kuehlschrank-Door
\ No newline at end of file
...@@ -79,4 +79,4 @@ sensor: ...@@ -79,4 +79,4 @@ sensor:
- sliding_window_moving_average: - sliding_window_moving_average:
window_size: 3 window_size: 3
send_every: 3 send_every: 3
send_first_at: 3 send_first_at: 3
\ No newline at end of file
...@@ -57,4 +57,4 @@ fan: ...@@ -57,4 +57,4 @@ fan:
name: "Luftfilter01" name: "Luftfilter01"
speed_count: 3 speed_count: 3
speed_command_topic: "ESPHome/esphome_luftfilter01/fan/luftfilter01/speed/command" 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: ...@@ -30,4 +30,4 @@ sensor:
accuracy_decimals: 3 accuracy_decimals: 3
filters: filters:
# (800 Impulse / kWh)^-1 = 0.00125kWh # (800 Impulse / kWh)^-1 = 0.00125kWh
- multiply: 0.00125 - multiply: 0.00125
\ No newline at end of file
...@@ -79,4 +79,4 @@ sensor: ...@@ -79,4 +79,4 @@ sensor:
- sliding_window_moving_average: - sliding_window_moving_average:
window_size: 3 window_size: 3
send_every: 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