garten update

This commit is contained in:
Martin Bauer 2024-02-11 18:15:47 +01:00
parent df24953b64
commit 7c42447f44
4 changed files with 213 additions and 115 deletions

View File

@ -49,11 +49,13 @@ ethernet:
power_pin: GPIO12 power_pin: GPIO12
uart: uart:
- id: "uart_dmx" #- id: "uart_dmx"
rx_pin: 0 #rx_pin: 0
tx_pin: 1 # the pin where the transmission happens connected to tx (not reversed) #tx_pin:
stop_bits: 2 #number: 1 # the pin where the transmission happens connected to tx (not reversed)
baud_rate: 250000 #allow_other_uses: true
#stop_bits: 2
#baud_rate: 250000
- id: uart_relays - id: uart_relays
rx_pin: 2 rx_pin: 2
tx_pin: 3 tx_pin: 3
@ -200,54 +202,14 @@ packages:
# skip_updates: true # skip_updates: true
dmx512: #dmx512:
id: dmx1 # id: dmx1
uart_id: uart_dmx # uart_id: uart_dmx
tx_pin: 1 # tx_pin:
uart_num: 0 # number: 1
periodic_update: true # allow_other_uses: true
# uart_num: 0
output: # periodic_update: true
- platform: dmx512
channel: 1
universe: dmx1
id: pool_licht_r
- platform: dmx512
channel: 2
universe: dmx1
id: pool_licht_g
- platform: dmx512
channel: 3
universe: dmx1
id: pool_licht_b
- platform: dmx512
channel: 4
universe: dmx1
id: magnolie_links_r
- platform: dmx512
channel: 5
universe: dmx1
id: magnolie_links_g
- platform: dmx512
channel: 6
universe: dmx1
id: magnolie_links_b
light:
- platform: rgb
name: pool_licht
red: pool_licht_r
green: pool_licht_g
blue: pool_licht_b
default_transition_length: 0s
restore_mode: RESTORE_DEFAULT_OFF
- platform: rgb
name: magnolie_links
red: magnolie_links_r
green: magnolie_links_g
blue: magnolie_links_b
default_transition_length: 0s
restore_mode: RESTORE_DEFAULT_OFF
# ----------------------- Oxilife ------------------------------ # ----------------------- Oxilife ------------------------------

View File

@ -84,7 +84,26 @@ sensor:
accuracy_decimals: 2 accuracy_decimals: 2
filters: filters:
- multiply: 0.01 - multiply: 0.01
- platform: modbus_controller
modbus_controller_id: "modbus_sensing_device"
address: 0x00
register_type: holding
value_type: U_WORD
name: "Zisterne Füllstand"
force_new_range: true
state_class: measurement
icon: mdi:water
unit_of_measurement: "%"
accuracy_decimals: 0
filters:
- calibrate_linear:
method: least_squares
datapoints:
- 126 -> 0.0
- 274 -> 100.0
- exponential_moving_average:
alpha: 0.1
send_every: 3
#------------------- DMX 1 ----------------------- #------------------- DMX 1 -----------------------

View File

@ -12,7 +12,7 @@ api:
key: !secret api_encryption_key key: !secret api_encryption_key
# Enable logging # Enable logging
#logger: logger:
ethernet: ethernet:
type: LAN8720 type: LAN8720
@ -39,104 +39,221 @@ external_components:
uart: uart:
- id: "uart_dmx1" #- id: "uart_dmx1"
rx_pin: 2 # rx_pin: 2
tx_pin: 4 # the pin where the transmission happens connected to tx (not reversed) # tx_pin: 4 # the pin where the transmission happens connected to tx (not reversed)
stop_bits: 2 # stop_bits: 2
baud_rate: 250000 # baud_rate: 250000
- id: "uart_dmx2" - id: "uart_dmx2"
rx_pin: 17 rx_pin: 17
tx_pin: 5 tx_pin: 5
stop_bits: 2 stop_bits: 2
baud_rate: 250000 baud_rate: 250000
- id: "uart_dmx3" #- id: "uart_dmx3"
rx_pin: 14 # rx_pin: 14
tx_pin: 15 # tx_pin: 15
stop_bits: 2 # stop_bits: 2
baud_rate: 250000 # baud_rate: 250000
#------------------- DMX 1 ----------------------- #------------------- DMX 1 -----------------------
dmx512: dmx512:
- id: dmx1 #- id: dmx1
uart_id: uart_dmx1 # uart_id: uart_dmx1
tx_pin: 4 # tx_pin: 4
uart_num: 0 # uart_num: 0
periodic_update: true # periodic_update: true
# force_full_frames: true
# #update_interval: 100
# custom_break_len: 176
- id: dmx2 - id: dmx2
uart_id: uart_dmx2 uart_id: uart_dmx2
tx_pin: 5 tx_pin: 5
uart_num: 1 uart_num: 1
periodic_update: true periodic_update: true
- id: dmx3 #custom_break_len: 176
uart_id: uart_dmx3 #custom_break_len: 176
tx_pin: 15 #- id: dmx3
uart_num: 2 # uart_id: uart_dmx3
periodic_update: true # tx_pin: 15
# uart_num: 2
# periodic_update: true
output: output:
- platform: dmx512 - platform: dmx512
channel: 10 channel: 1
universe: dmx1 universe: dmx2
id: test_dmx_c1_light04_r id: pool_licht_r
- platform: dmx512 - platform: dmx512
channel: 11 channel: 2
universe: dmx1 universe: dmx2
id: test_dmx_c1_light04_g id: pool_licht_g
- platform: dmx512 - platform: dmx512
channel: 12 channel: 3
universe: dmx1 universe: dmx2
id: test_dmx_c1_light04_b id: pool_licht_b
- platform: dmx512
channel: 4
universe: dmx2
id: magnolie_links_r
- platform: dmx512
channel: 5
universe: dmx2
id: magnolie_links_g
- platform: dmx512
channel: 6
universe: dmx2
id: magnolie_links_b
- platform: dmx512
channel: 7
universe: dmx2
id: magnolie_rechts_r
- platform: dmx512
channel: 8
universe: dmx2
id: magnolie_rechts_g
- platform: dmx512
channel: 9
universe: dmx2
id: magnolie_rechts_b
- platform: dmx512 - platform: dmx512
channel: 10 channel: 10
universe: dmx2 universe: dmx2
id: test_dmx_c2_light04_r id: suedseite1_r
- platform: dmx512 - platform: dmx512
channel: 11 channel: 11
universe: dmx2 universe: dmx2
id: test_dmx_c2_light04_g id: suedseite1_g
- platform: dmx512 - platform: dmx512
channel: 12 channel: 12
universe: dmx2 universe: dmx2
id: test_dmx_c2_light04_b id: suedseite1_b
- platform: dmx512 - platform: dmx512
channel: 10 channel: 13
universe: dmx3 universe: dmx2
id: test_dmx_c3_light04_r id: suedseite2_r
- platform: dmx512 - platform: dmx512
channel: 11 channel: 14
universe: dmx3 universe: dmx2
id: test_dmx_c3_light04_g id: suedseite2_g
- platform: dmx512 - platform: dmx512
channel: 12 channel: 15
universe: dmx3 universe: dmx2
id: test_dmx_c3_light04_b id: suedseite2_b
- platform: dmx512
channel: 16
universe: dmx2
id: suedseite3_r
- platform: dmx512
channel: 17
universe: dmx2
id: suedseite3_g
- platform: dmx512
channel: 18
universe: dmx2
id: suedseite3_b
- platform: dmx512
channel: 19
universe: dmx2
id: suedseite4_r
- platform: dmx512
channel: 20
universe: dmx2
id: suedseite4_g
- platform: dmx512
channel: 21
universe: dmx2
id: suedseite4_b
- platform: dmx512
channel: 22
universe: dmx2
id: suedseite5_r
- platform: dmx512
channel: 23
universe: dmx2
id: suedseite5_g
- platform: dmx512
channel: 24
universe: dmx2
id: suedseite5_b
- platform: dmx512
channel: 25
universe: dmx2
id: suedseite6_r
- platform: dmx512
channel: 26
universe: dmx2
id: suedseite6_g
- platform: dmx512
channel: 27
universe: dmx2
id: suedseite6_b
light: light:
- platform: rgb - platform: rgb
name: test_dmx_light04_controller2_uart1 name: pool_licht
red: test_dmx_c1_light04_r red: pool_licht_r
green: test_dmx_c1_light04_g green: pool_licht_g
blue: test_dmx_c1_light04_b blue: pool_licht_b
default_transition_length: 0s
restore_mode: RESTORE_DEFAULT_OFF restore_mode: RESTORE_DEFAULT_OFF
- platform: rgb - platform: rgb
name: test_dmx_light04_controller2_uart2 name: magnolie_links
red: test_dmx_c2_light04_r red: magnolie_links_r
green: test_dmx_c2_light04_g green: magnolie_links_g
blue: test_dmx_c2_light04_b blue: magnolie_links_b
default_transition_length: 0s
restore_mode: RESTORE_DEFAULT_OFF restore_mode: RESTORE_DEFAULT_OFF
- platform: rgb - platform: rgb
name: test_dmx_light04_controller2_uart3 name: magnolie_rechts
red: test_dmx_c3_light04_r red: magnolie_rechts_r
green: test_dmx_c3_light04_g green: magnolie_rechts_g
blue: test_dmx_c3_light04_b blue: magnolie_rechts_b
default_transition_length: 0s restore_mode: RESTORE_DEFAULT_OFF
- platform: rgb
name: suedseite1
red: suedseite1_r
green: suedseite1_g
blue: suedseite1_b
restore_mode: RESTORE_DEFAULT_OFF
- platform: rgb
name: suedseite2
red: suedseite2_r
green: suedseite2_g
blue: suedseite2_b
restore_mode: RESTORE_DEFAULT_OFF
- platform: rgb
name: suedseite3
red: suedseite3_r
green: suedseite3_g
blue: suedseite3_b
restore_mode: RESTORE_DEFAULT_OFF
- platform: rgb
name: suedseite4
red: suedseite4_r
green: suedseite4_g
blue: suedseite4_b
restore_mode: RESTORE_DEFAULT_OFF
- platform: rgb
name: suedseite5
red: suedseite5_r
green: suedseite5_g
blue: suedseite5_b
restore_mode: RESTORE_DEFAULT_OFF
- platform: rgb
name: suedseite6
red: suedseite6_r
green: suedseite6_g
blue: suedseite6_b
restore_mode: RESTORE_DEFAULT_OFF restore_mode: RESTORE_DEFAULT_OFF
# Light1: 1, 2,3 # Light1: 1, 2,3
# Light2: 4, 5, 6 # Light2: 4, 5, 6
# Light3: 7, 8, 9 # Light3: 7, 8, 9
# Light4: 10, 11, 12 # Light4: 10, 11, 12
# Light5: 13, 14, 16 # LiGht5: 13, 14, 15

View File

@ -91,13 +91,13 @@ light:
id: gartenhaus_wandlicht id: gartenhaus_wandlicht
name: Gartenhaus Wandlicht name: Gartenhaus Wandlicht
pin: 3 pin: 3
num_leds: 300 num_leds: 305
is_rgbw: true is_rgbw: true
rmt_channel: 0 rmt_channel: 0
effects: effects:
- addressable_rainbow: - addressable_rainbow:
name: Regenbogen name: Regenbogen
width: 300 width: 305
- addressable_color_wipe: - addressable_color_wipe:
name: Wipe name: Wipe
colors: colors: