diff --git a/garten_rs485_controller1.yaml b/garten_rs485_controller1.yaml new file mode 100644 index 0000000..a09e37b --- /dev/null +++ b/garten_rs485_controller1.yaml @@ -0,0 +1,287 @@ + +esphome: + name: garten_rs485_controller1 + +esp32: + board: wt32-eth01 + framework: + type: arduino + +api: + encryption: + key: !secret api_encryption_key + +# Enable logging +#logger: + +ethernet: + type: LAN8720 + mdc_pin: GPIO23 + mdio_pin: GPIO18 + clk_mode: GPIO0_IN + phy_addr: 1 + power_pin: GPIO16 + #manual_ip: + # static_ip: 192.168.178.61 + # gateway: 192.168.178.1 + # subnet: 255.255.255.0 + +ota: + password: !secret ota_password + + + +external_components: + - source: + type: git + url: "https://github.com/andyboeh/esphome-dmx512" + ref: master + + +uart: + - id: "uart_dmx1" + rx_pin: 2 + tx_pin: 4 # the pin where the transmission happens connected to tx (not reversed) + stop_bits: 2 + baud_rate: 250000 + - id: "uart_dmx2" + rx_pin: 17 + tx_pin: 5 + stop_bits: 2 + baud_rate: 250000 + #- id: "uart_dmx3" + # rx_pin: 14 + # tx_pin: 15 + # stop_bits: 2 + # baud_rate: 250000 + - id: "uart_modbus" + rx_pin: 14 + tx_pin: 15 + baud_rate: 9600 + + +modbus: + - uart_id: "uart_modbus" + id: "modbus_zisterne" + +modbus_controller: + - modbus_id: "modbus_zisterne" + address: 0x01 + update_interval: "20s" + id: "modbus_sensing_device" + +sensor: + - platform: modbus_controller + modbus_controller_id: "modbus_sensing_device" + address: 0x00 + register_type: holding + value_type: U_WORD + name: "Zisterne Füllstand Voltage" + force_new_range: true + state_class: measurement + icon: mdi:water + unit_of_measurement: "V" + accuracy_decimals: 2 + filters: + - multiply: 0.01 + + + +#------------------- DMX 1 ----------------------- + + + + +dmx512: + - id: dmx1 + uart_id: uart_dmx1 + tx_pin: 4 + uart_num: 0 + periodic_update: true + - id: dmx2 + uart_id: uart_dmx2 + tx_pin: 5 + uart_num: 1 + periodic_update: true + #- id: dmx3 + # uart_id: uart_dmx3 + # tx_pin: 15 + # uart_num: 2 + # periodic_update: true + +output: + # DMX1 + - platform: dmx512 + channel: 1 + universe: dmx1 + id: eingang_gartenhaus_r + - platform: dmx512 + channel: 2 + universe: dmx1 + id: eingang_gartenhaus_g + - platform: dmx512 + channel: 3 + universe: dmx1 + id: eingang_gartenhaus_b + # + - platform: dmx512 + channel: 4 + universe: dmx1 + id: eingang_saule_sud_r + - platform: dmx512 + channel: 5 + universe: dmx1 + id: eingang_saule_sud_g + - platform: dmx512 + channel: 6 + universe: dmx1 + id: eingang_saule_sud_b + # + - platform: dmx512 + channel: 7 + universe: dmx1 + id: eingang_gartentur_sud_r + - platform: dmx512 + channel: 8 + universe: dmx1 + id: eingang_gartentur_sud_g + - platform: dmx512 + channel: 9 + universe: dmx1 + id: eingang_gartentur_sud_b + # + - platform: dmx512 + channel: 10 + universe: dmx1 + id: eingang_gartentur_nord_r + - platform: dmx512 + channel: 11 + universe: dmx1 + id: eingang_gartentur_nord_g + - platform: dmx512 + channel: 12 + universe: dmx1 + id: eingang_gartentur_nord_b + # + - platform: dmx512 + channel: 13 + universe: dmx1 + id: eingang_garageseite_r + - platform: dmx512 + channel: 14 + universe: dmx1 + id: eingang_garageseite_g + - platform: dmx512 + channel: 15 + universe: dmx1 + id: eingang_garageseite_b + ## strang2 + - platform: dmx512 + channel: 22 + universe: dmx2 + id: hochbeet_eingang_r + - platform: dmx512 + channel: 23 + universe: dmx2 + id: hochbeet_eingang_g + - platform: dmx512 + channel: 24 + universe: dmx2 + id: hochbeet_eingang_b + # + - platform: dmx512 + channel: 25 + universe: dmx2 + id: hochbeet_mitte_r + - platform: dmx512 + channel: 26 + universe: dmx2 + id: hochbeet_mitte_g + - platform: dmx512 + channel: 27 + universe: dmx2 + id: hochbeet_mitte_b + # + - platform: dmx512 + channel: 28 + universe: dmx2 + id: hochbeet_innen_r + - platform: dmx512 + channel: 29 + universe: dmx2 + id: hochbeet_innen_g + - platform: dmx512 + channel: 30 + universe: dmx2 + id: hochbeet_innen_b + + + +light: + - platform: rgb + name: eingang_gartenhaus + red: eingang_gartenhaus_r + green: eingang_gartenhaus_g + blue: eingang_gartenhaus_b + restore_mode: RESTORE_DEFAULT_OFF + - platform: rgb + name: eingang_saule_sud + red: eingang_saule_sud_r + green: eingang_saule_sud_g + blue: eingang_saule_sud_b + restore_mode: RESTORE_DEFAULT_OFF + - platform: rgb + name: eingang_gartentur_sud + red: eingang_gartentur_sud_r + green: eingang_gartentur_sud_g + blue: eingang_gartentur_sud_b + restore_mode: RESTORE_DEFAULT_OFF + - platform: rgb + name: eingang_gartentur_nord + red: eingang_gartentur_nord_r + green: eingang_gartentur_nord_g + blue: eingang_gartentur_nord_b + restore_mode: RESTORE_DEFAULT_OFF + - platform: rgb + name: eingang_garageseite + red: eingang_garageseite_r + green: eingang_garageseite_g + blue: eingang_garageseite_b + restore_mode: RESTORE_DEFAULT_OFF + - platform: rgb + name: hochbeet_eingang + red: hochbeet_eingang_r + green: hochbeet_eingang_g + blue: hochbeet_eingang_b + restore_mode: RESTORE_DEFAULT_OFF + - platform: rgb + name: hochbeet_mitte + red: hochbeet_mitte_r + green: hochbeet_mitte_g + blue: hochbeet_mitte_b + restore_mode: RESTORE_DEFAULT_OFF + - platform: rgb + name: hochbeet_innen + red: hochbeet_innen_r + green: hochbeet_innen_g + blue: hochbeet_innen_b + restore_mode: RESTORE_DEFAULT_OFF + +# Light1: 1, 2,3 +# Light2: 4, 5, 6 +# Light3: 7, 8, 9 +# Light4: 10, 11, 12 + +# Light5: 13, 14, 15 +# Light6: 16, 17, 18 +# Light7: 19, 20, 21 + +# Light8: 22, 23, 24 +# Light9: 25, 26, 27 +# Light10: 28, 29, 30 + +# Light11: 32, 33, 34 +# Light12: 35, 36, 37 +# Light13: 38, 39, 40 +# Light14: 41, 42, 43 +# Light15: 44, 45, 46 \ No newline at end of file diff --git a/garten_rs485_controller2.yaml b/garten_rs485_controller2.yaml new file mode 100644 index 0000000..0c1516f --- /dev/null +++ b/garten_rs485_controller2.yaml @@ -0,0 +1,142 @@ + +esphome: + name: garten_rs485_controller2 + +esp32: + board: wt32-eth01 + framework: + type: arduino + +api: + encryption: + key: !secret api_encryption_key + +# Enable logging +#logger: + +ethernet: + type: LAN8720 + mdc_pin: GPIO23 + mdio_pin: GPIO18 + clk_mode: GPIO0_IN + phy_addr: 1 + power_pin: GPIO16 + #manual_ip: + # static_ip: 192.168.178.62 + # gateway: 192.168.178.1 + # subnet: 255.255.255.0 + +ota: + password: !secret ota_password + + + +external_components: + - source: + type: git + url: "https://github.com/andyboeh/esphome-dmx512" + ref: master + + +uart: + - id: "uart_dmx1" + rx_pin: 2 + tx_pin: 4 # the pin where the transmission happens connected to tx (not reversed) + stop_bits: 2 + baud_rate: 250000 + - id: "uart_dmx2" + rx_pin: 17 + tx_pin: 5 + stop_bits: 2 + baud_rate: 250000 + - id: "uart_dmx3" + rx_pin: 14 + tx_pin: 15 + stop_bits: 2 + baud_rate: 250000 + +#------------------- DMX 1 ----------------------- + +dmx512: + - id: dmx1 + uart_id: uart_dmx1 + tx_pin: 4 + uart_num: 0 + periodic_update: true + - id: dmx2 + uart_id: uart_dmx2 + tx_pin: 5 + uart_num: 1 + periodic_update: true + - id: dmx3 + uart_id: uart_dmx3 + tx_pin: 15 + uart_num: 2 + periodic_update: true + +output: + - platform: dmx512 + channel: 10 + universe: dmx1 + id: test_dmx_c1_light04_r + - platform: dmx512 + channel: 11 + universe: dmx1 + id: test_dmx_c1_light04_g + - platform: dmx512 + channel: 12 + universe: dmx1 + id: test_dmx_c1_light04_b + - platform: dmx512 + channel: 10 + universe: dmx2 + id: test_dmx_c2_light04_r + - platform: dmx512 + channel: 11 + universe: dmx2 + id: test_dmx_c2_light04_g + - platform: dmx512 + channel: 12 + universe: dmx2 + id: test_dmx_c2_light04_b + - platform: dmx512 + channel: 10 + universe: dmx3 + id: test_dmx_c3_light04_r + - platform: dmx512 + channel: 11 + universe: dmx3 + id: test_dmx_c3_light04_g + - platform: dmx512 + channel: 12 + universe: dmx3 + id: test_dmx_c3_light04_b + +light: + - platform: rgb + name: test_dmx_light04_controller2_uart1 + red: test_dmx_c1_light04_r + green: test_dmx_c1_light04_g + blue: test_dmx_c1_light04_b + default_transition_length: 0s + restore_mode: RESTORE_DEFAULT_OFF + - platform: rgb + name: test_dmx_light04_controller2_uart2 + red: test_dmx_c2_light04_r + green: test_dmx_c2_light04_g + blue: test_dmx_c2_light04_b + default_transition_length: 0s + restore_mode: RESTORE_DEFAULT_OFF + - platform: rgb + name: test_dmx_light04_controller2_uart3 + red: test_dmx_c3_light04_r + green: test_dmx_c3_light04_g + blue: test_dmx_c3_light04_b + default_transition_length: 0s + restore_mode: RESTORE_DEFAULT_OFF + +# Light1: 1, 2,3 +# Light2: 4, 5, 6 +# Light3: 7, 8, 9 +# Light4: 10, 11, 12 +# Light5: 13, 14, 16 \ No newline at end of file diff --git a/lan_board_test.yaml b/lan_board_test.yaml new file mode 100644 index 0000000..c117712 --- /dev/null +++ b/lan_board_test.yaml @@ -0,0 +1,31 @@ + +esphome: + name: lan_board_test_2 + +esp32: + board: wt32-eth01 + framework: + type: arduino + +# Enable logging +logger: + +ethernet: + type: LAN8720 + mdc_pin: GPIO23 + mdio_pin: GPIO18 + clk_mode: GPIO0_IN + phy_addr: 1 + power_pin: GPIO16 + +ota: + password: !secret ota_password + +#wifi: +# ssid: WLAN +# password: !secret wifi_password +# ap: +# ssid: "Lan Board 1" +# password: !secret wifi_password +# +#captive_portal: \ No newline at end of file