generated from esphome/esphome-project-template
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
267402e
commit 4fcf41b
Showing
5 changed files
with
688 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,59 @@ | ||
substitutions: | ||
# PMP circuit, who's default address is 103 | ||
addPMP_default: "103" #White | ||
addPMP_alt1: "108" # Waste/Red | ||
addPMP_alt2: "109" # Clean/Green | ||
addPMP_alt3: "110" #Orange | ||
addPMP_alt4: "106" # Blue | ||
# # PMP circuit, who's default address is 103 | ||
# addPMP_default: "103" #White | ||
# addPMP_alt1: "108" # Waste/Red | ||
# addPMP_alt2: "109" # Clean/Green | ||
# addPMP_alt3: "110" #Orange | ||
# addPMP_alt4: "106" # Blue | ||
|
||
button: | ||
# Change I2C Address of EZO-PMP | ||
- platform: template | ||
name: "Pump(Blue) -> ${addPMP_alt4} - Change I2C Address" | ||
name: "Pump(Blue) -> ${addPMP_blue} - Change I2C Address" | ||
on_press: | ||
then: | ||
- ezo_pmp.change_i2c_address: | ||
id: ezo_pump_white | ||
address: ${addPMP_alt4} | ||
address: ${addPMP_blue} | ||
web_server: | ||
sorting_group_id: sorting_group_config | ||
|
||
- platform: template | ||
name: "Pump(Red) -> ${addPMP_alt1} - Change I2C Address" | ||
name: "Pump(Yellow) -> ${addPMP_yellow} - Change I2C Address" | ||
on_press: | ||
then: | ||
- ezo_pmp.change_i2c_address: | ||
id: ezo_pump_white | ||
address: ${addPMP_alt1} | ||
address: ${addPMP_yellow} | ||
web_server: | ||
sorting_group_id: sorting_group_config | ||
|
||
- platform: template | ||
name: "Pump(Green) -> ${addPMP_alt2} - Change I2C Address" | ||
name: "Pump(Red) -> ${addPMP_red} - Change I2C Address" | ||
on_press: | ||
then: | ||
- ezo_pmp.change_i2c_address: | ||
id: ezo_pump_white | ||
address: ${addPMP_alt2} | ||
address: ${addPMP_red} | ||
web_server: | ||
sorting_group_id: sorting_group_config | ||
|
||
- platform: template | ||
name: "Pump(Orange) -> ${addPMP_alt3} - Change I2C Address" | ||
name: "Pump(Green) -> ${addPMP_green} - Change I2C Address" | ||
on_press: | ||
then: | ||
- ezo_pmp.change_i2c_address: | ||
id: ezo_pump_white | ||
address: ${addPMP_alt3} | ||
address: ${addPMP_green} | ||
web_server: | ||
sorting_group_id: sorting_group_config | ||
|
||
- platform: template | ||
name: "Pump(Orange) -> ${addPMP_orange} - Change I2C Address" | ||
on_press: | ||
then: | ||
- ezo_pmp.change_i2c_address: | ||
id: ezo_pump_white | ||
address: ${addPMP_orange} | ||
web_server: | ||
sorting_group_id: sorting_group_config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.