Skip to content

Instantly share code, notes, and snippets.

@jascdk
Created October 2, 2022 06:08
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/627758bc830551f2b64c0a8c102d65b7 to your computer and use it in GitHub Desktop.
Save jascdk/627758bc830551f2b64c0a8c102d65b7 to your computer and use it in GitHub Desktop.
substitutions:
name: 'Wavin'
device: 'wavin'
log_level: DEBUG
device_description: 'Wavin AHC 9000 Gateway / Gulvvarme'
# CHANNEL friendly names (If using spaces remember to add ")
channel_01_friendly_name: "Værksted"
channel_02_friendly_name: "Victor"
channel_03_friendly_name: "Gæstebadeværelse"
channel_04_friendly_name: "Bryggers"
channel_05_friendly_name: "Kontor"
channel_06_friendly_name: "Køkken"
channel_07_friendly_name: "Køkken Alrum"
channel_08_friendly_name: "Badeværelse"
channel_09_friendly_name: "Soveværelse"
channel_10_friendly_name: "Stue"
channel_11_friendly_name: "Emil"
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: vaerksted
channel_02_id: victor
channel_03_id: gaestebadevaerelse
channel_04_id: bryggers
channel_05_id: kontor
channel_06_id: koekken
channel_07_id: koekken_alrum
channel_08_id: badevaerelse
channel_09_id: sovevaerelse
channel_10_id: stue
channel_11_id: emil
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)
flow_control_pin: '26'
rx_pin: '13'
tx_pin: '14'
########################################################################################
# CODE BELOW SHOULD NOT BE CHANGED #
########################################################################################
esphome:
name: '${device}'
comment: '${device_description}'
esp32:
board: pico32
framework:
type: arduino
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:
device_base: !include common/base_wavin.yaml
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_01.yaml
- 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