Open dominik4545 opened 1 year ago
I think they are enabled by now.
I have an rtttl snippet with defaults on
substitutions:
# default, can be overwritten
buzzer_platform: esp8266_pwm
buzzer_port: D5
### BUZZER #############################################################
output:
- platform: ${buzzer_platform} # esp8266:esp8266_pwm or esp32:ledc
pin: ${buzzer_port}
frequency: 1000 Hz
id: buzzer_output
# max_power: ${max_power} # set_max_power(0.0 - 1.0)
packages:
snippet__rtttlbuzzer:
!include { file: .snippet.rtttlbuzzer.yaml, vars: { buzzer_port: D7 } }
platform
matches my most used default, so no override needed below.
Describe the problem you have/What new integration you would like Please make PIN values available for substitutions
Please describe your use case for this integration and alternatives you've tried: Currently I am working on a project automating my subfloor heating. This uses a WEMOS D1 Mini and a relay board to control the valves. Unfortunately 90 % of the configuration stays the same for all 6 rooms I am doing the automation for. The only things which are changing are the variable from Home Assistant storing the current temperature (available for substitution) and the PIN value (e.g. D2) used to open the relay (not available for substitution). My current workaround is to copy the whole section 6 times to cover all rooms but it would be much easier if the PIN values would be available for substitution as well.
Thank you very much in advance!
Additional context
I tried to add the following snippet to the main configuration for the WEMOS D1 Mini:
and this is the block I need to copy 6 times once for each room: