esphome weather staion v5

This commit is contained in:
root
2024-06-14 23:38:45 +12:00
parent 6ff9e38e5f
commit efaaf8c678

View File

@@ -524,15 +524,6 @@ sensor:
max_value: 250 #if anything over that, we have debounce issues or are going to die max_value: 250 #if anything over that, we have debounce issues or are going to die
ignore_out_of_range: true ignore_out_of_range: true
# - platform: pulse_counter
# # https://community.home-assistant.io/t/measuring-wind-speed/395693
# id: wind_pulses
# pin:
# number: GPIO14 #D5 on D1 Mini
# mode:
# input: true
# pullup: true
################################ ################################
# WIND 10 MINUTE MAX # WIND 10 MINUTE MAX
# Template for wind gust measurements # Template for wind gust measurements
@@ -605,7 +596,7 @@ sensor:
} else if (id(wind_meter_scale).state >= 33) { } else if (id(wind_meter_scale).state >= 33) {
id(wind_scale).publish_state("Hurricane Force"); id(wind_scale).publish_state("Hurricane Force");
} else { } else {
id(wind_scale).publish_state(""); id(wind_scale).publish_state({""});
} }
############################################# #############################################
@@ -636,7 +627,7 @@ sensor:
################################################################ ################################################################
# CONVERT VOLTAGE TO HEADING # CONVERT VOLTAGE TO HEADING
# Current version used only has 8 heding points, some have 16. # Version used here only has 8 heading points, some have 16.
# #
# Bear R Head Meas'd Max Min # Bear R Head Meas'd Max Min
# (deg) (Ohms) Volts V+1% V-1% # (deg) (Ohms) Volts V+1% V-1%
@@ -677,7 +668,7 @@ sensor:
} else if (id(wind_direction_voltage).state >= 3.15414 && id(wind_direction_voltage).state <= 3.21786) { } else if (id(wind_direction_voltage).state >= 3.15414 && id(wind_direction_voltage).state <= 3.21786) {
id(wind_dir_heading).publish_state("W"); id(wind_dir_heading).publish_state("W");
} else { } else {
id(wind_dir_heading).publish_state(""); id(wind_dir_heading).publish_state({});
} }