Skip to content
Snippets Groups Projects
Commit 08257209 authored by void's avatar void
Browse files
parents 31e4c5d1 94c33531
No related branches found
No related tags found
No related merge requests found
Showing
with 279 additions and 53 deletions
Subproject commit e8a049414bca2b14b158444dac1b94c2ca90d9be Subproject commit 900377e4f72486f6699ecf736f96adfbc04e92da
{% set devicename = "esphome_display02" %} {% set devicename = "esphome_display02" %}
{% include "/includes/ansible.inc.yaml" %} {% include "/includes/ansible.inc.yaml" %}
{% include "/includes/board.esp32-doit-devkit-v1.inc.yaml" %}
{% include "/includes/board.d1_mini.inc.yaml" %} comment: Display Kuehlschrank
# force newline
platformio_options: platformio_options:
upload_speed: 115200
lib_deps: lib_deps:
- Wire # Also required by GFX. - Wire # Also required by GFX.
- SPI # Also required by GFX. - SPI # Also required by GFX.
...@@ -18,7 +17,7 @@ external_components: ...@@ -18,7 +17,7 @@ external_components:
components: [ obegraensad_panel ] components: [ obegraensad_panel ]
refresh: 0s refresh: 0s
{% include "/includes/common.inc.yaml" %} {% include "/includes/common.inc.yaml" %}
# force newline
on_message: on_message:
- topic: ESPHome/{{ devicename }}/state/command - topic: ESPHome/{{ devicename }}/state/command
payload: "ON" payload: "ON"
...@@ -34,25 +33,36 @@ light: ...@@ -34,25 +33,36 @@ light:
name: 'Brightness' name: 'Brightness'
id: matrix_light id: matrix_light
output: matrix_brightness output: matrix_brightness
restore_mode: RESTORE_DEFAULT_ON restore_mode: ALWAYS_ON
output: output:
- platform: esp8266_pwm - platform: ledc
# Enables brightness control. # Enables brightness control.
id: matrix_brightness id: matrix_brightness
pin: pin:
number: GPIO14 number: GPIO25
inverted: True inverted: True
globals: globals:
- id: coords - id: coords
type: int type: int
restore_value: no restore_value: no
initial_value: '0' initial_value: '0'
- id: length - id: length
type: int type: int
restore_value: no restore_value: no
initial_value: '0' initial_value: '0'
binary_sensor:
- platform: gpio
pin:
number: GPIO26
inverted: true
mode:
input: true
pullup: true
id: button
name: button
time: time:
- platform: sntp - platform: sntp
...@@ -95,13 +105,13 @@ text_sensor: ...@@ -95,13 +105,13 @@ text_sensor:
- platform: mqtt_subscribe - platform: mqtt_subscribe
name: "Sensor Stromverbrauch kW" name: "Sensor Stromverbrauch kW"
id: sensor_stromverbrauch_kw id: sensor_stromverbrauch_kw
topic: ESPHome/esphome_strommesser/sensor/stromverbrauch/state topic: ESPHome/esphome_status/sensor/stromverbrauch/state
display: display:
- platform: obegraensad_panel - platform: obegraensad_panel
latch_pin: 12 latch_pin: 12
clock_pin: 04 clock_pin: 14
data_pin: 05 data_pin: 27
id: my_display id: my_display
pages: pages:
- id: Page1 - id: Page1
......
{% set devicename = "esphome_kuehlschrank" %} {% set devicename = "esphome_kuehlschrank" %}
{% include "/includes/ansible.inc.yaml" %} {% include "/includes/ansible.inc.yaml" %}
{% include "/includes/board.d1_mini.inc.yaml" %} {% include "/includes/board.esp32-doit-devkit-v1.inc.yaml" %}
on_boot:
- priority: -100
then:
- light.addressable_set:
id: logo_led
white: 0%
- light.addressable_set:
id: kuehl_led
white: 0%
- priority: -100
then:
- light.turn_on:
id: logo_led
effect: "Rainbow"
brightness: 100%
- light.turn_on:
id: kuehl_led
effect: "Rainbow"
brightness: 100%
- media_player.volume_set:
id: speaker
volume: 100%
{% include "/includes/common.inc.yaml" %} {% include "/includes/common.inc.yaml" %}
on_message:
- topic: ESPHome/{{ devicename }}/state/command
payload: "ON"
then:
- light.turn_on:
id: logo_led
effect: "Rainbow"
brightness: 100%
- light.turn_on:
id: kuehl_led
effect: "Rainbow"
brightness: 100%
- topic: ESPHome/{{ devicename }}/state/command
payload: "OFF"
then:
- light.turn_off: logo_led
- light.turn_off: kuehl_led
# Dallas DS18B20 # Dallas DS18B20
dallas: dallas:
- pin: 0 - pin: GPIO32
update_interval: 10s update_interval: 10s
# Sensor configs # Sensor configs
sensor: sensor:
- platform: dallas
- platform: dallas address: 0x4301143CAC4BAA28
address: 0x4301143CAC4BAA28 name: "Kuehlschrank-Temp"
name: "Kuehlschrank-Temp" filters:
filters: - 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
binary_sensor: binary_sensor:
- platform: gpio
pin:
number: GPIO33
mode:
input: true
pullup: true
id: kuehlschrank_door
name: Kuehlschrank-Door
on_release:
then:
- light.turn_on:
id: kuehl_led
effect: "Rainbow"
brightness: 100%
- light.addressable_set:
id: kuehl_led
white: 0%
on_press:
then:
- light.turn_on:
id: kuehl_led
effect: "None"
brightness: 100%
- light.addressable_set:
id: kuehl_led
red: 100%
green: 100%
blue: 100%
white: 100%
- media_player.play_media:
id: speaker
media_url: 'http://10.0.0.1/filesrv/usb/nootnoot.mp3'
light:
- platform: neopixelbus
type: RGBW
variant: SK6812
id: logo_led
pin: GPIO26
num_leds: 30
name: "Liba Logo LEDs"
restore_mode: ALWAYS_ON
method:
type: esp32_rmt
channel: 0
effects:
- addressable_color_wipe:
- addressable_color_wipe:
name: Color Wipe Effect With Custom Values
colors:
- red: 100%
green: 100%
blue: 100%
num_leds: 3
- red: 0%
green: 0%
blue: 0%
num_leds: 3
add_led_interval: 100ms
reverse: false
- addressable_rainbow:
- addressable_rainbow:
name: Rainbow Effect With Custom Values
speed: 2
width: 8
- addressable_scan:
- addressable_scan:
name: Scan Effect With Custom Values
move_interval: 100ms
scan_width: 2
- addressable_random_twinkle:
- addressable_random_twinkle:
name: Random Twinkle Effect With Custom Values
twinkle_probability: 5%
progress_interval: 32ms
- addressable_fireworks:
- addressable_fireworks:
name: Fireworks Effect With Custom Values
update_interval: 32ms
spark_probability: 10%
use_random_color: false
fade_out_rate: 120
- addressable_color_wipe:
name: BootUp
colors:
- red: 100%
green: 0%
blue: 0%
num_leds: 8
- red: 0%
green: 0%
blue: 0%
num_leds: 8
add_led_interval: 100ms
reverse: False
- platform: neopixelbus
type: RGBW
variant: SK6812
id: kuehl_led
pin: GPIO23
num_leds: 72
name: "Kuehl LEDs"
restore_mode: ALWAYS_ON
method:
type: esp32_rmt
channel: 1
effects:
- addressable_color_wipe:
- addressable_color_wipe:
name: Color Wipe Effect With Custom Values
colors:
- red: 100%
green: 100%
blue: 100%
num_leds: 3
- red: 0%
green: 0%
blue: 0%
num_leds: 3
add_led_interval: 100ms
reverse: false
- addressable_rainbow:
- addressable_rainbow:
name: Rainbow Effect With Custom Values
speed: 2
width: 8
- addressable_scan:
- addressable_scan:
name: Scan Effect With Custom Values
move_interval: 100ms
scan_width: 2
- addressable_random_twinkle:
- addressable_random_twinkle:
name: Random Twinkle Effect With Custom Values
twinkle_probability: 5%
progress_interval: 32ms
- addressable_fireworks:
- addressable_fireworks:
name: Fireworks Effect With Custom Values
update_interval: 32ms
spark_probability: 10%
use_random_color: false
fade_out_rate: 120
- addressable_color_wipe:
name: BootUp
colors:
- red: 100%
green: 0%
blue: 0%
num_leds: 8
- red: 0%
green: 0%
blue: 0%
num_leds: 8
add_led_interval: 100ms
reverse: False
- platform: gpio media_player:
pin: 4 - platform: i2s_audio
id: kuehlschrank_door name: ESPHome I2S Media Player
name: Kuehlschrank-Door id: speaker
\ No newline at end of file dac_type: external
i2s_lrclk_pin: GPIO21
i2s_dout_pin: GPIO18
i2s_bclk_pin: GPIO19
mode: mono
...@@ -2,8 +2,10 @@ ...@@ -2,8 +2,10 @@
{% include "/includes/ansible.inc.yaml" %} {% include "/includes/ansible.inc.yaml" %}
{% include "/includes/board.esp01_1m.inc.yaml" %} {% include "/includes/board.esp01_1m.inc.yaml" %}
comment: Starroof Lounge
{% include "/includes/common.inc.yaml" %} {% include "/includes/common.inc.yaml" %}
# force newline
on_message: on_message:
- topic: ESPHome/{{ devicename }}/state/command - topic: ESPHome/{{ devicename }}/state/command
payload: "ON" payload: "ON"
......
...@@ -2,8 +2,10 @@ ...@@ -2,8 +2,10 @@
{% include "/includes/ansible.inc.yaml" %} {% include "/includes/ansible.inc.yaml" %}
{% include "/includes/board.esp01_1m.inc.yaml" %} {% include "/includes/board.esp01_1m.inc.yaml" %}
comment: LED Theke
{% include "/includes/common.inc.yaml" %} {% include "/includes/common.inc.yaml" %}
# force newline
on_message: on_message:
- topic: ESPHome/{{ devicename }}/state/command - topic: ESPHome/{{ devicename }}/state/command
payload: "ON" payload: "ON"
......
...@@ -2,8 +2,10 @@ ...@@ -2,8 +2,10 @@
{% include "/includes/ansible.inc.yaml" %} {% include "/includes/ansible.inc.yaml" %}
{% include "/includes/board.esp01_1m.inc.yaml" %} {% include "/includes/board.esp01_1m.inc.yaml" %}
comment: Fernseher Lounge
{% include "/includes/common.inc.yaml" %} {% include "/includes/common.inc.yaml" %}
# force newline
on_message: on_message:
- topic: ESPHome/{{ devicename }}/state/command - topic: ESPHome/{{ devicename }}/state/command
payload: "ON" payload: "ON"
......
...@@ -2,8 +2,10 @@ ...@@ -2,8 +2,10 @@
{% include "/includes/ansible.inc.yaml" %} {% include "/includes/ansible.inc.yaml" %}
{% include "/includes/board.esp01_1m.inc.yaml" %} {% include "/includes/board.esp01_1m.inc.yaml" %}
comment: Halogen Lounge
{% include "/includes/common.inc.yaml" %} {% include "/includes/common.inc.yaml" %}
# force newline
on_message: on_message:
- topic: ESPHome/{{ devicename }}/state/command - topic: ESPHome/{{ devicename }}/state/command
payload: "ON" payload: "ON"
......
...@@ -2,8 +2,10 @@ ...@@ -2,8 +2,10 @@
{% include "/includes/ansible.inc.yaml" %} {% include "/includes/ansible.inc.yaml" %}
{% include "/includes/board.esp01_1m.inc.yaml" %} {% include "/includes/board.esp01_1m.inc.yaml" %}
comment: Propaganda Bildschirm
{% include "/includes/common.inc.yaml" %} {% include "/includes/common.inc.yaml" %}
# force newline
on_message: on_message:
- topic: ESPHome/{{ devicename }}/state/command - topic: ESPHome/{{ devicename }}/state/command
payload: "ON" payload: "ON"
......
...@@ -2,8 +2,10 @@ ...@@ -2,8 +2,10 @@
{% include "/includes/ansible.inc.yaml" %} {% include "/includes/ansible.inc.yaml" %}
{% include "/includes/board.esp01_1m.inc.yaml" %} {% include "/includes/board.esp01_1m.inc.yaml" %}
comment: Pixelflut Server Rack
{% include "/includes/common.inc.yaml" %} {% include "/includes/common.inc.yaml" %}
# force newline
on_message: on_message:
- topic: ESPHome/{{ devicename }}/state/command - topic: ESPHome/{{ devicename }}/state/command
payload: "ON" payload: "ON"
......
...@@ -2,8 +2,10 @@ ...@@ -2,8 +2,10 @@
{% include "/includes/ansible.inc.yaml" %} {% include "/includes/ansible.inc.yaml" %}
{% include "/includes/board.esp01_1m.inc.yaml" %} {% include "/includes/board.esp01_1m.inc.yaml" %}
comment: Bullhorn Kuhhorn Muuuuh!
{% include "/includes/common.inc.yaml" %} {% include "/includes/common.inc.yaml" %}
# force newline
on_message: on_message:
- topic: ESPHome/{{ devicename }}/state/command - topic: ESPHome/{{ devicename }}/state/command
payload: "ON" payload: "ON"
......
...@@ -2,8 +2,10 @@ ...@@ -2,8 +2,10 @@
{% include "/includes/ansible.inc.yaml" %} {% include "/includes/ansible.inc.yaml" %}
{% include "/includes/board.esp01_1m.inc.yaml" %} {% include "/includes/board.esp01_1m.inc.yaml" %}
comment: 3D Drucker Prusanet
{% include "/includes/common.inc.yaml" %} {% include "/includes/common.inc.yaml" %}
# force newline
on_message: on_message:
- topic: ESPHome/{{ devicename }}/state/command - topic: ESPHome/{{ devicename }}/state/command
payload: "ON" payload: "ON"
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
id: status_led id: status_led
range_from: 1 range_from: 1
range_to: 1 range_to: 1
red: 100% red: 50%
green: 0% green: 0%
blue: 0% blue: 0%
- if: - if:
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
id: status_led id: status_led
range_from: 2 range_from: 2
range_to: 2 range_to: 2
red: 100% red: 50%
green: 0% green: 0%
blue: 0% blue: 0%
- if: - if:
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
id: status_led id: status_led
range_from: 0 range_from: 0
range_to: 0 range_to: 0
red: 100% red: 50%
green: 0% green: 0%
blue: 0% blue: 0%
- if: - if:
...@@ -135,7 +135,7 @@ climate: ...@@ -135,7 +135,7 @@ climate:
id: pid_heater id: pid_heater
name: "PID Heater Controller" name: "PID Heater Controller"
sensor: pot_sensor sensor: pot_sensor
default_target_temperature: 256 default_target_temperature: 240
heat_output: pot_heater heat_output: pot_heater
control_parameters: control_parameters:
kp: 0.09549 kp: 0.09549
...@@ -245,12 +245,12 @@ binary_sensor: ...@@ -245,12 +245,12 @@ binary_sensor:
- climate.control: - climate.control:
id: pid_heater id: pid_heater
mode: HEAT mode: HEAT
target_temperature: 264 target_temperature: 240
- light.addressable_set: - light.addressable_set:
id: status_led id: status_led
range_from: 1 range_from: 1
range_to: 1 range_to: 1
red: 100% red: 50%
green: 0% green: 0%
blue: 0% blue: 0%
- platform: gpio - platform: gpio
...@@ -279,7 +279,7 @@ binary_sensor: ...@@ -279,7 +279,7 @@ binary_sensor:
id: status_led id: status_led
range_from: 0 range_from: 0
range_to: 0 range_to: 0
red: 100% red: 50%
green: 0% green: 0%
blue: 0% blue: 0%
- platform: gpio - platform: gpio
...@@ -308,7 +308,7 @@ binary_sensor: ...@@ -308,7 +308,7 @@ binary_sensor:
id: status_led id: status_led
range_from: 2 range_from: 2
range_to: 2 range_to: 2
red: 100% red: 50%
green: 0% green: 0%
blue: 0% blue: 0%
......
// Netzwerk Geräte // Netzwerk Geräte
network:pingdevice:switch01 [ hostname="192.168.0.100", retry=3, timeout=5000, refreshInterval=10000, uses_arp_ping="no" ] network:pingdevice:switch01 [ hostname="TL-SG3428XMP", retry=3, timeout=5000, refreshInterval=10000, uses_arp_ping="no" ]
network:pingdevice:switch02 [ hostname="192.168.0.101", retry=3, timeout=5000, refreshInterval=10000, uses_arp_ping="no" ] network:pingdevice:switch02 [ hostname="TL-SG3452X", retry=3, timeout=5000, refreshInterval=10000, uses_arp_ping="no" ]
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