Skip to content

Commit

Permalink
Update ezo_do.yaml
Browse files Browse the repository at this point in the history
added salinity compensation commands
  • Loading branch information
TheRealFalseReality committed Nov 30, 2024
1 parent 92a5619 commit 50b9fc1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion common/ezo_do.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ sensor:
id: sensor_do_percent
unit_of_measurement: "%"
icon: mdi:gas-cylinder
accuracy_decimals: 2
accuracy_decimals: 1
disabled_by_default: true
update_interval: "${update_do}"
state_class: "measurement"
Expand Down Expand Up @@ -206,6 +206,12 @@ button:
if (id(select_command_do).state == "Calibrate CLEAR (WILL RESET CALIBRATION)") {
id(do_ezo).clear_calibration();
}
if (id(select_command_do).state == "Salinity Compensation Value") {
id(do_ezo).send_custom("S,35.0,ppt");
}
if (id(select_command_do).state == "Salinity Compensation @ 35ppt") {
id(do_ezo).send_custom("S,?");
}
// else {
// id(do_ezo).send_custom("R");
// }
Expand All @@ -230,6 +236,8 @@ select:
- "Calibrate @ DRY (WILL RESET CALIBRATION)"
- "Calibrate @ 0% (WILL RESET CALIBRATION)"
- "Calibrate CLEAR (WILL RESET CALIBRATION)"
- "Salinity Compensation Value"
- "Set Salinity Compensation @ 35ppt"
initial_option: "Check Calibration"
set_action:
- logger.log:
Expand Down

0 comments on commit 50b9fc1

Please sign in to comment.