Skip to content

Instantly share code, notes, and snippets.

@jascdk
Created September 22, 2022 18:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jascdk/29b5a4e7b9e5f430c32e175b85b3b76c to your computer and use it in GitHub Desktop.
Save jascdk/29b5a4e7b9e5f430c32e175b85b3b76c to your computer and use it in GitHub Desktop.
substitutions:
# UNIQUE NAME FOR THE DEVICE
device: wavin # Case sensitive!!!
name: Wavin # "Friendly name" - not case sensitive!!!
# CHANNEL friendly names (If using spaces remember to add ")
channel_01_friendly_name: "Channel 01"
channel_02_friendly_name: "Channel 02"
channel_03_friendly_name: "Channel 03"
channel_04_friendly_name: "Channel 04"
channel_05_friendly_name: "Channel 05"
channel_06_friendly_name: "Channel 06"
channel_07_friendly_name: "Channel 07"
channel_08_friendly_name: "Channel 08"
channel_09_friendly_name: "Channel 09"
channel_10_friendly_name: "Channel 10"
channel_11_friendly_name: "Channel 11"
channel_12_friendly_name: "Channel 12"
channel_13_friendly_name: "Channel 13"
channel_14_friendly_name: "Channel 14"
channel_15_friendly_name: "Channel 15"
channel_16_friendly_name: "Channel 16"
# CHANNEL ID´S (ONLY LOWER CASE LETTERS, NO SPACES) used for entity ids
channel_01_id: channel_01
channel_02_id: channel_02
channel_03_id: channel_03
channel_04_id: channel_04
channel_05_id: channel_05
channel_06_id: channel_06
channel_07_id: channel_07
channel_08_id: channel_08
channel_09_id: channel_09
channel_10_id: channel_10
channel_11_id: channel_11
channel_12_id: channel_12
channel_13_id: channel_13
channel_14_id: channel_14
channel_15_id: channel_15
channel_16_id: channel_16
# UPDATE TIME (GATEWAY)
update_interval: 60s
# PIN DEFINITIONS (Should in most cases not be changed)
tx_enable_pin: '26'
rx_pin: '13'
tx_pin: '14'
# WiFi settings
ssid_set: !secret wifi_ssid
password_set: !secret wifi_password
########################################################################################
# CODE BELOW SHOULD NOT BE CHANGED #
########################################################################################
esphome:
name: ${device}
project:
name: "home.wavin_gulvvarme"
version: "1.0.0"
esp32:
board: pico32
framework:
type: arduino
# Enable logging
logger:
baud_rate: 0
# Enable Home Assistant API
api:
ota:
wifi:
ssid: ${ssid_set}
password: ${password_set}
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Wavin Fallback Hotspot"
password: "12345678"
captive_portal:
uart:
- id: uart_${device}
rx_pin: ${rx_pin}
tx_pin: ${tx_pin}
baud_rate: 38400
stop_bits: 1
parity: NONE
modbus:
id: ${device}_modbus
uart_id: uart_${device}
flow_control_pin: ${flow_control_pin}
modbus_controller:
id: ${device}_modbus_controller
address: 1
modbus_id: wavin_modbus
update_interval: 5s
# Uncomment the active channels on your Wavin Ahc 9000
packages:
remote_package:
url: https://github.com/heinekmadsen/esphome_components
ref: main
files:
- components/wavinahc9000v2/configs/basic.yaml # REQUIRED FOR WAVIN AHC 9000
- components/wavinahc9000v2/configs/channel_02.yaml
- components/wavinahc9000v2/configs/channel_03.yaml
- components/wavinahc9000v2/configs/channel_04.yaml
- components/wavinahc9000v2/configs/channel_05.yaml
- components/wavinahc9000v2/configs/channel_06.yaml
- components/wavinahc9000v2/configs/channel_07.yaml
- components/wavinahc9000v2/configs/channel_08.yaml
- components/wavinahc9000v2/configs/channel_09.yaml
- components/wavinahc9000v2/configs/channel_10.yaml
- components/wavinahc9000v2/configs/channel_11.yaml
#- components/wavinahc9000v2/configs/channel_12.yaml
#- components/wavinahc9000v2/configs/channel_13.yaml
#- components/wavinahc9000v2/configs/channel_14.yaml
#- components/wavinahc9000v2/configs/channel_15.yaml
#- components/wavinahc9000v2/configs/channel_16.yaml
refresh: 0s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment